Commit graph

10013 commits

Author SHA1 Message Date
TreeHugger Robot
ebc5e9a5ea Merge "blank_screen: shut off all lights" into pi-dev 2018-03-16 19:39:05 +00:00
TreeHugger Robot
dca679a7a9 Merge "light service: mark as shutdown critical" into pi-dev 2018-03-16 19:33:44 +00:00
Steven Moreland
04f859a9b9 blank_screen: shut off all lights
This is used to make the phone appear off by init
during late boot (e.x. fsck for disk health), so
it should shut off all lights (not just the screen).

Bug: 74976325
Test: blank_screen
Change-Id: I790cc3dd856c2c2095fa3cf82519fd30834304ca
2018-03-16 10:31:07 -07:00
Steven Moreland
59dbae92ed light service: mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
    including when an artificial 5s delay is inserted when
    the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2018-03-16 17:26:21 +00:00
Emilian Peev
36ad119251 Camera: Don't limit the camera provider types
Camera provider types should not be limited to a particular set
of pre-defined values. All providers will be treated equally
by camera framework regardless of their specific type.

Bug: 73738052
Test: run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I379c015d9e2fc4f68a7ad3ae7cd92b9d230dea33
2018-03-16 09:32:13 +00:00
Enrico Granata
0dd64f7b78 When writing a VehiclePropValue to the store, update its status
Bug: 74805437
Test: manual
Change-Id: I0269ae3b2584af3959d3fd3beaf06e3c4272f793
2018-03-15 17:16:10 -07:00
TreeHugger Robot
4f0aaea33d Merge "Fix violation of least privilege principle" into pi-dev 2018-03-15 21:26:35 +00:00
TreeHugger Robot
8f35174d18 Merge "Some changes required for the actual integration with a GUI renderer" into pi-dev 2018-03-15 21:26:20 +00:00
Yu-Han Yang
79b848a796 Merge "Fix breakage by removing #include gps.h" into pi-dev 2018-03-15 19:03:10 +00:00
Steven Moreland
bd417192c1 Merge "Freeze HALs for Android P" into pi-dev 2018-03-15 17:57:22 +00:00
Yu-Han Yang
f2b1866a13 Fix breakage by removing #include gps.h
Bug: 74951218
Fixes: 74951218

Test: aosp_arm64-eng builds
Change-Id: Iae66fc56b5cba01a3a1cb363f62dabd223743438
2018-03-15 17:35:35 +00:00
Wyatt Riley
4bd3e45305 Merge "Mock blacklisting satellites in default implementation" into pi-dev 2018-03-15 15:19:15 +00:00
Kevin Rocard
e3afd40e91 Audio V4: Update V2 tests to V4
Bug: 74037175
Bug: 38184704
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV4_0Target
Change-Id: Ic8da941fc042b7ef838edf8fdac36b2f0fa1fd32
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-14 19:38:03 -07:00
Kevin Rocard
8532f6b2cc Fix issues in ReturnIn
Bug: 74037175
Test: compile
Change-Id: Icc3a0d1d489474de7c6255a014dccecc4dda4aa2
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-14 19:38:03 -07:00
Kevin Rocard
18f463eeae Audio V4: Duplicate V2 tests
Because VTS must no be modified for old API version (except bug fixes),
as that could break retrocompatiblity.
As a result, a full copy is made. This commit is only:
$ cp -r core/2.0/vts/ core/4.0/vts
$ cp -r effect/2.0/vts/ effect/4.0/vts

With a V2 replaced by V4 test target name to avoid conflict.

Bug: 38184704
Test: Compile
Change-Id: Iddf9e7a9d42bfe84cf067a08d249a9cc0e6b7241
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-14 19:38:03 -07:00
Yu-Han Yang
8c7a0309ab Call SetGnssCallback in SetUp
- Each VTS test requires a valid GnssCallback

Bug: 73845705

Test: tested Gnss v1.1 VTS on gce_x86
Change-Id: I2ca8e6b86aeadc60d7ceacbc2ffaf05ea75c0f40
2018-03-15 01:51:27 +00:00
TreeHugger Robot
4f244a3df4 Merge "Update OWNERS" into pi-dev 2018-03-15 01:45:13 +00:00
Steven Moreland
c7f45fa3f7 Freeze HALs for Android P
Bug: 68112778
Test: none
Change-Id: I96fa3748e24230abaf7fb02429c9ceb78ff4d88d
2018-03-14 16:12:32 -07:00
Yu-Han Yang
78652a09fd Update OWNERS
- Add yuhany to 1.1/vts/OWNERS
- Add OWNER file to 1.1/default/

Bug: 73845705
Test: N/A

Change-Id: Id83805edd841d161f1dbfe1907af97d5d7cb2b06
2018-03-14 21:26:41 +00:00
Yu-Han Yang
a2f77322b4 Mock blacklisting satellites in default implementation
- Mock GnssDebug to pass the sanity check.

