Commit graph

34632 commits

Author SHA1 Message Date
Treehugger Robot
f75c21743d Merge "Update OWNERS for VtsHalMediaOmx* tests." 2021-12-03 23:26:14 +00:00
deyaoren@google.com
e1cab7b880 Create Apex com.android.hardware.usb for usb 1.0
Bug: 206470103
Test: Manually ran VtsHalUsbV1_0TargetTest and CtsUsbManagerTestCases
Checked dumpSys results before and after changes.

Change-Id: Ie4a38a8b266bacb0efe0f418a4d24a9c79eacb4f
2021-12-03 21:11:47 +00:00
Miranda Kephart
ed9c2785a0 Merge "Revert "Create thermal apex"" am: deea9cdbe7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1910351

Change-Id: Idbcead4f3352ee7890a60e620261edced64f572a
2021-12-03 20:55:18 +00:00
Miranda Kephart
deea9cdbe7 Merge "Revert "Create thermal apex"" 2021-12-03 20:31:24 +00:00
Miranda Kephart
33251ba579 Revert "Create thermal apex"
Revert "Add com.android.hardware.thermal apex"

Revert submission 1899633-206470435

Reason for revert: broken build, b/209031120 (suspected; testing)
Reverted Changes:
I04f36bdb6:Create thermal apex
Ifc394ba17:Add com.android.hardware.thermal apex

Change-Id: I1f554fdff91f3a954d142e8494549937074a5ef9
2021-12-03 19:15:48 +00:00
Matt Lee
b17b7d927b Merge "Create thermal apex" am: fdab524c25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1899633

Change-Id: I05d28c866ae834088f69b3ba5fa58041cac653ca
2021-12-03 17:55:11 +00:00
Matt Lee
fdab524c25 Merge "Create thermal apex" 2021-12-03 17:38:41 +00:00
Matt Lee
19a9078b4c Create thermal apex
Bug: 206470435
Test: atest CtsThermalTestCases VtsHalThermalV2_0TargetTest
Change-Id: I04f36bdb62b981276dc8fcf3ce48b3e5932545e1
2021-12-02 16:13:26 -08:00
David Gross
8e9fbfc592 FL7: Add some AIDL_V3 test infrastructure
Test: atest VtsHalNeuralnetworksTargetTest -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*abs*:*floor*:*log*:*rsqrt*:*sin*:*sqrt*"

Bug: 202280925
Change-Id: I848add0ddb94e1500a5d4d6af5d51ddf5ebba045
2021-12-02 15:39:33 -08:00
David Drysdale
8a2977f698 Merge "KeyMint VTS: option to skip BOOT_PATCHLEVEL check" am: 8aeb7ef2b4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1907696

Change-Id: Ic844b4eed120931d6c852547f359da95662f4db7
2021-12-02 18:30:09 +00:00
Tomasz Wasilczyk
dcbae487dd Implement RadioModem for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I670f78af2cd7a0ce0b49dfc802fd363f47d9b6a6
2021-12-02 09:55:33 -08:00
Tomasz Wasilczyk
6e084181d1 Implement RadioVoice for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: Ie2dce95ba1a468c10d92a74bfdca03d2a8d744b0
2021-12-02 09:55:23 -08:00
Tomasz Wasilczyk
70ac7bfb86 Implement RadioNetwork for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: Ic44227c9e2cd38ead97d3f3dda2e028052876568
2021-12-02 09:55:14 -08:00
Tomasz Wasilczyk
0716169065 Implement RadioData for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I5770ee4125cd9e6f118200ecee889ad785e8929f
2021-12-02 09:55:06 -08:00
Tomasz Wasilczyk
7f51a9ad1e Implement RadioSim for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I82d27049858e578522b83811a787b259e67d00a4
2021-12-02 09:54:56 -08:00
Tomasz Wasilczyk
9ddc87f6af Implement RadioMessaging for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I10f0fc0b871fbaf26145c83211770a82af6adc61
2021-12-02 09:54:48 -08:00
Tomasz Wasilczyk
bff3b5b4c3 Initial implementation of HIDL-AIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I182edf3b1fa39b30818e79a68fc586f12b677d19
2021-12-02 09:54:35 -08:00
David Drysdale
8aeb7ef2b4 Merge "KeyMint VTS: option to skip BOOT_PATCHLEVEL check" 2021-12-02 17:44:15 +00:00
David Drysdale
2fedeb5718 Merge "Use defaults to reference current keymint version" am: ddf63247e9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1898852

Change-Id: I8cec83ec6c73c7fbaba8c2340c56aee50addce7c
2021-12-02 08:09:33 +00:00
David Drysdale
ddf63247e9 Merge "Use defaults to reference current keymint version" 2021-12-02 07:55:03 +00:00
David Drysdale
dbbbe2ea6d KeyMint VTS: option to skip BOOT_PATCHLEVEL check
The KeyMint spec requires that all generated keys include the
BOOT_PATCHLEVEL for the device.

