Commit Graph

8556 Commits

Author SHA1 Message Date
Sarah Chin
ccb14fbe63 Manual network selection by RAN type
Support new API for setNetworkSelectionModeManual with ran parameter

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
2020-01-22 07:28:29 -08:00
Jack Yu
7125d3ba10 Added NR band support
Added band info in cell identity.

Test: Telephony sanity tests
Bug: 131061889
Change-Id: I0fb0e7e466a0188f04db595b8e417870666005ba
2020-01-22 00:52:04 -08:00
Nathan Harold
ac37b6344d Multi-Plmn and CSG Support For CellInfo
Add CellIdentity support for HAL 1.5

-Add new constructors for HAL 1.5
-Add APIs to get additional PLMNs advertised
 by the cell beyond the first, for MOCN networks.
-Add support for CSG info in WCDMA, TD-SCDMA, and LTE

Bug: 135921133
Test: wip
Change-Id: Iffd9351d2170a496639eced2c4618819f522494c
2020-01-22 00:03:25 -08:00
Jack Yu
26a8cbe1ed Merge "API changes for IPv6 MTU support" 2020-01-22 07:38:53 +00:00
Automerger Merge Worker
0fff065736 Merge "Expose ImsConfig constants as part of API." am: 48f7f07d52 am: 7bb16100a4 am: 969feb570e
Change-Id: I2d9a1db2b952f9c1a3a0df2541a2468d261f3ba8
2020-01-22 07:36:59 +00:00
Tyler Gunn
7bb16100a4 Merge "Expose ImsConfig constants as part of API."
am: 48f7f07d52

Change-Id: I186a61a907571f9ae4b842230e6745246a5482f0
2020-01-21 23:06:06 -08:00
Tyler Gunn
48f7f07d52 Merge "Expose ImsConfig constants as part of API." 2020-01-22 06:50:17 +00:00
Automerger Merge Worker
3fb4d1704d Merge "Support exposing getNetworkSelectionMode" am: 2ac8306365 am: 8f35e3d93c am: 8449c27cb8
Change-Id: Ib10600dbb1fed7c3749bfb6c0ee634093806843e
2020-01-22 04:34:47 +00:00
Automerger Merge Worker
8bb7ea35ab Merge "Clean up usage of CountryDetector in PhoneNumberUtils" am: 7790a36021 am: ae9f596078 am: 325e6c452b
Change-Id: I0e6ba4833937f1a8bf6626313789d585f86c51da
2020-01-22 04:33:31 +00:00
Sarah Chin
77a7ea65fd API changes for IPv6 MTU support
Change mtu->mtuV4 and add mtuV6 for DataProfile and DataCallResult
Add mtu to RouteInfo and update test

Test: atest FrameworksTelephonyTests
Bug: 146668814
Change-Id: I43c7e088e46e40f38d8114548e0fc4e39d7f91cb
2020-01-21 20:29:47 -08:00
Tyler Gunn
30eee35a57 Expose ImsConfig constants as part of API.
Moving the config keys in ImsConfig to ProvisioningManager and defining
appropriate allowed values for all.  Old values are now deprecated.

Bug: 147732815
Test: Created and ran new CTS test to verify get/set of the new parameter
values.
Change-Id: Ifa7e1b6bcd21b4dfac541c258e1c53ee1515fa3d
2020-01-22 04:22:37 +00:00
Sarah Chin
8e7540eb88 Merge "Modify PhoneCapabilities for device capabilities" 2020-01-22 04:20:43 +00:00
Brad Ebinger
d3c6c37394 Merge "Add NetworkType alternatives to IMS APIs"
am: 8af28b9965

Change-Id: Id9fb30026c7aed9777f9fc8e8512b062e7698d8a
2020-01-21 19:09:38 -08:00
Shi Lu
8f35e3d93c Merge "Support exposing getNetworkSelectionMode"
am: 2ac8306365