Bug: 73845705

Test: All Gnss v1.1 VTS tests are passing on gce_x86

Change-Id: I258fb1671d2b682f471207192b8a0feb138c16ab
2018-03-14 14:23:30 -07:00
Janis Danisevskis
3beaef8de4 Fix violation of least privilege principle
The confirmationui HAL does not need to run as user system.

Bug: 63928580
Test: All required services boot and can access what they need
Change-Id: Ic2d6edabf8cca8384a7e0ce49dfc5445a6ec1658
2018-03-14 14:02:36 -07:00
Janis Danisevskis
bb6377e679 Some changes required for the actual integration with a GUI renderer
These changes accumulated during the integration with the Pixel specific
impelemtation. The make it easiser to integrate an GUI renderer with the
core logic.

Bug: 63928580
Test: VTS tests and manual tests
Change-Id: I7001f60709ce806a16f098492bdb71eb05e6ca9a
2018-03-14 14:02:36 -07:00
TreeHugger Robot
31857339ef Merge "graphics: restart HWC when SurfaceFlinger stops" into pi-dev 2018-03-13 22:07:47 +00:00
Yin-Chia Yeh
0d72ef929f Camera: external camera VTS fixes
Test: VTS pass for external camera
Bug: 72261912
Change-Id: I4f1da37081d0b8c1519ecc0ecc0cc6c3850ee2bb
2018-03-13 17:41:33 +00:00
Petri Gynther
3f8211d403 Merge "audio: Register Bluetooth service with audio HAL" into pi-dev 2018-03-13 02:00:33 +00:00
Petri Gynther
1a016fec09 Merge "Bluetooth: A2DP offload HIDL" into pi-dev 2018-03-13 02:00:33 +00:00
Daniel Solomon
399a5b8d60 graphics: restart HWC when SurfaceFlinger stops
Currently display stays on when SurfaceFlinger is stopped, since HWC
runs as a separate service. There's no reason for display to remain on
in this state, and can be confusing to developers.

Restarting HWC when SurfaceFlinger stops causes display to turn off,
matching expected behavior. HWC is then ready to service SurfaceFlinger
when SurfaceFlinger starts back up.

Bug: 74199279
Change-Id: Ic772c29b362b3e8b2d6bc674a0bd237440880492
2018-03-12 18:55:06 -07:00
TreeHugger Robot
a1dc57b6b3 Merge "Implement Gnss::start() and Gnss::stop()" into pi-dev 2018-03-12 22:38:31 +00:00
Sunny Kapdi
e656214915 Bluetooth: A2DP offload HIDL
Interface for Bluetooth A2DP offload feature.

Bug: 63932139
Bug: 72242910
Test: Manual; TestTracker/148125
Change-Id: I3649800dfe3e1a2d66b76859be87e01ee58d2de0
(cherry picked from commit 4e95d81ef0)
2018-03-12 19:18:52 +00:00
Aniket Kumar Lata
d93a3adab5 audio: Register Bluetooth service with audio HAL
Register Bluetooth audio library with audio HIDL service.
Changes required for A2DP offload implementation.

Bug: 63932139
Bug: 68824150
Test: A2DP offload verified on supported codecs
Change-Id: Idd89f0d28903579d42bd0f33b0194fb8dc2ceaaa
(cherry picked from commit c5a5203114)
2018-03-12 19:18:21 +00:00
TreeHugger Robot
99a619059a Merge "Camera: Do not forward capture_result in error condition" into pi-dev 2018-03-12 04:56:02 +00:00
TreeHugger Robot
b425551667 Merge "Add VTS test for automotive AudioControl HAL" into pi-dev 2018-03-10 02:10:54 +00:00
Shuzhen Wang
17d817a889 Camera: Do not forward capture_result in error condition
If HAL calls process_capture_result with invalid buffers, the HIDL
wrapper shouldn't forward it to camera service, since the CaptureResult
structure may not be completely initialized.

Test: Run GoogleCamera
Bug: 74433802
Change-Id: Iaf20b542af5b11ffbedf709e99137b69d77a9ad3
2018-03-09 16:01:06 -08:00
Ruchi Kandoi
0f0743a503 Add VTS Test for getConfig() in NFC 1.1
Test: run VtsHalNfcV1_1TargetTest
Bug: 72080121
Change-Id: I89600b54d64d4f274647ab4426faf5e05b2f3d34
Merged-In: I89600b54d64d4f274647ab4426faf5e05b2f3d34
(cherry picked from commit 7fb95e3b56cfb53835cc37d3333eff7574371671)
2018-03-09 22:05:17 +00:00
Ruchi Kandoi
61a53d98b6 NFC 1.1: Add getConfigs() method
Test: Boot and check Nfc configs initialized
Bug: 72080121
Change-Id: I000cea4491b2bd136b9ece232b9d73293804c733
(cherry picked from commit 0fc60e41a2f523fb025111fcbce064d9c7a7d4cc)
2018-03-09 22:05:04 +00:00
Scott Randolph
5f2568b2e1 Add VTS test for automotive AudioControl HAL
Difficult to verify results, but at least exercises the APIs.

