Commit Graph

7392 Commits

Author SHA1 Message Date
Scott Randolph
6133800a58 Merge "Implementation of Remote-SIM." am: 9f7bc7d616
am: 0fd63d542d

Change-Id: Ie4c28658f6384df624bf8b1d4c1b7b9bed555611
2019-01-23 21:28:45 -08:00
Scott Randolph
9f7bc7d616 Merge "Implementation of Remote-SIM." 2019-01-24 05:01:05 +00:00
Leland Miller
c5ceebba02 Merge "Add part ID reuse to API contract" am: d49a6c86f4
am: ea65fcc98a

Change-Id: I4e6546a02cd3614b8c28a8e0b7c1cc6501b1bd93
2019-01-23 21:00:25 -08:00
Pengquan Meng
8a5c3bc6c2 Merge "Fix doc of NETWORK_TYPE_NR & add converter" am: 1abe6aa53f
am: a4e9cec4b3

Change-Id: Ic2bea19fad4095c4f16b34691bbb6ff39546cb19
2019-01-23 20:47:07 -08:00
Treehugger Robot
d49a6c86f4 Merge "Add part ID reuse to API contract" 2019-01-24 04:29:10 +00:00
Pengquan Meng
1abe6aa53f Merge "Fix doc of NETWORK_TYPE_NR & add converter" 2019-01-24 04:22:47 +00:00
Jack Yu
332b5b5786 Merge "Supported data handover in DcTracker/DataConnection/ApnContext" am: 56e1062ce3
am: e055bfa0fa

Change-Id: I3a16a4c3f846114948028d84b82eddb86d6a8d2c
2019-01-23 19:17:22 -08:00
Pengquan Meng
82e6b2ab02 Fix doc of NETWORK_TYPE_NR & add converter
This fix some documents related to NETWORK_TYPE_NR and add a converter
from ril rat to NETWORK_TYPE_NR.

Bug: 111453000
Bug: 123099654
Test: build
Merged-In: Ib9ee0dbe0234ef1bf9ef22900b00ddd47195914f
Change-Id: Ib9ee0dbe0234ef1bf9ef22900b00ddd47195914f
2019-01-23 14:57:28 -08:00
Jack Yu
48667abf9b Supported data handover in DcTracker/DataConnection/ApnContext
Added data handover support in DcTracker/DataConnection/ApnContext.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: I1dfecbe48e230b3cab1b8b83e8d9f9dfd241752e
Change-Id: I1dfecbe48e230b3cab1b8b83e8d9f9dfd241752e
(cherry picked from commit faa7a52543)
2019-01-23 14:49:24 -08:00
Leland Miller
6c753558c3 Add part ID reuse to API contract
This make explicit that part IDs should not be reused to point to new
parts as this may cause issues in applications that expect pars to
remain consistent.

Test: Documentation change, will follow up with a CTS test
Change-Id: I990aa5848f59cc85c76d129701cba1ca27c78894
2019-01-23 22:44:06 +00:00
Vasu Nori
aea0391cf6 Implementation of Remote-SIM.
Design doc http://shortn/_GG690j15js

1. Modified SmsManager to send message thru Bluetooth if the subscription
   is for a Remote-SIM.
2. Added new column 'subscriptionType' to SubscriptionInfo.
3. SubscriptionManager:
  a. Added new constants for Local SIM and Remote SIM
  b. Added hidden APIs to add/remove Remote SIM subscriptions

Bug: 112321331
Test: tested manually and w/ unittests
Change-Id: Ib15553a806691a258fc00f7aaf812b8a9d49c2e9
2019-01-23 14:25:32 -08:00
Nathan Harold
20cbf841d9 Merge "Deprecate Duplicate SignalStrength Methods" am: a3ab270ce1
am: e880dcb9ea

Change-Id: Ic7b763122addc84a5fad86cf8a8dceb69896800e
2019-01-23 10:08:56 -08:00
Nathan Harold
a3ab270ce1 Merge "Deprecate Duplicate SignalStrength Methods" 2019-01-23 17:37:03 +00:00
Xiangyu/Malcolm Chen
1f61f171e0 Merge "Add System API to enable / disable a logical modem." am: 8df9d17289
am: def2c87ee6

Change-Id: I85875233adced81ae9caa4d1a4c65cdc84922356
2019-01-22 22:07:47 -08:00
Xiangyu/Malcolm Chen
8df9d17289 Merge "Add System API to enable / disable a logical modem." 2019-01-23 05:40:04 +00:00
Holly Jiuyu Sun
25696ef82e Merge "Check whether cardId is valid in EuiccManager#isEnabled." am: feb047acb3
am: 4fc9c994d4

