Commit graph

1122 commits

Author SHA1 Message Date
Malcolm Chen
1c4905c2ee 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
Merged-In: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
2020-04-03 14:01:23 -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
fb98e4f092 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
Merged-In: I92616557ae44c2a421ee687d0420f7b7901ba5a9
(cherry picked from commit 872ffc262f)
2020-04-01 04:39:47 +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
770b353705 Documentation for enum PersoSubstate
Documentation for Additional personalization categories.
        - SIM_SPN
        - SIM_SP_EHPLMN
        - SIM_ICCID
        - SIM_IMPI
        - SIM_NS_SP

Bug: 69389695
Change-Id: I011c4e67b4189e5db21883f3ac19bee5ea2af250
Merged-in: I011c4e67b4189e5db21883f3ac19bee5ea2af250
2020-03-20 22:49:04 +00: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
Sarah Chin
c940a17900 Convert VtsHalRadioV1_5TargetTest to parameterized gtest
Test: make cf_x86_phone-userdebug, mm
Test: atest VtsHalRadioV1_5Target
Bug: 148816663
Change-Id: I708cc7335f539379d4e676dc0a6541a6c98d43bb
Merged-In: I708cc7335f539379d4e676dc0a6541a6c98d43bb
2020-03-19 18:40:37 -07:00
Treehugger Robot
6e568e84f8 Merge "Remove setSystemSelectionChannels vts test." 2020-03-17 19:45:52 +00:00
Malcolm Chen
96f01bb75d 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
Merged-In: Ie81cb38c4848118318b9df5eef799469ff362f16
2020-03-16 12:18:45 -07:00
Rambo Wang
218ea408e3 Update Barring HAL Structures to nest single-use unions/structs
Bug: 148102466
Test: compilation for both cuttlefish and sargo
Merged-In: I8a8e734011909b038c0d735c2bfde7ea773b71e6
Change-Id: I8a8e734011909b038c0d735c2bfde7ea773b71e6
(cherry picked from commit 24c3416b4f)
2020-03-11 18:16:25 -07:00
Nathan Harold
666a2d3d83 Add a VTS test for BarringInfo
Add a VTS that verifies polled BarringInfo
is sanely constructed.

Bug: 148646258
Test: make VtsHalRadioV1_5TargetTest
Merged-In: Idf8d110efe8fa2289fbcc8ed7f0959f0bd51999e
Change-Id: Idf8d110efe8fa2289fbcc8ed7f0959f0bd51999e
(cherry picked from commit 72083ba9cd)
2020-03-11 13:11:55 -07:00
Rambo Wang
8d4a73b149 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
Merged-In: I74e6ab9ca9e0dd49846af774fd73773ff3737df7
Change-Id: I74e6ab9ca9e0dd49846af774fd73773ff3737df7
(cherry picked from commit 6894f89fd8)
2020-03-11 13:11:55 -07:00
Brad Ebinger
a4ed40b15b 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: 143683647
Change-Id: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
Merged-In: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
2020-03-09 14:03:08 -07:00
Sarah Chin
ca2610164c 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
Merged-In: Ib26c6df804d99f2487e2bfa7b302a98fa25f55e1
2020-03-09 11:03:49 -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
Jordan Liu
d3b99f52cf Merge "Add more info on control key param" 2020-03-02 23:07:33 +00: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
Jordan Liu
ad21dc5d89 Add more info on control key param
Bug: 149957303
Test: no change to behavior
Change-Id: Id9d0e0e9cb2eb1eda83d7b5f1bd72be63216d976
Merged-In: Id9d0e0e9cb2eb1eda83d7b5f1bd72be63216d976
2020-02-27 18:09:09 +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
98c2c53f8c Revert "Set up IRadioConfig 1.3 skeleton"
This reverts commit b071f8ae53.

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

Change-Id: I33bf652c6aa2f8516ee6ec1c462a1a575d2a5d27
Merged-In: I2eb83fd2356134ef45a782d99174fdd65f8c5a13
2020-02-24 16:55:00 -08:00
Sarah Chin
6ba3da0d23 Revert "PhoneCapabilities changes for device capabilities"
This reverts commit e1d1b0b92c.

Reason for revert: Change not supported by vendor

Change-Id: I5e2cdf0797124e0a1d272ca4b0525d2425954c3f
Merged-In: I9b268f41614149b5cd55caf3d730b25bb1f885e9
2020-02-24 16:20:36 -08:00
Sarah Chin
7fac7578ca Revert "Update PhoneCapability to use 1.5 UTRAN bands"
This reverts commit f0cfc3ef60.

Reason for revert: Change not supported by vendor

Change-Id: Ie148208a890834b0cd05b0ae4d6190e1a0b5dede
Merged-In: Ief5c5325f51a9bb3921bd2eb6e0ea8c9e7111581
2020-02-24 16:10:46 -08:00
Sarah Chin
2f8f6c328b HAL changes for 1.5 setLinkCapacityReportingCriteria
Add to IRadio, IRadioResponse, and VTS

Test: make cf_x86_phone-userdebug && mm
Bug: 149112073
Change-Id: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
Merged-In: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
2020-02-20 17:05:39 -08: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
Treehugger Robot
f107b4231e Merge "Cleanup IRadio/IRadioConfig HAL" 2020-02-04 17:42:39 +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
f90eddff52 Cleanup IRadio/IRadioConfig HAL
Removed unused import statements.
Consistent between internal and AOSP.
More accurate names for ModemFeatures.

