Commit graph

28427 commits

Author SHA1 Message Date
Joseph Jang
60f0ae4b76 Merge "fastboot: add a new oem command for post wipe userdata" am: 4433d35af9 am: a174737057 am: 41eca45f7d am: d4f5010d14 am: 6fa34c3cb3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435112

Change-Id: I8eadbef947f342925dd8a1d89644983135e5346d
2020-10-05 08:31:05 +00:00
Joseph Jang
6fa34c3cb3 Merge "fastboot: add a new oem command for post wipe userdata" am: 4433d35af9 am: a174737057 am: 41eca45f7d am: d4f5010d14
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435112

Change-Id: If6681ca0335ba29d207df8824b3f756e15751870
2020-10-05 08:06:49 +00:00
josephjang
af491ffdf8 fastboot: add a new oem command for post wipe userdata
When user input 'fastboot erase userdata' in fastbootd, may need an
oem specific API doOemSpecificErase() to wipe other userdata in device.
If oem doesn't need this specific API, oem could return NOT_SUPPORTED
to fastbootd.

Bug: 169173873
Change-Id: Ie12ede31ef071a3c15265777b55746536a861292
2020-10-05 14:33:21 +08:00
Joseph Jang
d4f5010d14 Merge "fastboot: add a new oem command for post wipe userdata" am: 4433d35af9 am: a174737057 am: 41eca45f7d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435112

Change-Id: Iadd41e55e98bff0b8fd058429f8ec9123c0e3627
2020-10-05 03:23:26 +00:00
Joseph Jang
41eca45f7d Merge "fastboot: add a new oem command for post wipe userdata" am: 4433d35af9 am: a174737057
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435112

Change-Id: Icdbb210d09235ea5c982976d54f7332a66521c7b
2020-10-05 03:05:49 +00:00
Joseph Jang
a174737057 Merge "fastboot: add a new oem command for post wipe userdata" am: 4433d35af9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435112

Change-Id: Id0987ef9d4b6e5de171940e9ac28f5d8fa4bb881
2020-10-05 02:53:10 +00:00
Joseph Jang
4433d35af9 Merge "fastboot: add a new oem command for post wipe userdata" 2020-10-05 02:34:52 +00:00
Michael Butler
1f06fed9b3 Merge "Create conversions to/from NNAPI canonical types" 2020-10-03 00:08:34 +00:00
Roshan Pius
854acd7c7d wifi: Deprecate older versions of wifi HAL
Various wifi protocol MAC randomizations are mandatory in Android 11.
So, deprecate older versions of wifi HAL which don't support the
corresponding API's.

Bug: 169201652
Test: Compiles
Change-Id: I20f5b3665650c86fc0f976c544194f87157e6b90
2020-10-02 13:47:07 -07:00
TreeHugger Robot
7ad3ec8c9f Merge "powerstats: Add EnergyConsumer API" 2020-10-02 19:37:39 +00:00
Steven Moreland
2c469552d0 Merge "hidl_test_java interfaces: use generic interfaces" am: 730aef9a78 am: 10f1f66898 am: 1acc567952 am: 5b436e33ef am: 7a4a65d680
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1445778

Change-Id: I1620c3f9386c9c42ff0695ec718f9178f008da85
2020-10-02 18:32:55 +00:00
Steven Moreland
7a4a65d680 Merge "hidl_test_java interfaces: use generic interfaces" am: 730aef9a78 am: 10f1f66898 am: 1acc567952 am: 5b436e33ef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1445778

Change-Id: If5afd00334e8b09250df1ae97dec9285e39ad930
2020-10-02 18:07:41 +00:00
Steven Moreland
5b436e33ef Merge "hidl_test_java interfaces: use generic interfaces" am: 730aef9a78 am: 10f1f66898 am: 1acc567952
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1445778

Change-Id: I0fd0c9294de289f8eb651a9d99dc621958773481
2020-10-02 17:55:00 +00:00
Steven Moreland
1acc567952 Merge "hidl_test_java interfaces: use generic interfaces" am: 730aef9a78 am: 10f1f66898
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1445778