Change-Id: I356c5b13808562af3baf970dfad6443564f64590
2019-01-22 12:12:59 -08:00
Holly Jiuyu Sun
feb047acb3 Merge "Check whether cardId is valid in EuiccManager#isEnabled." 2019-01-22 19:03:58 +00:00
Jack Yu
ea5d6e1bb3 Merge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause" am: 3788e9147d
am: c5e86971c1

Change-Id: Ie453f40d946ec9f512bd6ee09ce37aef4813be54
2019-01-22 10:57:43 -08:00
Nathan Harold
d261a313d6 Deprecate Duplicate SignalStrength Methods
This change cleans up access and deprecates method
on the SignalStrength class that are no longer needed
due to the support of getCellSignalStrengths(). These
methods are generally technology-specific getters. In
addition, this tags non-public methods that were also
of this type to restrict their access to apps
targeting P or earlier via the @UnsupportedAppUsage
annotation.

In addition, deprecate the semantically incorrect
isGsm().

Lastly, deprecate the NotifierBundle() methods that
rely heavily on implementation details that changed
in this release, and which should also be unneeded due
to getCellSignalStrengths() giving access to the
internal storage classes of SignalStrength.

Bug: 122845432
Test: make update-api && make offline-sdk-docs && make
      (no functional change).
Change-Id: Iec794aee337099dee91d0820f7269fda433e8b01
2019-01-22 10:36:31 -08:00
paulhu
6a184ed31a Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause
For exposing more data call failed cause from modem, add more
cause definitions in radio HAL V1.4 and adjust some related
parameters in SetupDataCallResult. Update frameworks related
files to fulfill V1.4 modification.

Bug: 113505704
Test: 1. atest FrameworksTelephonyTests
      2. Manually test data call functions

Change-Id: I47265345df151e080b873c5b29bf5b1eb6ab4a74
2019-01-22 15:30:58 +08:00
Xiangyu/Malcolm Chen
8718e42d68 Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java" am: 5c1968475c
am: 112d88e592

Change-Id: I4830219aefbf7e2fc0d2e1573e7d60479af0dfab
2019-01-21 19:33:24 -08:00
Xiangyu/Malcolm Chen
5c1968475c Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java" 2019-01-22 03:16:28 +00:00
Xiangyu/Malcolm Chen
4255166b2f Merge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList" am: b4a450a13c
am: 8376dfba3e

Change-Id: I93234b7e139a0135cee49ccc53ef73eb1c476bd5
2019-01-21 15:16:25 -08:00
Xiangyu/Malcolm Chen
bc5ee3e1db Merge "Add helper API to hide subscriptions when getting active subscriptions" am: 795b80da15
am: bf69949739

Change-Id: I72be96cb0fddb2ad820e015f680519a0520de02b
2019-01-21 15:10:20 -08:00
Xiangyu/Malcolm Chen
b4a450a13c Merge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList" 2019-01-21 22:45:09 +00:00
Malcolm Chen
1a5de86744 Add System API to enable / disable a logical modem.
Bug: 122926141
Test: unittest
Change-Id: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
Merged-In: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
2019-01-21 13:43:18 -08:00
Malcolm Chen
c3d7de01c7 Add helper API to hide subscriptions when getting active subscriptions
Adding a hidden API that only return user visible active subscriptions.

Bug: 121396526
Test: manual
Change-Id: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f
Merged-In: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f
2019-01-21 21:17:25 +00:00
Malcolm Chen
4616e52aef Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java
IRadioConfig 1.1 getPhoneCapability and setPreferredDataModem
are defined. Here we hook the calls into RadioConfig.

Bug: 121354686
Test: sanity
Change-Id: I2a198d446962510ef9a3019d3aa30b40e796ebe0
Merged-In: I2a198d446962510ef9a3019d3aa30b40e796ebe0
2019-01-21 13:07:41 -08:00
Malcolm Chen
28eeb3ac37 Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList
Don't call getAvailableSubscriptionInfoList twice in
getSelectableSubscriptionInfoList.

Test: build
Change-Id: Ie5821b1d8a01834228401ce6bb1e9ae251168760
Merged-In: Ie5821b1d8a01834228401ce6bb1e9ae251168760
2019-01-21 13:04:59 -08:00
Jordan Liu
3be2df7b4f Merge "Trigger PhoneStateListener onCallAttributesChanged" am: cd4ca49b18
am: bbd7b9170a

