Commit Graph

212 Commits

Author SHA1 Message Date
Treehugger Robot
74dc4cc5d7 Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2950589

Change-Id: Ie4f36b193820490e606e7f5100ca29200f832fa2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 01:45:21 +00:00
Aditya Choudhary
ad2ba1b851 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ic8c4bd6ac246e7efa98bbdaf822d12ae8e1230a5
2024-02-05 15:45:22 +00:00
Xin Li
763c473c3d Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: I976f80006aeb88bde2ae34ca4f9be72cea727d9e
Change-Id: Id94b25af52bd2e2847b6858697ab21cc6ce27aa3
2024-01-30 10:36:50 -08:00
Treehugger Robot
af43cd8a9d Merge "Remove error check for REQUEST_NOT_SUPPRTED" into android14-tests-dev am: 990cb24694
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2887386

Change-Id: Ibcfde1103eb403225815d9670a1c8cad28b667c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-17 18:50:56 +00:00
Aditi
bc2a0d5747 Remove error check for REQUEST_NOT_SUPPRTED
Some devices may not support LCE functionality, so remove the condition that cause failures on such devices

Bug : 316570471

Change-Id: I758c82d14da4fec89b2e56f4aeda2a31438718fe
Signed-off-by: Aditi <aditi.parikh@samsung.corp-partner.google.com>
2024-01-17 00:47:04 +00:00
liuxiangjun
8877018da4 Remove the SIM card status condition check and add accepted possible errors
For devices not in LTE service, the vts test returns MODEM_ERR is an expected result

Bug:317314512

Test:
VtsHalRadioTargetTest
PerInstance/RadioNetworkTest#setNetworkSelectionModeManual/0_android_hardware_radio_network_IRadioNetwork_slot1
PerInstance/RadioNetworkTest#setNetworkSelectionModeManual/1_android_hardware_radio_network_IRadioNetwork_slot2

Change-Id: I75414ba18be93707310cace21b52508edfc33a20
Signed-off-by: liuxiangjun <liuxiangjun3@xiaomi.com>
2024-01-12 08:09:31 +00:00
Nagendra Prasad Nagarle Basavaraju
307691384f VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response
Handle RIL reporting response for getAllowedNetworkTypesBitmap() with
"LTE + LTE_CA" until Android T.

Bug: 308538353
Test: atest VtsHalRadioTargetTest
Change-Id: I32242dff1ab7f2f1923674e7880b547f6e55de93
2023-12-08 13:59:46 +00:00
yomna
d906b67038 Update null cipher VTS to handle AIDL version 2 and 3 separately
In AIDL version 2, APIs were optional. In 3 and newer, they are
required.

Bug: b/311536993
Test: atest VtsHalRadioTargetTest
Change-Id: I5325aa6d3505afa5df3d6b295a4ffd62a075da16
2023-12-01 12:43:49 -05:00
Yomna Nasser
5803e9666d Merge "No longer require default enablement of securityAlgorithmsUpdated()" into main 2023-11-28 02:46:12 +00:00
Gil Cukierman
ebc3246118 Cellular Identifier Disclosure Transparency HAL Updates
1. Remove the requirement that the default for cellular transparency shall be enabled.

2. Add call management (CM) NAS Messages

3. Add IMSI_DETACH_INDICATION NAS Message, which is the circuit-switched version of DETACH_REQUEST

Change-Id: Ic4e4f32762bfe06da4d57cdfa92bbf03e36d924c
Test: atest VtsHalRadioTargetTest
Bug: 312201926
2023-11-27 14:49:09 +00:00
yomna
d5fb11d285 No longer require default enablement of securityAlgorithmsUpdated()
No longer require default enablement of IRadioNetworkIndication.securityAlgorithmsUpdated()
by removing "default true" requirement to
IRadioNetwork.setSecurityAlgorithmsUpdatedEnabled()

Bug: 312484760
Test: m
Change-Id: Ia18fcb3d350341e03216df4b3c1fa27a85fcacc7
2023-11-21 20:27:25 +00:00
Treehugger Robot
49ce98e159 Merge "Add implementation of the API for Audio time delay synchronization in Video Call" into main 2023-11-16 17:01:16 +00:00
bodamnam
5b7654cef1 Add implementation of the API for Audio time delay synchronization in Video Call
This API provides a way to synchronize the audio and video streams in a video call. It allows you to request the RTP reception statistics for the audio stream at a given interval. These statistics include the jitter and delay of the audio stream. The API also allows you to set the delay adjustment for the audio session. The delay adjustment is calculated using the jitter and delay statistics from the requested session. By setting the delay adjustment, you can ensure that the audio and video streams are in sync.