Change-Id: Iacea8219291e1ac345a85fef3c44b1dc01936e43
2020-10-02 17:16:38 +00:00
Steven Moreland
10f1f66898 Merge "hidl_test_java interfaces: use generic interfaces" am: 730aef9a78
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1445778

Change-Id: Ic61e26ed271f748df3a5da83878b2e10fec734f1
2020-10-02 16:51:13 +00:00
Steven Moreland
730aef9a78 Merge "hidl_test_java interfaces: use generic interfaces" 2020-10-02 16:32:25 +00:00
Benjamin Schwartz
42408279d8 powerstats: Add EnergyConsumer API
Also clean up rest of PowerStats HAL 2.0 API and type names

Bug: 168831183
Test: atest VtsHalPowerStatsTargetTest
Change-Id: I987f984bf717b107cf55213c7063ac9f310f8d54
2020-10-02 00:02:18 +00:00
Amy Zhang
5763ea76bb Merge "Add DVBC Time Interleave Mode enum in Tuner HAL 1.1" 2020-10-01 23:44:59 +00:00
Steven Moreland
c0236f06e7 hidl_test_java interfaces: use generic interfaces
In places where we are passing interfaces, pass around
android.hidl.base.IBase to give flexibility to the test implementation,
specifically in order to avoid passing local binders to Java process,
which is a disabled feature.

Bug: 169369810
Test: atest hidl_test hidl_test_java
Change-Id: I7721a6ec7e72b96915a0dc66aa8e75c327032d1f
2020-10-01 23:20:44 +00:00
TreeHugger Robot
e601b1ca37 Merge "composer: hold a sp<IComposer> from the service itself" 2020-10-01 22:56:15 +00:00
Hao Chen
872784629b Move Emulated User HAL to Emulated Vehicle Connector Class
Test: build; manually tested the following commands
```
> adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --user-hal
> adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --set 299896583 a 1 i 666 i 1 i 11
```
Bug: 166706927
Change-Id: Ic5774e56dec7febcfeaf496111ba77907e1b7fac

Change-Id: Ib2545b7e0d6b2eea0734fe013451b1365ee0e8ff
2020-10-01 15:39:06 -07:00
Steven Moreland
806541d8d2 msgq test service in VTS am: 46e2487ac0 am: 3f20d8ba0f am: 01589d9fcf am: cd52cff015 am: e9492eafde
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425309

Change-Id: Ic711fc9bb6608ace35329ea430c84e42111ff014
2020-10-01 21:37:09 +00:00
Steven Moreland
e9492eafde msgq test service in VTS am: 46e2487ac0 am: 3f20d8ba0f am: 01589d9fcf am: cd52cff015
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425309

Change-Id: Ifc4b43f5f4212313dfdccf19e7b9f59b1f246bc4
2020-10-01 21:06:16 +00:00
Steven Moreland
cd52cff015 msgq test service in VTS am: 46e2487ac0 am: 3f20d8ba0f am: 01589d9fcf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425309

Change-Id: Ib2d4794813fe6270effdbe3347e25d2a98274db3
2020-10-01 20:42:30 +00:00
Changyeon Jo
30f8443b41 Handle the empty display information
When the underlying display is not ready yet,
IEvsDisplay::getDisplayInfo_1_1() returns an empty display information.
When this happens, CameraToDisplayRoundTrip test case must fail because
it verifies the camera and display hardware devices both.

Fix: 169877399
Test: m -j vts and run CameraToDisplayRoundTrip
Change-Id: I2ecb03d19a9088436e7701003944cd76af6c260a
2020-10-01 13:28:55 -07:00
Steven Moreland
01589d9fcf msgq test service in VTS am: 46e2487ac0 am: 3f20d8ba0f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425309

Change-Id: I75f60810d721fa38aed015b28dcfa389e8a73ac7
2020-10-01 20:26:31 +00:00
Ady Abraham
43e42ff6ec composer: hold a sp<IComposer> from the service itself
IComposerClient assumes that IComposer will outlive its life cycle
and holds a simple pointer to HwcHal. This change is taking the same
approach of newer composer versions (2.2, 2.3, and 2.4) to make sure
that IComposer would outlive IComposerClient.