Bug: 71614544
Test: adb push ...VtsHalAudioControlV1_0TargetTest /data/actst; adb shell
/data/actst
Merged-In: Ie900a4e47483ef881e00a4753097dbd09a0730a0
Change-Id: Ie900a4e47483ef881e00a4753097dbd09a0730a0
2018-03-09 22:03:32 +00:00
TreeHugger Robot
ba6f3289dd Merge "Only allow audio V4 for devices targeting level 3" into pi-dev 2018-03-09 20:38:28 +00:00
Carmen Jackson
a381942170 Merge "Add hwcomposer to the system-background cpuset." into pi-dev 2018-03-09 18:49:33 +00:00
Etan Cohen
b6df5fe23f Merge "[RTT][AWARE] Support new legacy error codes for Aware RTT" into pi-dev 2018-03-09 16:10:02 +00:00
Myles Watson
af9b85e29a Merge "resolve merge conflicts of b9492b5fe9 to oc-mr1-dev" into oc-mr1-dev
am: 8ca409dfa1  -s ours

Change-Id: I6f8ae34681bcead584384ce456822492ac100779
2018-03-09 01:06:31 +00:00
TreeHugger Robot
8ca409dfa1 Merge "resolve merge conflicts of b9492b5fe9 to oc-mr1-dev" into oc-mr1-dev 2018-03-09 00:57:30 +00:00
Yu-Han Yang
584ad32e73 Implement Gnss::start() and Gnss::stop()
- calling start() creates a thread that periodically receives locations

Bug: 73845705

Test: ran VtsHalGnssV1_1TargetTest. SetCallbackResponses and
GetLocationLowPower are passing

Change-Id: I6a544c2832037a8b507c0ab030a8b766be499669
2018-03-08 13:54:07 -08:00
Etan Cohen
69c8922f63 [RTT][AWARE] Support new legacy error codes for Aware RTT
Translate to basic failure. TODO on adding/mapping-to new HIDL
error codes.

Bug: 73176307
Test: RangeAwareTest with known failures
Change-Id: I90e44c3f5aae3f6e565df3a63a36bd84d15c4755
2018-03-08 13:41:47 -08:00
Carmen Jackson
36e146d6fc Add hwcomposer to the system-background cpuset.
Little cores should be fast enough to handle hwcomposer work, so
avoiding using big cores for this is a potential opportunity to save
battery.

Bug: 73543056
Test: Verified using dumpsys gfxinfo that TouchLatency doesn't drop
frames.
Test: Took 10s systraces of TouchLatency and a Youtube VR video and saw
no frames dropped in SurfaceFlinger.

Change-Id: If96e13a2bacc9541f4d69a5736254817f20cacdd
2018-03-08 12:58:13 -08:00
Tomasz Wasilczyk
6bf7d58e57 Merge "Fix boadcastradio HAL 1.1 tuneByProgramSelector implementation." into pi-dev 2018-03-08 19:44:04 +00:00
Tomasz Wasilczyk
c863a957d4 Fix boadcastradio HAL 1.1 tuneByProgramSelector implementation.
It was not compliant with the HAL definition - it didn't auto-change
band if necessary.

Bug: 74353024
Test: manual
Change-Id: I015faffc42778fa27fca3030306f31b0abe409c7
2018-03-08 11:41:55 -08:00
TreeHugger Robot
81d6be54bb Merge "audio HAL: Add missing input channel masks" into pi-dev 2018-03-08 18:06:48 +00:00
Kevin Rocard
802931b173 Only allow audio V4 for devices targeting level 3
Device targeting the last level must use the last version of the
audio HAL.

Bug: 38184704
Test: cuttlefish has no build target, so there is no way to test,
      nevertheless the exact same trivial change was made to Pixel 2
Change-Id: If767803e08caf5b03edcea26fd8dba1cca12cc38
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-07 19:12:50 -08:00
Myles Watson
486c1de215 resolve merge conflicts of 8a28de7a8c to oreo-mr1-vts-dev am: 4891a02bbc
am: eb6bff7234  -s ours

Change-Id: I86a5e151f0b4a92c3e24fe5d7601b57baee0ee4a
2018-03-07 23:11:57 +00:00
Myles Watson
eb6bff7234 resolve merge conflicts of 8a28de7a8c to oreo-mr1-vts-dev
am: 4891a02bbc

Change-Id: Ia08338df3ee163a80ec2315ecf968a2149bdf2ff
2018-03-07 23:04:56 +00:00