Bug: 307446080
Test: mm
Change-Id: I39e211e308e913f0a2fd320dd4b8fd08491f227e
2023-11-16 03:52:39 +00:00
yomna
407a19111f Add cellular cryptography transparency HALs
Adds cellular cryptography transparency HALs:
- IRadioNetwork.setSecurityAlgorithmsUpdatedEnabled enables reporting
  of security algorithm updates from the modem via the new indication
  API IRadioNetworkIndication.securityAlgorithmsUpdated (default
  enabled)
- IRadioNetwork.isSecurityAlgorithmsUpdatedEnabled queries if the
  updates are enabled.
- Indication API: IRadioNetworkIndication.securityAlgorithmsUpdated
- Additionally, we introduce ConnectionEvent, SecurityAlgorithm, and
  SecurityAlgorithmUpdate to encapsulate relevant data from the modem.

Bug: b/283336425
Test: m
Change-Id: Icc3acd84edb210f8d885eea6e0f40aedbc586b1b
2023-11-16 00:34:20 +00:00
Joonhun Shin
30945ccbb5 Merge changes from topic "hal_telephony_feature_mapping" into main
* changes:
  update vts to enforce telephony feature mapping
  Add comment for HAL radio APIs and telephony feature mapping
2023-11-15 01:19:03 +00:00
joonhunshin
d519aead5b update vts to enforce telephony feature mapping
Bug: 297989574
Test: build pass
Change-Id: I74da66f0f066a9da3a97901b992ea02adf3fece2
2023-11-10 08:06:43 +00:00
Gil Cukierman
ffcae23519 Add Cellular Identifier Disclosure Transparency HAL APIs
Exposes new hardware APIs that allow the modem to inform
the OS when personal cellular identifiers are sent in
the clear before NAS security contexts are established. New APIs are:

IRadioNetwork
- isCellularIdentifierTransparencyEnabled
- setCellularIdentifierTransparencyEnabled

IRadioNetworkIndication
- cellularIdentifierDisclosed

Bug: 276752426
Change-Id: I6b1724be4d673e8d4723689a7cb58c9621f72fef
Test: atest VtsHalRadioTargetTest
2023-11-09 19:18:41 +00:00
arunvoddu
80f07414a6 Indication API for IMEI mapping change from radio
Bug: 294127356
Test: Built successfully
Change-Id: I8c95e2132bf70ec5fcae7a4c7f447e329bf3843d
2023-11-03 07:13:01 +00:00
Yomna Nasser
40238a5ed2 Merge "setNullCipherAndIntegrityEnabled VTS to no longer return REQUEST_NOT_SUPPORTED" into main 2023-10-18 21:01:47 +00:00
Thomas Nguyen
3254bd793d Revert "Add Satellite HAL APIs"
Revert submission 20583557-Satellite APIs

Reason for revert: Radio HAL for satellite APIs are not needed.

Reverted changes: /q/submissionid:20583557-Satellite+APIs

Bug: 304622222
Test: SMS, MMS, call with live network.
SatelliteManagerTestOnMockService SatelliteManagerTest SatelliteControllerTest
DatagramDispatcherTest DatagramReceiverTest SatelliteSOSMessageRecommenderTest
NtnCapabilityResolverTest ServiceStateTrackerTest VtsHalRadioTargetTest

Change-Id: If75532dea8ffb3c4827871a6c1719d5f8d54c4df
2023-10-16 10:49:51 -07:00
yomna
fd98b87223 setNullCipherAndIntegrityEnabled VTS to no longer return REQUEST_NOT_SUPPORTED
Mark setNullCipherAndIntegrityEnabled are required-to-support.

Bug: 303307414
Test: m & atest VtsHalRadioTargetTest
Change-Id: I05a4a0791f4cad2f3044778657ae2a13795433a7
2023-10-05 17:13:56 +00:00
Sarah Chin
0779ca2f23 Update VTS tests with EUTRAN instead of GERAN am: 88aa5f6bcd am: 1b01cb5caf am: 28559ee74b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24702788