However, the VTS test sometimes gets run in an environment where this
is not possible; specifically the Trusty QEMU tests don't have the
bootloader -> KeyMint communication that is needed to populate this
information.

Add a command line flag that disables checks for BOOT_PATCHLEVEL to
cope with these scenarios, making sure that it defaults to having the
checks enabled.

Test: VtsAidlKeyMintTargetTest
Change-Id: I215c8a18afbd68af199d49f74b977ad7cac6b805
2021-12-02 07:52:33 +00:00
Treehugger Robot
7770509519 Merge "KeyMint: Test invalid AES key sizes" am: bb0ab83af8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1893476

Change-Id: Ief97104f2037e999d36ad6cd68a339caa1e402a0
2021-12-01 14:07:38 +00:00
Treehugger Robot
bb0ab83af8 Merge "KeyMint: Test invalid AES key sizes" 2021-12-01 13:48:57 +00:00
Kedar Chitnis
e8222cb95a Merge "dumpstate: Add dumpstate device AIDL HAL" am: 745a344a7c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895055

Change-Id: I2850f1eca597c0f9800f7e84ad749e8b878420b5
2021-12-01 12:30:31 +00:00
Kedar Chitnis
745a344a7c Merge "dumpstate: Add dumpstate device AIDL HAL" 2021-12-01 12:16:33 +00:00
Treehugger Robot
d9964bb31a Merge "health: properly support charger mode." am: 21c1e163d4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1894881

Change-Id: I3d7d0071a74e49c1312cf8c959972905941b047f
2021-12-01 04:01:37 +00:00
Treehugger Robot
21c1e163d4 Merge "health: properly support charger mode." 2021-12-01 03:45:49 +00:00
David Drysdale
2bd0d43b24 Turn off CFI for the Keymaster VTS
On a bramble device, observed a crash in the VTS binary itself when
executing BoringSSL signature verification code locally (i.e. with no
KeyMaster interaction involved).

The crash call stack involves CFI checks, and seems to occur at the
point when some BoringSSL digest calculation code invokes a function
pointer.

 - SHA1_Update passes &sha1_block_data_order to (inlined)...
 - crypto_md32_update() which invokes the function pointer
   via its block_func parameter.

Moving the BoringSSL dependency from static_libs: libcrypto_static to
shared_libs: libcrypto makes the crash go away, but a smaller change
that also fixes the problem is to disable CFI checks for the test
binary.

This approach was inspired by:
ab65cd0e89%5E%21/#F0

The same problem looks to be relevant for the bugs listed below.

Bug: 206496340
Bug: 206498742
Test: VtsHalKeymasterV4_0TargetTest --gtest_filter="*VerificationOperationsTest.RsaAllPaddingsAndDigests*"
Change-Id: I12b145dad5535846d68c97954d31a93123bb95e7
2021-11-30 15:27:32 +00:00
David Drysdale
61cf943208 Merge "Fix flaky corrupted padding tests" am: a33f46bc2a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1903312

Change-Id: I5e5b1e62c017e2e1db8ce099e1cabda6501ce44c
2021-11-30 07:00:16 +00:00
David Drysdale
a33f46bc2a Merge "Fix flaky corrupted padding tests" 2021-11-30 06:44:30 +00:00
Yifan Hong
7a6956ee0d health: add libhealthshim
This is a shim library that wraps a HIDL IHealth to
an AIDL BnHealth.

Also add tests for the library.

Bug: 177269435
Test: libhealthshim_test

Change-Id: Ia5f32c1ae0693c70cf698b46b48d5f77006cf6c7
2021-11-29 16:43:05 -08:00
Treehugger Robot
94dea4096c Merge "health storage AIDL HAL logs more." am: 4b0c7f0e7a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1905374

Change-Id: Ifc15c002af051dfae4b0b8b3efcdd79ecb1011ed
2021-11-29 23:52:45 +00:00
Treehugger Robot
4b0c7f0e7a Merge "health storage AIDL HAL logs more." 2021-11-29 23:33:55 +00:00
Yifan Hong
9f1639f6b4 health storage AIDL HAL logs more.
Test: builds
Bug: 206775954
Change-Id: I211e29e495a974e9c93ac97c7dd9ef93e1bcb5ef
2021-11-29 22:03:15 +00:00
David Drysdale
4c1f6ac496 Fix flaky corrupted padding tests
Transfer the fix in http://aosp/1745035 from the KeyMint VTS test back
into the keymaster VTS test.

