Commit graph

1957 commits

Author SHA1 Message Date
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
joonhunshin
b98ad6e840 Add comment for HAL radio APIs and telephony feature mapping
Bug: 297989574
Test: build pass
Change-Id: I5f143de9688823f3a2c2b241f4984a22d523470f
2023-11-10 07:44:34 +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
Jack Yu
7400ce9a6a Merge "Added Satellite messaging data support" into main 2023-10-20 15:58:42 +00:00
Jack Yu
7e31be1c00 Added Satellite messaging data support
1. Added RCS APN type which maps to RCS network capability. Note
   This APN type is not specific for satellite uses only. This
   can be used for regular single registration RCS.
2. Added a new tri-state field "infrastructure" in APN entry. The
   infrastructure type can be terrestrial only, non-terrestrial only, or
   both. This is for some APNs can be used when the device is attached
   to satellite.

Fix: 294065845
Test: atest ApnSettingTest DataNetworkControllerTest DataProfileManagerTest
      DataProfileTest TelephonyNetworkRequestTest
Test: Basic phone functionality tests
Change-Id: I15741cbefdb459155e278ef3d197d50c747405f0
2023-10-19 17:19:51 -07: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
Xin Li
11ee4fea87 Merge android14-tests-dev
Bug: 263910020
Merged-In: I770dc5620648df2eab608e030c5e76cf190f315d
Change-Id: If4fe726d538386d70061e8051299d8fb393ef5df
2023-10-10 16:17:14 -07:00
yomna
efc2c9ab56 Clarify IRadioNetwork also applies to satellite-based cellular connections.
Clarify the functionality specified in IRadioNetwork applies to both
terrestrial (earth-based) and extraterrestrial (satellite-based)
cellular networks.

Bug: 301483855
Test: m
Change-Id: Id8d1508c68cbca868fc3471f0840883eeca163c7
2023-10-05 20:17:33 +00: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 Kim
80000b39d6 Merge "Update VTS tests with EUTRAN instead of GERAN" into main am: 481316f2d6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2745917

Change-Id: I47915bf6d59afe8c799d4fdeac3deaa238935b7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 22:45:06 +00:00
Sarah Kim
481316f2d6 Merge "Update VTS tests with EUTRAN instead of GERAN" into main 2023-09-15 21:59:58 +00:00
Sarah Chin
947f486737 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
Merged-In: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
2023-09-15 21:10:01 +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
Treehugger Robot
e2f2569e5a Merge "Merge OWNERS files for radio" into main am: 62431377b5 am: 73794557cf am: 54a26c13fc am: c16f79b27d am: e62e8f72d7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2747193

Change-Id: Ifda51e6d9c5e4baa42f2861356223eae31e27b28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 19:52:53 +00:00
Treehugger Robot
54a26c13fc Merge "Merge OWNERS files for radio" into main am: 62431377b5 am: 73794557cf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2747193

Change-Id: I08a7fbdca8f6c6c9f09de0a8a9af5fde3f37a9e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 17:22:35 +00:00
Treehugger Robot
73794557cf Merge "Merge OWNERS files for radio" into main am: 62431377b5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2747193

Change-Id: Ie4457ad03041d85f9c9746dbc01b86dbb8ca5003
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 17:18:36 +00:00
Devin Moore
4d8a6562e6 Merge OWNERS files for radio
Test: none
Bug: 296950573
Change-Id: I2bb2bc894d7631e41f3651076b1a8d64400d65c1
2023-09-08 23:13:57 +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
Xin Li
2b8cabe73b Merge UP1A.230905.019
Merged-In: I421c13e65efa565753337dc21e6520682e726e81
Change-Id: Iaaa4cbec5d7892432e021da508deff68829e3c4b
2023-08-31 12:31:10 -07:00
Xin Li
879960bdce Merge Android U (ab/10368041)
Bug: 291102124
Merged-In: I7b6fffac2ada0e039f79bad8cc9b4d954e9c3460
Change-Id: I9466127d8d0fa38df36ca99f704853b2db871e67
2023-08-25 13:29:30 -07: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
Sarah Chin
f31ca4ee5c Set per-test timeout for IRadio 1.2-1.6 VTS to 5m am: f0c772199b am: 76474a3b7c am: 77c96ccf13 am: af716de58e am: fad8c02770
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24232539

