Commit graph

28776 commits

Author SHA1 Message Date
Treehugger Robot
7519960237 Merge "Making NN hardware interface libs "host supported"" 2021-08-04 22:27:11 +00:00
David Drysdale
13cddcb298 KeyMaster 4.0 VTS: fix GSI detection
Commit f18a8328a1 ("keymaster: Relax testing under GSI") disabled
some tag checks for devices running with GSI, but detected GSI by
looking for an absence of the ro.boot.vbmeta.device_state property.

This property is currently present on GSI, so instead detect GSI using
the existing is_gsi() helper, which checks ro.product.system.name
against "mainline".

Bug: 192513934
Test: atest VtsHalKeymasterV4_0TargetTest:PerInstance/AttestationTest
Merged-In: If3c7d84a9e091b9b0842e4d8919453600bc239ea
Change-Id: If3c7d84a9e091b9b0842e4d8919453600bc239ea
2021-08-02 14:33:01 +01:00
Treehugger Robot
555e9872f5 Merge "Generate fmq java-source." 2021-07-31 03:35:14 +00:00
Yiming Pan
031685709c Merge "Add OWNERS for VTS module VtsHalBiometricsFaceV1_0TargetTest" 2021-07-30 20:57:11 +00:00
Hongguang
742ceab6f6 Generate fmq java-source.
Add @hide to adil to avoid API export in framework.

Bug: 194739778
Test: make and use fmq java-source in framework
Change-Id: Ie1f7e8f9a36a1f09258581d484843f372f56e03e
Merged-In: Ie1f7e8f9a36a1f09258581d484843f372f56e03e
2021-07-30 11:58:40 -07:00
Yiming Pan
aa3873ce1c Merge "Update the OWNERS file of VTS module VtsHalHealthV2_0TargetTest" 2021-07-30 17:57:35 +00:00
Cheney Ni
a0cc24730e BluetoothAudio: Refine the FMQ size for A2DP software encoding
For those high-resolution codecs, they are 24 or 32 bits per sample, so
the buffer size must be the LCM of 16, 24, and 32.

Bug: 194980528
Test: A2DP playing with aptX and / or LDAC
Change-Id: I788e185496dea4a1b40fa369e032a4f8491b835b
2021-07-29 21:10:45 +08:00
Yiming Pan
e06046e2d0 Merge "Add OWNERS for VTS module VtsHalAtraceV1_0TargetTest" 2021-07-29 00:53:14 +00:00
Yiming Pan
08716a4fd9 Merge "Add OWNERS for VTS module VtsHalHealthStorageV1_0TargetTest" 2021-07-28 21:29:42 +00:00
Yiming Pan
d68f282ddf Update the OWNERS file of VTS module VtsHalHealthV2_0TargetTest
Add a bug component id.

Test: Tree Hugger
Bug: 143903671
Change-Id: Ic5d5b15c72ac71cf4fbe527082b3b2af57d1866f
2021-07-28 14:27:38 -07:00
Jiyong Park
2346a4c6b9 Merge "Remove ndk_platform backend. Use the ndk backend." 2021-07-28 12:10:05 +00:00
rayhdez
a6d6002431 Making NN hardware interface libs "host supported"
Changing static libraries in hardware/interfaces/neuralnetworks to be
"host supported", meaning that the libraries within this directory
will be available on the host/linux build to make integration and
debugging more efficient.

Host Supported Libs:
* neuralnetworks_utils_hal_1_0
* neuralnetworks_utils_hal_1_1
* neuralnetworks_utils_hal_1_2
* neuralnetworks_utils_hal_1_3
* neuralnetworks_utils_hal_aidl
* neuralnetworks_utils_hal_common

Host Supported Tests:
* neuralnetworks_utils_hal_1_0_test
* neuralnetworks_utils_hal_1_1_test
* neuralnetworks_utils_hal_1_2_test
* neuralnetworks_utils_hal_1_3_test
* neuralnetworks_utils_hal_aidl_test
* neuralnetworks_utils_hal_common_test