Test: make
Change-Id: Icbfe35d472ab3f7fd6cd50b4888e3c478dd29fd2
Merged-In: Icbfe35d472ab3f7fd6cd50b4888e3c478dd29fd2
2020-02-03 20:33:33 +00: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
Nathan Harold
500733c459 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
2020-01-21 23:57:21 -08:00
Nathan Harold
8f6b67b0a6 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
2020-01-21 23:45:52 -08:00
Jack Yu
87d84d1346 Merge "Support IPv6 MTU in IRadio 1.5" 2020-01-22 07:38:52 +00:00
Sarah Chin
f33c0b5561 Merge "PhoneCapabilities changes for device capabilities" 2020-01-22 04:20:43 +00:00
Sarah Chin
f7fd4fd720 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
2020-01-21 18:32:07 -08:00
Jack Yu
c2143480f8 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
2020-01-21 09:42:46 -08:00
Sarah Chin
322c4cc286 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
2020-01-16 18:17:53 -08:00
Nazish Tabassum
79f575e679 Add SIM Depersonalisation interface
Add new interface API to perform SIM depersonalisation
for all the supported Perso types.

Bug: 69389695
Change-Id: I1756fc3ce9d49863cb92c82d14aaa1b03efe39ec
2020-01-15 07:10:35 +05:30
Nathan Harold
4bb9d310d4 Add an Indication for Barring Info
Add an indication and request+response to get updated
barring information for the current cell.

Bug: 143231559
Bug: 143226991
Test: compilation && atest VtsHalRadioV1_5TargetTest
Change-Id: I226cf66dd6b9b71a6c020cdd618fe5e2af0baa20
2020-01-14 01:09:08 +00:00
Nathan Harold
bacb8216d5 Add Indication Filter for Registration Failure
-Add IndicationFilter support for Radio 1.5.
-Add a new flag for disabling Registration Failure
 indications.

Bug: 146805410
Test: make && atest VtsHalRadioV1_5TargetTest
Change-Id: Idcfb3ed64624fe7549b6fa0e434f24ca0f5d42f1
2020-01-09 10:42:40 -08:00
Nathan Harold
755bf306ef [DO NOT MERGE] Fix SHAs in IRadio 1.5
Tweak files in AOSP and update SHAs to match internal master.

Bug: 147379351
Test: update-makefiles
Change-Id: Iac00853bc00c003848b3d45ebb19d15c4f6fba0b
2020-01-08 23:48:01 +00:00
Nathan Harold
a6fc101cf7 Add a Registration Failure indication to IRadio
Add an indication to IRadio that is fired whenever
a cellular registration failure occurs.

Bug: 143187065
Test: atest VtsHalRadioV1_5TargetTest
Merged-In: I7765a7491f807a08272b9bc8923ae9377ff3b9d1
Change-Id: I7765a7491f807a08272b9bc8923ae9377ff3b9d1
(cherry picked from commit 13834c4a79)
2020-01-06 18:00:42 -08:00
sqian
198c582509 Update documentation for RSRQ of SignalMeasurementType in types 1.5
Update the minimum value of range for RSRQ according to TS 36.133
v12.6.0.

Test: build
Bug: 133400544

Change-Id: I3ce8aed99b2109f89ddb9ab0a9a6328716c40998
Merged-In: I3ce8aed99b2109f89ddb9ab0a9a6328716c40998
2019-12-23 23:45:48 +00:00
Jack Yu
7f6c8d03e7 Added SSC mode 3 support
Added flags, deprecated time, and expired time field to the IP
address. This will allow baseband vendor to mark an IP address
as deprecated and inform upper layer when the IP address will
become deprecated and expired.

Test: Telephony sanity tests
Bug: 135717900

Merged-In: Ia00827f5ff1201d36439f5b2219312b3fd2f0d24
Change-Id: Ia00827f5ff1201d36439f5b2219312b3fd2f0d24
(cherry picked from commit 246fc142c9bebc941b80c559e315b101da92fbeb)
2019-12-19 12:07:03 -08:00
Malcolm Chen
8f8e3d7b1c Add HAL API to optimize exiting APM for emergency call case.
Bug: 143683647
Test: build
Change-Id: Ic8c094f1e59d1b7cb452cef9e5a710c8b84b62b1
2019-12-17 18:11:08 -08:00
Sarah Chin
039d542f95 Add APN type XCAP
Add XCAP and update DataProfileInfo

Test: build
Bug: 73792201
Change-Id: I7cb450c91a458d66eec558265a8d9f48792cfa77
Merged-In: I7cb450c91a458d66eec558265a8d9f48792cfa77
2019-12-12 11:56:46 -08:00
Malcolm Chen
2e7b82a2c0 Remove HAL API of whether enabling uicc applications are enabled.
This API is no longer needed as enabling / disabling uicc applications
are no longer an optional operation in IRadio 1.5.

Bug: 141018421
Test: sanity
Change-Id: Ia72a8f97ff0d192fb421fdc6c096513f36a69f5a
2019-12-11 11:44:07 -08:00
Shuo Qian
511264a552 Support isEnabled feature in reporting criteria for SignalStrenghth
Test: build
Bug: 135717625
Change-Id: Ia56b54f44345650117f884942ef917e3547277a9
Merged-In: Ia56b54f44345650117f884942ef917e3547277a9
(cherry picked from commit d5ae42e540)
2019-12-10 00:56:07 +00:00
Sarah Chin
afa47584bf Update NGRAN bands
Test: build
Bug: 143683654
Change-Id: I7b59cd52dffdccc30b536a0bef9cab5ad977d371
Merged-In: I7b59cd52dffdccc30b536a0bef9cab5ad977d371
2019-12-04 13:16:21 -08:00
Sarah Chin
b7709bba42 Add HAL for 5G bands
Added NgranBands and RadioAccessNetwork NGRAN
Updated RadioAccessSpecifier and NetworkScanRequest
Updated IRadio and IRadioResponse to use updated structs/enums

