Commit graph

1498 commits

Author SHA1 Message Date
Devin Moore
e8b22c1da1 Add changes to Radio V1 AIDL interfaces
During the API freeze some of the sub-interfaces of radio were frozen
without the latest change adding "@Javaderive(toString=true)".
Instead of creating V2 with these changes, we are updating V1 to include
these changes instead. The change will not break anyone downstream, and
any devices built with the previous V1 will continue to work. The hashes
of the original V1 interfaces are still included in the .hash files, so
VTS will allow both.

Steps taken:
m android.hardware.radio.config-freeze-api
rm aidl_api/android.hardware.radio.config/2/.hash
cp -r aidl_api/android.hardware.radio.config/2/*
    aidl_api/android.hardware.radio.config/1/
rm -rf aidl_api/android.hardware.radio.config/2/
vim Android.bp # remove the newly created version 2
system/tools/aidl/build/hash_gen.sh aidl_api/android.hardware.radio.config/1/
    latest-version aidl_api/android.hardware.radio.config/1/.hash

Test: atest hal_implementation_test
Bug: 225941299
Change-Id: Id14cfffd326bd664acb678f15f4129d85ce251b2
Merged-In: Id14cfffd326bd664acb678f15f4129d85ce251b2
2022-05-12 15:52:53 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Tim Lin
3c4b22cef2 check all active ports
Bug: 226018537
Test: run vts -m VtsHalRadioTargetTest
Change-Id: Ie3d8f7387ebb2846ea772d4f879039a127282c9a
2022-04-12 21:24:03 +08:00
Rambo Wang
8431b21a7b Merge "Add VTS test case to cover multiple RANs per request" into tm-dev 2022-04-09 01:05:07 +00:00
Rambo Wang
926d66ed00 Add VTS test case to cover multiple RANs per request
Test IRadioNetwork.setSignalStrengthReportingCriteria should
support multiple RANs per request.

Bug: 206857183
Test: atest VtsHalRadioTargetTest
Change-Id: I9d48029b4c2f5c36c7f48c9712c17dbdcf890dc4
2022-04-08 11:40:44 -07:00
Tim Lin
4370ecf4e7 wait for response before running next TC
All TCs store RadioResponseInfo in a shared variable and
read it to verify the result. So there is race condition
problem if we don't wait for responses.

Bug: 228593077
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I45e60f324926588c55abd0a719fd55352767a3eb
2022-04-08 22:54:51 +08:00
Tim Lin
c19a0bb019 set SIM slots mapping based on current mapping
If we set the SIM slots mapping arbitrarily on single SIM enabled
device, the SIM state could become absent and cause other TCs fail.

Bug: 227693614
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I2c8d3a162e1dca5a0bd6cfe93a1cc269f4c25188
2022-04-08 22:30:47 +08:00
Tim Lin
62cf454638 fix infinite loop in enableModem TC
Bug: 227585563
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I879faa5ecef026865d17ad1a23e52cb9f8f70454
2022-04-07 09:35:15 +08:00
Treehugger Robot
1f31b6e68b Merge "Enable host support for IRadio AIDL" am: d9c19eda92 am: fc1b5d8c73 am: b349f550fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2056267

Change-Id: I00a9f6a21fcbf0e9ca05abe261338a23cd9636b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-05 22:37:48 +00:00
Treehugger Robot
d9c19eda92 Merge "Enable host support for IRadio AIDL" 2022-04-05 21:34:47 +00:00
Sarah Chin
57556fbde4 Enable host support for IRadio AIDL
Test: build
Bug: 227504826
Change-Id: Id444cd20944de3679b27667f2419d25f5c040f65
2022-04-05 12:01:35 -07:00
Jiyong Park
7faedf81a0 Merge changes from topic "aidl_freeze_tm" into tm-dev
* changes:
  Implement getInterfaceHash/Version for SoundTrigger
  Add -Wno-missing-permission-annotation for soundtrigger3
  V3 is the latest version of keymaster HAL interface
  Freeze AIDL APIs for TM
2022-04-02 00:15:20 +00:00
Tim Lin
fd854fe699 fix SIM related VTS failures
1. Add 6s delay after setSimSlotsMapping because modem needs time to
   process SIM configuration change. The next TC could fail at
   checking SIM status if there is no delay. The default SIM
   configuration on my test device is that physical#0 maps to
   logical#1 and physical#1 maps to logical#0. When running
   setSimSlotsMapping, it then becomes physical#0 maps to logical#0
   and physical#1 maps to logical#1.
2. Support DSDS case and TSTS case for setSimSlotsMapping. The
   original code only set for 1 slot and it caused 2nd slot SIM
   absent when testing with DSDS enabled.
3. Set slotStatus from corresponding physical slot for
   setSimCardPower.

Bug: 227579281
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I8c12cb1dbc439655f9de88b1e217b3f34e44ebeb
Merged-In: I8c12cb1dbc439655f9de88b1e217b3f34e44ebeb
2022-04-02 00:58:38 +08:00
Sandeep Jawalkar
89d877e914 Merge "VTS testcases for HAL API setSimSlotMapping" 2022-04-01 16:56:30 +00:00
sandeepjs
3bb500068d VTS testcases for HAL API setSimSlotMapping
To accomodate MEP, we have updated the setSimSlotMapping API in the HAL,
Writing the tescases to check functionality of the same.

Test: atest VtsHalRadioTargetTest
Bug: 217665559
Change-Id: Idbff19db2e536d3c2f7b80afbbf244575d8247d0
Merged-In: Idbff19db2e536d3c2f7b80afbbf244575d8247d0
2022-04-01 15:53:21 +00:00
Tim Lin
8a6a1d38dc fix SIM related VTS failures
1. Add 6s delay after setSimSlotsMapping because modem needs time to
   process SIM configuration change. The next TC could fail at
   checking SIM status if there is no delay. The default SIM
   configuration on my test device is that physical#0 maps to
   logical#1 and physical#1 maps to logical#0. When running
   setSimSlotsMapping, it then becomes physical#0 maps to logical#0
   and physical#1 maps to logical#1.
2. Support DSDS case and TSTS case for setSimSlotsMapping. The
   original code only set for 1 slot and it caused 2nd slot SIM
   absent when testing with DSDS enabled.
3. Set slotStatus from corresponding physical slot for
   setSimCardPower.

Bug: 227579281
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I8c12cb1dbc439655f9de88b1e217b3f34e44ebeb
2022-04-01 09:12:40 +08:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Sarah Chin
42b57166ab Add JavaDerive toString to AIDL classes
Test: manually verify logcat
Bug: 223230764
Change-Id: If6d459823d3d6ceb0d7c49ba00f01268482128f6
Merged-In: If6d459823d3d6ceb0d7c49ba00f01268482128f6
2022-03-29 11:46:52 -07:00
Sarah Chin
da10904e96 Add JavaDerive toString to AIDL classes
Test: manually verify logcat
Bug: 223230764
Change-Id: If6d459823d3d6ceb0d7c49ba00f01268482128f6
2022-03-24 12:41:42 -07:00
Sarah Chin
1b51643add Merge "Enable IRadio AIDL VTS tests" 2022-03-21 17:55:44 +00:00
Sarah Chin
eaf2660625 Fix AIDL VTS setup
Setup code was causing all tests to be ignored on devices with AIDL HAL.
Fix the setup code and increase GTEST timeout to prevent the test suite
from crashing.

Test: atest VtsHalRadioTargetTest
Bug: 225032427
Change-Id: Ice60f7fae313863e97e425994bee5ad1d703c807
Merged-In: Ice60f7fae313863e97e425994bee5ad1d703c807
2022-03-20 19:56:26 -07:00
Sarah Chin
e555400a9d Enable IRadio AIDL VTS tests
Fix failing SIM tests so test suite can be enabled

Test: atest VtsHalRadioTargetTest passes
Bug: 217574863
Change-Id: Id7ac87ca6da799df4af983cd295a4234e75565d2
Merged-In: Id7ac87ca6da799df4af983cd295a4234e75565d2
2022-03-18 11:28:40 -07:00
Gary Jian
97347c1fa6 Merge "Fix type conversion from aidl::AccessNetworks to hidl::RadioAccessNetworks" am: b9fbe11dfe am: 96d037bf93 am: 4315111833
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2026284

Change-Id: Ic7bf25de751e9db4cc646d7411ae5c5f7478fe43
2022-03-18 04:46:47 +00:00
Wilson Sung
5c2dfc5e40 Merge "Declare android.hardware.radio@1.6 as system_ext module" into tm-dev 2022-03-17 19:41:05 +00:00
Gary Jian
b611de7c3a Fix type conversion from aidl::AccessNetworks to hidl::RadioAccessNetworks
aidl::AccessNetworks and hidl::RadioAccessNetworks has a different enum

Bug: 223770908
Test: manual
Change-Id: Idd20d77c0090567a4e88334061ecd44415500000
2022-03-17 10:48:30 +08:00
Sarah Chin
5da33a22ac Fix AIDL VTS setup
Setup code was causing all tests to be ignored on devices with AIDL HAL.
Fix the setup code and increase GTEST timeout to prevent the test suite
from crashing.

Test: atest VtsHalRadioTargetTest
Bug: 225032427
Change-Id: Ice60f7fae313863e97e425994bee5ad1d703c807
2022-03-16 16:55:26 -07:00
ChihYao Chien
f6c4ef8507 Declare android.hardware.radio@1.6 as system_ext module
Minor versions of android.hardware.radio were all declared but version 1.6

Bug: 207067211
Change-Id: Ib77a9b6daa2e70983e9a37716f3f7b059ec1f97f
2022-03-16 02:28:56 +00:00
Treehugger Robot
5ee0d1534e Merge "Add ApnType.ENTERPRISE" 2022-03-09 17:17:40 +00:00
Sarah Chin
7044a51c4f DeactivateDataCall remove network on all errors
Remove network on all errors instead of only RADIO_NOT_AVAIALBLE.

Test: atest DataNetworkTest
Bug: 219998284
Change-Id: I9e36829c627c7fa1286174e536ef5ff561e8b142
2022-03-07 16:02:17 -08:00
Sarah Chin
2bb879d8bb Update documentation for data call list APIs
Test: build
Bug: 221174412
Change-Id: Ibab472f979815cdbec3ce64d7855c7a21fdbec01
2022-03-07 10:54:24 -08:00
Chih-hung Hsieh
34593d4e2a Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: fa83970b3a am: 581616e658
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232

Change-Id: I2eac13fe3b5ab0b4f15d6ceadf376e5e74124a81
2022-02-24 01:32:09 +00:00
sandeepjs
5561b4baba VTS testcases for HAL API setSimSlotMapping
To accomodate MEP, we have updated the setSimSlotMapping API in the HAL,
Writing the tescases to check functionality of the same.

Test: atest VtsHalRadioTargetTest
Bug: 217665559
Change-Id: Idbff19db2e536d3c2f7b80afbbf244575d8247d0
Merged-In: Idbff19db2e536d3c2f7b80afbbf244575d8247d0
(cherry picked from commit 2a01674368)
2022-02-23 05:45:23 +00:00
Chih-Hung Hsieh
ad1bf31b78 Add timed out test files to tidy_timeout_srcs
* Timed out runs do not show any warning messages.
* These test files cannot finish clang-tidy runs with
  the following settings:
    TIDY_TIMEOUT=90
    WITH_TIDY=1
    CLANG_ANALYZER_CHECKS=1
* When TIDY_TIMEOUT is set, in Android continuous builds,
  tidy_timeout_srcs files will not be compiled by clang-tidy.
  When developers build locally without TIDY_TIMEOUT,
  tidy_timeout_srcs files will be compiled.
* Some of these test modules may be split into smaller ones,
  or disable some time consuming checks, and then
  enable clang-tidy to run within limited time.

Bug: 201099167
Test: make droid tidy-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-18 17:25:41 -08:00
TreeHugger Robot
258ceccf20 Merge "Enable IRadio AIDL VTS tests" 2022-02-16 22:56:12 +00:00
Sarah Chin
0623bdd5fc Enable IRadio AIDL VTS tests
Fix failing SIM tests so test suite can be enabled

Test: atest VtsHalRadioTargetTest passes
Bug: 217574863
Change-Id: Id7ac87ca6da799df4af983cd295a4234e75565d2
2022-02-16 11:11:44 -08:00
Gary Jian
24b8a977f7 Merge "Add VTS test for VoNR apis on IRadio aidl" am: c8407c2a5d am: 5e547de67d am: d35971b734
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1981666

Change-Id: I5e4d8952a2719a0558ceca4de820196947863b4c
2022-02-16 13:18:11 +00:00
Gary Jian
c8407c2a5d Merge "Add VTS test for VoNR apis on IRadio aidl" 2022-02-16 08:21:46 +00:00
Gary Jian
66db5dd070 Add VTS test for VoNR apis on IRadio aidl
Bug: 217987026
Test: atest VtsHalRadioTargetTest
Change-Id: Id9e36f41d95e7b4000c33a00a9c5e1b48b108427
2022-02-15 05:29:55 +00:00
Treehugger Robot
8e64385bc4 Merge "Run SAP tests on slots based on configs" am: ef8b4bee56 am: a16e677d82 am: 6a57e5041d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1968993

Change-Id: Ic79f503fe35621651294c99dfe8d1f37ff4edd36
2022-02-15 05:27:21 +00:00
Treehugger Robot
ef8b4bee56 Merge "Run SAP tests on slots based on configs" 2022-02-15 04:34:04 +00:00
Nathan Harold
2e0754c8d0 Merge "Update UsageSetting Cache before comparison in VTS" am: 630637627f am: af9e5f36a9 am: 5227cdb664 am: 8a5ce406f8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1973539

Change-Id: I901713e998da0f12a9aa00b12ad5106a64d7b4a1
2022-02-07 23:02:43 +00:00
Nathan Harold
630637627f Merge "Update UsageSetting Cache before comparison in VTS" 2022-02-07 21:59:57 +00:00
Tomasz Wasilczyk
896b7ab730 Expose response methods for services using compat library
Bug: 211819471
Test: it builds
Change-Id: I1fecf05fa8c5c862f18cbc6c974bb9d6a6d39892
2022-02-07 10:13:01 -08:00
Roopa Sattiraju
1313a7579f Merge "Adding bluetooth apex" am: 7a79c11c44 am: a550c194fd am: 5ca1ea4a5a am: 3a34670645
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1932846

Change-Id: Ibc1f58456879edf11adb3706f354ddaa400e5db6
2022-02-05 06:45:12 +00:00
Roopa Sattiraju
7a79c11c44 Merge "Adding bluetooth apex" 2022-02-05 05:56:15 +00:00
Roopa Sattiraju
e01400a7e4 Adding bluetooth apex
Bluetooth uses ISAP interfaces which are radio 1.0 HIDL implementation.
ISAP is not migrated to AIDL and would need to be migrated only if adding
any new interfaces to ISAP. Since the usage is only in 1.0 and 1.1 and 1.2
would be backward compatible, adding bluetooth apex only to radio 1.0.


Bug: 206121418
Test: Compile
Change-Id: I4f387fb0a36518cbef99084421a90a5d2f5c26c2
2022-02-05 00:38:40 +00:00
Nathan Harold
374bec341f Update UsageSetting Cache before comparison in VTS
The final step of the RadioNewtorkTest#setUsageSetting
is to restore the original value to the modem in case it was
changed. After doing that, the locally cached value in the
VTS layer needs to be updated before comparing it with the
originally queried value to ensure that the modem was
restored to its initial state.

Bug: 211819471
Test: m VtsHalRadioTargetTest
Change-Id: Ibdd584d91b16bb779a0cefa2f45d2704cdcf7288
2022-02-04 14:41:00 -08:00
Sarah Chin
6c256dbca4 Run SAP tests on slots based on configs
Test: atest VtsHalSapV1_0TargetTest
Bug: 210436956
Change-Id: I203446a76f160802775f20032331990674718df5
2022-02-02 16:07:18 -08:00
Sarah Chin
56afc52333 Merge "Make TrafficDescriptor nonnull in DataProfileInfo" am: a2932530f3 am: 5488a5343c am: b0c525caac am: 893ba1f650
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1965507

Change-Id: Ibb0e6fa80eedc585fdee10a70c532175453ce3f8
2022-01-31 22:19:47 +00:00
Sarah Chin
f746a91d93 Final API changes for IRadio
Remove CarrierRestrictions#priority
Move USSD from messaging -> voice
Rename DataProfileInfo#TYPE_THREE_GPP/2 -> TYPE_3GPP2
Remove neighboring CID APIs

Test: atest VtsHalRadioTargetTest
Bug: 199433581
Bug: 216688606
Change-Id: I621d99b8024f92709bcb675b667bcba678eede9b
Merged-In: I621d99b8024f92709bcb675b667bcba678eede9b
2022-01-31 13:29:03 -08:00