Commit graph

959 commits

Author SHA1 Message Date
Jordan Liu
9ed871fc20 Fix bad merge of aosp/1220298
Bug: 158872011
Test: atest
Change-Id: Ife92d607df5442febab86ed61c3edc24d904b36b
2020-06-12 14:43:22 -07:00
Dan Shi
b2dd35aaf2 Disable framework for some VTS tests
The test doesn't need framework. It seems that the test can be flaky
when framework was stop/started earlier.

Bug: 154445273
Test: atest -a VtsHalBluetoothV1_0TargetTest \
  VtsHalSapV1_0TargetTest \
  VtsHalAudioV4_0TargetTest

Change-Id: I60f62923cfb826c5e33e9885ea08efdbe4c8f57e
2020-05-29 15:40:38 -07:00
Shuo Qian
4e866a3020 Skip voice call VTS for devices that don't support voice call with new Util
Bug: 154867827
Test: VtsHalRadio1_4Target
Change-Id: I888d4d4ffbff5d24bfe2b9b3cb878eb5f1e1762f
2020-05-13 01:30:01 +00:00
Steven Moreland
0b4b27183c Radio tests: root before multi-sim preparation.
These tests assumed that they were rooted before running, and due to
a combination of b/152655658 and b/154638140, these appeared to work
when a device already happened to be rooted and the test failures showed
up as problems with the test rather than as problems with the target
preparer.

This is the same workaround being used elsewhere.

Fixes: 154445273 # specifically about VtsHalSapV1_0TargetTest
Test: atest VtsHalSapV1_0TargetTest # passes 100%

The following tests, I confirm MultiSimTargetPreparer works, although my
test device has no SIM so I cannot get fully useful results.
Test: atest VtsHalRadioV1_0TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_1TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_2TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_3TargetTest # fully passes
Test: atest VtsHalRadioV1_4TargetTest # fully passes

Change-Id: Id62cb2e1b7a95552b560ab1d4ff2f63c0a7569a3
2020-05-06 14:17:05 -07:00
Nazanin
6d586607cd Remove requirement for VtsHalRadioV1_3 tests for sim to be present
Bug: 153293861
Test: run vts -m VtsHalRadioV1_3Target
Change-Id: Idb1067e757d4abadb2142627b88f775a685d0c02
2020-04-09 13:26:41 -07:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
Xiangyu/Malcolm Chen
03725802fe Merge "Skip enableModem vts if in single SIM mode." into rvc-dev 2020-04-03 20:59:24 +00:00
Malcolm Chen
b4de0a94a2 Skip enableModem vts if in single SIM mode.
Due to modem issue, enableModem only works in dual-SIM mode.
And we only use that in dual-SIM mode. So skipping testing in
in single SIM mode.

Bug: 152557383
Test: vts
Change-Id: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
2020-04-03 18:30:30 +00:00
Shuo Qian
872ffc262f Starting from Android 11, VTS will use "DISABLE_" prefix to disable tests instead of the .xml file. We need to migrate these things.
Test: Treehugger; GoogleTest knowledge; VTS team confirmation
Bug: 152813990
Change-Id: I92616557ae44c2a421ee687d0420f7b7901ba5a9
2020-04-01 02:32:11 +00:00
Sarah Chin
2aa757432a Update HAL Bands
Test: mm cf_x86_phone-userdebug
Test: atest VtsHalRadioV1_5Target
Bug: 151842542
Change-Id: I3d2b1328693b18cd4a51da6795228ef3b5d2b473
2020-03-26 14:57:35 -07:00
Nazish Tabassum
20c6369609 Documentation for enum PersoSubstate
Documentation for Additional personalization categories.
        - SIM_SPN
        - SIM_SP_EHPLMN
        - SIM_ICCID
        - SIM_IMPI
        - SIM_NS_SP