Bug: 143683654
Test: build
Change-Id: I2e751a544b626d48a7c78b7bdcb4ac6477e25bc6
Merged-In: I2e751a544b626d48a7c78b7bdcb4ac6477e25bc6
2019-12-03 11:08:30 -08:00
Malcolm Chen
fb6d6241c7 Adding HAL API for disabling subscription
Bug: 141018421
Test: vts on cuttlefish
Change-Id: I90ded163ddc047916c205513ab77a886ebcc48f7
Merged-In: I90ded163ddc047916c205513ab77a886ebcc48f7
2019-12-02 11:37:25 -08:00
Dan Shi
745d7d7d60 Merge "Convert VtsHalRadioV1_*TargetTest to be parameterized test" 2019-11-30 04:47:54 +00:00
Treehugger Robot
00daede4d5 Merge "./update-makefiles.sh, for union changes/memory" 2019-11-26 22:47:34 +00:00
Sarah Chin
438edf349a Merge "Set up IRadioConfig 1.3 skeleton" 2019-11-26 18:52:26 +00:00
Steven Moreland
7696aa885f ./update-makefiles.sh, for union changes/memory
Many more types can be used in Java.

Bug: 143566068
Test: N/A
Change-Id: Ie18e1e0f9c22f2ea15b755df3b048c9d651c4945
2019-11-26 09:24:31 -08:00
Sarah Chin
b071f8ae53 Set up IRadioConfig 1.3 skeleton
Create IRadioConfig, IRadioConfigIndication, IRadioConfigResponse
Create vts for 1.3
Create default implementation for 1.3

Test: run vts -m VtsHalRadioConfigV1_3Target
Bug: 144101226
Change-Id: Ibf92683ca48b4053e86de3fb655ac15ad1e0725d
Merged-In: Ibf92683ca48b4053e86de3fb655ac15ad1e0725d
2019-11-25 16:23:41 -08:00
Dan Shi
8caedd0d68 Convert VtsHalRadioV1_*TargetTest to be parameterized test
Bug: 142397658
Bug: 142972256
Test: atest VtsHalRadioV1_0TargetTest \
  VtsHalSapV1_0TargetTest \
  VtsHalRadioV1_1TargetTest \
  VtsHalRadioV1_2TargetTest \
  VtsHalRadioV1_3TargetTest \
  VtsHalRadioV1_4TargetTest

Change-Id: I1890f7a6b1401260e87c94c2bc4e1dfa7060a0cb
2019-11-22 13:57:26 -08:00
nelsonli
942de9e663 [vts-core] Fix presubmit error in RadioConfigHidlEnvironment
Remove the un-included class.
Also add missing include of log library.

Test: $atest VtsHalRadioConfigV1_2TargetTest
Change-Id: Ia7475f6fa2df9c35a4822a6434a783d775f3f9be
2019-11-21 10:55:25 +08:00
sqian
db5163ca1b Fix a mistake in the RSSNR range.
Test: build
Bug: 135717625
Change-Id: I2e7db25d6f9abb142f8c113d4f1d9666defe6be4
Merged-In: I2e7db25d6f9abb142f8c113d4f1d9666defe6be4
(cherry picked from commit e3c8d131b9)
2019-11-18 14:04:13 -08:00
sqian
bd4a6f13df Mark RSSNR in 4G as an optional support, and vendor dependency
Test: build
Bug: 135717625
Change-Id: Iaf42797b2d388843778ce5fedbd28861f340ec5c
Merged-In: Iaf42797b2d388843778ce5fedbd28861f340ec5c
(cherry picked from commit 42f01a6477)
2019-11-15 16:05:27 -08:00
sqian
f1850bf050 Add Signal Strength Threshold HAL for 4G and 5G
Test: Build
Bug: 135717625

Change-Id: I324cfd592ca53a12ebe1161f242ae3b9c7fc59a4
Merged-In: I324cfd592ca53a12ebe1161f242ae3b9c7fc59a4
(cherry picked from commit 1f4012f417)
2019-11-12 18:26:30 -08:00
Steven Moreland
f581c60f08 Merge "radio@1.5: update makefiles" 2019-11-05 17:58:02 +00:00
Steven Moreland
40f586c36e radio@1.5: update makefiles
To be consistent w/ hidl-gen output.

Bug: N/A
Test: N/A
Change-Id: Ic4bd68777e74e5cdfc222202398923d34125f2af
2019-11-04 12:22:23 -08:00
nelsonli
7a2cba8487 [vts-core] add VtsHalRadioConfigV1_*TargetTest to vts-core
Convert VtsHalRadioConfigV1_*TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalRadioConfigV1_1TargetTest
      $atest VtsHalRadioConfigV1_2TargetTest
Change-Id: I4dfa140e7d500022fcf59fefe62fee45c185b534
2019-11-04 15:38:56 +08:00
Treehugger Robot
c003777cff Merge "[vts-core] add VtsHalRadioConfigV1_0TargetTest to vts-core" 2019-11-04 01:18:31 +00:00
nelsonli
eb1fdff7d6 [vts-core] add VtsHalRadioConfigV1_0TargetTest to vts-core
Convert VtsHalRadioConfigV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalRadioConfigV1_0TargetTest
Change-Id: Ie9b62e8e655b17577e01aebb3a30e37a598c7bdd
2019-11-01 17:10:04 +08:00
Malcolm Chen
474009910e Creating IRadio 1.5 vts framework.
Bug: 141995149
Test: build

Change-Id: I260dfa2e57f1b8c7df5273e2d0b39cbc1d6a4571
Merged-In: I260dfa2e57f1b8c7df5273e2d0b39cbc1d6a4571
2019-10-29 20:45:11 +00:00
Malcolm Chen
360e1f9298 Create IRadio 1.5 folder and empty files.
So that later people can add APIs and type definitions as needed.

Bug: 141995149
Test: build
Change-Id: Ib18f75fd391b94ffbd65d7feb4589ff82b3ac1d4
Merged-In: Ib18f75fd391b94ffbd65d7feb4589ff82b3ac1d4
2019-10-29 13:44:21 -07:00
Nathan Harold
aad649b8df Merge "Fix RadioHidlTest_v1_2.startNetworkScan maxSearchTime"
am: 3c8f624724

