Commit Graph

27923 Commits

Author SHA1 Message Date
Jooyung Han
d63cd3fff6 aidl: Suppress warnings on out-array
out-param arrays are considered harmful since the Java backend requires
them to be correctly allocated at caller site. But the only user of
android.hardware.identity is in C++, we can just ignore them.

Fixes: 179853403
Test: mma in hardware/interfaces/identity
Change-Id: Ib9b7ad895b3827c0888869a5b154696e3aff5624
2021-04-27 10:51:57 +09:00
Treehugger Robot
24c422c48b Merge "Bluetooth: Turn Bluetooth off while device setup" 2021-04-23 17:46:53 +00:00
Treehugger Robot
f04466c090 Merge "Added vts tests for certificate subject and serial for various algorithms and self sign or non-self sign certificates." 2021-04-23 07:53:20 +00:00
Cheney Ni
1f3312ce04 Bluetooth: Turn Bluetooth off while device setup
Because there's only one HCI interface, it won't open if Bluetooth is in
use, but encounter unexpected results. Based on the auto-generated test
config file, and this adds BT off condition in the device setup stage.

Bug: 184720725
Test: android-vts/tools/vts-tradefed run commandAndExit vts -m VtsHalBluetoothV1_*TargetTest
Change-Id: If03d3621f9e0cfebce7574126def134c4303b97f
2021-04-23 11:59:33 +08:00
Aaron Tsai
47e14e567f Adding 1s time gap between back-to-back calling setDataThrottling API
Modem has restriction that it can not process back-to-back thermal actions.
Adding 1s delay to prevent unexpected errors.

Bug: 181634712
Test: atest VtsHalRadioV1_6TargetTest -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*setDataThrottling/0_slot1"
Change-Id: I70a717cbc3a63d5b1abb4be9d3920d0ee3451b14
2021-04-23 02:35:23 +00:00
Treehugger Robot
40bbe789a4 Merge "libgtest_prod: use headers." 2021-04-23 01:17:59 +00:00
Ady Abraham
fc67ba997e Merge "composer: update VtsDisplay dimensions" 2021-04-23 00:39:20 +00:00
Yifan Hong
5cd5a17657 libgtest_prod: use headers.
libgtest_prod is a static library that contains only
headers. It is now deprecated for good, and is replaced
by libgtest_prod_headers.

Test: TH
Bug: 185916167
Change-Id: I18bb1b0ab355fdfb627f9bcf56b6c4bdf9971e02
2021-04-22 17:19:01 -07:00
Treehugger Robot
5705ebf9c1 Merge "Let the default Atrace HAL support /sys/kernel/tracing" 2021-04-22 23:36:18 +00:00
Selene Huang
6e46f1467c Added vts tests for certificate subject and serial for various
algorithms and self sign or non-self sign certificates.

Test: atest VtsAidlKeyMintTargetTest
Change-Id: I4e9d8db7be500f165c3a9f240ea2dfe00c2a70d1
2021-04-22 15:18:32 -07:00
Hridya Valsaraju
1e52e63238 Let the default Atrace HAL support /sys/kernel/tracing
With this change, atrace HAL will look for tracefs in
/sys/kernel/tracing first and /sys/kernel/debug/tracing second.

Test: systrace
Bug: 185427606
Change-Id: Iccc5af92db222dc422a527c14b1f2fb7bc4e7746
2021-04-22 15:10:46 -07:00
Ady Abraham
c801385495 composer: update VtsDisplay dimensions
When the active config changes, the display dimension might change
as well, so we need to update it to match the active config.

Test: run composer 2.4 VTS
Bug: 185195256
Change-Id: Ie2671e61498d2501901885b2a9986ee1974bd641
Merged-In: Ie2671e61498d2501901885b2a9986ee1974bd641
2021-04-22 18:56:46 +00:00
Michael Butler
1544989041 Merge "Remove NN canonical IDevice::isUpdatable -- hal" 2021-04-22 18:07:59 +00:00
Jonathan Reichert
2585f44a6e Merge "Fix SetCountryCode test when US is not supported" 2021-04-22 12:13:57 +00:00
Roman Kiryanov
de2b8f248e Merge "Move the qemu_pipe library into vhal_v2_0" 2021-04-21 23:05:40 +00:00
Michael Butler
3e9720b83f Remove NN canonical IDevice::isUpdatable -- hal
This CL alters the AIDL utility "getDevices" to return whether or not a
service is updatable. This CL additional removes IDevice::isUpdatable
because it is now redundant with the changes to "getDevices".