Test: coral booting with this change
Fixes: 155769496
Change-Id: I3962ede51ce823368c62c4e4e5fb30f7a5680bdf
2020-10-01 20:12:38 +00:00
Steven Moreland
3f20d8ba0f msgq test service in VTS am: 46e2487ac0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425309

Change-Id: I7714325db521dfa692190c48ce2c6a1cff4d368c
2020-10-01 20:06:47 +00:00
Steven Moreland
2a74fa1f40 msgq service device -> general-tests am: 96e0709f21 am: 5569ed1441 am: 618e41b216 am: 9dde78433a am: 0ffa86870e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425308

Change-Id: I821273e84a49a7a3d515119e337aa7d1f357f7c8
2020-10-01 19:06:14 +00:00
Steven Moreland
0ffa86870e msgq service device -> general-tests am: 96e0709f21 am: 5569ed1441 am: 618e41b216 am: 9dde78433a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425308

Change-Id: Id7820c258285a4b3a25dd6fbad3a6171247b3046
2020-10-01 18:52:15 +00:00
Steven Moreland
9dde78433a msgq service device -> general-tests am: 96e0709f21 am: 5569ed1441 am: 618e41b216
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425308

Change-Id: Ieee97861eb485cc8c5cc463e86e87c9a3e80e223
2020-10-01 18:35:22 +00:00
Michael Butler
a685c3dbf4 Create conversions to/from NNAPI canonical types
This CL creates the following primary sets of functions:
* V1_X::utils::convert(<canonical_type>) -- Converts a canonical type
  to the corresponding HAL version type.
* nn::convert(<V1_X_HAL_type>) -- Converts a HAL version type to the
  corresponding canonical type.
* neuralnetworks::utils::hasNoPointerData -- Indicates if the object
  contains no pointer-based data that could be relocated to shared
  memory.
* neuralnetworks::utils::flushDataFromPointerToShared -- Relocate
  pointer-based data to shared memory.
* neuralnetworks::utils::unflushDataFromSharedToPointer -- Undoes
  `flushDataFromPointerToShared` on a Request object. More
  specifically, `unflushDataFromSharedToPointer` copies the output
  shared memory data from the transformed Request object back to the
  output pointer-based memory in the original Request object.

It also introduces some other minor utility code, including
makeQuantized8PerformanceConsistentWithP, countNumberOfConsumers,
validate, valid, and validatedConvertToCanonical.

Bug: 160667419
Test: mma
Change-Id: I0732e658c1f4ed40cd122f1ca8581fb40b056757
2020-10-01 11:32:53 -07:00
Steven Moreland
618e41b216 msgq service device -> general-tests am: 96e0709f21 am: 5569ed1441
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425308

Change-Id: Ic7072bea6554f3841ab0b5c7d380ef80c2b83ebc
2020-10-01 18:16:55 +00:00
Steven Moreland
5569ed1441 msgq service device -> general-tests am: 96e0709f21
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425308

Change-Id: Ie9fe6db7129be1257970c751a3053aea5200a1d1
2020-10-01 17:41:25 +00:00
Tyler Trephan
0d9206aa57 Skip GnssMeasurement VTS for Android Automotive OS.
According to the Q CDD, an Android Automotive OS device is not required
to support GnssMeasurements.

Bug: 161549048
Test: atest VtsHalGnssV1_0TargetTest VtsHalGnssV2_0TargetTest VtsHalGnssV2_1TargetTest
Change-Id: Idcd59f36ca2ea28925f6766a7abcdf7b6ad0f0ff
2020-10-01 00:11:32 +00:00
Amy Zhang
b27802acfe Merge "Extend Scan Message and Message Type in Tuner HAL 1.1" 2020-09-30 23:00:54 +00:00
Amy Zhang
549a39c120 Merge changes I8cbbf1e3,I4ed8ec1f
* changes:
  Add FrontendStatusExt1_1 and getStatusExt1_1 to get 1.1 Extended Frontend Status
  Add DTMB Frontend Type and Related Capabilities enums