Change-Id: If856c76531d329e7beac3d0b4902ecf46a7c8b6d
2019-10-09 19:38:49 -07:00
Nathan Harold
3c8f624724 Merge "Fix RadioHidlTest_v1_2.startNetworkScan maxSearchTime" 2019-10-10 02:18:48 +00:00
jun.wang
5341e17199 Fix RadioHidlTest_v1_2.startNetworkScan maxSearchTime
Add the initialization of the incrementalResultsPeriodicity and
maxSearchTime in the networkScan request.
The incrementalResultsPeriodicity and maxSearchTime are not
initialized in the networkScan request. So the default value is 0.
But the incrementalResultsPeriodicity and maxSearchTime
are required not to be 0 in subsequent tests.

CL ported from pag/1433565

Bug:140451434
Test: make vts && vts-tradefed run commandAndExit vts -m \
      VtsHalRadioV1_2Target -t RadioHidlTest_v1_2#startNetworkScan
Change-Id: I1b4e512a37d3d85ebc905a64987a40af801bce53
(cherry picked from commit f7894eb4d8c395add7c70a20520336057ae2656f)
2019-10-09 15:41:59 -07:00
Nathan Harold
696851b904 Merge "Clarify the start and end of scan intervals"
am: 111a10c44e

Change-Id: If37e587d604003ea2422938dfc994d2109ae359e
2019-10-01 14:06:26 -07:00
Nathan Harold
3b685a8ac8 Clarify the start and end of scan intervals
Update the documentation of NetworkScanRequest to clarify
that the interval between scans is from the completion of
one scan to the start of another. This is the only possible
definition that doesn't possibly result in back-to-back
scans which never complete.

In the initial design of this API, the stated use case was
for scans where "interval" >> "scan duration". For that
use case, this clarification doesn't make a meaningful
difference; however, for the use case of long-duration
scans, the distinction prevents the issue stated above.

Bug: 139935383
Test: compilation (docstring-only change)
Change-Id: Ib8393110bfd3ea883045648ee7dac9c6e6a32d44
2019-09-30 16:11:22 -07:00
Nathan Harold
ea37be51fa Merge "Use IncrementalResults in InvalidPeriodicity"
am: 9f50a49681

Change-Id: I4e2f90ce020f0522e4f8c7e09bb9356ee5c21b0b
2019-09-19 14:56:16 -07:00
Nathan Harold
0fc724e299 Use IncrementalResults in InvalidPeriodicity
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Set Incremental Results to true for InvalidPeriodicity
Tests in Radio 1.4. This is a spiritual cherry-pick of
the exact same test copied from HAL 1.2.

Related Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
Related Sha: 81c811b895

Bug: 138317383
Test: atest RadioHidlTest_v1_4#startNetworkScan_InvalidPeriodicity1
Test: atest RadioHidlTest_v1_4#startNetworkScan_InvalidPeriodicity2
Change-Id: I20d6423c01dfc1c708514e798589c36666f2c0d4
2019-09-19 00:07:21 +00:00
Xin Li
15be13ea71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: Ia07db5c8afeed7fe22a2b18d867a38390f910a81
Merged-In: Ibbd540dbb5baee46360d3fe9469212cfd8f550ba
2019-09-08 13:06:54 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Shuo Qian
2f055676a0 Merge "Update the currentCalls before VTS notification."
am: f0796fd497

Change-Id: I6c5748081b255d2b38e51aa285f60a786d72383a
2019-08-27 08:46:54 -07:00
sqian
5a14d20ae8 Update the currentCalls before VTS notification.
It's reasonable to update the global variable "currentCalls" before
notifying the reader thread. Otherwise this can cause some issues such
as null pointer dereference in other modem.

Bug: 139264227
Test: Don't have devices that uses the corresponding modem that reports
 this issues. This is verified according to a partner CL:
https://partner-android-review.googlesource.com/c/platform/hardware/interfaces/+/1422356

Change-Id: Iee9e18149397c39b7c84ec1dc570b9bac7142eb6
Merged-In: Iee9e18149397c39b7c84ec1dc570b9bac7142eb6
(cherry picked from commit fcd55caafd)
2019-08-26 17:13:52 +00:00
Xin Li
68464fb5a0 DO NOT MERGE - Merge build QP1A.190711.019 into stage-aosp-master
Bug: 139893257
Change-Id: I7e48b5477b2edda72c940e05531782dd28a2f784
2019-08-23 06:45:16 +00:00
Youming Ye
f5d07b84c1 Add non-dds check for startNetworkScan
Providing non-dds exemption for HAL 1.2 network scan due to some devices
only perform network scan on preferred data sim. Since logical modem
id(0/1) and physical sim slot id(0/1) are intuitively aligned. Set
first sim as dds sim, and skip the network scan on the second one
(non-dds).

Test: Vts
Bug: 135243177
Change-Id: I58b89473714dc6d3ce6567ba1809baad6cd6d799
(cherry picked from commit fc85e8fa50)
2019-08-01 00:58:48 +00:00
sqian
0acb1b7219 Verify there are no more current calls
am: c8a08c1816

Change-Id: I3209c206b8299b2ecb7f6ec5df69dee2f643c743
2019-07-31 11:51:30 -07:00
sqian
c8a08c1816 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
Merged-In: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
(cherry picked from commit 5f68117e87)
2019-07-30 16:29:33 -07:00
sqian
45fa5dacd9 Merge "Verify there are no more current calls" into qt-dev
am: 1f12b5323a

Change-Id: I6279a0da6ebf1f5c6e78e0c43d4d0ce4dc9a566a
2019-07-30 16:07:28 -07:00
sqian
5f68117e87 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
2019-07-26 18:49:02 +00:00
Youming Ye
8a0dcf7061 Add REQUEST_NOT_SUPPORTED to startNetworkScan
am: d005bbeb53