Bug: 69389695
Test: TH
Change-Id: I011c4e67b4189e5db21883f3ac19bee5ea2af250
(cherry picked from commit 0b7f4669ca26249165bba61eb4c65a02fe67edc7)
2020-03-20 15:43:41 -07:00
Hsiaoan Hsu
6e8b33a127 VTS: Fix IRadio.nvResetConfig
- IRadio.nvResetConfig:
IRadio.nvResetConfig with ResetNvType ERASE cause radio restart.
The subsuquent test cases fail with RADIO_NOT_AVAILABLE.
Fix to use ResetNvType FACTORY_RESET which does not restart the radio.

Test: run vts -m VtsHalRadioV1_0Target
Bug: 147831226
Change-Id: I45e5cbcf9144c3ace987ac8e047e40fbee403734
2020-03-09 12:12:33 +08:00
Sarah Chin
dafc9a99e9 Update 1.5 IRadio interface with missing structs/functions
Structs: AppStatus, CardStatus
Responses: getDataCallListResponse_1_5, getIccCardStatusResponse_1_5
Indications: dataCallListChanged_1_5
Update VTS tests to use 1.5 CardStatus

Test: build cf_x86_phone-userdebug
Bug: 150246280
Change-Id: Ib26c6df804d99f2487e2bfa7b302a98fa25f55e1
2020-02-28 20:42:19 -08:00
Jordan Liu
76b2cf3501 Add more info on control key param
Bug: 149957303
Test: no change to behavior
Change-Id: Id9d0e0e9cb2eb1eda83d7b5f1bd72be63216d976
(cherry picked from commit 8c2a986ee9)
2020-02-27 18:09:42 +00:00
Sarah Chin
9cb1de5994 Merge "Convert VtsHalRadioV1_5TargetTest to parameterized gtest" into rvc-dev 2020-02-27 16:49:20 +00:00
Sarah Chin
3d6fafbf00 Convert VtsHalRadioV1_5TargetTest to parameterized gtest
Test: make cf_x86_phone-userdebug, mm
Test: atest VtsHalRadioV1_5Target
Bug: 148816663
Change-Id: I708cc7335f539379d4e676dc0a6541a6c98d43bb
2020-02-25 13:33:09 -08:00
Brad Ebinger
92747ce5d1 Clarify new setRadioPower documentation
There were some questions on how the new IRadio 1.5 setRadioPower
command should be implemented based on vendor feedback. This CL
clarifies this behavior.

Test: manual
Bug: 143683674
Bug: 147496715
Merged-In: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
Change-Id: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
(cherry picked from commit 0eac27ccf3)
2020-02-25 01:16:15 +00:00
Sarah Chin
3639471c93 Revert "Set up IRadioConfig 1.3 skeleton"
This reverts commit 83e3ca82e6.

Reason for revert: Change will not be supported by modem, so HAL for RadioConfig is no longer necessary.

Change-Id: I2eb83fd2356134ef45a782d99174fdd65f8c5a13
2020-02-19 12:09:40 -08:00
Sarah Chin
80a755fa0b Revert "PhoneCapabilities changes for device capabilities"
Reston for revert: Change not supported by modem
This reverts commit 322c4cc286.

Change-Id: I9b268f41614149b5cd55caf3d730b25bb1f885e9
2020-02-19 12:09:30 -08:00
Sarah Chin
af09f9de94 Revert "Update PhoneCapability to use 1.5 UTRAN bands"
Revert "PhoneCapability cleanup"

Revert "Test PhoneCapability API"

Revert "PhoneCapability cleanup"

Revert submission 10153355-dev_cap

Reason for revert: Change not supported by modem
Reverted Changes:
Id86ad81d8: Update PhoneCapability to use 1.5 UTRAN bands
Ia44398852: Test PhoneCapability API
I2510de0ab: PhoneCapability cleanup
I29dfb51bf: PhoneCapability cleanup

Change-Id: Ief5c5325f51a9bb3921bd2eb6e0ea8c9e7111581
2020-02-19 12:08:30 -08:00
Sarah Chin
e5bc15c47b Merge "HAL changes for 1.5 setLinkCapacityReportingCriteria" 2020-02-12 20:38:26 +00:00
Sarah Chin
fec7c4e0a0 HAL changes for 1.5 setLinkCapacityReportingCriteria
Add to IRadio, IRadioResponse, and VTS

