Commit graph

8671 commits

Author SHA1 Message Date
Myles Watson
7365ea5b9d Bluetooth: Sleep instead of dying on EOF am: 0d63f8af7c
am: e63d6a08ce

Change-Id: Icc2eefaf4b29360c8a8889e5d64b3bedb31bb181
2018-01-10 01:42:18 +00:00
Myles Watson
e63d6a08ce Bluetooth: Sleep instead of dying on EOF
am: 0d63f8af7c

Change-Id: I8f86685ba2000817dcfbdf566449826b121936dd
2018-01-10 01:38:39 +00:00
Myles Watson
0d63f8af7c Bluetooth: Sleep instead of dying on EOF
When a device is restarted, the UART may go away before the
packetizer.  Print an error and sleep in case it isn't really
a restart.

Bug: 70855323
Test: Repeated restarts, check for Bluetooth tombstones
Change-Id: I2b4e677451e826d40dcc9d063d80dc0e17fc9aca
2018-01-09 23:54:05 +00:00
Lianchao Song
893798b19b BT Interface: fix hci cmd timeout am: 424ffd0da5 am: fc0e8c6f48
am: 6991b9f428

Change-Id: I6daa5c12ddd45ef212ac47369005cbb625527e7d
2018-01-09 23:26:24 +00:00
Lianchao Song
6991b9f428 BT Interface: fix hci cmd timeout am: 424ffd0da5
am: fc0e8c6f48

Change-Id: I920f9b56e0dc9e8b91cc12914cc64f20b10dd666
2018-01-09 23:18:22 +00:00
Lianchao Song
fc0e8c6f48 BT Interface: fix hci cmd timeout
am: 424ffd0da5

Change-Id: Ifad82d29cbc269323a776c4a0f5f70bf0bfab2d4
2018-01-09 23:13:20 +00:00
Tomasz Wasilczyk
a72fb98f2b Merge "Broadcast radio 1.x default implementation: let's support background scan." 2018-01-09 22:20:27 +00:00
Zhuoyao Zhang
ce386b10e9 Disable seccomp policy for configstore hal on coverage builds. am: 207e97c735 am: 23b5ae4553
am: 40ffc6130a

Change-Id: I09d4a2f53156de34f80bb66e0970ebbe4c7e40ec
2018-01-09 21:43:19 +00:00
Lianchao Song
424ffd0da5 BT Interface: fix hci cmd timeout
Add mutex in function Send() and OnTimeout() to do mutual
exclusive access on lpm_wake_deasserted.

If lpm_wake_deasserted is out of sync with the actual
wake state, then platforms which use the lpm hint
will break.

Bug: 64299848
Test: run affected platform for a long period of time
and find that hci commands do not time out
Change-Id: I9f630d6f40f84b9c047c6488632cd44d6602bb14
2018-01-09 21:14:47 +00:00
Eino-Ville Talvala
674c299004 Merge "Add MOTION_TRACKING capability/intent, and lens poseReference" 2018-01-09 21:08:01 +00:00
Zhuoyao Zhang
40ffc6130a Disable seccomp policy for configstore hal on coverage builds. am: 207e97c735
am: 23b5ae4553

Change-Id: Id042a38e3e25fde309f5cf5922f7f1c24923ed9a
2018-01-09 19:59:15 +00:00
Tomasz Wasilczyk
06c82dd932 Merge "Fix few typos in broadcast radio HAL 2.0 comments." 2018-01-08 23:54:09 +00:00
Tomasz Wasilczyk
db1386a902 Broadcast radio 1.x default implementation: let's support background scan.
Bug: 69860743
Test: VTS
Change-Id: I7f0dc841e2b3fc218e5e7efa9b102697655cc9d5
2018-01-08 15:37:09 -08:00
Zhuoyao Zhang
23b5ae4553 Disable seccomp policy for configstore hal on coverage builds.
am: 207e97c735