Bug: 146324523
Test: neuralnetworks_utils_hal_*_test
Change-Id: I1d7c665169d2ce0c978b1e510e71f1371402a950
2021-07-27 22:14:05 +00:00
Seth Moore
6305e23cd8 Allow uninstantiated remote provisioning tests
Not all devices have an IRemotelyProvisionedComponent HAL, so on those
devices 0 of the tests in VtsRemotelyProvisionedComponentTests will be
run.

Bug: 194770385
Test: Ran tests on two devices: one with and one without the HAL.
Change-Id: I8624096158f29058189dfab7cd876804ae178e60
Merged-In: I8624096158f29058189dfab7cd876804ae178e60
2021-07-27 14:51:10 -07:00
Jiyong Park
27f77fefd7 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same 'ndk' backend.

Bug: 161456198
Test: m
Change-Id: Ibe8beeaf0d1b33968fb782f1f70c17ae9e9bf871
2021-07-27 14:44:47 +09:00
Alistair Delva
738dd1a9e3 Merge changes from topics "drop-4.19-t", "drop-5.4-t"
* changes:
  Remove 5.4 for T
  Remove 4.19 for T
2021-07-26 23:53:09 +00:00
Treehugger Robot
82a343976b Merge "Add VtsRemotelyProvisionedComponentTests config" 2021-07-26 22:49:01 +00:00
Alistair Delva
b6609b4797 Remove 5.4 for T
Unlike 4.19, T can launch with 5.4, but it must be android12-5.4, which
is already covered by the 's' compatibility check, even for launch
devices.

Change-Id: I2a1f85eca2914ccf6e51c6cfa889df0810c9ae20
2021-07-26 12:31:30 -07:00
Alistair Delva
38e7a77009 Remove 4.19 for T
Change-Id: Ib9fb597adb1160901e559fd00d38e009f9de852b
2021-07-26 12:31:15 -07:00
Kuowei Li
de829572f9 audio: Allow SetAudioProperties to not be supported
The parameter of sample rate, channel mask and format is not
mandatory to support by Audio HAL. At meantime, there is no
corresponding handle in framework.
Hence, SetAudioProperties should allow reporting not supported.

Bug: 194368657

Test: run vts -m VtsHalAudioV7_0Target
Change-Id: Id0505bfb5d4812dd4c5d31a6e9d72c4c9c0cffa2
2021-07-22 17:44:48 +00:00
Yiming Pan
8bff1f0d11 Merge "Add OWNERS for VTS module VtsHalGnssV2_0TargetTest" 2021-07-22 16:27:23 +00:00
Yiming Pan
0463fce0e9 Merge "Add OWNERS for VTS module VtsHalCameraProviderV2_4TargetTest" 2021-07-22 16:27:07 +00:00
Amos Bianchi
3685d3bbc4 Merge "Add test service for HIDL active services callback." 2021-07-22 16:14:06 +00:00
Yiming Pan
b438a5ad46 Add OWNERS for VTS module VtsHalHealthStorageV1_0TargetTest
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: I793d350f6ab1d38cb7d771b15b2d2ed0db76f0fd
2021-07-21 16:29:06 -07:00
Yiming Pan
6239be46f9 Add OWNERS for VTS module VtsHalGnssV2_0TargetTest
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: Iebcc4cc7b67ae3cdaf580b0abd6dda2106d745bf
2021-07-21 16:28:58 -07:00
Yiming Pan
9f7d8075fb Add OWNERS for VTS module VtsHalCameraProviderV2_4TargetTest
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: I14599c6ca99fb41fadb58555310a0309fa1806ad
2021-07-21 15:32:33 -07:00
Yiming Pan
3f3084890b Add OWNERS for VTS module VtsHalBiometricsFaceV1_0TargetTest
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: I0c78fc13402cc43b1f67fbc7eca6bece59b4e268
2021-07-21 15:32:26 -07:00
Amos Bianchi
25cbf26078 Add test service for HIDL active services callback.
Bug: 191781736
Test: atest hidl_lazy_test
Change-Id: Ie743d9d8635165f820977bfcb1548a83b56ccc1b
2021-07-21 12:24:33 -07:00
Seth Moore
b9b87ab1c9 Add VtsRemotelyProvisionedComponentTests config
VtsHalRemotelyProvisionedComponentTargetTest was picking up the same
config file (AndroidTest.xml) as VtsAidlKeyMintTargetTest. When atest or
TF was used to run VtsHalRemotelyProvisionedComponentTargetTest, it
actually ran VtsAidlKeyMintTargetTest.

