Commit graph

34349 commits

Author SHA1 Message Date
Treehugger Robot
c900d6f20e Merge "health: drop backup instance for non-recovery." 2021-10-19 20:23:56 +00:00
Yifan Hong
9ca39cef7f health: AIDL add owners.
... for usage in other places.

Test: none
Bug: 177269435
Change-Id: I74ea2a497237d966db0c146868c61a1a667e8cca
2021-10-19 19:51:58 +00:00
Yifan Hong
a76a2bf65b health: drop backup instance for non-recovery.
For the core variant (system), clients like storaged
etc. should no longer access the "backup" instance, because
healthd is removed from the system image.

For the vendor variant, this would only break if a
vendor image were launched with Android O / O-MR1 (so
health@2.0 is not required), and were compiled against an
Android T (and above) source tree (which won't check
the "backup" instance). This shouldn't be a valid configuration.

For the recovery variant, the "backup" instance has a different
meaning. It points to

  android.hardware.health@2.0-impl-default.recovery

... which was assumed by OEMs to be always installed when a
vendor-specific libhealthd is not necessary. Hence, its behavior
is kept. See

  hardware/interfaces/health/2.0/README.md

android.hardware.health@2.0-impl-default.recovery, and subsequently the
special handling of recovery mode below, can be removed once health@2.1
is the minimum required version (i.e. compatibility matrix level 3 is
removed). Health 2.1 requires OEMs to install the implementation
to the recovery partition when it is necessary (i.e. on non-A/B devices,
where IsBatteryOk() is needed in recovery).

Test: pass
Bug: 203245871

Change-Id: Ife14f5bdaba20e4cf5bd0b954aea4d04a62009c4
2021-10-19 12:50:11 -07:00
David Gross
79d63db0c8 Add PACK operation to NNAPI feature level 6.
Bug: 200281183
Bug: 200280665

Test: m -j NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest

Change-Id: Ic15d047b70c62437b4f0db6f2ca10127591ae07c
2021-10-19 11:04:57 -07:00
Yiming Pan
0f7f2cc6b4 Update OWNERS for VtsHalSensors tests.
Added a bug component where issues seen on this test are triaged. This
will affect the following tests:

VtsHalSensorsV1_0TargetTest
VtsHalSensorsV2_0TargetTest
VtsHalSensorsV2_1TargetTest

Test: Tree Hugger
Bug: 143903671
Change-Id: I60f3607619bc53f2f4a78692e6835e68cffba8af
2021-10-19 16:33:52 +00:00
Treehugger Robot
3a160584e0 Merge "Update OWNERS for VtsHalContexthub tests." am: 46753c42c2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1861819

Change-Id: Ia873f977490b25acb159444274d3fe0f21fc87ad
2021-10-19 13:12:58 +00:00
Treehugger Robot
46753c42c2 Merge "Update OWNERS for VtsHalContexthub tests." 2021-10-19 12:52:53 +00:00
Shraddha Basantwani
65165d5b94 CEC: Add support for multiple ports to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: I4e1a1f2ff7cb4530e8b223169d8efd452412089b
2021-10-19 11:11:50 +05:30
Treehugger Robot
40234ee63b Merge "Backfill owner information for VTS module VtsHalOemLockV1_0TargetTest." am: 80161cfc16
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1813766

Change-Id: I6a0d224ac075c7e70e0aa5796971d8d17372aea9
2021-10-19 02:36:48 +00:00
Treehugger Robot
80161cfc16 Merge "Backfill owner information for VTS module VtsHalOemLockV1_0TargetTest." 2021-10-19 02:16:30 +00:00
Treehugger Robot
ec003365b1 Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: I2e4a88da6cf42c0b79a83031253e2f6c18171b78
2021-10-19 01:11:54 +00:00
Treehugger Robot
b27df86140 Merge "Update OWNERS for VtsHalWifiSupplicant tests." 2021-10-19 00:55:03 +00:00
Yiming Pan
cd9afdf0af Update OWNERS for VtsHalGraphicsComposer tests.
Test: Tree Hugger
Bug: 143903671
Change-Id: I228402a350ecccac92dea7c5facde60496ba3e6e
2021-10-18 17:28:00 -07:00
Yiming Pan
97f2192a92 Update OWNERS for VtsHalContexthub tests.
Added a bug component where issues seen on this test are triaged.