Change-Id: Ibcd1ae9af41a1330a1e5094ce2a34bee94dbae2d
2019-07-23 13:21:48 -07:00
Youming Ye
d005bbeb53 Add REQUEST_NOT_SUPPORTED to startNetworkScan
Test: VTS
Bug: 137298570
Change-Id: I0afacd413d467c3e25585d6d5431278fd61a1562
2019-07-22 18:34:56 -07:00
Youming Ye
ffdbe8d7b2 Merge "Add non-dds check for startNetworkScan" into qt-dev
am: 53861e16c3

Change-Id: I05e4a0d99c92e1ae790e183b121e8dba30feae91
2019-07-22 17:27:13 -07:00
Youming Ye
53861e16c3 Merge "Add non-dds check for startNetworkScan" into qt-dev 2019-07-23 00:08:37 +00:00
Youming Ye
fc85e8fa50 Add non-dds check for startNetworkScan
Providing non-dds exemption for HAL 1.2 network scan due to some devices
only perform network scan on preferred data sim. Since logical modem
id(0/1) and physical sim slot id(0/1) are intuitively aligned. Set
first sim as dds sim, and skip the network scan on the second one
(non-dds).

Test: Vts
Bug: 135243177
Change-Id: I58b89473714dc6d3ce6567ba1809baad6cd6d799
2019-07-19 16:32:46 -07:00
Youming Ye
05a97d2d4b Merge "Disable startNetworkScan tests with parameters." into qt-dev
am: c69700441e

Change-Id: Ie19296bfdea3a23986741e5e41813b51330b5009
2019-07-12 05:09:37 -07:00
TreeHugger Robot
c69700441e Merge "Disable startNetworkScan tests with parameters." into qt-dev 2019-07-12 11:41:24 +00:00
Willy Hu
d9d38451ef VTS: Change stopNetworkScan from 1_1 to 1_2
am: fb1616eb94

Change-Id: I9d8de8a97e23b2321640615d14d33c997b45bbe3
2019-07-11 20:23:39 -07:00
Youming Ye
bc5f18aae1 Disable startNetworkScan tests with parameters.
Network scan tests with parameters are disabled because of vendors
failed to fully implement startNetworkScan in HAL 1.4, and GSM rat scan
with parameters will get REQUEST_NOT_SUPPORTED error from modem.

Test: VTS
Bug: 137298570
Change-Id: I99df8495c5f654cb1420b7da36d7f5128ce14dbc
2019-07-12 00:07:25 +00:00
Willy Hu
fb1616eb94 VTS: Change stopNetworkScan from 1_1 to 1_2
Change stopNetworkScan from 1_1 to 1_2 when testing VtsHalRadioV1_2Target.

Symptom:

When vts process slot2 "startnetworkscan", it will call "stopnetworkscan()" when startnetworkscan
success. But from current design it will set stopnetworkscan to slot1(wrong slot, expect is slot2)
as bwlow log.

CTS fail log:
hardware/interfaces/radio/1.2/vts/functional/radio_hidl_hal_test.cpp:111

//Device request NwScan on 2nd Sim
06-28 11:30:22.770 radio   873  1213 F RILQ    : RIL[1][Log.cpp: 48] [DispatcherModul(873,1213)]
d: [DispatcherModule]: Handling msg = RIL_REQUEST_START_NETWORK_SCAN

//But Device want to abort on Primary Sim
06-28 11:30:22.776 radio   923  1205 F RILQ    : RIL[0][Log.cpp: 48] [DispatcherModul(923,1205)]
d: [NasModule]: Handling msg = RIL_REQUEST_STOP_NETWORK_SCAN[Context: IRadio(1681692777)]

Bug: 135982495
Test: Build pass. Local test VTS pass.
Change-Id: Ic53c24ab2a670e806b4ac7f192e6eb81252ade84
(cherry picked from commit 5cef297cb2)
2019-07-11 18:53:58 +00:00
Xin Li
1942f9edaa DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master
Bug: 136196576
Change-Id: I58505f104075c7c210612eda8e266df9e3ecfeda
2019-07-09 15:22:03 -07:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Treehugger Robot
98d0f4d52c Merge "Add interface info to .rc files" 2019-07-08 18:56:33 +00:00
sqian
1ade5556c8 Hang up EmergencyDial after Trigger in VTS
am: 8c9947de8d

Change-Id: Ieeb5e62c4709c4288ebf956631851124caf90867
2019-07-03 18:39:05 -07:00
Jordan Liu
fbd3b6cec4 Merge "Add radio config 1.2 VTS tests" 2019-07-03 17:07:58 +00:00
sqian
8c9947de8d Hang up EmergencyDial after Trigger in VTS
The whole test case run emergencyDial.RadioHidlTest_v1_4 first and then
 come after startNetworkScan.RadioHidlTest_v1_4 test case immediately
 (within ~3 secs) the NWscan failure is device in emergency call in
 progress/connected while doing emergencyDial.RadioHidlTest_v1_4 test

Although emergencyDial.RadioHidlTest_v1_4 only care about command/response
 is successful or not and don't care call is established or not, modem do
 care about call condition is in idle/progress/connected state before it
 can do NWscan

When there's dedicated channel established, modem can not perform AP
 request NWscan in parallel as we are single HW modem restriction.

Test: run vts
Bug: 135595082
Change-Id: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
Merged-In: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
(cherry picked from commit 07a53471c4)
2019-07-01 17:37:24 -07:00
sqian
b2e7c71f39 Hang up EmergencyDial after Trigger in VTS
The whole test case run emergencyDial.RadioHidlTest_v1_4 first and then
 come after startNetworkScan.RadioHidlTest_v1_4 test case immediately
 (within ~3 secs) the NWscan failure is device in emergency call in
 progress/connected while doing emergencyDial.RadioHidlTest_v1_4 test

Although emergencyDial.RadioHidlTest_v1_4 only care about command/response
 is successful or not and don't care call is established or not, modem do
 care about call condition is in idle/progress/connected state before it
 can do NWscan

When there's dedicated channel established, modem can not perform AP
 request NWscan in parallel as we are single HW modem restriction.