Bug: 170696350
Test: mma
Test: NeuralNetworksTest_static
Change-Id: I86228763937c0dd2ee5b1d9d547c367cd7504ed4
2021-04-21 13:27:59 -07:00
Jack Yu
91ce32adb9 Merge "radio: Add VTS test for OperatorInfo.operatorNumeric" 2021-04-21 20:13:56 +00:00
Selene Huang
6d70ac2462 Merge "Implement device unique attestation vts tests for keymint." 2021-04-21 19:46:56 +00:00
Sooraj Sasindran
0cb21f39ae Merge "Use 0 as link capacity estimate if device is not connected" 2021-04-21 19:05:36 +00:00
SongFerng Wang
9d38b91d8d Merge "modemReducedFeatureSet add PhysicalChannelConfig_1_6 item" 2021-04-21 17:32:27 +00:00
Sooraj Sasindran
6e9d3413e1 Use 0 as link capacity estimate if device is not connected
Use 0 as link capacity estimate if device is not connected instead of -1

Bug: 184663919
Change-Id: Id634c7e32200b5d94eed36cefbee6ba8babc8f26
Test: only documentation change
2021-04-21 10:10:15 -07:00
Treehugger Robot
251b679e22 Merge "Update documentation for secondary bandwidth" 2021-04-21 16:58:36 +00:00
Sooraj Sasindran
6985b64a95 Update documentation for secondary bandwidth
Update documentation for secondary bandwidth to indicate that
some modems do not support this feature

Test: build
Bug: 162373679
Change-Id: I03d4079e03817fe7c7b52eb18058c49e54302d6b
Merged-In: I03d4079e03817fe7c7b52eb18058c49e54302d6b
2021-04-21 16:46:50 +00:00
Treehugger Robot
92c127f961 Merge "[ANAPIC Review] Remove config 1.3 hal" 2021-04-21 16:03:35 +00:00
Treehugger Robot
ad078c25f9 Merge "[ANAPIC Review] Modify radio 1.6 based on ANAPIC comment" 2021-04-21 16:03:26 +00:00
Treehugger Robot
0292dbbec8 Merge "Add units to hal times and durations names" 2021-04-21 11:35:45 +00:00
SongFerngWang
09a94cc486 modemReducedFeatureSet add PhysicalChannelConfig_1_6 item
Bug: 185925786
Test: build pass
Change-Id: I7d0c1b2534f50bbb445e2929b2807da0835d6bfe
Merged-In: I7d0c1b2534f50bbb445e2929b2807da0835d6bfe
2021-04-21 17:14:29 +08:00
Zoey Chen
a7ea6affd2 [ANAPIC Review] Remove config 1.3 hal
Bug: 183738012
Test: build
Change-Id: Ie0eec5576d08ddcd9a8f5ee1a1d9e2b32772653e
Merged-In: Ie0eec5576d08ddcd9a8f5ee1a1d9e2b32772653e
2021-04-21 17:07:05 +08:00
Treehugger Robot
04d6d4a186 Merge "Added 12 various attestation related vts tests. - Check for app id only if challenge is provided. - Verify self sign certificate works for RSA and Ecdsa. - Verified attestation is generated for encryption keys too. - Verify no attestation is generated for symetric keys. - Verify app id is always required when attestation challenge is provided to the new key generation. - Verify app id is ignored when challenge is missing. - Verify app id length is properly encoded. - Added vts tests for various attestation success and fail cases." 2021-04-21 05:57:09 +00:00
Zoey Chen
532dcfd48a [ANAPIC Review] Modify radio 1.6 based on ANAPIC comment
- setupDataCall_1_6, remove "same as 1.5" comment
 - sendSMSExpectMore to sendSmsExpectMore
 - getAllowedNetworkTypesBitmap should use int32_t
 - csiCqiReport uses uint8_t
 - cellBandwidthDownlinkKhz and cellBandwidthUplinkKhz
 - AccessTechnologySpecificInfo, remove these struct NgranRegistrationInfo and GeranRegistrationInfo

Bug: 183738486
Test: make
Change-Id: Icae28d68831bbd01836b8d464e8ece134a9aa63d
Merged-In: Icae28d68831bbd01836b8d464e8ece134a9aa63d
2021-04-21 05:12:17 +00:00
Selene Huang
4f64c22809 Added 12 various attestation related vts tests.
- Check for app id only if challenge is provided.
- Verify self sign certificate works for RSA and Ecdsa.
- Verified attestation is generated for encryption keys too.
- Verify no attestation is generated for symetric keys.
- Verify app id is always required when attestation challenge is
  provided to the new key generation.
- Verify app id is ignored when challenge is missing.
- Verify app id length is properly encoded.
- Added vts tests for various attestation success and fail cases.

Test: atest VtsAidlKeyMintTargetTest
Change-Id: If29249b0913fd9c2f91d20188ca5cfbaa04bead8
2021-04-20 19:23:40 -07:00
Selene Huang
531a72d7ff Implement device unique attestation vts tests for keymint.
Test: atest VtsAidlKeyMintTargetTest
Change-Id: If271c915d33cece035ab67b9149ae4ba762648b4
2021-04-21 01:45:13 +00:00
Lev Proleev
8df7d6eaf9 Add units to hal times and durations names
The change adds "Ns" suffix to timeOnDevice, timeInDriver,
loopTimeoutDuration, deadline and duration.