Change-Id: I92c498e1fcbea0d6d0c8127d1f0e3d9c00544c0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 21:00:33 +00:00
Sarah Chin
88aa5f6bcd Update VTS tests with EUTRAN instead of GERAN
These tests were created for IRadio 1.2 when all devices supported GSM,
and REQUEST_NOT_SUPPORTED was valid for devices that didn't support GSM. Change the VTS logic to test EUTRAN instead of GERAN.
Remove REQUEST_NOT_SUPPORTED for tests now without GERAN and add REQUEST_NOT_SUPPORTED for all GERAN-specific tests.

Test: atest VtsHalRadioTargetTest
Bug: 294965245
Change-Id: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
2023-09-15 18:40:27 +00:00
Sarah Kim
9f7b41ae08 Merge "Add null check for osAppId" into stage-aosp-udc-ts-dev am: 848650fd00 am: b668cff7ff am: 98843a2b8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24698008

Change-Id: Ie974d9a85fa633142080a318ecddf4a69fb84626
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 22:56:21 +00:00
Sarah Chin
35bf8e1b50 Add null check for osAppId
Test: atest VtsHalRadioTargetTest
Bug: 297467393
Change-Id: Ib94d118765bf527ba51d5e7e29942cec6bff61c4
2023-09-07 23:19:41 +00:00
Hakjun Choi
6c346c13ff Merge "Revert "Add setSatellitePlmn() related HAL apis"" into main 2023-08-10 14:37:33 +00:00
Sarah Chin
a2d989f0ff VTS setGetAllowedNetworkTypesBitmap allow reset am: ba1c37e79b am: 80e0490502 am: f553053bb0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24304951

Change-Id: Ia4bcf96ca16c915d5fc4dcdae22c351587918bae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 21:34:59 +00:00
Hakjun Choi
a7c86be17f Revert "Add setSatellitePlmn() related HAL apis"
Revert submission 23748984-SATELLITE_ROAMING_PLMN

Reason for revert: satellite roaming plmn will be moved from radio network HAL to satellite modem interface, to reduce change revert first

Reverted changes: /q/submissionid:23748984-SATELLITE_ROAMING_PLMN

Change-Id: I292644110472dfa97a94db623d246682afdc90c8
2023-08-08 02:50:44 +00:00
Sarah Chin
ba1c37e79b VTS setGetAllowedNetworkTypesBitmap allow reset
If the test fails, the allowed network type bitmap will not be reset to
the previous value. Instead of using ASSERT_EQ, change to EXPECT_EQ to
allow the test to continue to the reset.

Test: atest VtsHalRadioTargetTest
Bug: 264913330
Change-Id: I719afa2e0d9ebc41a329f38f3eca597c9381f2f9
2023-08-03 09:06:41 +00:00
Hakjun Choi
77fe4802dd Add setSatellitePlmn() related HAL apis
Provide api to let modem know which are the satellite plmn

BUG: 287538011
Test: atest VtsHalRadioTargetTest
Test: MO/MT call, SMS, MMS in live network with a phone
Change-Id: I7be865098f67a1c7c0273d7b9b6508968618a0f3
2023-07-14 03:45:06 +00:00
liuxiangjun
1d611fec5f Return INVALID_ ARGUMENTS is the expected result am: 7ddd478150
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2648141

Change-Id: I3811ee46d22121f0809885efd2ef4cc0818fba76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-12 03:02:37 +00:00
Treehugger Robot
f566028519 Merge "Return INVALID_ ARGUMENTS is the expected result" am: 97af8becd7 am: 5bc5bccb6b am: 3644ef1604 am: 927e1b3bad am: 1b32fe63bd am: 273be36b0c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2648139

Change-Id: I7f5aa3cc5414607cafd0585fe79fa21cf809cde6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 09:52:37 +00:00
Treehugger Robot
927e1b3bad Merge "Return INVALID_ ARGUMENTS is the expected result" am: 97af8becd7 am: 5bc5bccb6b am: 3644ef1604
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2648139

Change-Id: I6eca7a0cdebc7d61eadfc35b94fdb8bd000e2bd3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 07:41:57 +00:00
liuxiangjun
7ddd478150 Return INVALID_ ARGUMENTS is the expected result
For devices not in LTE service, the vts test returns INVALID_ ARGUMENTS is an expected result