Test: run vts
Bug: 135595082
Change-Id: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
Merged-In: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
2019-07-01 21:48:22 +00:00
Jordan Liu
306c56e678 Add radio config 1.2 VTS tests
Bug: 122730535
Test: run vts -m VtsHalRadioConfigV1_2Target
Change-Id: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
Merged-In: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
2019-06-26 10:28:37 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
terrycrhuang
6e470f1755 Merge "VTS: stop network scan once trigger network scan success" into qt-dev
am: 6a660a6d7b

Change-Id: I20ea717cdfdefb3ec67a1c8cae80b57ea9937217
2019-06-19 23:47:55 -07:00
terrycrhuang
a2affa6636 VTS: stop network scan once trigger network scan success
For some vendors do not supports independent radios, if
there is one manual search ongoing, another manual search
on other SIM is not supported. So sending stop network scan
request once trigger network scan completed to exclude this
modem limitation.

Bug: 135005200
Test: atest RadioHidlTest_v1_2#startNetworkScan

Change-Id: Iacfd59ac2ad4d44e763ee03697c1f8f57162ce38
2019-06-19 00:53:29 +00:00
Tim Lin
d391e404ed Fix RadioConfig 1.1 vts test
am: 9c93b3500a

Change-Id: Ic8ed4d3324987d6d95b9153f19db60152ab0bc3c
2019-06-13 22:30:18 -07:00
Tim Lin
9c93b3500a Fix RadioConfig 1.1 vts test
Bug: 134645639
Test: VtsHalRadioConfigV1_0Target
      VtsHalRadioConfigV1_1Target
      VtsHalRadioConfigV1_2Target

Change-Id: I0c3171bf50de4f320b53d73962a4a5013a9c72e4
2019-06-12 16:44:07 +08:00
Jordan Liu
9fd14fbaa4 Add radio config 1.2 VTS tests
am: 15df27e428

Change-Id: I00e7f4c88ca2b37d5490fcaa0fa2bab65738d837
2019-05-31 20:35:25 -07:00
Jordan Liu
15df27e428 Add radio config 1.2 VTS tests
Bug: 122730535
Test: run vts -m VtsHalRadioConfigV1_2Target
Change-Id: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
2019-05-31 17:20:47 +00:00
Pengquan Meng
58e3fabb24 Merge "Send LTE|LTE_CA to modem in vts" into qt-dev
am: db5118bdad

Change-Id: Ibfdbc047bff2c8aca15fc04d6b01ff373306f012
2019-05-23 19:33:36 -07:00
Pengquan Meng
db5118bdad Merge "Send LTE|LTE_CA to modem in vts" into qt-dev 2019-05-24 01:28:16 +00:00
Pengquan Meng
529ec065f8 Merge "Add Vts to enforce radioConfig is existed" into qt-dev
am: 2317d2e960

Change-Id: Ibb8267db9f0d44e8bc11479af597531d994c5a62
2019-05-23 18:09:09 -07:00
Pengquan Meng
2b3d7740fb Send LTE|LTE_CA to modem in vts
Bug: 132057161
Test: vts
Change-Id: I963933aff316318053546b54ca680cb65e6a290a
2019-05-23 21:56:59 +00:00
Pengquan Meng
2317d2e960 Merge "Add Vts to enforce radioConfig is existed" into qt-dev 2019-05-23 21:44:21 +00:00
Pengquan Meng
806591aac8 Add Vts to enforce radioConfig is existed
This vts enforce IRadioConfig is existed when IRadio service is supported.
We didn't add IRadioConfigV1.2, so in this test IRadioConfigV1.1 will be
checked.

Bug: 132379735
Test: atest VtsHalRadioV1_4TargetTest
Change-Id: I2062ed6b191193d9a8af4f25059fed6cc8dc09d8
2019-05-22 15:03:32 -07:00
Nathan Harold
1999cba432 Merge changes I94874f53,I90133555 into qt-dev
am: 1d957da30b

Change-Id: I64ca48b5863d454d9f623845344b081b32050b2f
2019-05-22 14:17:19 -07:00
Nathan Harold
81c811b895 Enable incremental scans for interval checks
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Bug: 112486807
Test: atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity1;
      atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity2;
Merged-In: I94874f538d2df70a72913b489d9298f8d1cf9b56
Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
(cherry picked from commit f56b9a41dd)
2019-05-22 11:31:48 -07:00
Nathan Harold
beb15ccb08 Allow impls to ignore incremental scan interval
When incremental results are disabled for network scans,
update the API documentation to allow implementations to
ignore range checking for the incremental scan interval.

Bug: 112486807
Test: compilation - docstring-only change
Merged-In: I901335550b4b8c2cf75f91b39fd031f03ffae982
Change-Id: I901335550b4b8c2cf75f91b39fd031f03ffae982
(cherry picked from commit 944efca78d)
2019-05-22 11:31:33 -07:00
Nathan Harold
1d957da30b Merge changes I94874f53,I90133555 into qt-dev
* changes:
  Enable incremental scans for interval checks
  Allow impls to ignore incremental scan interval
2019-05-22 18:30:39 +00:00
Nathan Harold
f56b9a41dd Enable incremental scans for interval checks
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Bug: 112486807
Test: atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity1;
      atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity2;
Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
2019-05-22 10:07:11 -07:00
Nathan Harold
944efca78d Allow impls to ignore incremental scan interval
When incremental results are disabled for network scans,
update the API documentation to allow implementations to
ignore range checking for the incremental scan interval.

Bug: 112486807
Test: compilation - docstring-only change
Change-Id: I901335550b4b8c2cf75f91b39fd031f03ffae982
2019-05-22 10:07:11 -07:00
Jordan Liu
121384541d Merge "Fix RadioConfig 1.0 vts test" into qt-dev
am: e7a523a89c