Change-Id: I66a416950e7770266d6f37240be1de9f3ba1236f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 06:31:25 +00:00
Sarah Chin
9049f9d569 Set per-test timeout for IRadio 1.2-1.6 VTS to 5m
To be consistent with the timeout set in IRadio 1.0/1.1 VTS
This increases the timeout per-test, but there is still a timeout
for all tests in the module to complete.

Test: atest VtsHalRadioV1_*TargetTest for all
Bug: 292197532
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f0c772199bde052764a697b6de478851126fa596)
Merged-In: I421c13e65efa565753337dc21e6520682e726e81
Change-Id: I421c13e65efa565753337dc21e6520682e726e81
2023-07-28 01:51:04 +00:00
Sarah Chin
f0c772199b Set per-test timeout for IRadio 1.2-1.6 VTS to 5m
To be consistent with the timeout set in IRadio 1.0/1.1 VTS
This increases the timeout per-test, but there is still a timeout
for all tests in the module to complete.

Test: atest VtsHalRadioV1_*TargetTest for all
Bug: 292197532
Change-Id: I421c13e65efa565753337dc21e6520682e726e81
2023-07-27 20:55:03 +00:00
Aishwarya Mallampati
ad1586dfe8 Merge "Revert "Block data call"" into main 2023-07-18 22:15:39 +00:00
Aishwarya Mallampati
7ee5f52f28 Revert "Block data call"
This reverts commit e94dd21fdc.

Reason for revert: Replace SATELLITE_ENABLED with SERVICE_OPTION_NOT_SUPPORTED

Change-Id: Icda920e607cf4bf0517fbf97547d86144c0051f1
2023-07-18 02:33:02 +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
Aishwarya Mallampati
90cbcefd8e Merge "Block data call" into main 2023-07-12 22:39:45 +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
Aishwarya Mallamapti
e94dd21fdc Block data call
If network is a non-terrestrial network, block data requests with
NET_CAPABILITY_INTERNET.

Bug: 287114765
Test: Flashed build on raven-userdebug and performed basic functionality
tests,
atest DataNetworkControllerTest#testNonTerrestrialNetworkChanged

Change-Id: Ie21183b093d006f2d9b0bb00845d06965a52f812
2023-07-11 21:44:50 +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
dc67668dcb Add @hide and @JavaDerive(toString) for IRadio AIDL
Add @hide for all classes
Add @JavaDerive(toString=true) for classes that are missing it
Fix AIDL formatting issues

Bug: 280900995
Test: build
Change-Id: I812fbadd9da272b604ff3dcd6828952bc55239e9
2023-05-06 10:16:16 +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
Sarah Kim
18cd0f0954 Merge "Fix broken and flaky VTS tests" into android12-tests-dev am: 3323c87bfa am: c5bde9bbcd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2572133

Change-Id: I462f8665e402cdeeef80b0babd184400fbc66a40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 19:24:06 +00:00
Sarah Kim
c5bde9bbcd Merge "Fix broken and flaky VTS tests" into android12-tests-dev am: 3323c87bfa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2572133

Change-Id: Ia3a9b69291efc526cfe8a2161145d563edf6ee4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 18:47:23 +00:00
Sarah Chin
0aae7cccd0 Backport VTS fixes to previous test versions am: 526a3a297b am: 64816a99b9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2574430

Change-Id: If38943222d0d5687f7f12866ad147401c4ee8292
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 18:21:42 +00:00
Sarah Kim
3323c87bfa Merge "Fix broken and flaky VTS tests" into android12-tests-dev 2023-05-01 18:06:17 +00:00
Sarah Chin
64816a99b9 Backport VTS fixes to previous test versions am: 526a3a297b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2574430