Bug:289756066

Test:
VtsHalRadioV1_5TargetTest  PerInstance/RadioHidlTest_v1_5#startNetworkScan/0_slot1
VtsHalRadioV1_5TargetTest  PerInstance/RadioHidlTest_v1_5#startNetworkScan/1_slot2

Change-Id: I873d51e089b27aa0cc0dc9f5f25fd8ffaa4d8f40
Signed-off-by: liuxiangjun <liuxiangjun3@xiaomi.com>
Merged-In: I873d51e089b27aa0cc0dc9f5f25fd8ffaa4d8f40
2023-07-06 05:16:22 +00:00
liuxiangjun
eddc6dc0ad Return INVALID_ ARGUMENTS is the expected result
For devices not in LTE service, the vts test returns INVALID_ ARGUMENTS is an expected result

Bug:289756066

Test:
VtsHalRadioV1_5TargetTest  PerInstance/RadioHidlTest_v1_5#startNetworkScan/0_slot1
VtsHalRadioV1_5TargetTest  PerInstance/RadioHidlTest_v1_5#startNetworkScan/1_slot2

Change-Id: I873d51e089b27aa0cc0dc9f5f25fd8ffaa4d8f40
Signed-off-by: liuxiangjun <liuxiangjun3@xiaomi.com>
2023-07-06 02:10:44 +00:00
Sarah Chin
bb35a4371e Clean up VtsHalRadioTargetTest
Refactor class design so RadioServiceTest extends TestWithParam and
each individual radio service test extends RadioServiceTest.
Move setup and teardown logic common to all classes to RadioServiceTest.
Add logs to print when each test starts/finishes to help debug issues.
Remove unused imports and fix some typos.
Change unique_lock to lock_guard in notify to prevent MTE errors.

Test: atest VtsHalRadioTargetTest on fullmte build
Bug: 263940636
Change-Id: I2f6844f07d4518c00d47f98e5e15bea0a809fa84
Merged-In: I2f6844f07d4518c00d47f98e5e15bea0a809fa84
2023-05-04 22:35:47 +00:00
Sarah Chin
a1efe7a0dd Clean up VtsHalRadioTargetTest
Refactor class design so RadioServiceTest extends TestWithParam and
each individual radio service test extends RadioServiceTest.
Move setup and teardown logic common to all classes to RadioServiceTest.
Add logs to print when each test starts/finishes to help debug issues.
Remove unused imports and fix some typos.
Change unique_lock to lock_guard in notify to prevent MTE errors.

Test: atest VtsHalRadioTargetTest on fullmte build
Bug: 263940636
Change-Id: I2f6844f07d4518c00d47f98e5e15bea0a809fa84
2023-05-04 15:33:57 -07:00
Treehugger Robot
13b18534b5 Merge "Backport VTS fixes to previous test versions" into udc-dev am: 3d35c2e75c am: 89d08942d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22912666

Change-Id: I41e75ebdc49d034458e054c6de23f2cb14f59554
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 23:42:46 +00:00
Sarah Chin
8ab8f0d1d8 Backport VTS fixes to previous test versions
Network scan check periodicity only if scan type is PERIODIC.
Fix MCC/MNC checks to handle null strings.

Test: atest VTS
Bug: 259674407
Change-Id: I77e0706f413ce9defb174f00ee145dcc01f5d780
Merged-In: I77e0706f413ce9defb174f00ee145dcc01f5d780
2023-04-28 16:28:09 -07:00
Treehugger Robot
3d35c2e75c Merge "Backport VTS fixes to previous test versions" into udc-dev 2023-04-28 23:12:07 +00:00
Jayachandran C
98b15ce956 Merge "Fix fail on RadioConfigTest#checkPortInfoExistsAndPortActive for dual-SIM detection" into android13-tests-dev am: 2b072c63c9 am: caf536d72a am: eaeb13c583
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2530680

Change-Id: I70a3f5264884508d3ae4da6f27a539d388bb1495
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 21:58:59 +00:00
Sarah Kim
2facc26b0c Merge "Fix broken and flaky VTS tests" 2023-04-28 18:29:25 +00:00
Sarah Chin
fc35c0797e Backport VTS fixes to previous test versions
Network scan check periodicity only if scan type is PERIODIC.
Fix MCC/MNC checks to handle null strings.