Add a separate test config file so that we run the correct test binary.

Test: atest VtsAidlKeyMintTargetTest
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Bug: 192824779
Change-Id: I7ba0f8d364690209722f9a06c6c0ce2957781beb
Merged-In: I7ba0f8d364690209722f9a06c6c0ce2957781beb
2021-07-21 09:26:34 -07:00
Aaron Tsai
772801bf8a Waiting 10s at the beginning of getBarringInfo test if not yet in-service.
If the previous setRadioPower_1_5_emergencyCall_cancelled test has just finished. Due to radio restarting, modem may need a little more time to acquire network service. Otherwise, the barring info will be empty.

Bug: 191866257
Test: atest VtsHalRadioV1_5TargetTest

Change-Id: I9ae4e7a07b9f47353554ffb63a23b6518aa344b7
Merged-In: I9ae4e7a07b9f47353554ffb63a23b6518aa344b7
2021-07-21 04:33:22 +00:00
Yiming Pan
572e6cb3d5 Merge "Update OWNERS for VTS module VtsHalAudioEffectV5_0TargetTest" 2021-07-20 19:12:08 +00:00
Yiming Pan
36dced040b Add OWNERS for VTS module VtsHalAtraceV1_0TargetTest
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: I0cc64c4bb6c0111862b056bcddda8fb0937be4bc
2021-07-20 12:08:09 -07:00
Mikhail Naganov
65a23ad2d4 Audio VTS: Make the active microphone query test more robust in V7
Prior to V7 the test which exercises
IStreamIn.getActiveMicrophones was using a hardcoded
configuration for the input stream. This configuration no longer
works for some of new devices. To fix that, the part of the test
which calls getActiveMicrophones has been moved into a separate
test--a descendant of InputStreamTest which is parametrized
using the actual configuration of the DUT.

Tests for HAL versions prior to V7 are not affected
because they don't use a full parser for the DUT config.

Bug: 193849687
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
Merged-In: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
2021-07-20 17:40:13 +00:00
Yiming Pan
d6d0e67e74 Update OWNERS for VTS module VtsHalAudioEffectV5_0TargetTest
Add bug component information.

Test: Tree Hugger
Bug: 143903671
Change-Id: Icca9a6a3864cb3e5148395fa3523a332cb1d2ab3
2021-07-19 17:39:36 -07:00
Treehugger Robot
2a590dcb65 Merge "Don't fail if TAG_ALLOW_WHILE_ON_BODY is missing" 2021-07-19 18:07:23 +00:00
Hongguang
d66dff62e7 Enable fmq java backend.
Enable java backend for AIDL HALs which use it in java backend.

Bug: 191825295
Test: make
Change-Id: I08f6c01665e7cd11eebde5370a73cb1c372e5644
2021-07-15 21:23:53 +00:00
Kalesh Singh
54519b1060 Merge "Memtrack HAL: Report global total GPU-private memory" 2021-07-15 20:48:52 +00:00
Treehugger Robot
394fae6ed2 Merge "Update vibrator VTS to only validate support from required primitives" 2021-07-15 13:57:42 +00:00
Lais Andrade
46819a1675 Update vibrator VTS to only validate support from required primitives
Change-Id: I93cf92636af7a89371f1e87a5a0b40de9d3ee3ed
Fix: 193196353
Test: VtsHalVibratorTargetTest
Merged-In: Icb69a799d204102880efd685312d3a0e2e22b7bb
Merged-In: I7ec2f0d82290f42259f8383db9ff00a126a2a7a4
2021-07-15 12:23:40 +00:00
Kalesh Singh
f4f632f90f Memtrack HAL: Report global total GPU-private memory
Update memtrack hal documentation to allow reporting the global
total GPU-private memory from the getMemory() API.

Specify how to handle unsupported memtrack operations.

Bug: 193226716
Bug: 193465681
Bug: 192621117
Test: N/A
Change-Id: I6fcebd16fafdc34cc662137784e86750ee907eee
Merged-In: I6fcebd16fafdc34cc662137784e86750ee907eee
2021-07-14 21:18:29 +00:00
Yifan Hong
d615af1e6d Merge "health: stop spamming." 2021-07-13 23:45:47 +00:00
Yifan Hong
975a600029 health: stop spamming.
Though it is useful to log when the client is dead, it
is too spammy when the framework is dead. Stop spamming.