Test: make cf_x86_phone-userdebug && mm
Bug: 149112073
Change-Id: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
2020-02-11 15:10:50 -08:00
Nathan Harold
72083ba9cd Add a VTS test for BarringInfo
Add a VTS that verifies polled BarringInfo
is sanely constructed.

Bug: 148646258
Test: make VtsHalRadioV1_5TargetTest
Change-Id: Idf8d110efe8fa2289fbcc8ed7f0959f0bd51999e
2020-02-06 17:16:07 -08:00
Rambo Wang
6894f89fd8 Add CellIdentity to getBarringInfoResponse
Add CellIdentity to getBarringInfoResponse to make
the req/resp method match the existing indication.
The CellIdentity is used to prevent races where
barring is attributed to the wrong cell based on the
timing of separate polled or unsolicited inputs to
the framework.

Because the CellIdentity is already in IRadioIndication
the information to provide CID with BarringInfo is already
present and available. This just makes the unsol and the
polled APIs match.

Matching indication is IRadioIndication@1.5::barringInfoChanged

Bug: 148992393
Test: make && VtsHalRadioV1_5TargetTest
Change-Id: I74e6ab9ca9e0dd49846af774fd73773ff3737df7
2020-02-06 17:06:10 -08:00
Xiangyu/Malcolm Chen
be7f9af3bb Merge "Remove setSystemSelectionChannels vts test." 2020-02-04 19:08:40 +00:00
Rambo Wang
24c3416b4f Update Barring HAL Structures to nest single-use unions/structs
Bug: 148102466
Test: compilation for both cuttlefish and sargo
Change-Id: I8a8e734011909b038c0d735c2bfde7ea773b71e6
2020-02-03 13:44:47 -08:00
Sarah Chin
d9939b5878 Merge "Cleanup IRadio/IRadioConfig HAL" 2020-02-03 20:33:23 +00:00
Malcolm Chen
3dfa605907 Remove setSystemSelectionChannels vts test.
This HAL API was not enforced in IRadio 1.3. The vts was disabled.
Now we have new API setSystemSelectionChannels_1_5 in IRadio 1.5 and
corresponding vts test. We no longer need this old disabled vts.

Bug: 146062695
Test: vts
Change-Id: Ie81cb38c4848118318b9df5eef799469ff362f16
2020-01-31 11:46:38 -08:00
Automerger Merge Worker
b76fb4877e Merge "Fix issues for Japan model." am: 66d9a93a71 am: 7fea784ede am: 2c91f575a8
Change-Id: If011be1090c3873a04bf6fbda4345c6bc5d28100
2020-01-31 16:26:44 +00:00
Jordan Liu
66d9a93a71 Merge "Fix issues for Japan model." 2020-01-29 22:28:15 +00:00
Sarah Chin
fc16668e86 Cleanup IRadio/IRadioConfig HAL
Removed unused import statements.
Consistent between internal and AOSP.
More accurate names for ModemFeatures.

Test: make
Change-Id: Icbfe35d472ab3f7fd6cd50b4888e3c478dd29fd2
2020-01-29 13:26:16 -08:00
jicheol.shin
e22a7bddfb Fix issues for Japan model.
1. Docomo, Softbank, KDDI, and another Japan Operator request this.
   - During operation, the mobile device confirms the presence of the ICC and performs ICC outlier detection. If ICC disconnection is detected during operation, turn off the power within 5 seconds after detection, and perform power reset operation.

2.  "setSimCardPower power down"
   - After "setSimCardPower power down", SIM set power down. and ME is wating for "remove sim card" event, but phsically detect pin is still connected, so "remove" event never be sent, and ME can't reboot.

3. Japan model can not "setSimCardPower power up"
After "setSimCardPower power down", Japan model prepare for rebooting.
so so VTS requests "setSimCardPower power up", they can't do this.

Signed-off-by: Jicheol Shin <jicheol.shin@lge.com>