Test: atest VTS
Bug: 259674407
Change-Id: I77e0706f413ce9defb174f00ee145dcc01f5d780
2023-04-28 11:12:01 -07:00
Sarah Chin
658fdaaa2a Require SIM card for all VTS tests
We check SIM card status is PRESENT before running any VTS tests, so
ensure that it's enforced in the configs as well.

Test: atest VtsHalRadioTargetTest
Bug: 237504027
Change-Id: I1b2c317e21db118e4b957804feb76f266d887b20
Merged-In: I1b2c317e21db118e4b957804feb76f266d887b20
2023-04-27 18:44:23 -07:00
Sarah Chin
ddaea2e5a4 Fix broken and flaky VTS tests
1. nvResetConfig takes some time to reset the modem, causing subsequent
   tests to fail with a timeout since the modem is unavailabe.
   Add a timeout after nvResetConfig to allow the modem to be up again
   before running the next test.
2. Remove invalid errors for start/stopKeepalive. These tests should
   fail due to invalid arguments, so remove NONE as a possible error.
   RADIO_NOT_AVAILABLE should also be removed.
3. Fix incorrect startNetworkScan_InvalidInterval tests, since we only
   check the interval when the scan type is PERIODIC.
4. Save and reset the previous allowed network type bitmap after the
   test. Combine get/set into one test that tests both behaviors.
5. Fix checks for MCC/MNC in getDataRegistrationState

Bug: 277626718
Bug: 240953393
Bug: 264913330
Bug: 259674407
Bug: 242801688
Test: atest VtsHalRadioTargetTest
Change-Id: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
Merged-In: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
2023-04-27 18:43:06 -07:00
Jayachandran C
1abf1a652e Merge "Fix fail on RadioConfigTest#checkPortInfoExistsAndPortActive for dual-SIM detection" am: 569b04a197 am: e218309f1e am: 0f6b299632 am: c3461e6d77 am: fb6118c256
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2527586

Change-Id: I74c79eb095aa2a6a6f7bcba579d5d1d4caf6f9b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 03:49:05 +00:00
Jayachandran C
c3461e6d77 Merge "Fix fail on RadioConfigTest#checkPortInfoExistsAndPortActive for dual-SIM detection" am: 569b04a197 am: e218309f1e am: 0f6b299632
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2527586

Change-Id: I1755f5dc4b18501fb43e5240121fe89f2d62714f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 02:21:10 +00:00
Sarah Kim
bb1a1cbefa Merge "Fix broken and flaky VTS tests" into udc-dev am: a4ed84bab9 am: d2796a424a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22777024

Change-Id: I0dfdd08a3315cc74e374f4a7accf6bd1a41ad042
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 01:20:43 +00:00
Zhang Yuan
276189b7df Fix fail on RadioConfigTest#checkPortInfoExistsAndPortActive for dual-SIM detection
The code currently uses 'dsds' to detect dual-SIM configurations,
but it misses 'dsda' configurations, resulting in test failures.
Should use the detection mechanism by adding handling for 'dsda',
ensuring accurate detection of all dual-SIM configurations.

Bug: 277705768
Test: vts -m VtsHalRadioTargetTest -t PerInstance/RadioConfigTest#checkPortInfoExistsAndPortActive/0_android_hardware_radio_config_IRadioConfig_default

Change-Id: Ie73a958ff14e86f440831e18291b6599b6eac30b
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-04-25 21:16:42 +00:00
Zhang Yuan
961b3dccde Fix fail on RadioConfigTest#checkPortInfoExistsAndPortActive for dual-SIM detection
The code currently uses 'dsds' to detect dual-SIM configurations,
but it misses 'dsda' configurations, resulting in test failures.
Should use the detection mechanism by adding handling for 'dsda',
ensuring accurate detection of all dual-SIM configurations.

Bug: 277705768
Test: vts -m VtsHalRadioTargetTest -t PerInstance/RadioConfigTest#checkPortInfoExistsAndPortActive/0_android_hardware_radio_config_IRadioConfig_default

Change-Id: Ie73a958ff14e86f440831e18291b6599b6eac30b
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-04-25 21:14:42 +00:00