Commit graph

28391 commits

Author SHA1 Message Date
TreeHugger Robot
af8029aefb Merge "powerstats: Refine PowerStats HAL 2.0 documentation" 2020-10-05 22:49:56 +00:00
Treehugger Robot
b26f98b50d [automerger skipped] Merge "wifi: Deprecate older versions of wifi HAL" am: 3d2cde64ee am: 60ce011e2f am: dfa6d1aca7 am: 364d13c85b -s ours
am skip reason: Change-Id I20f5b3665650c86fc0f976c544194f87157e6b90 with SHA-1 854acd7c7d is in history

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

Change-Id: Ibdb4001657b50e638134f406e52526cfe5e700b3
2020-10-05 21:37:22 +00:00
Treehugger Robot
364d13c85b Merge "wifi: Deprecate older versions of wifi HAL" am: 3d2cde64ee am: 60ce011e2f am: dfa6d1aca7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1448439

Change-Id: I872baaad08c8d85414e84d2face356af4cacc76c
2020-10-05 21:22:03 +00:00
Treehugger Robot
dfa6d1aca7 Merge "wifi: Deprecate older versions of wifi HAL" am: 3d2cde64ee am: 60ce011e2f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1448439

Change-Id: Ie58c2ed7188a874a3af5a51726960dfa45eee580
2020-10-05 21:10:50 +00:00
Ady Abraham
fd3189fda9 [automerger skipped] composer: hold a sp<IComposer> from the service itself am: 1368c29213 am: 5d4d79d9de -s ours
am skip reason: Change-Id I3962ede51ce823368c62c4e4e5fb30f7a5680bdf with SHA-1 43e42ff6ec is in history

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

Change-Id: Ieb18141efd33c7b769ba0083783ba99947d0c00f
2020-10-05 20:49:16 +00:00
Treehugger Robot
60ce011e2f Merge "wifi: Deprecate older versions of wifi HAL" am: 3d2cde64ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1448439

Change-Id: I73569302fbf6af2bc53e438e8558caf5a704993f
2020-10-05 20:49:10 +00:00
Ady Abraham
5d4d79d9de composer: hold a sp<IComposer> from the service itself am: 1368c29213
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12754286

Change-Id: Ia3f955a51bde0549072afdf35b92a9de28a065a6
2020-10-05 20:30:47 +00:00
Treehugger Robot
3d2cde64ee Merge "wifi: Deprecate older versions of wifi HAL" 2020-10-05 20:30:20 +00:00
Treehugger Robot
5008fe1a09 Merge "Skip GnssMeasurement VTS for Android Automotive OS." am: d8a767a847 am: d66b12008f am: 0bd8713642 am: befda6dd70
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1443915

Change-Id: Ibbb66c51703347f85f4ec21a281eb3014e5c3169
2020-10-05 20:01:59 +00:00
Treehugger Robot
befda6dd70 Merge "Skip GnssMeasurement VTS for Android Automotive OS." am: d8a767a847 am: d66b12008f am: 0bd8713642
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1443915

Change-Id: Ic3174b0647e3bc675c26a308046ddff124369c0e
2020-10-05 19:48:02 +00:00
Treehugger Robot
0bd8713642 Merge "Skip GnssMeasurement VTS for Android Automotive OS." am: d8a767a847 am: d66b12008f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1443915

Change-Id: I68df407a9e76197cae516a479880cf0c6ad5a815
2020-10-05 19:02:26 +00:00
Treehugger Robot
d66b12008f Merge "Skip GnssMeasurement VTS for Android Automotive OS." am: d8a767a847
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1443915

Change-Id: Ic934f94ed2cb553ba473e3d2cd1074a140048328
2020-10-05 18:42:05 +00:00
Treehugger Robot
d8a767a847 Merge "Skip GnssMeasurement VTS for Android Automotive OS." 2020-10-05 18:38:50 +00:00
Ady Abraham
1368c29213 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
Merged-In: I3962ede51ce823368c62c4e4e5fb30f7a5680bdf
(cherry picked from commit 43e42ff6ec)
2020-10-05 18:09:08 +00:00
Benjamin Schwartz
5345624e36 powerstats: Refine PowerStats HAL 2.0 documentation
Bug: 169864180
Test: m
Change-Id: I988ff3508fdb09803a0ffdafc9d40cac3b72e075
2020-10-05 09:53:22 -07:00
Roshan Pius
5a3efa4878 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
Merged-In: I20f5b3665650c86fc0f976c544194f87157e6b90
Change-Id: I20f5b3665650c86fc0f976c544194f87157e6b90
2020-10-05 09:11:13 -07:00
Roshan Pius
fa96d00429 Merge "wifi: Deprecate older versions of wifi HAL" 2020-10-05 16:00:17 +00:00
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
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
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
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