Test: VTS
Test: runc vts -m VtsHalRadioV1_1Target -t VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(slot1)_32bit
Test: runc vts -m VtsHalRadioV1_1Target -t VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(slot1)_64bit
Bug ID : 147969063
Change-Id: I524a16d04a7783f605913fd3ead15d3c1fbbc78b
2020-01-29 20:14:18 +00:00
Sarah Chin
0b0871ee6b Manual network selection by RAN type
Support updated API for setNetworkSelectionModeManual

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I7076da1734d2d020adef568188cb4f4b4914f379
Merged-In: I7076da1734d2d020adef568188cb4f4b4914f379
2020-01-29 10:04:07 -08:00
Jack Yu
478603456f Fixed the comment and time name
To match the API in LinkAddress.

Test: Telephony sanity tests
Bug: 135717900
Change-Id: I06559044c8015bc577d9e4ca489a4924f69093b2
Merged-In: I06559044c8015bc577d9e4ca489a4924f69093b2
2020-01-27 18:05:11 -08:00
Jack Yu
295d9d42c4 Added multi-band support
One cell could have multiple bands assigned.
One frequency could be shared by multiple bands
because they have overlapping.

Test: Telephony sanity tests.
Bug: 131061889
Change-Id: I6018b9df8b8bd0745c3736df764f4569bea28baa
Merged-In: I6018b9df8b8bd0745c3736df764f4569bea28baa
2020-01-27 17:52:48 -08:00
Sarah Chin
f0cfc3ef60 Update PhoneCapability to use 1.5 UTRAN bands
Test: build
Bug: 143238191
Change-Id: Id86ad81d837c983e2d34633fdebdfc308e219a3d
Merged-In: Id86ad81d837c983e2d34633fdebdfc308e219a3d
2020-01-27 17:44:12 -08:00
Sarah Chin
308569a879 Support IPv6 MTU in IRadio 1.5
Change mtu->mtuV4 and add mtuV6 for DataProfileInfo and
SetupDataCallResult

Test: mm and build
Bug: 146668814
Change-Id: I33320281730fdb91d2b07d11cd24a95d0834c9dd
Merged-In: I33320281730fdb91d2b07d11cd24a95d0834c9dd
2020-01-27 15:36:15 -08:00
Jack Yu
e7dcbfc135 Added NR band support
Added band info in cell identity.

Test: Telephony sanity tests
Bug: 131061889
Change-Id: I5205aa70db0d83fd049c5f25b0b427ab7484727b
Merged-In: I5205aa70db0d83fd049c5f25b0b427ab7484727b
2020-01-27 15:28:06 -08:00
Nathan Harold
8f0d8b1840 Add Multi-PLMN and CSG support
Non-functional changes:
-Clarify that the MCC+MNC in the CellIdentity should be used to
 report the Primary PLMN only; (this PLMN is globally unique, and
 can be used to construct a CGI/ECGI whereas other PLMN-IDs cannot).
-Add clarification for the reporting of multi-PLMN 5G networks.

Functional changes:
-Add a list of PLMNs for MOCN Networks. This allows cells that are
 shared by multiple operators to be properly reported.
-Add support for Closed Subscriber Group reporting to allow
 identification of small-cell deployments.

Bug: 135921133
Test: make VtsHalRadioV1_5Target
      && make aosp_cf_x86_64_phone-userdebug
Change-Id: Ibb0682de8ae9c4421e79086773c977a4e76ac4f1
Merged-In: Ibb0682de8ae9c4421e79086773c977a4e76ac4f1
2020-01-26 11:18:59 -08:00
Nathan Harold
caee79f174 Add Support for RPLMN to Voice and Data RegState
-Define RegistrationFailCause as an enum
-Combine voice and data reg state into a single struct
-Define a safe-union for AN-specific registration info

Bug: 73629308
Test: make && make VtsHalRadioV1_5TargetTest
      && make cf_x86_64_phone-userdebug