Change-Id: Icc1838d577a8bd1dae4ca8b5b0524779354346c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 17:43:32 +00:00
Sarah Chin
526a3a297b 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
(cherry picked from commit 8ab8f0d1d8)
2023-04-30 23:48:50 +00:00
Sarah Chin
5b303d2fbb Require SIM card for all VTS tests am: 9426eab44a am: 9973f65f95
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2569893

Change-Id: I934fe99e216d7e967d30861d6ca8b8e46b3e2b5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-29 21:35:27 +00:00
Sarah Chin
9973f65f95 Require SIM card for all VTS tests am: 9426eab44a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2569893

Change-Id: I2769b1f7e7da440cfa4d6e8d85d59eaa5af63148
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-29 21:01:30 +00: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 Chin
7f3bd1792f Fix broken and flaky VTS tests
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.

Bug: 259674407
Test: atest VtsHalRadioTargetTest
Change-Id: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
Merged-In: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
(cherry picked from commit ddaea2e5a4)
2023-04-28 18:33:08 +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
9426eab44a 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: 249143796
Change-Id: I1b2c317e21db118e4b957804feb76f266d887b20
Merged-In: I1b2c317e21db118e4b957804feb76f266d887b20
(cherry picked from commit 658fdaaa2a)
2023-04-28 07:05:09 +00: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
Sarah Chin
757a75879f 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
2023-04-20 16:37:10 -07:00
Muralidhar Reddy Mule
96b7f806c6 Merge "Add cuttlefish support for iccCloseLogicalChannelWithSessionInfo HAl 2.1 API" into udc-dev am: be44d36ed7 am: 7b178e8722
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22648201

Change-Id: I06d072da40c6899318ab21457bf8ae7f500d3519
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 14:19:44 +00:00
Muralidhar Reddy Mule
be44d36ed7 Merge "Add cuttlefish support for iccCloseLogicalChannelWithSessionInfo HAl 2.1 API" into udc-dev 2023-04-18 13:30:25 +00:00
Sarah Kim
5fe08b689c Merge "Require SIM card for all VTS tests" into udc-dev am: 1feae91137 am: 1bb5c687f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22691443

Change-Id: Ie9535ecd63f1629479c45522aabf9ec6f12a22e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 05:25:18 +00:00
Sarah Kim
1feae91137 Merge "Require SIM card for all VTS tests" into udc-dev 2023-04-18 04:49:00 +00:00
Muralidhar Reddy
b27377ceb4 Add cuttlefish support for iccCloseLogicalChannelWithSessionInfo HAl 2.1 API
Bug: 268496310
Test: atest VtsHalRadioTargetTest:PerInstance/RadioSimTest, atest CtsCarrierApiTestCases:android.carrierapi.cts.CarrierApiTest#testIccCloseLogicalChannel
Change-Id: I3ce5fcb066e10fd65a605d1700721da37d97febb
2023-04-18 02:32:50 +00:00
Sarah Chin
899b03c945 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
2023-04-17 16:55:33 -07:00
Steven Moreland
771b5c19f3 Re-enable radio satellite tests. radio to V3
This moves everything to radio-V3. What happened was satellite-V1 was
added with changes to the radio HAL in master. When radio-V2 was
frozen on goog/master, this showed up as radio-V2 having backwards
incompatible changes in goog/master. So I disabled the build files
there. Now that radio-V2 is frozen, we can re-enable the usage
of radio-V3 types in master (the VTS test was the only thing using
these new types).

In order to resolve this, I’ve moved all the radio libs over to V3.
Ideally, we could have moved one service over at a time, as
"satellite" support was needed. Though I’ve done this expecting other
radio libs to change in V3, this will mean we don’t expect more radio
.bp changes in Android V.

One alternative to this would have been to change the other radio libs
to import V3, but this is considered somewhat of a hack, and it would be
guaranteed to break any vendor-owned builds. With the current change,
vendor-owned build configs should still work as-is until they manually
add satellite.

Test: hal_implementation_test, vts_treble_vintf_vendor_test
Bug: 277379745

