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
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
EuiccManager#isEnabled should be only true if its cardId is a valid one.
Bug: 111614811
Test: test on phone
Change-Id: I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8
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)
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
The RSRP boost is no longer used in SignalStrength,
and there are no major users of this value to
justify keeping the value around even though there is
no direct alternative. Thus, removing it from
SignalStrength.
Bug: 122846268
Test: compilation (code removal)
Change-Id: I2d4409986a64aa13379e2894457d000ae43f92ca
Added data handover support in DcTracker/DataConnection/ApnContext.
Test: Telephony sanity tests + unit tests
Bug: 73659459
Change-Id: Ieb9e0b147680958ef0f24b67bc808f33e5ada882
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
Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.
Do not send service types from the database
as the emergency service categories
When searching for the corresponding service categories,
try to find the one that comes from the radio indication.
Test: Treehugger
Bug: 112657134
Change-Id: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
Merged-In: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
(cherry picked from commit a4bd738b8b)
Add EMERGENCY_NUMBER_SOURCE_TEST_MODE
This also does not allow to send the service categories from database when
dialing.
Bug: 122840137
Test: Manual; Treehugger
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
PhoneStateListener#onDataConnectionStateChanged is
overloaded to either take 1 or 2 parameters.
When receiving a callback from binder, the same call
should invoke both methods. sequentially.
Bug: 122274960
Test: atest PhoneStateListenerTest
Change-Id: I146f1eafa475969119254339d86b41244a96fb56