Commit Graph

12505 Commits

Author SHA1 Message Date
George Mount
89473165ce Revert "Add statically linked boot HAL impl in recovery"
This reverts commit ee6a0b5a8b.

Reason for revert: Build break

Change-Id: I78bebb23f83761cfa3892ef2640bc15edd860819
2018-10-17 21:30:50 +00:00
Connor O'Brien
ee6a0b5a8b Add statically linked boot HAL impl in recovery
The default Treble boot HAL implementation currently can only work in
recovery on devices that specifically build their libhardware
implementation as a shared library for recovery.

This CL adds the option to statically link the libhardware
implementation in recovery instead of finding it using
hw_get_module(). This new approach allows devices that define
PRODUCT_STATIC_BOOT_CONTROL_HAL to begin using the Treble HAL in
recovery without requiring device-specific changes.

Test: adb sideload succeeds
Bug: 78598708
Change-Id: I7e1651fad64c2e55da256a164d2875956f68fb67
Signed-off-by: Connor O'Brien <connoro@google.com>
2018-10-15 14:15:14 -07:00
Xusong Wang
cf4db1e2d6 Merge "Divide BBOX_TRANSFORM into 2 ops." 2018-10-05 19:47:16 +00:00
Valerie Hau
722aaa2700 Merge "Fixing Readback Test failures related to auto-succeed" 2018-10-05 19:35:12 +00:00
Valerie Hau
babe4eb0de Fixing Readback Test failures related to auto-succeed
Prior implementation failed to clear command reader, causing test to
fail in TearDown.  Transform Readback Tests failed to return if readback
was not supported, moved GTEST_SUCCEED into test body from SetUp

Bug: 111563608
Test: ./VtsHalGraphicsComposerV2_2TargetTest
Change-Id: I4647f94efa216b219d0ef345df1ec3aa81dab4c0
2018-10-05 11:29:06 -07:00
TreeHugger Robot
42b500c419 Merge "VTS: Add test for device version 3.5" 2018-10-05 00:58:42 +00:00
Miao Wang
2b8508ee09 Merge "Update OWNERS" 2018-10-05 00:18:14 +00:00
Miao Wang
6653e69dc6 Update OWNERS
Test: none
Change-Id: I96db4de3f34837c9f3174fd01e7d06d3355617f3
2018-10-04 17:16:43 -07:00
Xusong Wang
d2bae1c268 Divide BBOX_TRANSFORM into 2 ops.
Divide BBOX_TRANSFORM op into 2 ops
- AXIS_ALIGNED_BBOX_TRANSFORM
- ROTATED_BBOX_TRANSFORM

Rotated bounding boxes use different tensor format than axis-aligned
bounding boxes, and it would be less confusing if they were represented
by a separate operator code.

Bug: 113562630

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_xTargetTest with sample driver
Change-Id: Ie08f2e0d0da77f6750766a394969653478d054d5
2018-10-04 17:15:10 -07:00
TreeHugger Robot
a26ad342b4 Merge "Add IBiometricsFace#userActivity" 2018-10-04 20:35:32 +00:00
TreeHugger Robot
073cdd0fb1 Merge "Add a command to get the minimum battery voltage required for flashing" 2018-10-04 20:19:32 +00:00
Shuzhen Wang
6bdeaf55bf VTS: Add test for device version 3.5
Also includes:
- Add test for getPhysicalCameraCharacteristics.
- Doc update for the new HIDL API.
- Tighten boundary check for camera ID in CameraModule.

Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO

Bug: 79523700
Bug: 115969176
Bug: 116512585
Change-Id: I051d1b0c91834781a1f8d893ed5ebfa579b03774
2018-10-04 11:56:20 -07:00
Kevin Chyn
ba9ec8795a Add IBiometricsFace#userActivity
Fixes: 116821097

Test: builds
Change-Id: I88363e186a41ce65665122606b357c7d31d8c18d
2018-10-03 18:16:30 -07:00
Kevin Rocard
eeda71a771 Audio VTS: Do not constrain implementation frameCount am: 069bc45044 am: 5596e985d4 am: c2e7ace98d
am: 1c95f2bfae

Change-Id: I407b81c639c96bd0cc9d6c1bba84923939cf9e54
2018-10-03 16:37:45 -07:00
Valerie Hau
55b73312d7 Merge "Adding more Readback tests and refactoring" 2018-10-03 23:37:07 +00:00
Kevin Rocard
1c95f2bfae Audio VTS: Do not constrain implementation frameCount am: 069bc45044 am: 5596e985d4
am: c2e7ace98d

Change-Id: I5813a327b8780bb5deb63c153b0159f56a57defe
2018-10-03 16:29:36 -07:00
Kevin Rocard
4f62e23dd5 Audio VTS: Do not constrain implementation frameCount am: 069bc45044 am: b86e285537
am: e029bd11f8