Change-Id: Iedc3097a9db58c0539e4aa61d089ee9d1986d51f
2023-04-13 17:46:23 +00:00
Muralidhar Reddy Mule
4653203743 Merge "Ignore new tests of IRadioSim, IRadioModem V2 in devices with V1" into udc-dev am: fe20b8a86e am: 7d6aa4a01f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22576227

Change-Id: I1231b7e1a2dcd6c54be686f03d35865a892650fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-12 20:50:58 +00:00
Muralidhar Reddy
eb1c617446 Ignore new tests of IRadioSim, IRadioModem V2 in devices with V1
Bug: 270513760
Test: atest VtsHalRadioTargetTest:PerInstance/RadioSimTest, atest VtsHalRadioTargetTest:PerInstance/RadioModemTest
Change-Id: Ia981f1f341c6d2ebe3c7ff768505057140c9d718
2023-04-12 12:57:17 +00:00
Treehugger Robot
43f4354ee8 Merge "Update Vts for getSlicingConfig" am: 2d79edf1d8 am: 913f780979 am: 20e72e98bc am: 42df448bed am: 612dd0f307
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2430052

Change-Id: Ibefa9e2b8a395e7aa6321d51f275f0374531569a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-11 07:21:00 +00:00
Treehugger Robot
42df448bed Merge "Update Vts for getSlicingConfig" am: 2d79edf1d8 am: 913f780979 am: 20e72e98bc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2430052

Change-Id: Id24d00b7d308a54e46231c975061390fc7114b11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-11 06:21:24 +00:00
Hunsuk Choi
69477cb6be Merge "Ignore new tests for IRadioNetwork V2 in devices with V1" into udc-dev am: 2c0b8e55c9 am: b735b8347d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22548924

Change-Id: I88f6b765ec2510e1fcbe7aacb3b76cc52f8b9920
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-11 03:36:53 +00:00
Hunsuk Choi
2c0b8e55c9 Merge "Ignore new tests for IRadioNetwork V2 in devices with V1" into udc-dev 2023-04-11 02:14:17 +00:00
Alex Buynytskyy
ab98b5f9e8 Merge "UpsideDownCake is now 34" into udc-dev am: 1deeb7fabf am: 2f9fca94a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22462586

Change-Id: Ia0d5c1325d2848bad0052e18951ff405b6e025cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-11 01:41:53 +00:00
Hunsuk Choi
ee588b2cd3 Ignore new tests for IRadioNetwork V2 in devices with V1
Bug: 277537061
Test: atest VtsHalRadioTargetTest:PerInstance/RadioNetworkTest
Change-Id: I902c736017bf0f2aad0bd9077ca29f4480293369
2023-04-11 00:17:24 +00:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Steven Moreland
ae7e4b0ee2 Disable radio satellite tests.
This is causing conflicts with Android U finalization
because when it lands, version 3 of radio doesn't exist
in Android U yet.

The radio interface should have already been frozen. This
is a temporary change to land finalization, and we'll follow
up to improve it later.

Bug: 277379745
Test: finalization compiles, run test on cf
Change-Id: I53ba9ee1a2657d3f18913f5fcce817105bb7f357
2023-04-07 22:11:25 +00:00
Pavan Kumar M
8b5cf0ca14 Update Vts for getSlicingConfig
Currently getSlicingConfigAPI always returns NOT_SUPPORTED.
But GetSlicingConfig is supported in Android U. and VTS will fail.

This change updates the expected errorcodes for getSlicingConfig API.

Tests: Builds, Boots, RadioDataTest
Bug: 228996685
Change-Id: I10cf7b0b9ba09e56605d5a498ec48c4b8972f00b
2023-04-05 16:44:49 +05:30
Chen Baoyu
25c7b28110 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan. am: a2881ffbd0 am: 4dc8eaba99 am: 0e10316efa am: 5a9285f1a0 am: 890178201a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2496776

Change-Id: I3c59d7d4d91912ccff2402fd520caac43ddd26be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 20:12:54 +00:00
Chen Baoyu
5a9285f1a0 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan. am: a2881ffbd0 am: 4dc8eaba99 am: 0e10316efa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2496776

