Commit graph

28391 commits

Author SHA1 Message Date
Daniel Bright
c7a52cb2fc Merge "Add Handover Failure Mode to Radio Hal" 2020-09-25 05:32:16 +00:00
Lakshman Annadorai
fd45e7404b Remove MIN and MAX checking for hidl_enum in UserHalHelper native library. am: bfaf79c9c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12663093

Change-Id: Icf2fa91a0bf466ce93c4b8365773801c8d7c9755
2020-09-25 05:24:55 +00:00
Treehugger Robot
77c3b52888 Merge "vts: Use global hostapd_ since teardown will call terminate function" 2020-09-25 05:01:41 +00:00
TreeHugger Robot
eab5bfbe10 Merge "Add explanation to VHAL_HEARTBEAT property" 2020-09-25 00:53:47 +00:00
Steven Moreland
ffb6a481c7 tests.baz@1.0: changes for symmetric tests
Changes to make hidl_test_java symmetric (this implementation mirrors
one in system/tools/hidl).

Bug: 168152294
Test: atest hidl_test_java
Change-Id: I29a468d1804ba494bfe5ca59d68b3ab2581eb9b4
2020-09-25 00:41:32 +00:00
Antonio Kantek
69e6fc6e15 Merge "Introducing OEM partner custom input type (HW_CUSTOM_INPUT)" 2020-09-24 20:32:26 +00:00
Yifan Hong
b1502e33c2 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" am: 4e2d45ba53 am: 0d35a17357 am: 0a09e17cc1 am: 738df72fc7 am: 591ad7c705
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436094

Change-Id: Ib4085261190a8207c70dd72ba9ecd8a87d7dcc0f
2020-09-24 20:10:41 +00:00
Yifan Hong
591ad7c705 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" am: 4e2d45ba53 am: 0d35a17357 am: 0a09e17cc1 am: 738df72fc7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436094

Change-Id: I0caa9ab29c8f4aaf911ef49bdf8e8eca1248b3e2
2020-09-24 19:37:55 +00:00
Stephane Lee
086a33b39d Clarify Health 2.1 design capacity type ranges
Bug: 166841711
Test: Compile
Change-Id: Iee623638dfb606df55a6e13bd58e58ae2e8dd305
2020-09-24 12:20:18 -07:00
Stephane Lee
6bed2f3207 Allow batteryFullChargeDesignCapacityUah to be 0
Bug: 166841711
Test: Run VtsHalHealthV2_1TargetTest with a battery design capacity of 0
Change-Id: I48bea0e2a8e4f8eeba8874e44a9bf6aa00bfd637
2020-09-24 12:19:52 -07:00
Yifan Hong
738df72fc7 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" am: 4e2d45ba53 am: 0d35a17357 am: 0a09e17cc1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436094

Change-Id: Ic6f5360566681967bfb589340ce85789d5534ecb
2020-09-24 18:58:39 +00:00
Yifan Hong
0a09e17cc1 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" am: 4e2d45ba53 am: 0d35a17357
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436094

Change-Id: If1dd391e0b7d83bae6cedea04ff40df126e53d66
2020-09-24 18:38:52 +00:00
Yifan Hong
0d35a17357 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" am: 4e2d45ba53
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436094

Change-Id: I9ceb70387f9ddad43a1443c63fda707a7f7e253c
2020-09-24 17:50:52 +00:00
Yifan Hong
4e2d45ba53 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" 2020-09-24 17:30:37 +00:00
lesl
b688ea7e73 vts: Use global hostapd_ since teardown will call terminate function
aosp/1427815 add invoke terminate function in teardown function.
It will cause Create Test case fail since Create killed global hostapd_
service to re-generate the local one.
Use global hostapd_ to replace local variable to make teardown function
work normally.

Bug: 169248773
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I6300a626db76e68873bbc34c489a9a8ee2d55e7a
2020-09-24 08:17:34 +00:00
Kevin Chyn
9041294443 Merge changes Ie78e42b9,Ibf2baa14
* changes:
  Tweaks to fingerprint AIDL
  Reformat biometric interface documentation to 100 cols