2020-09-30 20:01:15 +00:00
Amy Zhang
621887a91a Add DVBC Time Interleave Mode enum in Tuner HAL 1.1
Test: make android.hardware.tv.tuner@1.1
Bug: 158818695
Change-Id: I11ea762a789aaab1cf3a17b3c0515c6a37942098
2020-09-30 11:33:34 -07:00
Les Lee
df227a3b11 Merge "wifi: Add vts 1.3 for hostapd hidl 1.3" 2020-09-30 16:52:38 +00:00
TreeHugger Robot
13357c7926 [automerger skipped] Merge "Rename vts-core to vts" into rvc-qpr-dev-plus-aosp am: 7e7aaaa8db -s ours
am skip reason: Change-Id I562b4dc50765e953800a814a8fd84a01c1b9352b with SHA-1 aad51fa000 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12725405

Change-Id: I712ebbd7df5ec7fa945c414bc1933eedb207ecc2
2020-09-30 03:00:29 +00:00
josephjang
72c410d261 fastboot: add a new oem command for post wipe userdata
When user input 'fastboot erase userdata' in fastbootd, may need an
oem specific API doOemSpecificErase() to wipe other userdata in device.
If oem doesn't need this specific API, oem could return NOT_SUPPORTED
to fastbootd.

Bug: 169173873
Change-Id: Ie12ede31ef071a3c15265777b55746536a861292
2020-09-30 02:55:06 +00:00
TreeHugger Robot
7e7aaaa8db Merge "Rename vts-core to vts" into rvc-qpr-dev-plus-aosp 2020-09-30 02:41:03 +00:00
Amy Zhang
19ed17bf1d Extend Scan Message and Message Type in Tuner HAL 1.1
A new API would be added in IFrontendCallback 1.1:
onScanMessageExt to receive the extended scan message

Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 158818695
Change-Id: If12535dada78ee2d2c7282ff17f9ab5f4983c750
2020-09-29 19:04:33 -07:00
Amy Zhang
422bb11cca Add FrontendStatusExt1_1 and getStatusExt1_1 to get 1.1 Extended Frontend Status
Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 158818695
Change-Id: I8cbbf1e3bca7f2ddda90ad6dd4a2ae0368561bfd
2020-09-29 19:04:18 -07:00
TreeHugger Robot
7fc48c2c9c Merge "Remove PREUPLOAD.cfg from audio HAL example" 2020-09-30 01:51:11 +00:00
Steven Moreland
46e2487ac0 msgq test service in VTS
auto_gen_config: this is a helper binary, so we avoid actually running a
test by not creating a test configuration

test_suites: vts, so that this is built and packaged with VTS

Bug: 168806888
Test: fmq_test
Change-Id: I640b848297667594153c207f8a4fcad989585d98
2020-09-30 00:47:32 +00:00
Steven Moreland
96e0709f21 msgq service device -> general-tests
We don't need this built per-device.

Bug: 168807095
Test: fmq_test
Change-Id: Ia5c4e8fa97ea364ccc3beae3ce6fe0980d12be25
2020-09-30 00:47:15 +00:00
Mikhail Naganov
58d9942ade Remove PREUPLOAD.cfg from audio HAL example
As suggested by the comment on ag/12691153

Bug: 142480271
Test: N/A
Change-Id: Ic9e2b986d3f9734dd884a2c88ca86d251147126b
2020-09-30 00:09:16 +00:00
Amy Zhang
4c49c15e55 Add DTMB Frontend Type and Related Capabilities enums
Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 159064654
Change-Id: I4ed8ec1f47d74ba3d585725cb64ba925d7ddf910
2020-09-29 16:26:52 -07:00
nchalko
539362f912 Remove outdated warning now that the v1.0 had shipped am: 897f0d48bb am: 1366d334a1 am: 3b12885c63 am: 149d54ec95 am: 2810f12eae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1441474

Change-Id: Ia9f0af343a7d1ea020a68c7bbc5b93eadf7d986b
2020-09-29 21:44:30 +00:00