Change-Id: Iefb3d9845b95e22f45ecfeb47f770b708951438a
2019-01-18 23:13:05 -08:00
Treehugger Robot
cd4ca49b18 Merge "Trigger PhoneStateListener onCallAttributesChanged" 2019-01-19 06:49:09 +00:00
Holly Jiuyu Sun
ef5c4a5397 Check whether cardId is valid in EuiccManager#isEnabled.
EuiccManager#isEnabled should be only true if its cardId is a valid one.

Bug: 111614811
Test: test on phone
Change-Id: I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8
Merged-In: I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8
2019-01-18 18:13:51 -08:00
Michele Berionne
da8ca7f8ac Merge "Carrier restriction enhancements for Android Q" am: 98391daa29
am: 941ad71f35

Change-Id: I1c9e816516eeb25d775d71fae8684af25e22fefb
2019-01-18 17:03:11 -08:00
Michele Berionne
98391daa29 Merge "Carrier restriction enhancements for Android Q" 2019-01-19 00:13:56 +00:00
Jayachandran Chinnakkannu
58a61cc734 Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26
am: e9dc415e2b

Change-Id: I2e381e9215a2d8f036a0de4f021573688250c142
2019-01-18 15:43:03 -08:00
Jayachandran Chinnakkannu
44631dfc26 Merge "Cellular data stall recovery based on networkStatus" 2019-01-18 22:54:38 +00:00
Jayachandran C
8ef41bf34f Cellular data stall recovery based on networkStatus
This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8
2019-01-18 22:52:16 +00:00
Michele Berionne
a4a1ae499d Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
Merged-In: I2723fb07db13efdafbc74471a87182e2d2a32718
2019-01-18 22:37:12 +00:00
Leland Miller
434fd829bb Merge "Add thread ID reuse to API contract" am: a24e12b46e
am: 7261b8a16c

Change-Id: I810feb06975e4643b19b7486ca9b3aed1da0287c
2019-01-18 12:15:24 -08:00
Nathan Harold
02f9b47f58 Merge "Remove LTE Rsrp Boost from SignalStrength" am: d9ff9597bc
am: 55a4e459c7

Change-Id: I523f2e780e07123640192ed733f53182cac183cc
2019-01-18 11:34:36 -08:00
Leland Miller
a24e12b46e Merge "Add thread ID reuse to API contract" 2019-01-18 19:32:37 +00:00
Nathan Harold
d9ff9597bc Merge "Remove LTE Rsrp Boost from SignalStrength" 2019-01-18 19:09:50 +00:00
Jack Yu
40951923b3 Merge "Split applyNewState into enable/disable APN" am: 56401a4c74
am: c2468ed1e3

Change-Id: Ic458340d04bcbc4b8a68854ebd10ed7a4cf065ce
2019-01-18 01:40:23 -08:00
Jack Yu
56401a4c74 Merge "Split applyNewState into enable/disable APN" 2019-01-18 09:07:16 +00:00
Jayachandran Chinnakkannu
4cee2bdf3a Merge "Update sharedPreference to false when exits new device provisioning" am: 1136af9966
am: d25ea190d9

Change-Id: I055efd867cbe2e9034774af082178476c47fe83a
2019-01-17 22:21:47 -08:00
Jack Yu
4810387d02 Split applyNewState into enable/disable APN
This is the preliminary work for adding handover
type for enable/disable APN.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
Change-Id: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
(cherry picked from commit ade6d1a66d)
2019-01-17 16:45:14 -08:00
chen xu
61fbefbbe9 Update sharedPreference to false when exits new device provisioning
Update sharedPreference to false when exits new device provisioning,
indicating no users modifications on the settings for new devices.
Thus carrier specific default roaming settings can be applied for new devices.

Bug: 122817867
Test: Manual test on VZW SIM in Setupwizard
Merged-in: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
Change-Id: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
2019-01-18 00:44:21 +00:00
Brad Ebinger
5319bf52e8 Merge "Use better Exception handling in IMS APIs." am: 1d8df63744
am: a681d1521a

Change-Id: I9f01b361a2d029155c4812d36188adb49fa77ffd
2019-01-17 15:12:07 -08:00
Jayachandran Chinnakkannu
212ac77c9c Merge "Revert to previous constant value for ApnSetting.TYPE_DEFAULT." am: 54ad67f884
am: 793a3dac05

Change-Id: I4496b110d3fede92f8419e8150b6bf1c2b18fb9d
2019-01-17 14:58:40 -08:00
Nathan Harold
d4d4ed769f Merge "Invoke Both onDataConnectionStateChanged Methods" am: 1699bb7d92
am: e4db115b37

Change-Id: If9a3fee2717f74f5c497ce3e5a7bd4585123e604
2019-01-17 14:46:44 -08:00