Change-Id: I6ee7181d12e08cbc5ec2fecaf7f34808f387be17
2018-01-08 22:53:27 +00:00
TreeHugger Robot
1a5fca6019 Merge "supplicant(vts): Restart supplicant after all the test" 2018-01-08 22:40:58 +00:00
Jeff Tinker
d2e56e3510 Merge "Fix potential memory leak in default drm crypto plugin" 2018-01-08 22:35:04 +00:00
Roshan Pius
1a424095bf supplicant(vts): Restart supplicant after all the test
Bug: 70346098
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
VtsHalWifiSupplicantV1_1Target -l INFO`

Change-Id: I0bf1a5b96a9e8aad71577f3247c306d4ccc8ae18
2018-01-08 12:52:01 -08:00
Zhuoyao Zhang
207e97c735 Disable seccomp policy for configstore hal on coverage builds.
Test: lunch walleye_coverage-userdebug && make
      verify configstore@1.0.policy is not generated.

Change-Id: Iad1f55fe10c2c77a3ca56418ec315e10ab71753f
2018-01-08 12:06:22 -08:00
TreeHugger Robot
a5f9f8b14f Merge "GNSS Satellite Use Blacklist HAL" 2018-01-06 02:56:23 +00:00
Wyatt Riley
50e3327c46 GNSS Satellite Use Blacklist HAL
Adding .hal change IGnssConfiguration to enable
external (system) control of satellite usage.
Adding VTS tests of the new .hal (ready for
partners to integrate against.)

Bug: 38269641
Test: .hal & vts builds,
 vts test runs and fails fast (no 1.1 HAL on
 initial test device),
 vts test logs run as expected on a 1.0 device (with tests to make
 this run),
 on-device sanity check of GPS works,
 builds with JNI test code (to be submitted separately)
Change-Id: I72b5045eb0eea30d51ed5098248482cbbfc5aaff
2018-01-05 17:03:23 -08:00
Tomasz Wasilczyk
88960f1d3d Fix few typos in broadcast radio HAL 2.0 comments.
Bug: 69958423
Test: none
Change-Id: Ic9e5ddd4fb6d033f6f98eb0b537856abe4e4f025
2018-01-05 13:37:44 -08:00
TreeHugger Robot
4836d3d34b Merge "Add interface specification for lights hal." 2018-01-05 20:04:30 +00:00
Eino-Ville Talvala
e41911b65c Add MOTION_TRACKING capability/intent, and lens poseReference
Test: Builds, hidl-gen/hidl-doc are happy
Bug: 63629224
Change-Id: Ibf8a57c3d917f24db6ff269461d55f177ec55fcf
2018-01-05 12:02:48 -08:00
Jeff Tinker
5fee182384 Fix potential memory leak in default drm crypto plugin
bug:70205403

Test: manual play movies test forcing the legacy default
  widevine plugin to be used, instead of the widevine hidl
  service.

Change-Id: Icb5b234999c5bf49b31d967814e48d42d9dd767f
2018-01-05 11:18:00 -08:00
Steven Moreland
5d4dc1b81e Add interface specification for lights hal.
So that init knows how to start it and to provide
an example of how to specify interfaces since there
are no lazy starting services on Pixel yet.

In order to make lights a lazy service, it would also
have to be marked as 'oneshot'.

Test: manually using Light as a lazy service
Bug: 64678982
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
2018-01-05 10:16:34 -08:00
Steven Moreland
98ca764006 Add interface specification for lights hal.
So that init knows how to start it and to provide
an example of how to specify interfaces since there
are no lazy starting services on Pixel yet.

In order to make lights a lazy service, it would also
have to be marked as 'oneshot'.

Test: manually using Light as a lazy service
Bug: 64678982
Merged-In: I846a7e2d9545b42af9b985adb74883bda1b8c355
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
2018-01-05 18:15:25 +00:00
TreeHugger Robot
1a793844cf Merge "Configstore HAL is down-revisioned to 1.0" 2018-01-05 06:02:45 +00:00
Howard Chen
5fbc2279f3 Merge "Add a test method to test interface in struct" am: c0204ee13d am: 932c93f52e
am: 3495400a59

Change-Id: I6e58800fde8a6a44d342e15b9c79d02a9e5f7156
2018-01-05 04:11:25 +00:00
Howard Chen
3495400a59 Merge "Add a test method to test interface in struct" am: c0204ee13d
am: 932c93f52e

Change-Id: I241e34de84b0d44c652fd60fc7341a788e169e24
2018-01-05 04:06:31 +00:00
Howard Chen
932c93f52e Merge "Add a test method to test interface in struct"
am: c0204ee13d

Change-Id: I0340f31c48036cc1baf0fdbecaa96877af739063
2018-01-05 04:01:54 +00:00
Howard Chen
c0204ee13d Merge "Add a test method to test interface in struct" 2018-01-05 03:55:14 +00:00
TreeHugger Robot
c29a0ebf4c Merge "Remove references to Keymaster::3.0 from Keymaster::4.0" 2018-01-05 01:14:34 +00:00
Shawn Willden
a6eb3faeb5 Remove references to Keymaster::3.0 from Keymaster::4.0
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: Idf627a3d7a51d2a464bd1723a32e88f43969bf45
2018-01-04 15:05:36 -07:00
TreeHugger Robot
0a6cdc3bb1 Merge "camera: Add device info version" 2018-01-04 21:52:27 +00:00
sqian
76e104eb4c Remove unused functions am: 910a238c21 am: 6d06a6f7a9
am: a598754bf7  -s ours

Change-Id: I5670afb43e80469c72653ee931f42461bcda410a
2018-01-04 21:44:37 +00:00
sqian
a598754bf7 Remove unused functions am: 910a238c21
am: 6d06a6f7a9

Change-Id: Id4a9cb4e5b01c0529abd63ce768070be1e7037d9
2018-01-04 21:40:35 +00:00
sqian
6d06a6f7a9 Remove unused functions
am: 910a238c21

Change-Id: Iac93896b81a6fc76f7db4868076e86d651b7f818
2018-01-04 21:36:34 +00:00
Tomasz Wasilczyk
38b51669e4 Merge "Prepare a best-effort workaround for HD Radio station id abuse." 2018-01-04 20:17:28 +00:00
sqian
910a238c21 Remove unused functions
Test: Compile
Bug: 63760809
Change-Id: I582c259ca0787a701d434eea9592c9e8d7351f08
Merged-In: I582c259ca0787a701d434eea9592c9e8d7351f08
(cherry picked from commit 3ba20e6b6b)
2018-01-04 12:13:33 -08:00
Tomasz Wasilczyk
c71624f8ed Prepare a best-effort workaround for HD Radio station id abuse.
In theory, 32bit HD Radio station ID + subchannel index (parts of
HD_STATION_ID_EXT) is a globally unique identifier. It allows broadcast
radio framework to determine which programs are the same and allow the
application to match entries from favourite list and the program list
provided by the tuner.

However, some broadcasters don't perform equipment setup correctly and
don't set station ID. As a result, there are some stations with
conflicting IDs.

As a workaround to treat these stations separately in a given location,
FM frequency was added as a part of HD_STATION_ID_EXT. This still doesn't
solve the global uniqueness problem: user might save KCQW 105.5 (sid=0) in
California, travel to Nevada and find KNAB 105.5 (sid=0). It turns out
there is no reliable identifier that might identify the station globally.

As a workaround, shortened station name is added for double-checking.
This is a best-effort fix, so it's not required for such misbehaving
stations to get correctly identified in every corner case.

Bug: 69958777
Test: VTS
Change-Id: Id11243096f1cde7fdda5cb70a7248d1831985cdd
2018-01-04 08:40:31 -08:00
Guennadi Liakhovetski
7b7ede7ebd Camera: Fix hotplug
According to the camera_module_t::get_number_of_cameras() description
in camera_common.h, it should only return the number of "fixed"
cameras, i.e. cameras, facing to the front and to the back. Any
cameras, with the facing value of "external," i.e. externally connected
cameras, should not be reported by it, instead they should later be
reported, using the
camera_module_callbacks_t::camera_device_status_change() callback.
However, this doesn't work. When a camera is reported this way, it is
ignored as unknown. Fix this by adding a new camera, when its status
change is reported.

Change-Id: I18874ed005f477e32fb723c00c16b67a81cde6ce
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
2018-01-04 11:42:27 +01:00
Steven Moreland
3fe18f6c01 Merge "Remove empty generates clause." am: 12517de51d am: 4160ed79a0
am: bd45927b84

Change-Id: Ieef7a9ad258d3c783f833521e5d52754b8d3366c
2018-01-04 09:14:56 +00:00
Steven Moreland
bd45927b84 Merge "Remove empty generates clause." am: 12517de51d
am: 4160ed79a0

Change-Id: If4e18de85815193dc6de6b2184b6ffddee68505c
2018-01-04 09:10:58 +00:00
Steven Moreland
4160ed79a0 Merge "Remove empty generates clause."
am: 12517de51d

Change-Id: I2f61aa7a5fc6771c5650a04971e65b8fe57161c3
2018-01-04 09:07:30 +00:00
Treehugger Robot
12517de51d Merge "Remove empty generates clause." 2018-01-04 09:03:28 +00:00
Sundong Ahn
b162f3f8dd Configstore HAL is down-revisioned to 1.0
Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in master will be down
revisioned to 1.0.

Bug: 71555815
Test: lshal | grep configsotre
Test: "cat proc/<configstore pid>/status | grep Seccomp " return:
    Seccomp: 2

Change-Id: I65d2dc06fbe12d0c0ccc020bbd287e0b14320f2f
2018-01-04 16:15:56 +09:00
Chien-Yu Chen
13cfbf07ff camera: Add device info version
Test: CTS
Bug: 64847201
Change-Id: I4e9002bb8ed47249eff00e54dfd3b31c97d28777
2018-01-03 14:39:59 -08:00
Steven Moreland
8147d62e33 Remove empty generates clause.
Doesn't do anything, not part of the language.

Bug: 71545356
Test: none
Change-Id: I5fce87a9cf01ff546f2b7b177b60454b8bfbf106
2018-01-03 14:14:24 -08:00
Tomasz Wasilczyk
7f2292dbab Merge "Implement broadcast radio announcements." 2018-01-03 20:13:28 +00:00
Yi Kong
2eaccd181f Use correct format specifier for uint32_t am: 004dd379df am: f157a9c8c7
am: 31e0ddbc1c

Change-Id: I8abbbd0ed9d540f8d4a3092a7824c4c4afbc12b7
2018-01-03 18:10:46 +00:00