Test: Tree Hugger
Bug: 143903671
Change-Id: Id0dd876c00206c372e7fa608fdd731be3d4d72bb
2021-10-18 17:18:04 -07:00
Michael Butler
d236dbf3b3 Merge "Allow implicit conversions for NN errors -- hal" am: 68e98f40dc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1859936

Change-Id: I923b800bacb7c968b7d2be67c943aab402b2248e
2021-10-18 23:05:32 +00:00
Michael Butler
68e98f40dc Merge "Allow implicit conversions for NN errors -- hal" 2021-10-18 22:45:51 +00:00
Treehugger Robot
3741e92674 Merge "Revert "VTS: Test that configs in a group differ only by vsync period"" am: b350c7cf49
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1830034

Change-Id: I04075d9e644eebc0b1e7235344a2090c80cb2556
2021-10-18 21:53:16 +00:00
Treehugger Robot
b350c7cf49 Merge "Revert "VTS: Test that configs in a group differ only by vsync period"" 2021-10-18 21:39:37 +00:00
Treehugger Robot
47c7b2f334 Merge "Revert "Clarify the ComposerClient comment for CONFIG_GROUP"" am: 184c1b546c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1830033

Change-Id: Ie647ea4237f10ad0460643c7dea97a54cab47ee7
2021-10-18 21:14:31 +00:00
Treehugger Robot
184c1b546c Merge "Revert "Clarify the ComposerClient comment for CONFIG_GROUP"" 2021-10-18 20:56:12 +00:00
Snild Dolkow
0e9328e213 Revert "Clarify the ComposerClient comment for CONFIG_GROUP"
This reverts commit 37c5495c52.

This "clarification" was in fact a change of the HAL interface,
introducing a new requirement which was not present in earlier
Android releases. There are devices on the market that switch
seamlessly between configs that differ in resolution and DPI,
and therefore have those configs in a config group.

Bug: 200184776
Merged-In: I5bba1c6532f5f46da874385164a0bc0cc0435225
Change-Id: I5bba1c6532f5f46da874385164a0bc0cc0435225
2021-10-18 20:55:31 +00:00
Snild Dolkow
bf484a6adb Revert "VTS: Test that configs in a group differ only by vsync period"
This reverts commit 6f36dd6e31.

Differing only by vsync period was not a requirement on Android R, and
it shouldn't be added after-the-fact to an existing HAL version.

There are devices on the market that switch seamlessly between configs
that differ in resolution/dpi, and therefore have those configs in a
common group.

Bug: 200184776
Change-Id: Id0bfc67e55d5139fddb2b359cabafd9281c33734
2021-10-18 20:31:52 +00:00
Ian Hua
f385f9d59a Merge "AIDL interface changes for NNAPI feature level 6." am: 5dc5f2633f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1827694

Change-Id: If83c8c2759ea0e77534c03d990b618f1f4301879
2021-10-18 20:17:48 +00:00
Ian Hua
5dc5f2633f Merge "AIDL interface changes for NNAPI feature level 6." 2021-10-18 20:03:59 +00:00
Treehugger Robot
7253b8fdcc Merge "Backfill owner information for VtsHalVibrator*." am: ad56c830f3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814058

Change-Id: I971bd0728e4745393a7238697508bfdf1f8f8c33
2021-10-18 18:24:18 +00:00
Treehugger Robot
ad56c830f3 Merge "Backfill owner information for VtsHalVibrator*." 2021-10-18 18:09:23 +00:00
Treehugger Robot
eeaedb225d Merge "Backfill OWNERS for VtsHalGraphicsMapper tests." am: cd6ab41533
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1858914