Change-Id: Ifdb2560f89b10679395f88d777e97743b330828e
2019-05-22 02:36:00 -07:00
Jordan Liu
bdebb008a1 Fix RadioConfig 1.0 vts test
Bug: 122730535
Test: VtsHalRadioConfigV1_0Target
Change-Id: Ib3843e9ce727f97972f76e69cf9b450124f7afae
2019-05-21 17:41:20 +00:00
Treehugger Robot
c957851584 Merge "Add INVALID_STATE to list of errors for when there is only one modem available" 2019-05-21 15:27:12 +00:00
Nazanin Bakhshi
1e71c4b93a Merge "Add INVALID_STATE to list of errors for when there is only one modem available" into qt-dev
am: ef4abb83b3

Change-Id: I68db51926d33021bb942c235e8b09847a2c5a935
2019-05-20 21:20:28 -07:00
Nazanin Bakhshi
8aadb38c74 Add INVALID_STATE to list of errors for when there is only one modem
available

Bug: b/132818184
Test: VTS
Change-Id: I2b57ab99a376bcab26012d08f00284d65f915bc3
Merged-In: I2b57ab99a376bcab26012d08f00284d65f915bc3
(cherry picked from commit 52b3503064)
2019-05-20 20:34:38 -07:00
Nazanin Bakhshi
ef4abb83b3 Merge "Add INVALID_STATE to list of errors for when there is only one modem available" into qt-dev 2019-05-21 03:29:51 +00:00
Nazanin Bakhshi
52b3503064 Add INVALID_STATE to list of errors for when there is only one modem
available

Bug: b/132818184
Test: VTS
Change-Id: I2b57ab99a376bcab26012d08f00284d65f915bc3
2019-05-20 14:27:30 -07:00
Youming Ye
bb560adb22 Merge "Add mnc and mcc string check" 2019-05-16 17:27:35 +00:00
Youming Ye
b386096472 Merge "Add mnc and mcc string check" into qt-dev
am: 82dc3faca0

Change-Id: Ia26b3e5e6ba7331b906bb8bbe6a56c03fd693a02
2019-05-15 21:15:38 -07:00
TreeHugger Robot
82dc3faca0 Merge "Add mnc and mcc string check" into qt-dev 2019-05-16 02:49:01 +00:00
Youming Ye
8a9e5a645b Add mnc and mcc string check
Use the same resolution as 1.0 to check for invalid mnc and mcc values.

Bug: 130206359
Test: Vts
Change-Id: Iff766014ecfbe2d77db6771eda04fd4d9c84df14
2019-05-15 16:52:09 -07:00
Youming Ye
27227fd1b0 Add mnc and mcc string check
Use the same resolution as 1.0 to check for invalid mnc and mcc values.

Bug: 130206359
Test: Vts
Change-Id: Iff766014ecfbe2d77db6771eda04fd4d9c84df14
2019-05-15 16:35:40 -07:00
Nazanin Bakhshi
7ce975d03e VTS: add NOT_SUPPORTED to enableModem
Bug: 130190479
Test: VTS
Change-Id: Ie5851929287f461f20ee6a7b979f15133755b2b3
Merged-In: Ie5851929287f461f20ee6a7b979f15133755b2b3
(cherry picked from commit 3b3ffacd25)
2019-05-14 15:17:19 -07:00
Nazanin Bakhshi
b93815668c Merge "VTS: add NOT_SUPPORTED to enableModem" into qt-dev
am: bf756fb66e

Change-Id: Idfa70f1b2c97ebbd201b010dbd8e54ffd3ca7db6
2019-05-14 13:23:26 -07:00
Nazanin Bakhshi
bf756fb66e Merge "VTS: add NOT_SUPPORTED to enableModem" into qt-dev 2019-05-14 19:56:35 +00:00
Nathan Harold
1ff574dc63 Use Widely Supported GSM Channels for NetworkScan
Change the network scan tests to use the P900 and 850
GSM bands, which are commonly (nearly universally) supported
bands.

Bug: 132076611
Test: atest RadioHidlTest_v1_2
Merged-In: Ia682f022d35c481876c49c9c8802d7c39722be0e
Change-Id: Ia682f022d35c481876c49c9c8802d7c39722be0e
(cherry picked from commit 2ea2a64bc7)
2019-05-13 20:21:23 +00:00
Nathan Harold
1b9c3e719a Use Widely Supported GSM Channels for NetworkScan am: 2ea2a64bc7
am: b4c02291ef

Change-Id: I77edc80d1681ef00a1923b5999270cbacc0d4cf8
2019-05-10 17:50:20 -07:00
Nathan Harold
6285c00bbf Revert "Use Widely Supported GSM Channels for NetworkScan" am: e678690efa
am: 26bf375ca0

Change-Id: I40345c19f97a9c6b9ef1994fc6dd124ed7137386
2019-05-10 17:50:04 -07:00
Nazanin Bakhshi
3b3ffacd25 VTS: add NOT_SUPPORTED to enableModem
Bug: 130190479
Test: VTS
Change-Id: Ie5851929287f461f20ee6a7b979f15133755b2b3
2019-05-10 16:42:15 -07:00
Nathan Harold
2ea2a64bc7 Use Widely Supported GSM Channels for NetworkScan
Change the network scan tests to use the P900 and 850
GSM bands, which are commonly (nearly universally) supported
bands.

Bug: 132076611
Test: atest RadioHidlTest_v1_2
Change-Id: Ia682f022d35c481876c49c9c8802d7c39722be0e
2019-05-10 14:11:14 -07:00
Nathan Harold
e678690efa Revert "Use Widely Supported GSM Channels for NetworkScan"
This reverts commit 92bb3ae7b9.

There is an issue with the bands used for P900... the chosen
bands were for PCS1900. Quick fix coming.
2019-05-10 14:08:35 -07:00
Nathan Harold
cea6ff4385 Merge "Use Widely Supported GSM Channels for NetworkScan" am: 6f337cc82b
am: 5fc45aab2a