Bug: 189261752
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: I5f0a69255cfe980dd6e71fa29ff06a84cb668f6d
2021-11-29 16:17:11 +00:00
Kedar Chitnis
bc09321ae2 dumpstate: Add dumpstate device AIDL HAL
- Add interface AIDL files
- Add default example service. Example service is setup as a
  lazy service.
- Add VTS test having same coverage as dumpstate device HIDL
  1.1 VTS tests

Bug: 205760700
Test: VtsHalDumpstateTargetTest, dumpstate, dumpstate_test, dumpsys
Change-Id: I63f177af5e1e16cad392ce594f1b438e5610d757
2021-11-25 07:44:46 +00:00
David Gross
0ca4f1a02e Add NNAPI specification and infrastructure for FL7. am: 2edfc467f1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1858468

Change-Id: I74c7908ce69fef43a56985897b37869da4ea0743
2021-11-23 02:30:44 +00:00
David Gross
2edfc467f1 Add NNAPI specification and infrastructure for FL7.
Adds operations MIRROR_PAD and REVERSE.
Extends RSQRT to support QUANT8_ASYMM and QUANT8_ASYMM_SIGNED.

DOES NOT include tests or CPU reference implementation.

Bug: 202280917

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest

Merged-In: I0b2133346b996849faac00c46885e3633c78f024
Change-Id: I0b2133346b996849faac00c46885e3633c78f024
(cherry picked from commit 04ed8595b5)
2021-11-22 14:41:51 -08:00
Mikhail Naganov
384ecfa68e Merge "audio VTS: Consider only attached devices for stream tests" am: 1323e4bd90
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895277

Change-Id: Ibb82fec3b1299b24adaaa9c1ceb15b821b80e911
2021-11-22 17:48:46 +00:00
Mikhail Naganov
1323e4bd90 Merge "audio VTS: Consider only attached devices for stream tests" 2021-11-22 17:30:19 +00:00
Serik Beketayev
6e506b6756 [IRadioConfig] Removing SimSlotStatus.cardActive am: 23692c7e20
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895279

Change-Id: I0d3031458415f0b7095b0eb0375d253c0e906fd5
2021-11-22 17:09:19 +00:00
David Drysdale
49255346b4 Use defaults to reference current keymint version
The KeyMint HAL will soon be updated for a new version. To make this
process easier, add a cc_defaults and rust_defaults that references
the "current" version, and use this elsewhere. This should hopefully
mean that a future version bump only needs to happen in the defaults.

Test: TreeHugger
Change-Id: If7dd0c5778acb92177e16fd4fb4a04dcb837ad06
2021-11-22 16:13:08 +00:00
Treehugger Robot
36c5db90b3 Merge "health: fix running HAL in recovery mode." am: b75e7b43c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1893226

Change-Id: Ibb7b514aa4c583a48ed2ef2c8b9c6d7c79736dbb
2021-11-20 00:09:03 +00:00
Serik Beketayev
23692c7e20 [IRadioConfig] Removing SimSlotStatus.cardActive
Cleaning this up, since structure was changed for AIDL.

Bug: 205585789
Test: m
Change-Id: Ia59a1f1e3b66cd45f8ad9d1f4c2fb3af5fb09dc0
Merged-In: Ia59a1f1e3b66cd45f8ad9d1f4c2fb3af5fb09dc0
2021-11-19 16:06:12 -08:00
Mikhail Naganov
3483b0ad7e audio VTS: Consider only attached devices for stream tests
V6 and V7 use the audio policy configuration file for generating
the set of test profiles. The generator must only take into
account profiles of mix ports that are routed to device ports of
attached devices. Otherwise the HAL can rightfully refuse
to create a stream for the profile when the device isn't attached.

Bug: 205808571
Test: atest HalAudioV6_0GeneratorTest
Test: atest HalAudioV7_0GeneratorTest
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I798f978c1c0bc32831c20e4b08338b462d8eea16
2021-11-19 22:25:19 +00:00
Treehugger Robot
b75e7b43c5 Merge "health: fix running HAL in recovery mode." 2021-11-19 21:25:33 +00:00
David Drysdale
bc899371f4 Merge "KeyMint VTS: don't combine ATTEST_KEY with SIGN" am: 4f51da1c9e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1877245

Change-Id: Iebb88934dda5814a3c60112965baa0b67ba3ea73
2021-11-19 08:11:04 +00:00
David Drysdale
4f51da1c9e Merge "KeyMint VTS: don't combine ATTEST_KEY with SIGN" 2021-11-19 07:53:34 +00:00
Michael Butler
58b61dbce0 Merge "Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal" am: 8f6b82c7a5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1896056

Change-Id: I698336ca059e99a4967c0612359ee0d5229f479e
2021-11-19 03:14:38 +00:00
Michael Butler
8f6b82c7a5 Merge "Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal" 2021-11-19 02:45:32 +00:00