Change-Id: If64e2f5aa678b8e8fedda1497188e8a15c765b8f
2021-10-18 17:58:54 +00:00
Treehugger Robot
cd6ab41533 Merge "Backfill OWNERS for VtsHalGraphicsMapper tests." 2021-10-18 17:41:51 +00:00
Shraddha Basantwani
9fb5e8232e CEC: Add implementation of SYSTEM_CEC_CONTROL option to default HdmiCec
SYSTEM_CEC_CONTROL is updated when system goes into or comes out of
standby mode.
When set to true, Android system is handling CEC commands.
When set to false, microprocessor is handling CEC commands.

Bug: 185434120
Test: manual
Change-Id: I0fbb13a65639508634c6c163b5eaed1885f9e127
2021-10-18 18:12:37 +05:30
Shraddha Basantwani
dedd40e3e8 CEC: Refactor HdmiCecDefault class
Use class member variables instead of global variables
Remove struct keyword since it is redundant
Replace property_get_int32 usage with libbase API

Bug: 185434120
Test: manual
Change-Id: Ide477efd0f1d65bb684993aff783447adbe43aed
2021-10-18 18:12:36 +05:30
Ian Hua
068df81ab6 AIDL interface changes for NNAPI feature level 6.
- Add BATCH_MATMUL operation
- Support TENSOR_INT32 for RESHAPE operation.

Also update "current" version snapshot and use
android.hardware.neuralnetworks-V2-ndk since AIDL v1 has been frozen.

Bug: 193012662
Bug: 200281183
Test: mm
Change-Id: Iabe45c57e2306d61055f711eda03b80b9cbe906d
Merged-In: Iabe45c57e2306d61055f711eda03b80b9cbe906d
2021-10-18 11:38:55 +01:00
Yomna Nasser
181f064c5b Merge "VTS fix for getAllowedNetworkTypesBitmap and setAllowedNetworkTypesBitmap" am: b1e7ca32c6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1844579

Change-Id: I678cc1a2bd31fe0143a281d031b62b2b9bc22a56
2021-10-16 02:34:24 +00:00
Yomna Nasser
b1e7ca32c6 Merge "VTS fix for getAllowedNetworkTypesBitmap and setAllowedNetworkTypesBitmap" 2021-10-16 02:21:12 +00:00
Michael Butler
ff9a5a527a Allow implicit conversions for NN errors -- hal
This change allows GeneralErrors to be created from a string and allows
ExecutionErrors to be created from a string or a GeneralError.
This makes error handling more terse, removing the need for helper
functions such as makeGeneralFailure or makeExecutionFailure.

Bug: N/A
Test: mma
Change-Id: I8c5e80a2eb4f399fad64aab763fe6fa08cf8d1db
2021-10-15 16:37:09 -07:00
Yiming Pan
f3f344a134 Backfill owner information for VtsHalVibrator*.
Owner information is backfilled for the following modules:
VtsHalVibratorTargetTest
VtsHalVibratorV1_0TargetTest
VtsHalVibratorV1_1TargetTest
VtsHalVibratorV1_2TargetTest
VtsHalVibratorV1_3TargetTest

Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I72b6f2312cd1863e24a05160d688bac86378e37a
2021-10-15 16:29:59 -07:00
Przemyslaw Szczepaniak
fd6488319e Merge "Update OWNERS file" am: 996054b24f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1857518

Change-Id: I0098937c65ebf795122c309630b5ffd9b4184b81
2021-10-15 11:15:47 +00:00
Przemyslaw Szczepaniak
996054b24f Merge "Update OWNERS file" 2021-10-15 11:02:37 +00:00
Roshan Pius
facaf07418 wifi(vts): Precondition AP tests on existence of hostapd HAL am: 274eadd581
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1857796