Change-Id: I43df3cffd4c55f2c5df8eaf0235772e5930dced5
Merged-In: I43df3cffd4c55f2c5df8eaf0235772e5930dced5
2020-01-25 00:39:23 -08:00
Sarah Chin
e1d1b0b92c PhoneCapabilities changes for device capabilities
Change PhoneCapability structure to contain static capabilities for:
* the entire device
* each modem/radio
* each SIM slot

Created SimSlotCapability and SlotType to hold information about
device SIM slot capabilities (separate from SimSlotStatus).

Created ModemFeatures to express modem capabilities as a bitfield
of concurrently supportable modem features.

PhoneCapability has fields for UE categories, bands, access networks,
and modem switching linger time. It also contains a lists of logical
modem UUIDs, SIM slot capabilities, and all possible concurrently
supportable modem features.

TelephonyManager will have an API that returns
* the PhoneCapability for the device
* active set of ModemFeatures

Apps with CARRIER_PRIVILEGE can use these APIs to access all
capabilities of a device (eg. 5G capable, DSDS capable, etc.) and
use them to make decisions based on what the device can support.

Test: atest FrameworksTelephonyTests
Bug: 143238237
Bug: 143238191
Change-Id: I424ef176086d2308a4bf53b2c79407eabafb3178
Merged-In: I424ef176086d2308a4bf53b2c79407eabafb3178
2020-01-25 00:39:04 -08:00
Jack Yu
5b971bfa50 Added TD-SCDMA bands for network scanning
Added TD-SCDMA bands defined in 3GPP TS 25.102.

Test: Telephony sanity tests
Bug: 144939345
Change-Id: Ib1881ed41e6427edd294bb7af6f914baeb40d8f2
Merged-In: Ib1881ed41e6427edd294bb7af6f914baeb40d8f2
2020-01-24 19:37:58 -08:00
Nazish Tabassum
c448718602 CDMA MO SMS follow on DC feature
Add new API in @1.5 IRadio and IRadioResponse interfaces
to send MO CDMA SMS with expectMore option

Bug: 72613248
Change-Id: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
Merged-In: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
2020-01-25 01:51:11 +00:00
Robert Greenwalt
d674835f1d Merge commit '20a6e2f6d7d9557a79c53045bf7fbd0ba5927bd2' into manual_merge_inter
Bug: None
Test: compiles
Change-Id: I2e82ed89848f610f3c702e9cd487aad538e7ecb4
2020-01-23 20:01:12 -08:00
Jack Yu
5910241fe9 Fixed the comment and time name
To match the API in LinkAddress.

Test: Telephony sanity tests
Bug: 135717900
Change-Id: I06559044c8015bc577d9e4ca489a4924f69093b2
2020-01-23 15:00:01 -08:00
Nazish Tabassum
ba2f83002d CDMA MO SMS follow on DC feature
Add new API in @1.5 IRadio and IRadioResponse interfaces
to send MO CDMA SMS with expectMore option

Test: make
Bug: 72613248
Change-Id: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
2020-01-23 14:56:22 -08:00
Jack Yu
0a00c8d8c3 Added multi-band support
One cell could have multiple bands assigned.
One frequency could be shared by multiple bands
because they have overlapping.

Test: Telephony sanity tests.
Bug: 131061889
Change-Id: I6018b9df8b8bd0745c3736df764f4569bea28baa
2020-01-22 17:18:23 -08:00
Sarah Chin
1dfeba3c47 Update PhoneCapability to use 1.5 UTRAN bands
Test: build
Bug: 143238191
Change-Id: Id86ad81d837c983e2d34633fdebdfc308e219a3d
2020-01-22 12:09:28 -08:00
Sarah Chin
3efba537fe Manual network selection by RAN type
Support updated API for setNetworkSelectionModeManual

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I7076da1734d2d020adef568188cb4f4b4914f379
2020-01-22 00:14:30 -08:00
Jack Yu
0b4c7fb404 Added NR band support
Added band info in cell identity.

Test: Telephony sanity tests
Bug: 131061889
Change-Id: I5205aa70db0d83fd049c5f25b0b427ab7484727b
2020-01-21 23:58:55 -08:00