Fix: 183118329
Test: mm
Change-Id: I4afe34f27fc8717ac28c8fa09edda9918641c39a
Merged-In: Id1f9ee4b8e41873c97690bb19a5e84572dd9ccf1
2021-04-20 18:16:11 +00:00
Max Bires
261a0490b6 Porting the client <-> HAL service interface
This change removes the interface layer between the client and the
underlying HAL. This is one part of a two part change to properly finish
migrating all of the RemotelyProvisionedComponent functionality to
system/keymaster.

Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: Ibccc6b3af86a63b8a6c6207fffd43cfc41b903b5
2021-04-20 02:00:00 +00:00
Treehugger Robot
ed54acfbff Merge "Adding getHardwareInfo to IRPC" 2021-04-19 22:04:32 +00:00
Treehugger Robot
4b84c912a0 Merge "Porting IRPC functionality." 2021-04-19 19:30:27 +00:00
Max Bires
9704ff6b85 Porting IRPC functionality.
This is the change that removes the functionality that has been shifted
over to appropriate classes and contexts in system/keymaster.

Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I491f4ef823868322ea6a804d88ca09662c099a44
2021-04-17 18:19:28 -07:00
Max Bires
4190509ed6 Adding getHardwareInfo to IRPC
This adds a way to derive information about the hardware for clients
that call the HAL. The primary functional usecase here is to
differentiate which EC curve the underlying hardware for a given
instance of IRemotelyProvisionedComponent is supported.

Originally, curve 25519 would have been used in all implementations for
verifying the EEK certificate chain and doing ECDH, but secure elements
do not offer 25519 support yet. In order to support remote provisioning
on SEs, we have to relax the standard here a bit to allow for P256.

Test: Everything builds
Change-Id: I9245c6f4e27bd118fe093bffc0152549ed7f0825
2021-04-17 15:37:43 -07:00
Andy Hung
2092162bc3 Merge changes from topics "24ch Audio HAL", "360RA HAL"
* changes:
  audio: Add AUDIO_CHANNEL_OUT_22POINT2 constant
  audio: Add AUDIO_CHANNEL_OUT_13POINT_360RA constant
2021-04-17 02:37:00 +00:00
Treehugger Robot
bc7cfe2b25 Merge changes from topic "dynamicConfig"
* changes:
  Add descrambler dynamic configuration into Tuner 1.0 VTS
  Add lnb/timeFilter dynamic configuration into Tuner 1.0 VTS
  Add filter dynamic configuration into Tuner 1.0 VTS
  Add dvr dynamic configuration into Tuner 1.0 VTS
2021-04-16 05:10:51 +00:00
Andy Hung
3cc6843bd5 audio: Add AUDIO_CHANNEL_OUT_22POINT2 constant
24 channel configuration for immersive audio

See new value in system/media/audio/audio-hal-enums.h.
Define the same enum to HALv7 and update getChannelCount().

Test: atest android.hardware.audio.common@7.0-util_tests
Bug: 185530406
Change-Id: I8dc5e6c504049908fef157b11ffa043ecaeacaf9
2021-04-15 18:22:42 -07:00
Kei Murayama
91ef183cf7 audio: Add AUDIO_CHANNEL_OUT_13POINT_360RA constant
13ch audio constant for 360 Reality Audio.

The enum value is added in system/media/audio/audio-hal-enums.h.
 - Define the same enum to HALv7.
 - Set 13 for the layout from getChannelCount().

Bug: 185100731
Test: Use the value on audio hal and build.
Test: Use the value on audio_policy_configuration.xml and build.
Test: atest android.hardware.audio.common@7.0-util_tests
Change-Id: Ifa37f9be96a94c623e5d4164774c39d05efbbb8b
2021-04-15 17:49:25 -07:00
Treehugger Robot
6ece00fbdd Merge "Refactor Tuner 1.0 vts to use dynamic configuration" 2021-04-16 00:43:08 +00:00
Luca Stefani
ee8e17f9a7 radio: Add VTS test for OperatorInfo.operatorNumeric
* QCOM likes to not follow the HAL definition
  by appending extra data with a "+"

Test: m
Change-Id: I40b3268a7de7a5e60ba0633e387d12a645895109
2021-04-15 19:48:47 +02:00
Treehugger Robot
be01266c63 Merge "Allow INVALID_STATE to be returned for setNrDualConnectivity" 2021-04-15 01:23:46 +00:00
Treehugger Robot
f676c47ee7 Merge "Explicitly require empty list when the device is idle" 2021-04-15 01:01:56 +00:00
Selene Huang
0a8dd959a4 Merge "Update Keymint documentation in aidl." 2021-04-14 21:43:05 +00:00
Michael Butler
a546efe5ef Merge "Enable NN VTS and utility code to use lazy services" 2021-04-14 16:22:53 +00:00
Treehugger Robot
aeb7117596 Merge "Add Rsa 2048 import key test for strongbox." 2021-04-14 14:49:39 +00:00
Lev Proleev
e6273df6b8 Merge "Add explanations for FusedActivationFunc values" 2021-04-14 14:38:46 +00:00