Change-Id: I0ba02c393dfd6782f68b48adb6e5b079e58d8d07
2021-10-15 07:30:49 +00:00
Roshan Pius
274eadd581 wifi(vts): Precondition AP tests on existence of hostapd HAL
cp: aosp/1428863 to master branch

This used to be present on the old host side VTS tests, port the feature to
target side since host side VTS tests are deprecated.

Also,
i) Added a separate test: VtsHalWifiV1_4TargetTest to test the wifi
chip methods. Putting them in VtsHalWifiApV1_4TargetTest will prevent
these from running on devices without AP feature.
ii) Ensured all the non-NAN, non-RTT tests disable framework for
testing. NAN/RTT tests uses framework to check if the corresponding
package manager feature exists.

Bug: 166529516
Test: atest \
VtsHalWifiApV1_0TargetTest \
VtsHalWifiApV1_4TargetTest \
VtsHalWifiV1_0TargetTest \
VtsHalWifiV1_4TargetTest

Change-Id: I05aab6992277601633a0f926a8262c4c27402e93
2021-10-15 09:48:23 +08:00
Yiming Pan
af359f3acf Backfill OWNERS for VtsHalGraphicsMapper tests.
Done for the following tests:
VtsHalGraphicsMapperV2_0TargetTest
VtsHalGraphicsMapperV2_1TargetTest
VtsHalGraphicsMapperV3_0TargetTest
VtsHalGraphicsMapperV4_0TargetTest

Deleted the OWNERS file I created earlier to comply to your team's
convention.

Test: Tree Hugger
Bug: 143903671
Change-Id: I07790171fc1a42da37a43f590d8c5c2876ad1bfe
2021-10-14 17:45:53 -07:00
Treehugger Robot
850ae76c91 Merge "Backfill owner information for VtsHalWifi tests." am: 1caa761eeb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856688

Change-Id: I9e0b0a2a0cf29d341440bf2e19f148deda10e021
2021-10-14 21:44:52 +00:00
Michael Butler
1b085b37c8 Merge "Handle error returned by IBurstContext::freeMemory" am: f3bd4751a3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856680

Change-Id: I5d8b492e47db807a9d5bdf39e6cd62b605b17ab7
2021-10-14 21:44:46 +00:00
Treehugger Robot
1caa761eeb Merge "Backfill owner information for VtsHalWifi tests." 2021-10-14 21:34:00 +00:00
Michael Butler
f3bd4751a3 Merge "Handle error returned by IBurstContext::freeMemory" 2021-10-14 21:30:33 +00:00
Treehugger Robot
37b659dfab Merge "Backfill VTS owner information." am: 7f13389b5b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1838136

Change-Id: Ie5293902bd6cfe8a743783b58eca84b2740915ab
2021-10-14 19:37:12 +00:00
Treehugger Robot
7f13389b5b Merge "Backfill VTS owner information." 2021-10-14 19:25:59 +00:00
Treehugger Robot
0b2aac3b5f Merge "Backfill owner information for VTS module VtsHalRenderscriptV1_0TargetTest." am: 93fb77744d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1813771

Change-Id: Ia521c71c50bf90830398b032147758c06912d4d3
2021-10-14 18:59:11 +00:00
Treehugger Robot
3c1972ed98 Merge "Backfill VTS owner information." am: f2f815c4cf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856682

Change-Id: I41665172ac8bdbf2f6a3d857cce0600af4bf504d
2021-10-14 18:59:06 +00:00
Treehugger Robot
e1ce1d81be Merge "Backfill owner information for VtsHalAutomotiveVehicleV2_0TargetTest." am: dac860a21d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856684

Change-Id: Ie8f56e77caedd7085b26ef6ae2b226f83d133b10
2021-10-14 18:58:55 +00:00
Treehugger Robot
93fb77744d Merge "Backfill owner information for VTS module VtsHalRenderscriptV1_0TargetTest." 2021-10-14 18:56:30 +00:00