Change-Id: Ia2c98e461ee7a39ef56e0f1b6e2dd85c446b6216
2018-10-03 16:28:44 -07:00
Kevin Rocard
c2e7ace98d Audio VTS: Do not constrain implementation frameCount am: 069bc45044
am: 5596e985d4

Change-Id: Idf051c458d74057425ec3c13227fa31190535e18
2018-10-03 16:23:21 -07:00
Kevin Rocard
e029bd11f8 Audio VTS: Do not constrain implementation frameCount am: 069bc45044
am: b86e285537

Change-Id: Id3c6275cdb5c9de079c425d8f252a6f3e9ac7b99
2018-10-03 16:22:39 -07:00
Hridya Valsaraju
83f5631deb Add a command to get the minimum battery voltage required for flashing
Bug: 79480454
Test: fastboot getvar battery-soc-ok

Change-Id: I6141993972a3084fe3620d81f707999e1264b997
2018-10-03 16:19:30 -07:00
Kevin Rocard
b86e285537 Audio VTS: Do not constrain implementation frameCount
am: 069bc45044

Change-Id: I53dceebb8c48c1f67b6fdc6fa135be8f5222f823
2018-10-03 16:15:35 -07:00
Kevin Rocard
5596e985d4 Audio VTS: Do not constrain implementation frameCount
am: 069bc45044

Change-Id: I3ec1df7f581e5b11e0d394139c1421109c16fc19
2018-10-03 16:15:32 -07:00
Hridya Valsaraju
4985fa47bc Merge "Reland "Set vendor: true for boot control HAL"" am: 9ba23d0c78 am: ca193eb98b
am: db5c49f89c

Change-Id: Ic449186b2286d7c7fef91ebd4bf8f3c39a39dd6e
2018-10-03 15:37:07 -07:00
Hridya Valsaraju
db5c49f89c Merge "Reland "Set vendor: true for boot control HAL"" am: 9ba23d0c78
am: ca193eb98b

Change-Id: Iac4ef682572da17ce087631be21ee70d0b505b92
2018-10-03 15:19:29 -07:00
Hridya Valsaraju
ca193eb98b Merge "Reland "Set vendor: true for boot control HAL""
am: 9ba23d0c78

Change-Id: I4fa44112bf00e1ccb96e8fd7de606fb7ebbe2cd5
2018-10-03 15:06:52 -07:00
Treehugger Robot
9ba23d0c78 Merge "Reland "Set vendor: true for boot control HAL"" 2018-10-03 21:47:14 +00:00
Hridya Valsaraju
cac42c19eb Reland "Set vendor: true for boot control HAL"
This reverts commit f8169cc2bc.

Bug: 117072247
Change-Id: Ib80966e31ed92d316217844d0399e6f6ba5fdd2c
2018-10-03 17:51:58 +00:00
Shuo Qian
c9816c691f Merge "Emergency Function HAL (continued)" am: f461463b39 am: a22dacfc17
am: 873df862c0

Change-Id: Id441e551314a5b14a7cdfaa3570cddc8d6bb94ef
2018-10-02 20:44:45 -07:00
Yifan Hong
7ab74caba7 Merge "health VTS: split Properties test" am: f8a8873ee6 am: 884b2e29f1
am: b553561fee

Change-Id: I90475715a6a6d06823580a3e55379ba04b83dd3d
2018-10-02 20:22:51 -07:00
Yifan Hong
d66688ce72 health: registerCallback() and getHealthInfo() does not notify all callbacks am: e9fc235eb4 am: 13acc0be4e
am: e5eeb04e2c

Change-Id: I0c80ca9dbc62213302187fd121dc42e46ffd4b70
2018-10-02 20:14:03 -07:00
Yifan Hong
ffea33ae66 health: use recursive_mutex. am: a46c0dae81 am: 876d782f9d
am: 1c0e4c6fb2

Change-Id: I767ed01d871238175a88a61e1e72336a09dbb161
2018-10-02 20:13:49 -07:00
Shuo Qian
873df862c0 Merge "Emergency Function HAL (continued)" am: f461463b39
am: a22dacfc17

Change-Id: I92f027462f8dc954bfa350d06d99b2472d4ca8e5
2018-10-02 20:09:28 -07:00
Hridya Valsaraju
1b7e38bf3b Reland 'Set vendor: true for boot control HAL'
am: 5d5a4741c4

Change-Id: I78026ad21c7383fe14cae7dc71cea0edd2f5f703
2018-10-02 20:06:28 -07:00
Shuo Qian
a22dacfc17 Merge "Emergency Function HAL (continued)"
am: f461463b39