2020-09-24 00:28:06 +00:00
Kevin Chyn
749799387e Tweaks to fingerprint AIDL
1) Explicit numbering for Error enum, which contains intentionally
   skipped entries for backwards compatibility
2) Documentation for vendorCode. The vendorCodes must have a well
   defined behavior with the array API for things like GSI to work,
   e.g. generic system image with non-generic HAL implementation -
   with this explicit requirement, both components, as long as the
   contract is followed, would allow proper string feedback to be
   loaded/shown.

Bug: 168843220
Test: Builds
Change-Id: Ie78e42b926351a03162a4a6e40f3325641c34609
2020-09-23 15:48:42 -07:00
Kevin Chyn
3388eebde5 Reformat biometric interface documentation to 100 cols
Bug: 168843220
Test: Builds
Change-Id: Ibf2baa14f8c8bd47250dd964eab68307e3885b4c
2020-09-23 14:29:38 -07:00
Stephane Lee
c2dc510a0a Allow batteryChargeTimeToFullNowSeconds to be -1
Test: Run the test under an implementation that doesn't support
  batteryChargeTimeToFullNowSeconds
Bug: 166841711
Change-Id: I18fb11bb0a2233a9a89183a5f9ecf597e7719172
2020-09-23 14:27:53 -07:00
Kevin Chyn
ac378f41fa Merge changes I0b7e7ab3,I92db9b22,I24615333,I7ca0365b
* changes:
  Move lockout callbacks to ISessionCallback
  Finish remainder of documentation.
  Minor API changes and additional documentation for IFingerprint
  Update fingerprint #authenticate interfaces & documentation
2020-09-23 20:24:39 +00:00
Daniel Bright
ea8d801f54 Add Handover Failure Mode to Radio Hal
On a handover request failure, the modem can now determine
whether or not to fallback.  There is also the option to revert
to the legacy logic.  Following the legacy logic is the default
behavior.

Test: FrameworkTelephonyTests
Bug: 161572465
Change-Id: Iad778e83ffc264ee25f57f54ff58532d6a8c5cbf
2020-09-23 13:15:39 -07:00
Kevin Chyn
ef79d661ba Move lockout callbacks to ISessionCallback
Also fixes backward compatibility for AcquiredInfo and Error
constants.

For lockout-related changes:
1) If a session doesn't exist, it means the framework (or higher)
   doesn't care about its lockout state.
2) This allows the ISession#authenticate lifecycle to be clearer,
   e.g. no need for ILockoutCallback#onLockoutTimed followed by
   ISessionCallback#onError(LOCKOUT)

Bug: 168842956
Bug: 168843220

Test: make -j android.hardware.biometrics.fingerprint-update-api
Test: make -j
Test: make -j VtsHalBiometricsFingerprintTargetTest
Change-Id: I0b7e7ab3b89d0d1d7647535af07766c493a2067b
2020-09-23 11:40:13 -07:00
Kevin Chyn
8b3cd5db21 Finish remainder of documentation.
Note that this doesn't mean documentation is done, it just means that
previously undocumented areas now at least have some documentation.

Bug: 168843220
Test: Builds

Change-Id: I92db9b228d46b3925d3f7ae56698f7c52a0ae1bf
2020-09-23 11:27:01 -07:00
Kevin Chyn
1288c105a7 Minor API changes and additional documentation for IFingerprint
1) Removes vendorCode from onEnrollmentProgress. This is already
   being sent in ISessionCallback#onAcquired
2) Adds missing SessionState::INVALIDATING_AUTHENTICATOR_ID state

Test: make -j56 android.hardware.biometrics.fingerprint-update-api
Test: make -j56 VtsHalBiometricsFingerprintTargetTest
Test: make -j56

