Commit Graph

28760 Commits

Author SHA1 Message Date
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
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
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
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
Eran Messeri
9c3bd29cab Merge "KeyMint: Fix device-unique attestation chain specification" 2021-07-06 15:38:16 +00:00
Eran Messeri
302d29eb9b Merge "Annotate some TODOs" 2021-07-06 13:40:53 +00:00
Eran Messeri
03d7a1a4f3 KeyMint: Fix device-unique attestation chain specification
Fix the device-unique attestation chain specification: The chain should
have two or three certificates.
In case of two certificates, the device-unique key should be used for
the self-signed root.
In case of three certificates, the device-unique key should be certified
by another key (ideally shared by all StrongBox instances from the same
manufacturer, to ease validation).

Adjust the device-unique attestation tests to accept two or three
certificates in the chain.

Additionally, the current StrongBox KeyMint implementation can not yet
generate fully-valid chains (with matching subjects and issuers), so
relax that check.

Bug: 191361618
Test: m VtsAidlKeyMintTargetTest
Change-Id: I6e6bca33ebb4af67cac8e41a39e9c305d0f1345f
2021-07-06 14:32:16 +01:00
Eran Messeri
7c046786b8 Annotate some TODOs
There are two tags that cannot be currently removed but should be
removed in KeyMint V2. Mark them as deprecated and point to the bug
for deletion.

Bug: 183737811
Test: That it compiles.
Change-Id: I80ccaedeb777fdb249a8cb021db6628da32d6029
2021-07-06 10:46:57 +01:00
Seth Moore
42c1133fed Add ensuring that test BCC keys not unique ids
Get two test BCCs, then ensure that no repeated keys are found.

Bug: 192687735
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I48f86e7dfa9ab4bc6303a8d1b64ac7ca6ac76bbf
Merged-In: I48f86e7dfa9ab4bc6303a8d1b64ac7ca6ac76bbf
2021-07-02 15:58:26 -07:00
Seth Moore
f4c8ff9bef Add a utility to JSON-format a CSR with build info
We need both the build fingerprint as well as the CSR when uploading
data to the APFE provisioning server. Add a utility function to format
the output as a JSON blob so that it may be easily collected in the
factory in a serialized data format, then later uploaded.

Test: libkeymint_remote_prov_support_test
Test: VtsAidlKeyMintTargetTest
Test: VtsHalRemotelyProvisionedComponentTargetTest
Bug: 191301285
Change-Id: I751c5461876d83251869539f1a395ba13cb5cf84
2021-07-01 10:17:28 -07:00
Treehugger Robot
0ab5ef3ff7 Merge changes from topic "rkp-factory-tool"
* changes:
  Add real GEEK for RKP factory enrollment
  Add a unit test for remote_prov_utils
2021-06-30 20:39:53 +00:00
Kalesh Singh
55305df1ff Merge "memtrack: Update AIDL memtrack hal documentation" 2021-06-30 18:45:42 +00:00
Treehugger Robot
229d55513b Merge "CEC: Add implementation of WAKEUP option to default HdmiCec" 2021-06-30 11:52:03 +00:00
Treehugger Robot
22135d775e Merge "CEC: Add implementation of ENABLE_CEC option to default HdmiCec" 2021-06-30 11:41:43 +00:00
Treehugger Robot
dba159dcfd Merge changes Iaaec9a0a,I280d1424,Ic8a65044,I019cb5cf,I245d52a7, ...
* changes:
  CEC: Add event handler to default HdmiCec
  CEC: Add implementation of setCallback method to default HdmiCec
  CEC: Add implementation of addLogicalAddress method to default HdmiCec
  CEC: Add implementation of getCecVersion method to default HdmiCec
  CEC: Add implementation of isConnected method to default HdmiCec
  CEC: Add implementation of getVendorId method to default HdmiCec
  CEC: Add implementation of getPortInfo method to default HdmiCec
  CEC: Add implementation of clearLogicalAddress method to default HdmiCec
  CEC: Add implementation of getPhysicalAddress method to default HdmiCec
  CEC: Add implementation of SendMessage method to default HdmiCec
  CEC: Initialise the HAL based on default implementation
2021-06-30 10:53:02 +00:00
Kalesh Singh
30fa141c80 memtrack: Update AIDL memtrack hal documentation
Fix Memtrack GRAPHICS type definition to also inculde
GPU-mapped DMA-BUF memory.

Clarify SMAPS_UNACCOUTNED should also include memory
mapped with VM_PFNMAP set.

Bug: 192384999
Test: N/A
Change-Id: I5370efa731bc6307e4fe9b454796361e9a1ac5eb
2021-06-29 21:57:56 +00:00
Treehugger Robot
6738af59c7 Merge "Fix default vibrator HAL to check support on getPrimitiveDuration" 2021-06-28 21:02:48 +00:00
Treehugger Robot
dc46322e5a Merge "Fix ordering of cache files requirements from device" 2021-06-28 18:13:00 +00:00
David Drysdale
17a0526b1e Merge "KeyMint HAL: clarify spec text" 2021-06-28 17:14:23 +00:00
David Drysdale
f854cde530 Merge "KeyMint VTS: allow for stricter SharedSecret impls" 2021-06-28 17:01:22 +00:00