Change-Id: I83b91a4022f6e9ce9729822af00bc1724b1feaf2
2020-01-21 19:06:18 -08:00
Brad Ebinger
8af28b9965 Merge "Add NetworkType alternatives to IMS APIs" 2020-01-22 02:34:31 +00:00
Shi Lu
2ac8306365 Merge "Support exposing getNetworkSelectionMode" 2020-01-22 02:34:05 +00:00
Hall Liu
5322cdc7e0 Merge "Add setSystemSelectionChannels API" 2020-01-22 02:28:01 +00:00
Xiangyu/Malcolm Chen
eee8650ac5 Merge "Make Telephony to Setting notification @SystemApi" 2020-01-22 01:48:37 +00:00
Jayachandran Chinnakkannu
1c6fa21e0c Merge "Expose TelephonyManager CDMA ERI APIs as sysetm APIs" 2020-01-22 01:28:18 +00:00
TreeHugger Robot
50b22317ff Merge "Add configs for ePDG" 2020-01-22 01:15:07 +00:00
Jack Yu
89730404d4 Merge "Added TD-SCDMA bands for network scanning" 2020-01-22 01:13:21 +00:00
Hall Liu
ae9f596078 Merge "Clean up usage of CountryDetector in PhoneNumberUtils"
am: 7790a36021

Change-Id: Ibeba94473ac0ed4998b70dd51b86adc53c1b37b7
2020-01-21 17:09:00 -08:00
Hall Liu
7790a36021 Merge "Clean up usage of CountryDetector in PhoneNumberUtils" 2020-01-22 00:52:40 +00:00
Hall Liu
b49a3affb1 Clean up usage of CountryDetector in PhoneNumberUtils
PhoneNumberUtils calls CountryDetector methods to ascertain whether a
number is an emergency number in the current country, but recent
emergency number detection changes have made the country an unused
parameter. Remove calls to CountryDetector to satisfy mainline
requirements wrt hidden APIs.

Fixes: 148087591
Test: atest PhoneNumberUtilsTest
Change-Id: Ib6ef6348cb1c50e89e24f4f67de6ce76d87550cd
2020-01-21 15:34:02 -08:00
TreeHugger Robot
fb497eeae6 Merge "Add NetworkType alternatives to IMS APIs" 2020-01-21 23:16:49 +00:00
shilu
2647d29e26 Support exposing getNetworkSelectionMode
Bug: 148018766
Fix: 147568892
Test: make && make offline-sdk-docs
Change-Id: I68d3de4beb500eaf0b462848ba18265a2702d191
2020-01-21 15:02:04 -08:00
Jayachandran C
c836ef0fce Expose TelephonyManager CDMA ERI APIs as sysetm APIs
1) TelephonyManager.getCdmaEriInformation()
2) Introduce new class CdmaEriInformation

Bug: 147839123
Test: Basic telephony testing
      atest frameworks/base/packages/SystemUI/tests
Change-Id: I2a4938ae07494a62c67bdcf881f4944823e7dced
2020-01-21 14:59:23 -08:00
Hall Liu
72fec6d370 Add setSystemSelectionChannels API
Add setSystemSelectionChannels as a SystemApi, connecting to the
identically-named HAL method.

Fixes: 144595103
Test: manual through the testapp, atest TelephonyManagerTest
Change-Id: I52ff09258af772e272937dd137813d0d63c50cb5
2020-01-21 14:52:17 -08:00
Brad Ebinger
1efc2aa560 Add NetworkType alternatives to IMS APIs
Some IMS APIs were using ServiceState instead of
TelephonyManager.NETWORK_TYPE_* constants.

This CL cleans this API surface up.

Bug: 147726372
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Merged-In: Ic00b83f2d0d8950855d43edc49ad24ce577943af
Change-Id: Ic00b83f2d0d8950855d43edc49ad24ce577943af
2020-01-21 22:48:19 +00:00
Shuo Qian
c3de6ca956 Merge "Support always reporting signal strength phone state listener" 2020-01-21 22:40:55 +00:00
Malcolm Chen
af2d303621 Make Telephony to Setting notification @SystemApi
They are intents and extras used by Setting to monitor certain SIM
change and to pop up dialogs to users.

Bug: 148097978
Test: build
Change-Id: If6965979b5ab15b53f8e81cad895cc2d3dc29e0e
2020-01-21 13:42:50 -08:00
Daniel Bright
e9a4f02315 Merge "Changed ApnSetting mappings to constants" 2020-01-21 21:39:38 +00:00
Brad Ebinger
dd151f0e6c Add NetworkType alternatives to IMS APIs
Some IMS APIs were using ServiceState instead of
TelephonyManager.NETWORK_TYPE_* constants.

This CL cleans this API surface up.

Bug: 147726372
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Change-Id: Ic00b83f2d0d8950855d43edc49ad24ce577943af
2020-01-21 12:55:13 -08:00
WyattRiley
98e757472c Merge "Remove Obsolete Comment"
am: e50c61c8ba