Change-Id: I6c0105193a38b477fdfa7e8b88343bd5b8bb2f14
2018-10-02 19:21:20 -07:00
Shuo Qian
f461463b39 Merge "Emergency Function HAL (continued)" 2018-10-03 01:36:17 +00:00
Yifan Hong
b553561fee Merge "health VTS: split Properties test" am: f8a8873ee6
am: 884b2e29f1

Change-Id: I2ce23cc2c4f84c7a7028d36fa12518e7c68d9617
2018-10-02 18:19:38 -07:00
Yifan Hong
e5eeb04e2c health: registerCallback() and getHealthInfo() does not notify all callbacks am: e9fc235eb4
am: 13acc0be4e

Change-Id: I321fc8bc280b3f0a324a0f239217147b7545f439
2018-10-02 18:16:11 -07:00
Yifan Hong
1c0e4c6fb2 health: use recursive_mutex. am: a46c0dae81
am: 876d782f9d

Change-Id: Ic0273532dad40db0fd423bc85ae2c6399c395345
2018-10-02 18:16:00 -07:00
Yifan Hong
884b2e29f1 Merge "health VTS: split Properties test"
am: f8a8873ee6

Change-Id: I4a951a54f052e8f1891e4aeb406307c59f25d3e3
2018-10-02 17:13:37 -07:00
Yifan Hong
13acc0be4e health: registerCallback() and getHealthInfo() does not notify all callbacks
am: e9fc235eb4

Change-Id: I839443bed06f0007b93d1032c61d28d3955d79a3
2018-10-02 17:11:22 -07:00
Yifan Hong
876d782f9d health: use recursive_mutex.
am: a46c0dae81

Change-Id: I132a9b08d9b3a1f6356436f6a73a90b7b59422c7
2018-10-02 17:11:14 -07:00
Yifan Hong
f8a8873ee6 Merge "health VTS: split Properties test" 2018-10-02 23:37:43 +00:00
Hridya Valsaraju
5d5a4741c4 Reland 'Set vendor: true for boot control HAL'
Test: make boot image and check if boot contol HAL implementation
is present in vendor and recovery.
Bug: 117072247

Change-Id: Id05563fc3b4bdf135bf7e1ae75d23f34a98845ab
2018-10-02 23:19:43 +00:00
Ng Zhi An
3d8f2bfd5b Skip hal v1 check after p on low ram devices am: a0eb7e415c am: 2f5884c94c am: a297d0cb1f
am: b88b408302

Change-Id: I01975f556fe56ac0850b9055b1315cbd0fe9eea0
2018-10-02 15:51:04 -07:00
Hridya Valsaraju
410a411621 Merge "Revert "Set vendor: true for boot control HAL"" am: 04ba91ef05 am: 1d08857133
am: a8fe4144a4

Change-Id: Idcebaae70a3a0202f3e67af0e53af666e44b65c0
2018-10-02 15:49:36 -07:00
Ng Zhi An
d6c009d46f Skip hal v1 check after p on low ram devices am: a0eb7e415c am: f8f519f412
am: cab24d270d

Change-Id: I5642eb8b968849c8a60488f372e5eac8bff77637
2018-10-02 15:47:05 -07:00
Valerie Hau
cfb29a4e7b Adding more Readback tests and refactoring
Bug: 111563608
Test: ./VtsHalGraphicsComposerV2_2TargetTest
--gtest_filter=GraphicsComposerReadbackTest.*

Change-Id: I0e4a8212bf08c2890747f99d5754f92821c2e2f4
2018-10-02 15:39:34 -07:00
Ng Zhi An
b88b408302 Skip hal v1 check after p on low ram devices am: a0eb7e415c am: 2f5884c94c
am: a297d0cb1f

Change-Id: I64bf0b315313ae8e60a0ee6ec8f917799b9d7ed8
2018-10-02 15:23:59 -07:00
Hridya Valsaraju
a8fe4144a4 Merge "Revert "Set vendor: true for boot control HAL"" am: 04ba91ef05
am: 1d08857133

Change-Id: I89682587dea0c709c2700a5f67ae196c4727c7d4
2018-10-02 15:22:46 -07:00
Kevin Rocard
069bc45044 Audio VTS: Do not constrain implementation frameCount
The test was assuming Stream::getFrameCount() would return the
AudioConfig::frameCount used to create the stream, similarly
to the sampleRate or the channelMask.

Nevertheless this is not the case as the AudioConfig::frameCount
field is not to used by Stream::openOutputStream (nor Input) as
the buffer size is chosen by the HAL, not the framework.

Thus the test can not assume the frameCount chosen by the HAL and
must not test for a particular value.

Test: atest VtsHalAudioV4_0TargetTest
Bug: 116169974
Change-Id: Ibbf0825f540957e01e7c512d851cb9628991f4c4
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-10-02 22:07:39 +00:00