Commit graph

917 commits

Author SHA1 Message Date
Treehugger Robot
f107b4231e Merge "Cleanup IRadio/IRadioConfig HAL" 2020-02-04 17:42:39 +00: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
Jordan Liu
66d9a93a71 Merge "Fix issues for Japan model." 2020-01-29 22:28:15 +00: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
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