Test: pass
Bug: 191548101
Change-Id: I43bef16b14300c3e435173ef2af9d8dd9dbfedb8
2021-07-13 11:26:03 -07:00
Seth Moore
b393b089c1 Don't fail if TAG_ALLOW_WHILE_ON_BODY is missing
The TAG_ALLOW_WHILE_ON_BODY authorization is not required to be
supported, and if it is not supported it's a noop. Don't expect the tag
to fail with UNSUPPORTED_TAG on devices that don't support it.

Test: VtsAidlKeyMintTargetTest
Bug: 192222727
Change-Id: I2e80ca59151e79f595a65cae94ac966b4ba7020d
Merged-In: I2e80ca59151e79f595a65cae94ac966b4ba7020d
2021-07-13 11:18:36 -07:00
Bill Yi
ee86375d3a Merge RQ3A.210705.001 to aosp-master - DO NOT MERGE
Merged-In: I7b187c5e79bf4531bdffc7411a033a7c20a54294
Merged-In: I89cda19ca8521445e1608efbbd07c889cca59601
Merged-In: I89cda19ca8521445e1608efbbd07c889cca59601
Change-Id: I183701b2c03dc63d19c98779388c0b99bae9a4ce
2021-07-12 11:08:26 -07:00
Seth Moore
19acbe9f66 Update KeyMint VTS tests with prod GEEK
Now that we have the production Google Endpoint Encryption Key, we can
update the tests to use the correct GEEK cert chain where applicable.

Test: VtsHalRemotelyProvisionedComponentTargetTest
Test: VtsAidlKeyMintTargetTest
Bug: 191301285
Change-Id: I84b557c6bad34741ffe6671fc941d9e266b73241
Merged-In: I84b557c6bad34741ffe6671fc941d9e266b73241
2021-07-09 13:17:24 -07:00
Treehugger Robot
d4019c4139 Merge "Revert "android.hardware.bluetooth@1.0-impl: Updated to vendor_available:true"" 2021-07-09 02:34:08 +00:00
Treehugger Robot
d0047ec515 Merge "Add Attestation IDs State to DeviceInfo" 2021-07-09 01:35:24 +00:00
Hongguang Chen
a12b18a4ee Revert "android.hardware.bluetooth@1.0-impl: Updated to vendor_available:true"
This reverts commit eddbb27ae8.

Reason for revert: Fix building break. android.hardware.bluetooth@1.0-impl is vendor module, should be in vendor partition.
Bug:187131546
Change-Id: I701531ec0348fcbaf08cbb9520600d0077d58b2d
2021-07-08 23:34:12 +00:00
Seth Moore
6a1223f227 Add Attestation IDs State to DeviceInfo
We will use the 'Attestation IDs State' field in DeviceInfo to
determine whether a device is still provisionable or not. Once a
production device has left the factory, certain attestated device ids
should be fixed, and 'Attestation IDs State' should reflect this
by reporting "locked".

Remove stale, duplicated DeviceInfo description from ProtectedData.aidl

Test: None, just a doc change
Bug: 192017485
Change-Id: I4e0a840a8f415b3b410801805a158c46be30ec6a
Merged-In: I4e0a840a8f415b3b410801805a158c46be30ec6a
2021-07-08 16:05:41 -07:00
Mikhail Naganov
420a5407cd audio: Fix handling of relative XML include paths in VTS
Pass "no fixup base dirs" flag to the XInclude processor
to avoid modifications of the top-level elements from
included XML files as a result of "fixup."

Added tests to ensure that all relevant XInclude scenarios
work.

Bug: 192619060
Test: atest -host android.hardware.audio.common.test.utility_tests
Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
Merged-In: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
2021-07-08 17:29:23 +00:00
Kris Alder
8ec315a25e Merge changes I580e3f1d,I8e271982
* changes:
  android.hardware.bluetooth@1.0-impl: Updated to vendor_available:true
  android.hardware.bluetooth@1.0-impl: Updated Android.bp
2021-07-08 16:12:16 +00:00