Change-Id: I246153339b336c029c9f156868127456aecf1a04
2020-09-23 11:07:59 -07:00
Eric Jeong
90a29284e2 Add explanation to VHAL_HEARTBEAT property
Bug: 168132371
Test: build okay
Change-Id: I0755779b09ba830fae9f4017306740ec05b2f949
2020-09-23 09:41:20 -07:00
Les Lee
8fa716a72f Merge "wifi: Add access network type support" 2020-09-23 14:02:37 +00:00
Kevin Chyn
64c13a083a Update fingerprint #authenticate interfaces & documentation
1) Split into onAuthenticationSucceeded and onAuthenticaitonFailed.
   No longer need to use "weird behavior" below:
   A) authenticated(id=0) == reject
   B) onEnrolled(id=0) --> previously forbidden
   C) remove(id=0) --> previously magic number to remove all
      enrollments. The new interface has remove(int[] ids).
2) Renames keystoreOperationId to operationId, since keystore
   is only one example of a valid use case. operationId and HATs
   can be used as attestation for any opaque operation.

Bug: 168842956
Bug: 168843220

Test: make -j56 android.hardware.biometrics.fingerprint-update-api
Test: make -j56 VtsHalBiometricsFingerprintTargetTest
Change-Id: I7ca0365be9cf82539d6cabc6d9fcec916badc323
2020-09-23 00:18:55 -07:00
Devin Moore
5152ded395 Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY" am: 51dc008bd3 am: 359970caaf am: e30e9d9d67 am: 022d9abfae am: 172c490db6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434354

Change-Id: Ie30e61029ba87e0c0f5cedc18683891502ae5b05
2020-09-22 22:29:32 +00:00
Devin Moore
3a79b5f5b5 Reland "Change HIDL fmq tests to use int32_t for payload" am: 7a26802481 am: 8980ac3b5f am: 99ace1c2f4 am: 7178223c75 am: 599e196d74
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434353

Change-Id: I955ec3bb3fb375f2405519cdd9b02612cceb8959
2020-09-22 22:29:29 +00:00
Devin Moore
172c490db6 Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY" am: 51dc008bd3 am: 359970caaf am: e30e9d9d67 am: 022d9abfae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434354

Change-Id: Id70f2a2b18bce22fbe7602a2ea70da7f78350b77
2020-09-22 22:00:30 +00:00
Devin Moore
599e196d74 Reland "Change HIDL fmq tests to use int32_t for payload" am: 7a26802481 am: 8980ac3b5f am: 99ace1c2f4 am: 7178223c75
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434353

Change-Id: Id8d4e83a58d1147fe1920aba25c26df20b6036e4
2020-09-22 22:00:28 +00:00
Lakshman Annadorai
bfaf79c9c6 Remove MIN and MAX checking for hidl_enum in UserHalHelper native library.
VehiclePropValue enums is not sorted by their values. Thus obtaining MIN and MAX values for this enum is O(N), which is the same as looping through all the values and checking whether a given int32_t is in the enum.

Test: Tested with `atest -c android.hardware.automotive.vehicle@2.0-utils-unit-tests`.
Bug: 168249409

Change-Id: I296a56e31caa7a5ee69eac49806810f83e46571e
(cherry picked from commit b7d50b91eb)
2020-09-22 21:54:42 +00:00
Devin Moore
022d9abfae Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY" am: 51dc008bd3 am: 359970caaf am: e30e9d9d67
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434354

Change-Id: I3e86b3e9cdd6794882ce4e83a20a801abca8ae70
2020-09-22 21:31:57 +00:00
Devin Moore
7178223c75 Reland "Change HIDL fmq tests to use int32_t for payload" am: 7a26802481 am: 8980ac3b5f am: 99ace1c2f4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434353

Change-Id: Idc5099535d2962e06988c8181e04fce1c401ae30
2020-09-22 21:31:55 +00:00
Devin Moore
e30e9d9d67 Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY" am: 51dc008bd3 am: 359970caaf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434354

Change-Id: I210c10e0c63e46ae4cf8c0d16b20c970c9768395
2020-09-22 21:14:39 +00:00
Devin Moore
99ace1c2f4 Reland "Change HIDL fmq tests to use int32_t for payload" am: 7a26802481 am: 8980ac3b5f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434353

Change-Id: I339aa773c01927f7f2d559eb7bd34ce6091b4170
2020-09-22 21:14:37 +00:00
Devin Moore
359970caaf Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY" am: 51dc008bd3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434354