Change-Id: Iab08754ec05d74944451ec586beca0fe34582ce9
2020-01-21 12:10:24 -08:00
Treehugger Robot
e50c61c8ba Merge "Remove Obsolete Comment" 2020-01-21 19:52:55 +00:00
Alex Lin
3087e3d69e Merge "Add public API for EuiccService log dump" 2020-01-21 19:31:52 +00:00
Dheeraj Shetty
81a4f4ee28 Add configs for ePDG
Bug: 140873586

Test: Manually tested the configs using the following commands:
adb shell cmd phone cc get-value [KEY]
adb shell cmd phone cc set-value [KEY] [VALUE]

Change-Id: I56672f8ac622fb6226dccd3d91e8d81e6124a16b
2020-01-21 11:24:21 -08:00
Sarah Chin
b1264fe56b Modify PhoneCapabilities for device capabilities
Updated PhoneCapability from 1.3 RadioConfig HAL
New SimSlotCapability
Add getPhoneCapability API

Test: atest FrameworksTelephonyTests
Bug: 143238237
Bug: 143238191
Change-Id: I3349c3e50a806fb7bfd65b1bf16079878a5aeb06
2020-01-21 10:38:07 -08:00
Jack Yu
b01bf9753c 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: If5a9dfa7179d02886ce3520795b58bd452abe078
2020-01-21 09:37:08 -08:00
Automerger Merge Worker
a2fc38e471 Merge "Publish ImsMmtelManager API for better debugging" am: 09a87d3f9f am: cacdf69470 am: 7cc1436284
Change-Id: I8326658287662a5c503ff6ba2cbc2457fba5d829
2020-01-20 17:35:29 +00:00
Shi Lu
cacdf69470 Merge "Publish ImsMmtelManager API for better debugging"
am: 09a87d3f9f

Change-Id: Ib04eff33de8a6816520fa5fb0d0a2cc418394c3a
2020-01-20 09:10:07 -08:00
Shi Lu
09a87d3f9f Merge "Publish ImsMmtelManager API for better debugging" 2020-01-20 16:56:37 +00:00
Calvin Pan
2ffecdb9fd Merge "Redesign the setPreferredNetworkType" 2020-01-20 08:00:05 +00:00
easoncylee
8f58243483 Fix typo from @see : to @see.
This was introduced in https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/10119408 and caused a doc build failure

Bug: 147979711

Change-Id: I69825a4063fc2ebbcbc25a7fea0e38e56fb51acd
2020-01-20 03:31:57 +00:00
Daniel Bright
d47f1c439d Changed ApnSetting mappings to constants
* Changed ApnSetting to use constants instead of hardcoded strings for clarity.
* Made isDataCapable a public api.
* Removed feature flag android.hardware.telephony.data and opted for a resource
config setting instead.

Bug: 146206136
Test: FrameworkBaseTests, FrameworkOptTests
Change-Id: I19ac83f5865e8763cd9414c41d4609f79d0db164
2020-01-19 14:05:46 -08:00
Zoey Chen
23048ad7d1 Merge "[Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager." 2020-01-19 14:38:35 +00:00
Daniel Bright
19264bbcd5 Merge "Created typed class pin result in keyguard" 2020-01-19 07:37:18 +00:00
zoey chen
16a1821f9c [Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager.
IccCard#changeIccLockPassword
IccCard#setIccLockEnabled
IccCard#getIccLockEnabled
Bug: 146983487
Test: manual

Change-Id: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
2020-01-19 00:02:10 +08:00
Zoey Chen
aca9fccf06 Merge "[Settings] Expose @hide #setDataAllowedDuringVoiceCall and #isDataAllowedInVoiceCall as @SystemApi" 2020-01-18 14:09:39 +00:00
Shuo Qian
93642d4433 Support always reporting signal strength phone state listener
We should not allow other stack (such as Bluetooth) to directly control
 modem indication reporting. The hidden API
 TelephonyManager.setRadioIndicationUpdateMode added before do not
 support multiple clients and do not support the case when clients'
 process die.

The new solution would be adding a new listener
 PhoneStateListener.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH and let
 telephony registry (which is running under system process) to tell
 telephony whether to always turn on signal strength update if any client
 is listening to this event.

Introduce a new system API for TelephonyRegistry
to tell Telephony module this listening mechanism.

Introduce a new permision for this function

Test: WIP (Have this CL out to try to catch up the API deadline)
Bug: 147322848

Change-Id: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
2020-01-17 22:25:46 -08:00