Change-Id: I8cad7dab8887cf979e25f4fe689218800d5950f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 19:25:41 +00:00
Chen Baoyu
2154b45320 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan. am: a2881ffbd0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2496776

Change-Id: I59fa870664976566743a608e857cb91d7907efa4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 18:27:43 +00:00
Chen Baoyu
a2881ffbd0 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan.
Bad safe_union access is raised by calling the GET method of
eutranBands(), because in default ctor of safe_union RadioAccessSpecifier::Bands
hidl_d is assigned with hidl_discriminator::geranBands, which conflicts
with hidl_discriminator::eutranBands, and leads to crash.

Should use the SET method of eutranBands(&) for assignment purpose.

Fix: 275077563
Bug: 271642958
Change-Id: Ie241e8968eb7f9a1297203be2ab4e0a1bf738dea
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-03-24 17:56:53 +00:00
Jack Yu
fa96879d14 Used LTE bands for network scan am: 87abf6a366 am: 708539cec7 am: d4b2a2b91d am: ecd6c2c33d am: 47118e5eae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2493495

Change-Id: I151009515e9dc7f85a7e5f3062074c08b356e12f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 06:01:40 +00:00
Jack Yu
ecd6c2c33d Used LTE bands for network scan am: 87abf6a366 am: 708539cec7 am: d4b2a2b91d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2493495

Change-Id: Ic16fb270c302758dd11f2636a15d6df9b49fdee0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 04:45:45 +00:00
Jack Yu
ba41b92e54 Used LTE bands for network scan am: 87abf6a366
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2493495

Change-Id: I437d499c79368cbc6a35c9a730bbcc94adde8060
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 03:16:19 +00:00
Jack Yu
87abf6a366 Used LTE bands for network scan
Test with LTE bands, which are supported by every device
in the world.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Change-Id: Ibc71a69b1a9aeec506a35fac9f64ecad80371155
2023-03-17 00:05:34 +00:00
Jack Yu
fd5600a986 Merge "Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed." am: 86bc150058 am: bc00ee0af0 am: 52e70ec981 am: a80f6f7c96 am: 9b3d0f93d0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471285

Change-Id: I0f1a0a2ef395106a248752d84cd3d350422a7d2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 22:46:49 +00:00
Jack Yu
a80f6f7c96 Merge "Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed." am: 86bc150058 am: bc00ee0af0 am: 52e70ec981
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471285

Change-Id: Ic31fd5f850ab50847e896f30952bc6de45db1edd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 21:25:05 +00:00
Zhang Yuan
399c257ece Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed.
For those devices which does not support GSM, returning is not
supported or invalid arguments are the expected behavior.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Merged-In: I3ac7407fdee82348411db99d340613e62f36a277
Change-Id: I3ac7407fdee82348411db99d340613e62f36a277
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
(cherry picked from commit 5bf6d5777a)
2023-03-14 19:08:46 +00:00
Zhang Yuan
5bf6d5777a Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed.
For those devices which does not support GSM, returning is not
supported or invalid arguments are the expected behavior.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Change-Id: I3ac7407fdee82348411db99d340613e62f36a277
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-03-13 19:01:10 -07:00
Thomas Nguyen
82d90d086f Merge "DO NOT MERGE Revert "Add Satellite HAL APIs"" into udc-dev 2023-03-11 01:37:02 +00:00
Thomas Nguyen
89e5fc4f5d DO NOT MERGE Revert "Add Satellite HAL APIs"
Revert submission 20583557-Satellite APIs

Reason for revert: We need to revert these changes for U

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

Bug: 271297374
Test: Call and SMS/MMS with live network.
atest TelephonyManagerTestOnMockModem
atest VtsHalRadioTargetTest
atest com.android.cellbroadcastreceiver.compliancetests.CellBroadcastConfigTest
atest android.telephony.cts.TelephonyManagerTest
atest android.telephony.cts.SatelliteManagerTest

Change-Id: I7ada8e72d77543f1ac03b267d61e8fd037ec3708
2023-03-05 14:48:08 -08:00