Change-Id: I7888a9c5d291d84ff87c248cf45ab49f98fa2987
2020-09-22 20:53:25 +00:00
Devin Moore
8980ac3b5f Reland "Change HIDL fmq tests to use int32_t for payload" am: 7a26802481
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1434353

Change-Id: Ic2ef85618e3cb4bacda1bf98e9516b59b4e80a66
2020-09-22 20:52:57 +00:00
Devin Moore
51dc008bd3 Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY"
* changes:
  Reland "Add template parameters to MQDescriptor"
  Reland "Change HIDL fmq tests to use int32_t for payload"
2020-09-22 20:06:31 +00:00
Kevin Chyn
ffcdeb00bc Merge "Start adding documentation for IFingerprint" 2020-09-22 17:37:56 +00:00
Devin Moore
dd61a8901d Reland "Add template parameters to MQDescriptor"
b26628ac32

Bug: 142326204

Change-Id: I78d08f84231ca19905f51b0520ede1b71df34365
2020-09-22 17:33:14 +00:00
Devin Moore
7a26802481 Reland "Change HIDL fmq tests to use int32_t for payload"
9719e2d984

Bug: 142326204

Change-Id: I0914f7612bcd227f9a4cabbe2818de7d9999a3d3
2020-09-22 17:32:22 +00:00
Amy Zhang
f2659f5fb8 Merge "Add API to get the shared memory Audio/Video handle" 2020-09-22 17:17:56 +00:00
lesl
c9d109fe06 wifi: Add access network type support
The access network type can be used to indicate network metered state.
Add access network type support when create access point.

Test: Manual Test, check client scan IE to show correct interworking
value. see: b/137879206#comment14
Test: atest VtsHalWifiHostapdV1_0TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Bug: 137879206

Change-Id: I74213bd763f865f26781313b00e1b1cfeee93086
2020-09-22 20:46:24 +08:00
Kai Wang
14072bb93b Merge "Add configArray for Gear_Selection in google VHAL" into rvc-qpr-dev am: f10a9af711 am: 551b891e9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12600691

Change-Id: I30b3f8c909568f5c3012481a7bb8cb84b0a190fd
2020-09-22 02:59:23 +00:00
Kai Wang
551b891e9e Merge "Add configArray for Gear_Selection in google VHAL" into rvc-qpr-dev am: f10a9af711
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12600691

Change-Id: I8380ebf6cd987728cc52e8803b4c123b89a204cd
2020-09-22 02:40:01 +00:00
Kai Wang
f10a9af711 Merge "Add configArray for Gear_Selection in google VHAL" into rvc-qpr-dev 2020-09-22 01:50:03 +00:00
Treehugger Robot
00ecfa1284 Merge "remove 4.14 kernels for Android S" am: 2b3810aa3a am: 00d3339fb5 am: 37bd8ef94f am: fb6044b481 am: 77cf6320bd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1431736

Change-Id: I0849a1de4ded0e6030ef1ecd71f9f3af78b9a178
2020-09-22 01:41:23 +00:00
Treehugger Robot
77cf6320bd Merge "remove 4.14 kernels for Android S" am: 2b3810aa3a am: 00d3339fb5 am: 37bd8ef94f am: fb6044b481
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1431736

Change-Id: Ifb7516c414b61d24462036244d110dc5ecf85396
2020-09-22 01:14:55 +00:00
Amy Zhang
976c640464 Add API to get the shared memory Audio/Video handle
In the MediaEvent of AV filters, the AV memory handle is mapped/unmapped on each event.
If the vendor allocates a persistent memory block, and use MediaEvent.offset to access the data,
the mapping change is unnecessary.

To improve this, a new API to get shared AV Memory is introduced.
To pass additional information to Codec2 for AV memory,
the index for Codec2 to setup additional information can be carried in the handle.

Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 162013047
Bug: 157143515
Bug: 156664393
Change-Id: Ibd4471ff8e19b0a99b8bcbc982dc08dbcc92efcf
2020-09-21 17:42:29 -07:00