Change-Id: I01260ad8ee6d7d97feb400476e91744767656809
2019-05-10 11:38:22 -07:00
Nathan Harold
92bb3ae7b9 Use Widely Supported GSM Channels for NetworkScan
Change the network scan tests to use the P900 and 850
GSM bands, which are commonly (nearly universally) supported
bands.

Bug: 132076611
Test: atest RadioHidlTest_v1_2
Change-Id: Icb4dc47360a5753b9697f74aec19045155ee27fc
2019-05-09 18:45:23 -07:00
Youming Ye
62e4045a47 Merge "Add comment to track setSystemSelectionChannels api test" into qt-dev
am: 9aed459ace

Change-Id: I4a7ad4c302e240ee2f2a25cfb23548fa77b3a1b4
2019-04-23 15:18:46 -07:00
Youming Ye
d620a2984d Add comment to track setSystemSelectionChannels api test
Since the system API for the hal is not implemented in Q, we disable the
vts test. Adding corresponding comments on the test.

Bug: 130254624
Test: Build
Change-Id: I777961aeaf8fb2baa28cee47cf3df4015a6ee0f0
2019-04-23 11:12:13 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Amruth Ramachandran
019d89b77f Add VTS test for getDataRegistrationState am: 7c06193d09 am: af32ed1e54
am: 139f8bd942

Change-Id: I210493d3dfe019b347d8fa1228e386f5d9bb0d25
2019-04-01 18:35:47 -07:00
Amruth Ramachandran
139f8bd942 Add VTS test for getDataRegistrationState am: 7c06193d09
am: af32ed1e54

Change-Id: Iab26a52f254f95ec705491ad9dfe91e019b414db
2019-04-01 18:32:16 -07:00
Jack Yu
8829f93e09 Added VTS tests for setDataProfile and setInitialAttachApn am: 7885653276
am: cefbec0e9b

Change-Id: I9b3b6541878bf0e058b6dd8343efb7dc08ef40e8
2019-04-01 12:45:40 -07:00
Amruth Ramachandran
7c06193d09 Add VTS test for getDataRegistrationState
Bug:112194535
Test: VTS test

Change-Id: I32b335c8407a6884216aa1b80216a87e94b6cba6
2019-04-01 10:17:07 -07:00
Jack Yu
7885653276 Added VTS tests for setDataProfile and setInitialAttachApn
Test: VTS
Bug: 121345833

Merged-In: Ia7a260f5bbf9463c96b53656bcbe031af5208cbb
Change-Id: Ia7a260f5bbf9463c96b53656bcbe031af5208cbb
(cherry picked from commit 7948a04d01)
2019-04-01 10:05:23 -07:00
sqian
16e12d10c6 Merge "Sleep one second after connect." into pie-vts-dev am: e1704f3fd6 am: e3c3d56907
am: ed62130b14

Change-Id: Ib08c6a74d398987440408fd7db7e46f59295624e
2019-03-13 12:32:58 -07:00
sqian
ed62130b14 Merge "Sleep one second after connect." into pie-vts-dev am: e1704f3fd6
am: e3c3d56907

Change-Id: Ic8322a888f04dfa29bca109f5dc43f6978021da5
2019-03-13 10:02:48 -07:00
sqian
b2aa43ae94 Sleep one second after connect.
Modem side need time for connect to finish.

Test: Sanity (encountered by partner)
Bug: 122442056
Change-Id: Ib688b968730fcf604ef3807db9b6bd817594cad6
2019-03-11 16:07:49 -07:00
Jack Yu
7b66803fda Merge "Added 1.4 setDataProfile and setInitialAttachApn" am: b6990823f9 am: 3ae436ce52
am: 62f6566bf1

Change-Id: I023d45fb81ef3d7cbdacf53663751a1875377791
2019-03-07 20:06:58 -08:00
Michele Berionne
498c5d31e0 Merge "Fix documentation for carrier lock APIs in IRadio 1.4" am: caec5406ae am: 8987bebd33
am: a26bed9cc4

Change-Id: I5fa329ff4dee3e9fa57e650431f18613730e3d7b
2019-03-07 20:06:28 -08:00
Jack Yu
b6990823f9 Merge "Added 1.4 setDataProfile and setInitialAttachApn" 2019-03-08 01:38:47 +00:00
Michele
ef3207a43f Fix documentation for carrier lock APIs in IRadio 1.4
Update documentation of getAllowedCarriers_1_4 to indicate correct
response function.
Update documentation of setAllowedCarriers_1_4 to indicate correct
response function.

Bug: 127331162
Test: compilation
Change-Id: I56b63a7d7a71a62aea14a45b6e3b903a0cb2f5bf
2019-03-07 09:24:46 -08:00
Jack Yu
f666f42415 Added 1.4 setDataProfile and setInitialAttachApn
Added cuttlefish support for setDataProfile and
setInitialAttachApn v1.4 support

Test: vts-tradefed run vts -m VtsHalRadioV1_4Target
Bug: 121345833
Change-Id: Ie6acc8756f93ae16963cf9e05e0cf94d9039cb10
2019-03-06 15:22:25 -08:00
Jack Yu
7948a04d01 Added VTS tests for setDataProfile and setInitialAttachApn
Test: VTS
Bug: 121345833
Change-Id: Ia7a260f5bbf9463c96b53656bcbe031af5208cbb
2019-03-05 01:36:16 -08:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Treehugger Robot
4ee5ec1469 Merge "Update makefies: no 'types'" 2019-03-04 22:56:10 +00:00
Michele Berionne
bccd81c6a1 Merge "VTS test cases for IRadio 1.4 API for carrier restrictions" am: 0be84989e5 am: 2cafc87f9a
am: 93be02888e

Change-Id: I43742859e92da4874436afd24cb534cbd5a23584
2019-03-04 14:00:21 -08:00
Michele Berionne
0be84989e5 Merge "VTS test cases for IRadio 1.4 API for carrier restrictions" 2019-03-04 21:30:54 +00:00