History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1ed9d2cb208a6cbb669ad630b383539daf55f9d6 21-Jun-2017 Sanket Padawe <sanketpadawe@google.com> Hide celllocation getting printed in bugreport.

Change-Id: I19efc4b344b28387fe74b03ba6dfec78f6421562
Fix: 62827374
Test: manual
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c594cbe54ee6167696571c34a700ca7347f19f22 09-Jun-2017 Amit Mahajan <amitmahajan@google.com> Consider Service State OFF same as OUT OF SERVICE for combined regState

Test: manual
Bug: 37425222
Change-Id: I1afd552ff5156b96c6ec4946e8ffd42d85ad9ad7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b7c0a4bf216f1060c2436094411b660aa3d9f8b4 07-Jun-2017 Sanket Padawe <sanketpadawe@google.com> Update strings for modem restricted state notifications.

Test: manual
Change-Id: Ie5941bdcafb867b75bb2362634bb0e55e796f7bd
Fix: 37377132
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e8a0fdbb7b6734f2ff05d46f92cfafd44b525dd7 13-May-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Set CDMA data roaming based on TSB58 roaming indicator if voice is not in service" into oc-dev
1ac51f1ba08b1d21d7da4fb00cd6a6545dffcc81 06-May-2017 Jayachandran C <jayachandranc@google.com> Set isGsm flag based on currently camped voice and data RATs

Use currently camped RATs to determine isGsm the flag
instead of checking both phone type and camped RATs.

Test: Verified the signal bar for the following use cases
Idle:
- SRLTE (1x & LTE) mode
- hVoLTE mode
- 2G only, 3G preferred, LTE preferred
- Cellular and IWLAN registered

Voice calls:
- CS calls on 1x, GSM, UMTS for all possible voice, data RATs
- IMS calls on LTE and IWLAN for all possible voice, data RATs

Bug: 36644977
Change-Id: Ifd996a2c902c7238f7328a42f0401c8d626e89e4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c52bd153339cb0f7fd317fbee70aa5c45a6c4404 07-May-2017 Jayachandran C <jayachandranc@google.com> Set CDMA data roaming based on TSB58 roaming indicator if voice is not in service

Existing implementation:
1. CDMA voiceRoaming is set based on regState and roaming indicator.
2. CDMA dataRoaming is set based on regState only.
3. CDMA dataRoaming is overwritten with voiceRoaming if voice is
in service.

Issue:
If voice is not in service then the CDMA dataRoaming set based on
regState alone could be incorrect because it didn't use roaming
indicator from modem.

Fix:
This change sets CDMA dataRoaming based on TSB58 roaming indicator
(similar to setting voiceRoaming) if voice is not service.

Note: As per VoiceRegStateResult from radio types.hal the TSB58
roaming indicator shall be sent if device is registered on a
CDMA or EVDO system.

Test: Forced device to Evdo only and verified roaming state
Bug: 37917767
Change-Id: I3cc7fff61cea296afe17215a33b1b4c80972db13
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c5bfcf33515e51f4035eb51f658abbe81894b0c4 09-May-2017 Sanket Padawe <sanketpadawe@google.com> Merge "Register for EVENT_RESTRICTED_STATE_CHANGED irrespective of phone type." into oc-dev
a18eb87506359758fb67899525d0737d98923b8d 04-May-2017 Sanket Padawe <sanketpadawe@google.com> Register for EVENT_RESTRICTED_STATE_CHANGED irrespective of phone type.

+ Removed some dead code as well.

Bug: 37377132
Test: manual
Change-Id: I6ddddc39e69e0850e838b6f3cf1bc4adda682281
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
7c29cabeb38ae8cb4f5764c2dc0a768de22d2f92 02-May-2017 fionaxu <fionaxu@google.com> support locale change for notification channels

- create all notification channels when phone process started to provide
an consistent UX experience
- support locale changes

Test: Manual test with different languages
Bug: 37911731
Change-Id: Ib2d2bb27d307a3570923ca176f7d02f0c1985a43
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
720a8cd3b063ddc255480f9c716b15dabeafbda5 21-Apr-2017 Chen Xu <fionaxu@google.com> Merge "telephony service support notification channel" into oc-dev
13ff522d752715d856bd4068d39a769cd0d54a24 20-Apr-2017 fionaxu <fionaxu@google.com> telephony service support notification channel

Bug: 37475310
Test: Manual Test
Change-Id: Idb7697337dfd02a2fbb0ff7f3b1a3f69582c7f2e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
f2aa53cc9508ad86a9bb79188dddf68ce43fcccd 19-Apr-2017 Jordan Liu <jminjie@google.com> Use SubscriptionId instead of SubId

Use the renamed methods in ServiceStateTable which refer to
SubscriptionId instead of SubId.

Change-Id: Ic837535b431c19d952e065b742d678152afafd57
Fixes: 35766624
Test: Existing unit tests pass
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c18827fa4b9f313686187d298429faf862165613 18-Apr-2017 Chen Xu <fionaxu@google.com> Merge "stop polling service state when shutting down" into oc-dev
450d7f0d799d349b07b69d2cb18ab20790eaa35c 12-Apr-2017 fionaxu <fionaxu@google.com> stop polling service state when shutting down

if pollServiceState is modem triggered, we will keep polling state even
radio is off. This will cause "No service" and "No SIM card" hangs here
for a while during the power off sequence.

Bug: 34359617
Test: Manual
Change-Id: I9a6f0412bdf7dd67316ce982834a7ad43054f7f4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b675e5561c0971f54aad6349709d886408dc02ad 08-Mar-2017 Jordan Liu <jminjie@google.com> ServiceStateTracker notifies via ContentProvider

ServiceStateTracker inserts updated ServiceStates into the provider.
Telephony.ServiceStateTable contains helper functions and constants for
interfacing with the ServiceStateProvider.

Also update ContextFixture so the unit tests doesn't fail when trying to
use the service-state authority

Bug: 33756364
Test: runtest --path ServiceStateTrackerTest
Change-Id: I6b07b54f803765bba4c014474926a825113ac952
Merged-In: I6b07b54f803765bba4c014474926a825113ac952
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
cc348d6cbb3d9187799eb550e8c3bb83ce94dd89 31-Mar-2017 Shuo Qian <shuoq@google.com> Merge "Remove duplicate 'Time logs:' and 'Time zone Logs:' in the dumpsys" into oc-dev
19001b7796f062272c5a826b26eda6af6b7ed764 31-Mar-2017 shuoq <shuoq@google.com> Remove duplicate 'Time logs:' and 'Time zone Logs:' in the dumpsys

Bug: 36686977
Test: Manual
Change-Id: I920aeb28df7456f4c5b07495bb8c63638634ef37
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
022a5af455c8456952726ed906efeb47ce895550 29-Mar-2017 Sanket Padawe <sanketpadawe@google.com> Disable voice call barring notification for VZN.

Test: Manual
Bug: 31490566
Change-Id: I729a7da49d5379d0559653a1d702881979bc6711
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
333c7cb30dfaceac2a775274a29b144b9ff2f46f 27-Mar-2017 Sanket Padawe <sanketpadawe@google.com> String changes for Voice/Data/Emergency services blocked.

Bug: 31490566
Change-Id: Ic73e235fb4c412b5041ee03bc96de3b168ef741e
(cherry picked from commit 75ddc0cd156fd3c551dc8750df7ff6f09caaf30f)
Merged-in: Ic73e235fb4c412b5041ee03bc96de3b168ef741e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
ec01321c0ce4f6fba81b496ecd96c60832bd4329 23-Mar-2017 manabu.x.fujiwara <manabu.x.fujiwara@sonymobile.com> Notification for MM reject cause code am: 689189c6dd
am: ae57ff7c2b

Change-Id: I60b14f555603495f84e3cd33b28460788eebd810
689189c6ddcd6b61e35f779f53fa0e18016622cf 08-Mar-2017 manabu.x.fujiwara <manabu.x.fujiwara@sonymobile.com> Notification for MM reject cause code

Display notification when UE fails to register network with specific
reject cause code. The notification includes specific strings and icon.
Since some carriers require, this feature is needed.

Test: manual with simulated RIL
Bug: 28923693
Merged-In: I95d5d768b6daa49a59d34e2af8cb1d225362f0a8
Change-Id: I95d5d768b6daa49a59d34e2af8cb1d225362f0a8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
cdf57730baf00d41fe71643182e52d62d42b2d32 16-Mar-2017 Sooraj Sasindran <sasindran@google.com> Merge "Support Signal Strength Offset"
am: 9b85480ed9

Change-Id: Ia3f727f2af17d6530358ce9d80a1ef0632dfaac1
22a3ce4867486001dde9196c676092b1638ae982 09-Mar-2017 Sooraj Sasindran <sasindran@google.com> Support Signal Strength Offset

Feature to offset the lte rsrp for
higher frequency lte bands.

Test: Verified on device that signal bars increased
bug=30628343

Merged-In: Ia056cca2ca1ef3c63f033e4d0dad7f0603a3bb1c
Change-Id: Ia056cca2ca1ef3c63f033e4d0dad7f0603a3bb1c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
032185111767053a3e34aa94e868363570ae0de8 09-Mar-2017 Sooraj Sasindran <sasindran@google.com> Support Signal Strength Offset

Feature to offset the lte rsrp for
higher frequency lte bands.

Test: Verified on device that signal bars increased
bug=30628343

Merged-In: Ia056cca2ca1ef3c63f033e4d0dad7f0603a3bb1c
Change-Id: Ia056cca2ca1ef3c63f033e4d0dad7f0603a3bb1c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
215b151f52a250fd5e6d525792e0c4a1dbdf904e 10-Mar-2017 Sooraj Sasindran <sasindran@google.com> Merge "Use tac and ci as lac and cid for LTE" am: 995e90e58b am: 8b075e719b
am: 7cdecadae4

Change-Id: I0310395b98c7d1bd7dd5285b0a81a94d29eff0ca
8b075e719b531e63b8bb62e65edac2f530e7f346 10-Mar-2017 Sooraj Sasindran <sasindran@google.com> Merge "Use tac and ci as lac and cid for LTE"
am: 995e90e58b

Change-Id: I3ce8719f7f0105ddee1f6b4c9821eac86df1c3d1
995e90e58b431279745d8891447690ebce292165 10-Mar-2017 Sooraj Sasindran <sasindran@google.com> Merge "Use tac and ci as lac and cid for LTE"
b84f81fc061a131de05815a7b35d3e17adfc785a 09-Mar-2017 Adrian Salido <salidoa@google.com> Merge "Revert "Get rid of RIL version."" am: 6514905475 am: cd7b721ab6
am: c39906967f

Change-Id: I55dac4d7ee85fb890d8b08c22ffe6bf7c8835cb3
cd7b721ab6d4631fc899add2b64da08bcbccc080 09-Mar-2017 Adrian Salido <salidoa@google.com> Merge "Revert "Get rid of RIL version.""
am: 6514905475

Change-Id: I14f1c448e55cedfb09f7af2e73daffd8d5ca1e5d
6514905475910fe5bbabc98e237b0ee61377a0f2 09-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Revert "Get rid of RIL version.""
9e9476e236db1d3f43c73b8adb8a8a4823b747f1 07-Mar-2017 Sooraj Sasindran <sasindran@google.com> Use tac and ci as lac and cid for LTE

In case of LTE, use ci and tac as cid and lac.
Convert ril registration state to ServiceState
registration state.

Test: verified unit tests.
verified on device that device reports
registration correctly
Bug=32223344
Change-Id: I556914dc17dae3842048fc574e5554ef26264720
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
a56f405d3006b1d8378b5f7757a5613b75fa8fb4 09-Mar-2017 Adrian Salido <salidoa@google.com> Revert "Get rid of RIL version."

This reverts commit 81ea341d2deb767cbd1de2f356296ad92e951c52.

Bug: 36018228
Change-Id: Iee0410f197c2869e2bdefcaaae51e7ef215cdff1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
89af85683702e7ba36310ad2cc685bf4b94416c0 07-Mar-2017 Jack Yu <jackyu@google.com> Merge "Fixed enableLocationUpdates crash" am: 663db0d09b am: 66b6faeae1
am: e243c82c68

Change-Id: I28c7194f55cd01c6bbd11b5d2038d08b86e47f51
66b6faeae1fff18617f7e29cdc7387395023a088 07-Mar-2017 Jack Yu <jackyu@google.com> Merge "Fixed enableLocationUpdates crash"
am: 663db0d09b

Change-Id: Ic9e7a4dfdac9d19cee4ca2b3c4a9b5c9783cc092
49c99113d77ca6f34f6a0c9d3e0049cddd3e754e 05-Mar-2017 Jack Yu <jackyu@google.com> Fixed enableLocationUpdates crash

1. The EVENT_GET_LOC_DONE handler dit not handle the
new voice registration response properly. This is a
regression introduced in ag/1907337.

2. Make ServiceStateTracker unit tests passed again!
Fixed a regression introduced by the Trebel change ag/1750738.
Return value of EVENT_RESTRICTED_STATE_CHANGED now is an integer
instead of an integer array.

Test: Telephony sanity tests
bug: 35980759
Change-Id: Idcacc4c891950913172be00daa966e7eb5be7fa6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
091c17e62f5f0fbdfd3e564a23b237ffffe26bbb 04-Mar-2017 Amit Mahajan <amitmahajan@google.com> Merge changes I61f19621,I70faef33 am: ef4062e157 am: 26c10b1d02
am: b33edcb0e0

Change-Id: I7d8cac4e04a8546e95bb2d19521ffb63b5bd2c06
26c10b1d02ae46c0bd255ab1962100bafee21498 04-Mar-2017 Amit Mahajan <amitmahajan@google.com> Merge changes I61f19621,I70faef33
am: ef4062e157

Change-Id: Iea4856878a41d2cd2489a49c8d08251d06130aa8
2eff094e05c29be584f896de73e7abf7631ac6b7 04-Mar-2017 Amit Mahajan <amitmahajan@google.com> resolve merge conflicts of 274a51709 to stage-aosp-master

Change-Id: I2aa6445600eed502738f578494dc8a8a73ec4d18
95f1d81c64c9ea6cce86cf73a2664d18cbd3e157 03-Mar-2017 Nathan Harold <nharold@google.com> Merge changes from topic 'sms-file-refactor'

* changes:
Remove newFromRil() function to a utility class
Move SMS_RECORD_LENGTH to SmsManager
Add the frameworks/services dependency to frameworks/opt
Move OTASP_* Consts from ServiceStateTracker to TelephonyManager
Port functions from DefaultPhoneNotifier to frameworks/base
Removing files that have been migrated to frameworks/base
81ea341d2deb767cbd1de2f356296ad92e951c52 03-Mar-2017 Amit Mahajan <amitmahajan@google.com> Get rid of RIL version.

Test: Basic telephony sanity
Bug: 32020264
Change-Id: I61f19621dd86622faecca77c4dadf3ced81e9c21
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
787056594ad38a5e2be27f211fcb702cfd7529b5 03-Mar-2017 Amit Mahajan <amitmahajan@google.com> Remove duplicate pollStateDone functions.

Test: Basic telephony sanity
Bug: 28299251
Merged-in: I74a096bdc22db59749afe6baa06abe046c3d5242
Change-Id: I735f223dea6659d75a6bc3739affa6f81b45a9e4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
860e4208de4ad4e5992e281a6a9317d69b06af86 03-Mar-2017 Amit Mahajan <amitmahajan@google.com> Remove duplicate pollStateDone functions.

Test: Basic telephony sanity
Bug: 28299251
Change-Id: I74a096bdc22db59749afe6baa06abe046c3d5242
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6432c2f4a4f438b72fa0d4b51d5098b179935868 14-Dec-2016 Nathan Harold <nharold@google.com> Move OTASP_* Consts from ServiceStateTracker to TelephonyManager

-Move the OTASP_* constants from SST
-Update references to those constants

Bug: 33414487
Change-Id: I1f7a8169ca21d7bc3ecd8d996b9f496a0f044662
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c2b233c11c93770833e68bff755524595f7a23d5 01-Mar-2017 Sooraj Sasindran <sasindran@google.com> Merge "Handle update in Data and Voice registration state"
am: 9ca49a5dec

Change-Id: I3489c4e63bab051f135b5371f2b8c16d93f0d4a5
d031c581c1f338ad0eba124f5bd8073b04ac4faa 14-Feb-2017 Sooraj Sasindran <sasindran@google.com> Handle update in Data and Voice registration state

Handle RIL interface update in data registration state
and voice registration state.

Test: Tested with updated QCRIL

new RILJ logs on different rats are as follows

02-27 10:22:48.489 D/RILJ ( 1483): [4169]< DATA_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 14, .reasonDataDenied = -1, .maxDataCalls
= 20, .cellIdentity = {.cellInfoType = LTE, .cellIdentityGsm = [],
.cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte =
[{.mcc = -1, .mnc = -1, .ci = 56, .pci = 135, .tac = 13826, .earfcn =
-1}], .cellIdentityTdscdma = []}} [SUB0]

02-27 10:22:48.463 D/RILJ ( 1483): [4166]< VOICE_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 14, .cssSupported = true,
.roamingIndicator = 1, .systemIsInPrl = -1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = LTE,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [{.mcc = -1, .mnc = -1, .ci = 56, .pci = -1, .tac =
-1, .earfcn = -1}], .cellIdentityTdscdma = []}} [SUB

02-27 11:13:16.138 D/RILJ ( 2110): [3992]< DATA_REGISTRATION_STATE
{.regState = REG_ROAMING, .rat = 13, .reasonDataDenied = -1,
.maxDataCalls = 20, .cellIdentity = {.cellInfoType = CDMA,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma =
[{.networkId = -1, .systemId = -1, .baseStationId = -1, .longitude = -1,
.latitude = -1}], .cellIdentityLte = [], .cellIdentityTdscdma = []}}
[SUB0]

02-27 11:13:16.136 D/RILJ ( 2110): [3993]< VOICE_REGISTRATION_STATE
{.regState = NOT_REG_MT_SEARCHING_OP, .rat = 0, .cssSupported = false,
.roamingIndicator = 64, .systemIsInPrl = 1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = 0x0,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

02-27 11:23:21.875 D/RILJ ( 2104): [4058]< VOICE_REGISTRATION_STATE
{.regState = REG_ROAMING, .rat = 6, .cssSupported = false,
.roamingIndicator = 64, .systemIsInPrl = 1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = CDMA,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma =
[{.networkId = 54, .systemId = 4, .baseStationId = 7155, .longitude =
2147483647, .latitude = 0}], .cellIdentityLte = [], .cellIdentityTdscdma
= []}} [SUB0]

02-27 11:29:36.774 D/RILJ ( 2157): [3925]< VOICE_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 16, .cssSupported = false,
.roamingIndicator = 1, .systemIsInPrl = -1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = GSM,
.cellIdentityGsm = [{.mcc = -1, .mnc = -1, .lac = 8, .cid = 0, .arfcn =
-1, .bsic = -1}], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

02-27 11:29:36.768 D/RILJ ( 2157): [3924]< DATA_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 2, .reasonDataDenied = -1, .maxDataCalls =
20, .cellIdentity = {.cellInfoType = GSM, .cellIdentityGsm = [{.mcc =
-1, .mnc = -1, .lac = 8, .cid = 0, .arfcn = -1, .bsic = -1}],
.cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte = [],
.cellIdentityTdscdma = []}} [SUB0]

Bug=32223344
Merged-In: I1e4470a93131119a75bfd9ec39db7e3c48f8d849
Change-Id: I1e4470a93131119a75bfd9ec39db7e3c48f8d849
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
9c8771b512391634af8c65fa3b58039ed9a9b5bd 14-Feb-2017 Sooraj Sasindran <sasindran@google.com> Handle update in Data and Voice registration state

Handle RIL interface update in data registration state
and voice registration state.

Test: Tested with updated QCRIL

new RILJ logs on different rats are as follows

02-27 10:22:48.489 D/RILJ ( 1483): [4169]< DATA_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 14, .reasonDataDenied = -1, .maxDataCalls
= 20, .cellIdentity = {.cellInfoType = LTE, .cellIdentityGsm = [],
.cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte =
[{.mcc = -1, .mnc = -1, .ci = 56, .pci = 135, .tac = 13826, .earfcn =
-1}], .cellIdentityTdscdma = []}} [SUB0]

02-27 10:22:48.463 D/RILJ ( 1483): [4166]< VOICE_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 14, .cssSupported = true,
.roamingIndicator = 1, .systemIsInPrl = -1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = LTE,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [{.mcc = -1, .mnc = -1, .ci = 56, .pci = -1, .tac =
-1, .earfcn = -1}], .cellIdentityTdscdma = []}} [SUB

02-27 11:13:16.138 D/RILJ ( 2110): [3992]< DATA_REGISTRATION_STATE
{.regState = REG_ROAMING, .rat = 13, .reasonDataDenied = -1,
.maxDataCalls = 20, .cellIdentity = {.cellInfoType = CDMA,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma =
[{.networkId = -1, .systemId = -1, .baseStationId = -1, .longitude = -1,
.latitude = -1}], .cellIdentityLte = [], .cellIdentityTdscdma = []}}
[SUB0]

02-27 11:13:16.136 D/RILJ ( 2110): [3993]< VOICE_REGISTRATION_STATE
{.regState = NOT_REG_MT_SEARCHING_OP, .rat = 0, .cssSupported = false,
.roamingIndicator = 64, .systemIsInPrl = 1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = 0x0,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

02-27 11:23:21.875 D/RILJ ( 2104): [4058]< VOICE_REGISTRATION_STATE
{.regState = REG_ROAMING, .rat = 6, .cssSupported = false,
.roamingIndicator = 64, .systemIsInPrl = 1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = CDMA,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma =
[{.networkId = 54, .systemId = 4, .baseStationId = 7155, .longitude =
2147483647, .latitude = 0}], .cellIdentityLte = [], .cellIdentityTdscdma
= []}} [SUB0]

02-27 11:29:36.774 D/RILJ ( 2157): [3925]< VOICE_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 16, .cssSupported = false,
.roamingIndicator = 1, .systemIsInPrl = -1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = GSM,
.cellIdentityGsm = [{.mcc = -1, .mnc = -1, .lac = 8, .cid = 0, .arfcn =
-1, .bsic = -1}], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

02-27 11:29:36.768 D/RILJ ( 2157): [3924]< DATA_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 2, .reasonDataDenied = -1, .maxDataCalls =
20, .cellIdentity = {.cellInfoType = GSM, .cellIdentityGsm = [{.mcc =
-1, .mnc = -1, .lac = 8, .cid = 0, .arfcn = -1, .bsic = -1}],
.cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte = [],
.cellIdentityTdscdma = []}} [SUB0]

Bug=32223344
Merged-In: I1e4470a93131119a75bfd9ec39db7e3c48f8d849
Change-Id: I1e4470a93131119a75bfd9ec39db7e3c48f8d849
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
17ed6547ba2bba79da66024c2cf41a4647a1dabc 24-Feb-2017 Amit Mahajan <amitmahajan@google.com> resolve merge conflicts of a9a08b122 to stage-aosp-master

Change-Id: I4bb424981bd67e0d848875b758cde346c3abaccb
a9a08b122c45e2c287e5e62c6824503a2e6916dd 24-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Merge the pollStateDone functions for GSM, CDMA and CDMA-LTE"
2255613f8548afe1cc7212ca46e281618ad38de8 24-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Merge the pollStateDone functions for GSM, CDMA and CDMA-LTE"
00d07390d528c48d80033542f1d03f9305d0b0db 24-Feb-2017 Sanket Padawe <sanketpadawe@google.com> Merge commit '96140f71f60a923f66c6fd16e43a870b910e2919' into manual_merge_96140f71f am: b65c1431d4
am: a245431235

Change-Id: If3d941598de316736f225c681ac21c6bf7ced0cc
3b80171056751d3681ad1fe876f4e4e99bfdeb67 22-Feb-2017 Amit Mahajan <amitmahajan@google.com> Merge the pollStateDone functions for GSM, CDMA and CDMA-LTE

Test: Basic telephony sanity
Bug: 28299251
Merged-in: I0a1a11623c1c27fe3449cf48f26982d7551cf6c2
Change-Id: I0a1a11623c1c27fe3449cf48f26982d7551cf6c2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
f948bef6da929a054f035243f5abb03c1de02b01 22-Feb-2017 Amit Mahajan <amitmahajan@google.com> Merge the pollStateDone functions for GSM, CDMA and CDMA-LTE

Test: Basic telephony sanity
Bug: 28299251
Change-Id: I0a1a11623c1c27fe3449cf48f26982d7551cf6c2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b65c1431d4ff52c552b1f6721dec1169a389795c 24-Feb-2017 Sanket Padawe <sanketpadawe@google.com> Merge commit '96140f71f60a923f66c6fd16e43a870b910e2919' into manual_merge_96140f71f

Test: build
Change-Id: Ic19481e3cf4d65273cd15a26e1da0177f0a83870
a9f4cab95235ce60c66cda06185f698bdb88bd32 12-Oct-2016 Sanket Padawe <sanketpadawe@google.com> Add more debugging logs for NITZ in dumpsys output.

Test: Basic log printing.
Bug: 31946097
Change-Id: I5103d7abe48a9e254fd92a2143ab705029f4e872
Merged-in: I5103d7abe48a9e254fd92a2143ab705029f4e872
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
12419e8e09902972736b3d63cd6f11ff0fb1801b 23-Feb-2017 Sanket Padawe <sanketpadawe@google.com> Add more debugging logs for NITZ in dumpsys output.

Test: Basic log printing.
Bug: 31946097
Change-Id: I5103d7abe48a9e254fd92a2143ab705029f4e872
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
66e168eea2050d167319bbe9c9d1ce2b783b04e8 23-Feb-2017 Jack Yu <jackyu@google.com> Merge "Telephony: Use data and voice states for SPN" am: c6d068613e am: df85c4727f
am: c6dcf3652f

Change-Id: I37513d081c8ec468330542aeaba06571de0a92b3
df85c4727f748d02929b58c4a88e2aeef111f4a6 23-Feb-2017 Jack Yu <jackyu@google.com> Merge "Telephony: Use data and voice states for SPN"
am: c6d068613e

Change-Id: I857eb99f10a4b24372c058d1174719d6e8600559
aa7cf220ec39b8ccd7e36f02a4ec0ff988df94ae 15-Sep-2016 Shiva Kishore Tekale <shivakishore@codeaurora.org> Telephony: Use data and voice states for SPN

SPN display text is based on both voice service state
and data service state.
Eg - Voice service state is OOS and data service state
is IN_SERVICE. In such cases, both regStates need to be
considered to determine what to show in UI for SPN.
Fix the wrong CDMA carrier text in expanded status bar.
After updating operator, the expanded status bar will
update SPN
For GSM, SPN is "no service" if service is out of service.
For CDMA, SPN is CDMA carrier. Check current service
state whether out of service, if yes, display "no service"
instead of SPN.

bug: 22640459
Test: manual
Change-Id: Ic46ac0c7e3af51a380bb2db5d71a71bf9595c2ec
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0b0cc77567c31c3bc3691d001b18f79300e1a4f3 10-Feb-2017 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client
am: 4a39e21efe

Change-Id: I9dbf0b2355887edee8e48c713a25c1c3eed96a5a
4a39e21efe21028b97aa0545702f5c405cc44cf4 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

Test: Through logs confirmed that the wakelock decrement is happening
correctly
BUG=31041780
Merged-In: Id8ca0006478212c006a103b83fb720532e9c0fab
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
8b38cd985149b459969dd2ac9e8013d852dc6760 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

Test: Through logs confirmed that the wakelock decrement is happening
correctly
BUG=31041780
Merged-In: Id8ca0006478212c006a103b83fb720532e9c0fab
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
85895f093a0901ee8b8abc722c74e4736bc57c31 07-Feb-2017 Jack Yu <jackyu@google.com> Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged" am: e78ea42459 am: e29cc8fd5f
am: d0d5b29f03

Change-Id: I3fc134ad6e3d37f2482fc1055525f4f703713f27
d0d5b29f033252fdf133098fc727f58919037915 07-Feb-2017 Jack Yu <jackyu@google.com> Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged" am: e78ea42459
am: e29cc8fd5f

Change-Id: Ib82544780ebebd8b096bfdc152131bc4fb01becb
6509576d8eb86664d1b5383a1b637e00748e807e 24-Jan-2017 Jack Yu <jackyu@google.com> Renamed voiceNetworkStateChanged and dataNetworkStateChanged

The misleading voiceNetworkStateChanged should be renamed
to networkStateChanged to reflect either voice or data
network changes will trigger this indication.
And dataNetworkStateChanged should be renamed to
dataCallListChanged as well.

Test: telephony sanity test
Merged-In: I5839efc3bdaf137310238790221c8ba93794bde3
Change-Id: I5839efc3bdaf137310238790221c8ba93794bde3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
fefc3e3357cc9c18aa83757690c18d0ae7852c46 03-Feb-2017 Amit Mahajan <amitmahajan@google.com> Merge "Client (framework) side HAL changes for RIL unsolicited responses - 2" am: 0fccef72e7 am: e7deddef94
am: ab8807ebbd

Change-Id: I08abba3ff8eade0c51c0d1f6cc4dcd94b6b8b50a
ab8807ebbd03bdcff4fcdd50edf2b639b763ddae 03-Feb-2017 Amit Mahajan <amitmahajan@google.com> Merge "Client (framework) side HAL changes for RIL unsolicited responses - 2" am: 0fccef72e7
am: e7deddef94

Change-Id: I8f5b593372f4e865e3fe029ec1c7b736d2b6eb0f
37a3e51d244774ba156a88cf101432b62c8a42a3 24-Jan-2017 Jack Yu <jackyu@google.com> Renamed voiceNetworkStateChanged and dataNetworkStateChanged

The misleading voiceNetworkStateChanged should be renamed
to networkStateChanged to reflect either voice or data
network changes will trigger this indication.
And dataNetworkStateChanged should be renamed to
dataCallListChanged as well.

Test: Build
Change-Id: I5839efc3bdaf137310238790221c8ba93794bde3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
5f853dbfcb3bf57d1fedddebf2c12caf1abc298a 29-Dec-2016 Amit Mahajan <amitmahajan@google.com> Client (framework) side HAL changes for RIL unsolicited responses - 2

Test: Basic telephony sanity (voice call, sms, data, APM)
Bug: 32020264
Merged-in: Id58f2b24ca035a81695382210ea54656509afb00
Change-Id: Id58f2b24ca035a81695382210ea54656509afb00
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
24a6ae7b3e80fd5df4bdbcabffef1c1430eb99f6 20-Jan-2017 Chen Xu <fionaxu@google.com> Merge "Initial change on carrier signal filtering" am: 8f7acaf827 am: d175fa577a
am: 80e9159964

Change-Id: I05f5cc9fd8a6474cd2f417d7f4951615ff57ad10
80e91599641d4611d65b51a80c7c7bb16a20344d 20-Jan-2017 Chen Xu <fionaxu@google.com> Merge "Initial change on carrier signal filtering" am: 8f7acaf827
am: d175fa577a

Change-Id: I8fcd89f484b53411aeda79c16b12595cd1232224
45d8da68e22b5e74de0526b2c4f7d9644f73ac94 20-Jan-2017 Chen Xu <fionaxu@google.com> Merge "Initial change on carrier signal filtering"
b5771d36210a751e6ec916556ad0f20fcb9b4288 18-Nov-2016 fionaxu <fionaxu@google.com> Initial change on carrier signal filtering

- support new carrier configs with two signal list per carrier app
- support new broadcast mechanism to comply with background-check restriction on O.
- add carrier action agent for dispatching carrier actions

Bug: 30958215
Test: runtest --path
frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/CarrierSignalAgentTest
Change-Id: Ibf7496bdb1ba8c85384da0b667a5610a52b45d80
Merged-In: CHANGE-ID I4e9e2f56e991e9d6753f8d7e877add5ada595972
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6a7fb078d1cacba7cf2e83b71242bb5c4c27c975 18-Nov-2016 fionaxu <fionaxu@google.com> Initial change on carrier signal filtering

- support new carrier configs with two signal list per carrier app
- support new broadcast mechanism to comply with background-check restriction on O.
- add carrier action agent for dispatching carrier actions

Bug: 30958215
Test: runtest --path
frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/CarrierSignalAgentTest

Change-Id: I4e9e2f56e991e9d6753f8d7e877add5ada595972
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
8fef426fd45393631987dbf54ad5233fd7b9dfde 29-Dec-2016 Amit Mahajan <amitmahajan@google.com> Client (framework) side HAL changes for RIL unsolicited responses - 2

Test: Basic telephony sanity (voice call, sms, data, APM)
Bug: 32020264
Change-Id: Id58f2b24ca035a81695382210ea54656509afb00
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
703465e2945e0fa71d22fbc0304753127a2053fe 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Add test case for restricted state change notification" am: d6e4422842 am: ccdfa9ad21 am: 1726f251bc
am: fc3f3c435f

Change-Id: Ie53576c9a7dfaaddc542e0f7137ed535b8b6cbff
e6070311987d20e0a676c2bf59a02febb2275af5 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix issue of CS restriction notification incorrectly disappearing" am: 6b1cdff038 am: d0b462f383 am: 75e562718a
am: 9d30261840

Change-Id: Ie9134dd69d1e2571babaea3fa38969f7ad61f30c
fc3f3c435f993c997841d990ab0da766b25dd856 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Add test case for restricted state change notification" am: d6e4422842 am: ccdfa9ad21
am: 1726f251bc

Change-Id: Ic343baeff7e85f7891c190850a5f4c05efc25a03
9d30261840b7c68e5edd78944fd37fca5cb06cf4 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix issue of CS restriction notification incorrectly disappearing" am: 6b1cdff038 am: d0b462f383
am: 75e562718a

Change-Id: I561bbd447d742feec237264b6fb3a167646cab5a
1726f251bc7c660afd6ab066b8c2786f40e65343 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Add test case for restricted state change notification" am: d6e4422842
am: ccdfa9ad21

Change-Id: If01ac44f9f2a4df18cfa836c47f9f5afc2e0028d
75e562718adeb9a6350aa668bb4eea119338bb2a 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix issue of CS restriction notification incorrectly disappearing" am: 6b1cdff038
am: d0b462f383

Change-Id: If57b43bbb2c0043849257355e06df134723952c1
d6e44228421b6974beb454205c31a92d97e410e5 11-Jan-2017 Robert Greenwalt <rgreenwalt@google.com> Merge "Add test case for restricted state change notification"
ed5af31ed3ace33d69ff77767daad816ef989c11 09-Jan-2017 Wenting Xiong <wenting.xa.xiong@sonymobile.com> Add test case for restricted state change notification

Verify ServiceStateTracker#onRestrictedStateChanged() to show
proper notification.

Bug: 31101137
Change-Id: Ib9fae72c669f1af7265123ca16560dbaba163277
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
49e0dd794cf7f568dfc47ff7efe416dede44b8a1 14-Sep-2016 Satoshi, Baba X <satoshi.x.baba@sonymobile.com> Fix issue of CS restriction notification incorrectly disappearing

CS restriction notification disappears when restriction state changes
from whole restricted state to either Normal/Emergency call restricted
state. This issue is caused by incorrect conditions in if statements.

Bug: 31101137
Change-Id: I985d39a32a7ab293986e4694d5b6cc5160f158a8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
8b9fe842a2b5b39f1a7efeda9a7f839c005277c1 19-Dec-2016 pkanwar <pkanwar@google.com> Notify user when user fails to connect to the network. am: 149f0d5d1c
am: e8503f29ac

Change-Id: I80e9aeac16b32321bbb80b8c5f45ab1f527fd774
e8503f29ac86151671189ac7cbfb8c8083314aa1 17-Dec-2016 pkanwar <pkanwar@google.com> Notify user when user fails to connect to the network.
am: 149f0d5d1c

Change-Id: Ie5641d333334d911ce494a1fb9420e9b2428615d
149f0d5d1ce3cebe17479d61454c33f700c3584b 04-Dec-2016 pkanwar <pkanwar@google.com> Notify user when user fails to connect to the network.

Bug: 28572539
Change-Id: I3e7591c6210b7ab20b46a8d41b1ebdf13c411ecc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c95c50a172e34966d1518e3e722e62888f4b770c 02-Dec-2016 Robert Greenwalt <rgreenwalt@google.com> Merge commit '1ff8811330ba26d60d78bbe28482138a760b3126' into manual_merge_1ff8811

Change-Id: Icdec37469abb70462cb45ea843032fccd0a77a49
1ff8811330ba26d60d78bbe28482138a760b3126 02-Dec-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Get the correct operator name"
0123fbcacebebb6f31015db9c2922504e5ff4f34 01-Dec-2016 Zoran Jovanovic <zoran.jovanovic@sonymobile.com> Get the correct operator name
am: 59d170ef4c

Change-Id: I2a1dbae38495d1aaf615168ffd67412e101cdf37
63cb797b84392775c7d8db70807bf09a33aae6d3 25-Oct-2016 Zoran Jovanovic <zoran.jovanovic@sonymobile.com> Get the correct operator name

If the long operator name is not given by RIL,
try to get the short operator name.

Bug: 32791744
Merged-In: I4983ad708c57a650ce4a806e1f53837825bad2db
Depends-On: commit in frameworks/base with the same Change-Id
Change-Id: I4983ad708c57a650ce4a806e1f53837825bad2db
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
59d170ef4c75615173e4dfd162fcad41e660a933 25-Oct-2016 Zoran Jovanovic <zoran.jovanovic@sonymobile.com> Get the correct operator name

If the long operator name is not given by RIL,
try to get the short operator name.

Bug: 32791744
Test: Extended ServiceStateTest.
Depends-On: commit in frameworks/base with the same Change-Id
Change-Id: I4983ad708c57a650ce4a806e1f53837825bad2db
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
477c55f901492d5c09c460e0a708ff3627e6850c 25-Oct-2016 Zoran Jovanovic <zoran.jovanovic@sonymobile.com> Get the correct operator name

If the long operator name is not given by RIL,
try to get the short operator name.

Bug: 32791744
Test: testOperatorName extended
Depends-On: commit in frameworks/base with the same Change-Id
Change-Id: I4983ad708c57a650ce4a806e1f53837825bad2db
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
7dcde10d804e1c0234b6f3ce7d9fab29efc904b6 30-Nov-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix MSIM issue of broadcast intent overwritten unintentionally" am: 22cef0502e am: dd6d6cfe84 am: cf23ddf553
am: 9896f9919c

Change-Id: I60c29c8f3f1bd3546985c0a453d53f25c6e0ed0b
9896f9919c9dd75e1ec7b65bc698261a75970a3d 30-Nov-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix MSIM issue of broadcast intent overwritten unintentionally" am: 22cef0502e am: dd6d6cfe84
am: cf23ddf553

Change-Id: I031c1dd3b90d3b9e26ec97d83732fa66f796daa0
cf23ddf55393f87ac55add514f3ca718d4588368 30-Nov-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix MSIM issue of broadcast intent overwritten unintentionally" am: 22cef0502e
am: dd6d6cfe84

Change-Id: Ia3025f1f75269db6d46cddab09b184ea02d69a75
dd6d6cfe8433333eb836dbf80eb968ea3a5cc931 30-Nov-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix MSIM issue of broadcast intent overwritten unintentionally"
am: 22cef0502e

Change-Id: I491020287c868be0fa31434931420a1564f2d4a0
22cef0502ea1b7f78af03f0eb9bd2bd3e62793d9 30-Nov-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix MSIM issue of broadcast intent overwritten unintentionally"
0769aad7f3cfe0de4366df13554829376c10986b 02-Jun-2016 Ping Sun <ping.x.sun@sonymobile.com> Fix MSIM issue of broadcast intent overwritten unintentionally

Since the following broadcast intents are differentiated only by extra
for each SIM, if intents for Slot1 and Slot2 are sent in succession,
Slot1 intent can be overwritten, causing loss of information. To prevent
the issue, remove "FLAG_RECEIVER_REPLACE_PENDING" from intent.
- ACTION_RADIO_TECHNOLOGY_CHANGED
- SPN_STRINGS_UPDATED_ACTION

Bug: 30296957
Change-Id: I281f8063b2bf10efe3165ea29305265bd9d3eb30
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0a8e91e39b7627c8d429dc39814669564451e885 23-Nov-2016 Sanket Padawe <sanketpadawe@google.com> Add more logging to debug when radio power is turned off/on. am: 636fbb01fd
am: 81bc798956

Change-Id: Ibc74c57b983507f88ca118f224e9d49c471e87ea
81bc7989569678c3bd0ead7e5e3cae3514b3da6d 23-Nov-2016 Sanket Padawe <sanketpadawe@google.com> Add more logging to debug when radio power is turned off/on.
am: 636fbb01fd

Change-Id: Ie7ab08f6cd2f7d68905ee55c6b3567878326d015
636fbb01fd32e23d1e9ef86497115b2c992b03da 22-Nov-2016 Sanket Padawe <sanketpadawe@google.com> Add more logging to debug when radio power is turned off/on.

Bug: 32592409
Change-Id: Ie049143129ce13bc96ce4211509a605d2d24cd05
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6630bde5d7b817744da4c79622bccea1f809e85a 09-Nov-2016 nharold <nharold@google.com> Merge "Add CellInfo to ServiceStateTracker's dump" am: d992bc1a7e am: 3403c6f222 am: 880fbbbecb
am: 95c9ce3518

Change-Id: I14749810934505d649e462b48539c767fde995b5
880fbbbecb726fc919f8cbb9b5eade4d83bb6615 09-Nov-2016 nharold <nharold@google.com> Merge "Add CellInfo to ServiceStateTracker's dump" am: d992bc1a7e
am: 3403c6f222

Change-Id: Ice947d38b2cc812a25bad10facd2791c1c2e9a26
3403c6f2224f70600e45b9f69c94bdccd5166cf3 09-Nov-2016 nharold <nharold@google.com> Merge "Add CellInfo to ServiceStateTracker's dump"
am: d992bc1a7e

Change-Id: Ieeb693e65e680176b34876b150adf39030643462
b12a289126cb90c8ff07a7df23e3370f5a537793 07-Nov-2016 Nathan Harold <nharold@google.com> Add CellInfo to ServiceStateTracker's dump

This will print out the result of the most recent call to
getAllCellInfo().

Bug: 32639866
Test: none
Change-Id: I092d98de5f812f016ab7b4cba781f80dfe7da086
(cherry picked from commit 5a97f106d24a1eeafe4bbe422dfbbb9afc27b2c4)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
5a97f106d24a1eeafe4bbe422dfbbb9afc27b2c4 07-Nov-2016 Nathan Harold <nharold@google.com> Add CellInfo to ServiceStateTracker's dump

This will print out the result of the most recent call to
getAllCellInfo().

Bug: 32639866
Test: none
Change-Id: I092d98de5f812f016ab7b4cba781f80dfe7da086
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c61514fb4312fefc1e1f9f49a102f756afe57b33 22-Oct-2016 Jack Yu <jackyu@google.com> Update the proto and service state logging. am: d009ecff13 am: a1b456d583
am: 557ef97a69

Change-Id: If1b9a9d4dce2a7b414bb5319cc3fdbbe68644248
557ef97a69eef06fe22fb3d18f263a0d5e3a2f1a 22-Oct-2016 Jack Yu <jackyu@google.com> Update the proto and service state logging. am: d009ecff13
am: a1b456d583

Change-Id: Iabfb1624dc9393f6fc995caca6fc65ec9082de6e
d009ecff130b903cd597621b60ec84cddc0c4f16 21-Oct-2016 Jack Yu <jackyu@google.com> Update the proto and service state logging.

1. Update the proto so the version used on the device is
in sync with the version on the server.
2. Added CDMA service state logging in pollStateDoneCdma() and
pollStateDoneCdmaLte().

bug: 31224848
Change-Id: I7c56f4c23ebc0db126d44e9a119ad71289781ca1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
3fe0578ea48570cd5d8c8dfd8b53b8984915330f 30-Sep-2016 Jack Yu <jackyu@google.com> resolve merge conflicts of 5a5f487 to master

Test: runtest -x frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics

Change-Id: Iea22620acd4efb0af845760544e00840014af4fb
5a5f4877b963501bc89f0b7e2d82ee2f36fc23a3 30-Sep-2016 Jack Yu <jackyu@google.com> Combined TelephonyEventLog and part of the connectivity metrics app into the new TelephonyMetrics am: f2d0fa6486
am: dc16d0f315

Change-Id: I62673b8b7019cd7c7e921c46738d24f68973e423
dc16d0f315fc0ded5566ad2f44b5ea4245a25021 30-Sep-2016 Jack Yu <jackyu@google.com> Combined TelephonyEventLog and part of the connectivity metrics app into the new TelephonyMetrics
am: f2d0fa6486

Change-Id: Idd0540c5568367a8df807eaa1f4aa9b64c1ab213
0db7db3a7f93eec7c86ac4de0947206ce8493430 30-Sep-2016 Jack Yu <jackyu@google.com> Merge "Combined TelephonyEventLog and part of the connectivity metrics app into the new TelephonyMetrics" into nyc-mr1-dev
f2d0fa64860a12423fb8709766d6af90fba5e6cf 27-Sep-2016 Jack Yu <jackyu@google.com> Combined TelephonyEventLog and part of the connectivity metrics
app into the new TelephonyMetrics

Added the new TelephonyMetrics to support metrics collection
through dumpsys.

bug: 31224848
Change-Id: If4b6032e98b6cc8b68e8459e0e799a3755b1f2f9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6a14ff8d0b222fbd85adc4d08cae61298c76c429 29-Sep-2016 Robert Greenwalt <rgreenwalt@google.com> Plug hole in Roaming indication. am: 1fb93b5f57 am: 9a2900456d
am: 91164b4747

Change-Id: I5877584d2073fbd240dff0ebfc58be52d00a0770
91164b47472a169e27fb5ac6c611c6a2d059fa99 29-Sep-2016 Robert Greenwalt <rgreenwalt@google.com> Plug hole in Roaming indication. am: 1fb93b5f57
am: 9a2900456d

Change-Id: I0faed3bb304d75450c5ddb75ec43c895af221272
1fb93b5f57b92a2951a0ca2122ad17809b45675e 28-Sep-2016 Robert Greenwalt <rgreenwalt@google.com> Plug hole in Roaming indication.

If we change phone types after falling into a roaming condition
(due to other bug/race) we were tossing the old state and not
notifying listeners. This could leave listeners thinking we
were still roaming.

Also added logging to try to catch this in the future and made
DataConnection (a listener) more robust by rechecking the roaming
state when it connects.

bug:31278802
Change-Id: Ica5b2bbf1cb6fde5bc11994d1a699c53ac562ade
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c9f45c9b314485efd36a3192d9dac390fb6a3739 07-Sep-2016 Amit Mahajan <amitmahajan@google.com> Use ERI to update operator name before updateSpnDisplay() if needed. am: b4d7a8ad67 am: 56d19500d6 am: 03fa0fe9dc
am: 9c1a272bc9

Change-Id: I2f11f43ac2abe1cdbbf8cc6ef8355de08dd729bd
9c1a272bc99d3533b34663cbb4bd3f5fdd6d374a 07-Sep-2016 Amit Mahajan <amitmahajan@google.com> Use ERI to update operator name before updateSpnDisplay() if needed. am: b4d7a8ad67 am: 56d19500d6
am: 03fa0fe9dc

Change-Id: Icd47bcfc558de344ac4cafa6cc352e4729b66aa7
b4d7a8ad67f901661094e14a3c7acbd4ab65513d 07-Sep-2016 Amit Mahajan <amitmahajan@google.com> Use ERI to update operator name before updateSpnDisplay() if needed.

Bug: 31308687
Change-Id: Id8907abc8f76cc77b5bcfeee4d5ed34bf18e71e3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
8e2a1c76f67ebaeebd8401c4ebf7d0515b522d5e 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

BUG=31041780
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
28c0c9187835694cb38df978978e86fe283b85bb 01-Sep-2016 Christopher Desjardins <christopher.desjardins@tomtom.com> Merge "Fix parseInt format exception." am: 7c08118a61 am: 1138b975c4
am: 52e83fde57

Change-Id: I5dafdb781ecca1522241754605cbdfd0a0259384
e07351fd1000d16eda1834993fe8dc6863dd3cf0 31-Aug-2016 Christopher Desjardins <christopher.desjardins@tomtom.com> Fix parseInt format exception.

In the radio logs I see the following exception:
08-09 14:41:27.849 E/GsmSST ( 1006): [GsmSST] error parsing RegistrationState: java.lang.NumberFormatException: Invalid int: "ffffffff"

The issue is that parseInt doesn't go to 0xffffffff.
parseLong does and it returns -1 when passed ffffffff

Change-Id: Ie98873cefb551cc88075d39b64164b130130d0e0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
fce584177afabb301d8ecbeea55f432adcee5e0b 08-Aug-2016 Amit Mahajan <amitmahajan@google.com> Use correct SPN format for WFC.

Bug: 30474919
Change-Id: I082dfd847316c15a2e4eda86e21e003e3ac398d5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
ca882dcdf8dfd9fa01f402108a7aaea2a041c363 30-Jul-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop exposing LTE_CA as a RAT type." into nyc-mr1-dev
aad98b463eae7b3f24913948b3eafba37d7b22dc 30-Jul-2016 Amit Mahajan <amitmahajan@google.com> Merge "Call pollState() in APM if RAT or radio state changes." into nyc-mr1-dev
07a76e6efd5b6e9193cd159c82c88c4eb79d117e 29-Jul-2016 Amit Mahajan <amitmahajan@google.com> Call pollState() in APM if RAT or radio state changes.

Earlier state was never polled in APM. With b/27486486 it was done
on network state changes since that is considered a modem trigger.
RAT and radio state changes are also modem triggers and should
trigger pollState().

Bug: 30286279
Change-Id: I6695a8db5b61170643cc4a81c7db25072804b306
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
2cd7606f4d72cb7340c164aebb1835cd87f4996c 29-Jul-2016 Robert Greenwalt <rgreenwalt@google.com> Stop exposing LTE_CA as a RAT type.

Instead use a new hidden field in ServiceState until we
get a real api in O.

bug:30480638
Change-Id: I40e3eeddced2c8f078c51fe8be4d45ce2e1139df
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
2f43e7848e6039b1f7541ef129fedad3b66947f0 26-Jul-2016 Robert Greenwalt <rgreenwalt@google.com> Fix tcp buffer sizes on LTE_CA.

Make them the same as LTE since we don't have an overlay setting for
LTE_CA (nor do we want one).

Also noticed that on CDMA/CDMA+LTE we didn't enable the ratcheting
mechanism so we'd bounce between LTE and LTE_CA unnecessarily.

bug:30269506
Change-Id: I34d308c7ee92745ce18700f31b8b68e78728b01e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
fdd6fb424d920e22f7bcd36115df4d6f2ecf53d0 01-Jul-2016 Brad Ebinger <breadley@google.com> Add a public method to access the Radio state

In order to be sure that the Radio is available to communicate, we now
check to see if the radio is available for commands. We are going to use
this in emergency calling to make sure that the Radio is on (and not
still in the unavailable state) after disabling airplane mode.

Bug: 29039211
Change-Id: I3ee828e165f8e9501de4650c06172ad33c93d51f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0d5e6cc0fdfb839d63abe1e7eb85eee1b5942108 30-Jun-2016 fionaxu <fionaxu@google.com> Fix airplane mode doesnt persist cross boot-up

Bug: 29645680
Change-Id: Ic179390dbab365a026e159895c2c5de2ad90508e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
000f48b9c960010bf41cd22b8625b4ff16c2e719 29-May-2015 Ajay Nambi <anambi@codeaurora.org> Add support for LTE CarrierAgregation

Note this may be redesigned in O to better handle the
various bitrate/channel combinations in a sane way.

bug:27360321
Change-Id: I29dc8cbbdec60b3a5c0eed8117e3b7bb27f429ed
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
8c751b4ec57a6f2a7702d9ee003b0ec721c2ebac 10-Jun-2016 Robert Greenwalt <rgreenwalt@google.com> Add a Carrier-config specific ratcheter of RATs.

Only reports transitions to higher RATs within a given family.
Reset when we move to a new cell.
Avoids costly propogation of RAT flapping within the family,
for example every outgoing data pops us into a higher RAT and
idle time pops us back down.

bug:27360321
Change-Id: Ifd219eda701eb2c87a8b6798d919f71fab804f5d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
5c90e11a655cfde1e7eeb047f05ce66ccb5828bc 22-Jun-2016 Y <fionaxu@google.com> add upper bound on nitz year

-framework will ignore NITZ time after Jan 1, 2038 to avoid malicious
basestation hack phone time and cause phone crashes
-unit test

Bug: 29083635
Change-Id: I4f60610ed13f5d6e7b0cf18f43708be2e528368c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
7cd0ed851ad96291d414fa685beda96edfa0fc6b 21-Jun-2016 Chen Xu <fionaxu@google.com> Merge "add upper bound on nitz year" into nyc-mr1-dev
b4237f12fd73204e9775909e03d9277e59d94766 20-Jun-2016 fionaxu <fionaxu@google.com> add upper bound on nitz year

-framework will ignore NITZ time after Jan 1, 2038 to avoid malicious
basestation hack phone time and cause phone crashes
-unit test

Bug: 29083635
Change-Id: I4f60610ed13f5d6e7b0cf18f43708be2e528368c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
d4d44ac2eb661cb8b5faaaa549481b8ab39b1f28 16-Jun-2016 Nathan Harold <nharold@google.com> Merge \"Move Spammy SST.getAllCellInfo Logs to Verbose\" into nyc-dev
am: 5dc5ace26c

Change-Id: I3ef1cb4cc70cc8adb0f7342c20f2905864eb5c20
bf05060c53755d5a9c35dbe7754bc96e61fe530f 15-Jun-2016 Nathan Harold <nharold@google.com> Move Spammy SST.getAllCellInfo Logs to Verbose

The relative frequency of the getAllCellInfo() logs and the
large size of these log lines is contributing substantively
to the log eliding of the RADIO_LOG buffer. Because the RILJ
call contains all the same info these logs add little value.

Bug: 29368040
Change-Id: Ia3ebf3d74986f8f12ac2adbd2dfd7283bb8162b5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
4c31e4c0d2db31fe84081aa6f1e2bcc08b31f9d3 24-May-2016 fionaxu <fionaxu@google.com> cold sim clean up

- add new api to control provisioning notification visibility through
network agent
- rework on the interaction between carrier app and framework
- code cleanup
- unit test support
- hook pco value into datacallcomplete, enabling test by set sysprop for
pco values

Bug: 28567303
Change-Id: Id6b9b2aff4c4f128103593aab0bcef1c3a365141
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
f6d865fd88a8326126e2b3f836b94cfebba3a5a7 25-May-2016 Derek Tan <derektan@google.com> Use getConfigForSubId instead of getConfig(int).

Per API review, we want to revert getConfig(int) to
getConfigForSubId(int) (ag/1075011). This CL changes all
callers to use getConfigForSubId(int).

Bug: 28295813
Change-Id: Ib55064226da5371d5acf014c0e0c20f3724d02c4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
202a635a13483c144e9063bf610f26979a54501f 21-Apr-2016 Nathan Harold <nharold@google.com> Remove synthesized CellInfo reports from ServiceStateTracker

This CL removes the legacy code from ServiceStateTracker that
was synthesizing highly incomplete CellInfo reports under very
specific conditions (only in LTE-CDMA mode). This was causing
CellInfo to be sent that consisted of a single LTE Cell Info
report that was missing information. Because this only worked
when the serving cell was LTE / the device was in LTE-CDMA mode
it was also inconsistent.

-Remove the hack to update CellInfo on unsolicited SignalStrength
change reported by RIL (only active in LTE+CDMA mode).
-Remove the hack to update CellInfo on Data Registration State
change.
-Remove the now-unneeded mCellInfo and mCellInfoLte structures
from SST.
-Remove the obsolete decoding for the LTE Cell Info in the
DATA_REGISTRATION_STATE message.

Bug: 27949013
Change-Id: I0ac6f8f93a1d1177a246d5cd2843025b8f9b34a9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
a02b6fd88953d783c32e6d7f84b7eddbc0d1faf1 08-Apr-2016 fionaxu <fionaxu@google.com> Cold Sim fix for DataConnection and DCT

Bug: 25203607
Change-Id: I3bbef77edf57eaa8d7da24d687cc9b5ab0ef111b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
bd937c188c09bbd7f3d6ad62f2e4c6d28ab48de2 14-Apr-2016 Chen Xu <fionaxu@google.com> Merge "Update OTASP status correctly" into nyc-dev
3ec3d688f20f425a7176fd1fe08134d7c2d4b1da 07-Apr-2016 fionaxu <fionaxu@google.com> Update OTASP status correctly

fix the scenario: ICC records are loaded and OTASP_NEEDED, and then
we switch from CDMA->GSM->CDMA. In that case we end up sending
NOT_NEEDED and UNINITIALIZED, or just UNINITIALIZED -- and in either
case we don't send NEEDED again.

Bug: 28056182
Change-Id: I56d16fe68aeb69f333e53f4a4cd643c2143d39f5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6caa786236a1b2793f0969a72fbbad3f59067dd9 14-Apr-2016 Pavel Zhamaitsiak <pavelz@google.com> Merge "Don't use overlays for WFC error messages and SPN formats" into nyc-dev
9e51994d8ccf00bf56f54d5875e77732c4558480 14-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Switch TelephonyEventLog from using ITelephonyDebug to ConnectivityMetricsLogger" into nyc-dev
2dd874066ed871c8adf50f58e4b025d525db78eb 09-Apr-2016 Jack Yu <jackyu@google.com> Moved ERI configuration files from resoures to Carrier Config.

Used Carrier Config to load correct ERI configuration file since
there are MCC/MNC shared by different carriers.

bug: 23887558
Change-Id: Ibe2ff7862bf50e31b52fb783c49bda993f8d2ca7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
af060eee085e90a2979a392384ccad368e92fc7a 12-Apr-2016 Pavel Zhamaitsiak <pavelz@google.com> Don't use overlays for WFC error messages and SPN formats

- Error alert and notification messages are stored as string arrays in
resources. CarrierConfig stores carrier-specific error codes and corresponding
index which is used to get appropriate messages.
- Supported SPN formats are stored as string arrays in resources. CarrierConfig
stores index used to get appropriate SPN format.

Bug: 27170754
Change-Id: I7f3635ec0ae73d6190b4b73b11ad13058fc25d54
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
7a1c1b02c8603c2bf2f3b401facb389528180eed 08-Apr-2016 Pavel Zhamaitsiak <pavelz@google.com> Switch TelephonyEventLog from using ITelephonyDebug to ConnectivityMetricsLogger

Bug: 28026463
Change-Id: I3c4f14e8a6611f0cb5c52eb24573621d3a13c4cb
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
98510b979842f032c62853b568f5f7d76547e4ff 07-Apr-2016 Sandeep Gutta <sangutta@codeaurora.org> Notify call state when phone app starts and SIM is loaded.
am: 9dd3a9f

* commit '9dd3a9fff75ee1d6aceff626126f6e3324f20ddb':
Notify call state when phone app starts and SIM is loaded.

Change-Id: I016c765ef34dac41dd8245c16fdb877fefbe1c81
9dd3a9fff75ee1d6aceff626126f6e3324f20ddb 05-Feb-2016 Sandeep Gutta <sangutta@codeaurora.org> Notify call state when phone app starts and SIM is loaded.

If phone process crashed during an active voice call, even after restart
of phone app, clients still get call state as OFFHOOK since
TelephonyRegistry has the old infomration and whenever new client is
registered that old infomration is given resulting in erroneous UI
behavior. Present fix sends call state update when phone app
starts so that TelephonyRegistry resets its information.

Bug: 27903802
Change-Id: Ia606b79f5646863187af6f3e22ca9aa8edc2bdf1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0b24cf9fa32362616f3c55da9c0ec768c4bd174b 31-Mar-2016 Amit Mahajan <amitmahajan@google.com> Set isGsm flag in SignalStrength correctly.

Bug: 27541623
Change-Id: Id399f67e0d1a73e9485b71a5907e716a79297b2b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
f32222bd7bf1e3e619b1451b46f7f4aa94474ba1 29-Mar-2016 Sanket Padawe <sanketpadawe@google.com> Unit tests for ServiceStateTracker

+ Adding unit tests testing public functions in ServiceStateTracker

Bug: 25691379
Change-Id: If99e7df70f1168124b361cc5e406a01021024136
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
542e6616bc1f24be11e48816ab9359af9e77907e 22-Mar-2016 Amit Mahajan <amitmahajan@google.com> Mark updatePhoneType() as @VisibleForTesting.

Since function is changed to public only for testing.

Bug: 27746848
Change-Id: I654965885e41a15706538fa2ee0b609e5a1db2bc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
55ff0eb7c2f9910c13f03f63514198b95e382973 22-Mar-2016 Amit Mahajan <amitmahajan@google.com> Merge "Change to handle RUIM_RECORDS_LOADED only if phone type is CDMA" into nyc-dev
dbe4d7749d5524be575f629486874acdae721138 19-Mar-2016 Amit Mahajan <amitmahajan@google.com> Change to handle RUIM_RECORDS_LOADED only if phone type is CDMA

Same for EVENT_POLL_STATE_CDMA_SUBSCRIPTION, and similarly
EVENT_RESTRICTED_STATE_CHANGED only on GSM.
CL also includes change to update icc related info after RAT
specific initializations are done (on phone type switch).

Bug: 27746848
Change-Id: Ia25e1219ab473b6542ffc40d27dae1719b370660
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b9e8a7d21c671240b387bb6b8e8314aa710c0d57 18-Mar-2016 Robert Greenwalt <rgreenwalt@google.com> Refine pollState when the modem is off.

It had been fixed to not ask the RIL for state if the modem was off
unless we're on IWLAN. However, the first indication we're on
IWLAN comes via a pollState response. Modified to also poll
if the pollState trigger came from the RIL (ie, a network state change
notification).

bug:27486486
Change-Id: Ibaed6e2e98d27e651faeeccf71d43e7ff77c938b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
7a537e99ff1c0dee1dbf18f844ea128cb0557de3 14-Mar-2016 fionaxu <fionaxu@google.com> Clear MWI notification for Sim removal

bug: 27650018
Change-Id: Ideda175a45d5c4f354303fb09d6001cc5a2b7174
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c34634fa2aa3d76d5fcc5a6b3ace28a78c3aa145 25-Feb-2016 Amit Mahajan <amitmahajan@google.com> Merge "Ignore case in ONS when setting roaming" into mm-wireless-dev
4d57312df1bc062e63790f776a5f06faa3211d85 25-Feb-2016 Amit Mahajan <amitmahajan@google.com> Ignore case in ONS when setting roaming

When home vs roaming is decided, roaming could have been set
instead of home because isSameNamedOperators checked
if spn is equal to onsl and onss so something like this could
happen:
SPN=carrier vs ONS=carrier => home
SPN=Carrier vs ONS=carrier => roaming

Ignore case.

Bug: 26321337
Change-Id: I92a7b8b1ebdc22968a2856a6694d487607546303
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
7d592679b92a2fb35514193f2f95cd0138035050 18-Feb-2016 Robert Greenwalt <rgreenwalt@google.com> Fix ServiceStateTracker.pollState with radio-off.

IWLAN change dropped the "break" line causing us to always send
another round of ril requests even when the radio is off.

Change-Id: If838438c742abb4056a64fc7ae30afd53e7e229e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
38ae1f3fe18087d3fa061b4065ceda3204fd6100 23-Feb-2016 Pankaj Kanwar <pkanwar@google.com> Merge "Changing string in notification when data is blocked. b/25209821" into mm-wireless-dev
aaa1c3a12afceacce3648abebdbf00fec2f8cc8b 13-Feb-2016 pkanwar <pkanwar@google.com> Changing string in notification when data is blocked.
b/25209821

Change-Id: Ifb1609ad8b8da87eef1511944214be04e6f5d6f5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
97b3c4e45f156d8d5ae25a32357c9b31e018da32 10-Feb-2016 Amit Mahajan <amitmahajan@google.com> Support for storing voicemail count for multi-sim.

Bug: 18108420
Change-Id: I08edb714b839b44472b3b7a4d0aba287da2969d3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
716376f58f1ab675f56b967323d8073b4cf5be40 04-Feb-2016 Jack Yu <jackyu@google.com> Merge "Fix the neighboring CID on GSM(GPRS) network." into mm-wireless-dev
66fb0378fd913dfe564c8e31b5ef379592242615 04-Feb-2016 Jack Yu <jackyu@google.com> Fix the neighboring CID on GSM(GPRS) network.

Set the data network type system properties with the correct RAT.

bug: 26956224
Change-Id: I2a046c3974930c25a2fb3c98cbfef76b83a0d8a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
32b5fbb1a340fa16e2c37c276517ef10a4934500 03-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit tests for GsmCdmaPhone.

Also creating abstract class TelephonyTest that can be extended
by other unit tests.

Bug: 25691379
Change-Id: I9437642a0bab68c6b573954e587181ff7d04d217
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
3f0470d534641b1c2e2da720516261852a95a36e 02-Feb-2016 Amit Mahajan <amitmahajan@google.com> Handle EVENT_CHECK_REPORT_GPRS only for GSM.

The message is sent only for GSM and is sent with a delay. By the
time it is received the phone type may have changed.

Bug: 26906366
Change-Id: I34ab7dda5e5e299c810e6134aeec9ea3df099dea
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
003753ff3b4cc82bdeee91a17aa862402f8bcddd 01-Feb-2016 Amit Mahajan <amitmahajan@google.com> Merge "Cleanup access modifiers." into mm-wireless-dev
604d70ccbf958d1abd92b128fa18a9f17b42b133 30-Jan-2016 Amit Mahajan <amitmahajan@google.com> Cleanup access modifiers.

This is useful for tests. CL also includes minor cleanup in SST.

Bug: 25793157
Change-Id: I068af6bfd9ea9e04e95244d23f830731aef38ee1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
44b9d5b470fb45c0f59073f56cb48a2501996259 29-Jan-2016 Jack Yu <jackyu@google.com> Fixed two flacky service state tracker tests.

Also fix the inconsistent way to get carrier config service
in service state tracker.

bug: 25691379
Change-Id: Ib725954d10d5515ac395a595df744353e788afe5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
9c32a1e9495f06905377c9e2b91c0ef9cdb0528f 26-Jan-2016 Jack Yu <jackyu@google.com> Reduced more radio log spam.

Reduced more radio log spam by some code path optimization.

bug: 25956251
Change-Id: If040543d0eb8e03a814225aa6694e22818c1d357
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
38ca51d0f643405df51e78fce6c546424e9f410d 25-Jan-2016 Shishir Agrawal <shishir@google.com> DO NOT MERGE : Unhiding MSIM APIs.

1. Unhide MSIM APIs in TelephonyManager that already have non-MSIM equivalent
APIs public.
2. Make MSIM API naming consistent (overloaded, no suffix).
3. Unhide APIs in SubscriptionManager that are necessary for MSIM.

Bug: 26772894
Change-Id: I9e623100358d65f1ab853c33599cb78f100f7e3a
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b6514b21f3d8ed47a088b741a18fe0b1de2308ea 15-Jan-2016 Jack Yu <jackyu@google.com> Fixed the broken testSetRadioPower test.

Fixed the broken testSetRadioPower test due to telephony debug
service change.

bug: 25691379
Change-Id: I1fb25671eda2ae53ba2165a0e0c64cc4525ac81b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e36f59c8a17246eb7924ba1d2bf70f6a2eead1e2 12-Jan-2016 Amit Mahajan <amitmahajan@google.com> Mark internally used functions private in GsmCdmaPhone.

Includes some (mostly cosmetic) code cleanup too.

Bug: 25793157
Change-Id: I8f0eb8b3ead18f29ca146637dca6ffd659a9f699
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
dd10548e98d52fb6cc20a18ad3b3f77eff79591f 13-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Merge "Use TelephonyEventLog to send events to TelephonyDebugService" into mm-wireless-dev
b47b0e2bbff98fb3eb4cd6d66887cbea220e1b9e 13-Jan-2016 Amit Mahajan <amitmahajan@google.com> Use mainLooper for OnSubscriptionsChangedListener in SST.

This is needed only for tests. In real scenarios this change is
no-op.

Bug: 25691379
Change-Id: I367956feaea2bda35a795184ef71b7871664e380
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
5054dfa7fd9b0520d30a102ed5a2107af11590c8 12-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Use TelephonyEventLog to send events to TelephonyDebugService

Send following:
- RIL Data call events
- RIL Voice call events
- RIL SMS events
- Service State changes
- IMS call events

Change-Id: I865d8852982aca03b770e8712aac707afecb0f79
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
410298cb95b110609193941807aff6c9676d2304 05-Jan-2016 Jack Yu <jackyu@google.com> Removed the usage of setState, which is a deprecated API.

The caller should call setVoiceRegState instead. This also helps
reduce Rlog since we will not see the complaining debug message
about using this deprecated API anymore.

bug: 26404646
Change-Id: I4562ef9b088ab051a291fe1b5ad29216fe5c33e7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
dc3b93d59312b84dcfa776f7691f6a87462b45a2 29-Dec-2015 Jack Yu <jackyu@google.com> Added dump support to more telephony components.

Added dump support to Ims components and also improved service
state tracker dump support.

bug: 25955373
Change-Id: I295ac57be70303b072069dca70fd3b8827461cfc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
dd4b0f4b5a2def03bd45637be5ceed3e86781f68 16-Dec-2015 Amit Mahajan <amitmahajan@google.com> Added isPhoneTypeCdma() and isPhoneTypeCdmaLte()

Also includes:
- Removed unnecessary unreg/reg of phone with CallManager on
voice radio tech change. This is needed as otherwise Ims Phone may
get unreg but not reg again (on radio tech change).
- Allowing reg/unreg in GsmCdmaPhone regardless of phone type
- Removed unused Call.mIsGeneric

Bug: 25793157
Change-Id: Ie2093a50c1cf64918782076127decff90968fe72
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c2b66d57e16623dffc2fe6d02ded4f24c014b6c8 14-Dec-2015 Amit Mahajan <amitmahajan@google.com> Code cleanup including removing direct references to IMS classes.

Bug: 25793157
Change-Id: I45ab1394d8585ae3d649f1bb8f67bcd16a946a85
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0a567c9ed954f295df83c753239646c6f6a04128 24-Nov-2015 Amit Mahajan <amitmahajan@google.com> Adding initial tests for GsmCdmaCall and GsmCdmaPhone.

Also includes:
- Changes to fix/comment out failing tests
- Some cleanup in CallManager related to deletion of PhoneBase and
PhoneProxy
- ContextFixture containing mock Context for all telephony tests
- Phone test that exercises BroadcastReceiver support in the mock
Context
- Test showing how static function can be mocked

Bug: 25691379
Change-Id: Ia38423cef3cfb86389d044cac4e601983fae1192
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
1a87ab3d7170d618f048c4f5af8c7504a587aaa5 10-Dec-2015 Jack Yu <jackyu@google.com> Merge from master

Change-Id: Ifbd86600111d2c444031ff608fab62fb2ee4b236
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
211ed45a3500a84a4b102e22d3235f758ac49563 15-Sep-2015 Jack Yu <jackyu@google.com> Ignore phone switching while shutting down.

Ignoring phone switching during shutdown prevents initializing
the new phone, which sends attach request to the modem.

Bug: 23508972
Change-Id: I2a7bfaaebfc9ed3bc4a265b4fa0a31384195251e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6c497f695c5c0017c511e471d36bdfc66dbbf605 24-Aug-2015 Jack Yu <jackyu@google.com> Fixed that no service was shown after boot up

The SPN information came too early before the subscription
id is valid hence the SPN info was ignored by MobileSignalController.
We need to send the SPN update intent again after subscription info
is valid.

bug: 23366812
Change-Id: I11ab185d2ffbd34a8d0f3d4096179aee13138f3f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
cdd0ef910a79d75d60222d97c5f33aa154876bfb 25-Jun-2015 Chris Manton <cmanton@google.com> Add override check for home network carrier service API

Bug: 20828356
Change-Id: I620d513445de65fee47016a6b8791f7e0d502b94
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
de2d2034a7df068f3e929ff1d623a80c847b6335 16-Jun-2015 Chris Manton <cmanton@google.com> Check carrier config loader for roaming overrides

Carrier config loader may have roaming and non-roaming
overrides for both GSM and CDMA technologies. Provide
access to get this information and act accordingly.

bug: 20828356

Change-Id: I1baea4bc9d11fdff153a4fc3ca5450e3f7897b86
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0349fc63faa1e63848cba7718c5002d53e6b0451 20-Feb-2015 Stuart Scott <stuartscott@google.com> Set sub info to modem after capability switch.

bug:19301751
Change-Id: I9a99a36c02144c181aaa1e55798e10b53aab213a
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
65bee39d7e417fb898c3948696d5d8a38046c449 20-Mar-2015 fenglu <fenglu@google.com> LCE service implementation - tele service side

-redesigned based on ConnectivityService/NetworkCapabilities

Change-Id: I54074234e1117b41eb6ff761ead9241928585fc6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
519ffa0fab25898c909ed96c10f64b2c23910f88 27-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> Use different carrier name string for data connection in WiFi Calling mode.

Bug: 19950657
Change-Id: I41cfc78ad559138f9d458ec6eec6e958d363b6ac
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e51d918511afab905399d9fda7f51442f15bd8a7 12-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> When Wi-Fi calling is available display SPN as SPN+" Wi-Fi"

Bug:19681794
Change-Id: I2859d4d26c3103d9900befc6f5fe4aa50c6eadb7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0e42864afb21261d6bd2e9b4aa97f6d01d039a25 23-Feb-2015 Yashdev Singh <yashdevs@codeaurora.org> Telephony: Implementation of IWLAN

- Allow registration polling in radio off state.
- Disable default APN if current RAT is IWLAN.
- Allow non-default PDP activation in radio off state provided
current RAT is IWLAN.

Set data registration state in APM for IWLAN RAT
- APM causes data registration state to be POWER_OFF. Set it
to IN_SERVICE for iwlan case
- In APM, UNSOL_VOICE_NETWORK_STATE_CHANGED resets data RAT and
registration state to POWER_OFF. Ensure that this is done only
when current RAT is not IWLAN or when iwlan feature is not
available.

Change-Id: I419f3df987ef90bb5f31b0e381257a81dcc57c3b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
40dc777432250ec592696c7e1f395d582edb3b5f 12-Feb-2015 Robert Greenwalt <rgreenwalt@google.com> Treat a SIM power cycle as first boot.

TL;DR - forget the previous subId used only for optimization
purposes if we get a SIM_READY notification.

We moved some code that poked the modem from a SIM_READY handler
to a onSubscriptionChanged handler and also protected it
with logic to only fire if the subId changed. This caused
us to not poke the modem on SIM power cycle. Some modems
do a SIM power cycle on airplane mode. The result was
on these modems we weren't causing the modem to register with
the network after airplane mode.

This was often masked because if we were setup to try a
data call these devices were configured to try the data call
regardless of data registration and the act of trying a data call
would cause the modem to register with the network.

If during airplane mode you had turned on wifi, telephony would
stop trying to setup a data call (so we don't poke the network
all the time when on a better wifi connection) and the restoration of
that data request has been blocked until data-registration in the
new multisim code.

bug:19194287
Change-Id: I21b76b7c62a6161d8422b11a831c3747591c56f3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e70617d81dcd42350a737b11c25532e1d43df4ff 22-Jan-2015 Legler Wu <legler.wu@mediatek.com> [DS] Correct the access method for telephony system property

Revise the method to access telephony system property.
Add several PROPERTY_XXX_XXX_MSIM for MSIM type system properties. If
caller use the old one, it will be dispatched to new one and get by
default phone id.
Ex. PROPERTY_ICC_OPERATOR_NUMERIC

Bug: 18675498
Change-Id: I68b4de1817bb5a34d4a54685332f856e79a39d60
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
d756a6bcf4fe09b561481eb6ed5368bd7b21ca76 16-Jan-2015 Amit Mahajan <amitmahajan@google.com> Change to append subId to network selection related sharedPreferences.

Bug: 19023266
Change-Id: Ia7b2ac5b37d5abb1231288caf923336bf0bec9e1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
062a2a3838c8d8adf16f4d9fbde8d52450da0336 13-Jan-2015 Shishir Agrawal <shishir@google.com> Make UICC code subID-less.

MSIM code introduced code in the UICC objects that refer to the subIds.
This is potentially very dangerous becuase subIds are only initialized after
the UICC object is completely initialized. Hence using subId in the UICC code
could lead to lots of properties being not set correctly.

The new code, uses the phoneId everywhere within the UICC code, which is
initialized when the UICC object is created and will remain constant for the
lifetime of the UICC object.

Bug: 18748407
Change-Id: I1f50abc40b8592751cdeca2de2c76ac9f2d40768
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
19517065ec69bafc5cfc91c8386a7583441ecf6d 15-Jan-2015 Amit Mahajan <amitmahajan@google.com> Change to update carrier text after subId is updated.

Bug: 18752574
Change-Id: I9cb8b7d26fca1654bd2323bd5555a1cfc4e9877d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
33d14d71f4b43d82d6c1b87d1d30cd86d13c5372 13-Jan-2015 Wink Saville <wink@google.com> Rename reg/unreg OnSubscriptionsChangedListener.

To addOnSubscriptionsChangedListener and
removeOnSubscriptionsChangedListener.

Bug: 18984103
Change-Id: I6636905093812af89c1c3702840e44c8c5ea891f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
3972955a3b3730c4e1632949dcaecc6fcc0c0567 08-Jan-2015 Jason Monk <jmonk@google.com> Merge "Have ServiceStateTrackers update Plmn/Spn directly" into lmp-mr1-dev
0192d7f3f201bce2b513749982577c8ddebe3ea2 10-Dec-2014 Jason Monk <jmonk@google.com> Have ServiceStateTrackers update Plmn/Spn directly

It seems that somehow the info from the ServiceState trackers is
getting out of sync with the Subscription database. To avoid this
update the info directly rather than going through a sticky broadcast.

Bug: 18752574
Change-Id: I66a3cb30df6478b7313230252ff2560946297d47
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
ad8eab8645079b88aeba3c7dc77ce885114a0efc 07-Jan-2015 Amit Mahajan <amitmahajan@google.com> Change to update CFI after subId has been updated.

Bug: 18784534
Change-Id: Ib2fc4af2bc036129ac1b8ac0fa6c018c479e3927
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
bd4bb4f2250463ba59dc98be649f6aa4df9fb682 18-Dec-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: add the api to get IMS registration information.

Bug: 18668325
Change-Id: Id5b0ed420990bde44b3525c7ec22eb37827d649c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b8ec2c1d94a76180871a58e14da06e1f0267e503 18-Dec-2014 Amit Mahajan <amitmahajan@google.com> Change to make sure that code triggered by onSubscriptionsChanged() is
executed on popping out and putting same SIM back in.

Basically to handle the scenario where subId goes from X->invalid->X.
This is on top of ag/604848

Bug: 18718732
Change-Id: I42bd7906715e4a9702439c1498a17a3add4c25a6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b41cbe42c6e7c07c039eac2a871b6a772329d8db 17-Dec-2014 Amit Mahajan <amitmahajan@google.com> Change to ignore onSubscriptionsChanged() in SST if active subId does not
change.

Bug: 18718732
Change-Id: Ib08b62e860d0b6286272836e649cd2c171adc37e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
8002387711e57456dbb4353eb894714592f303fb 11-Dec-2014 Wink Saville <wink@google.com> Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.

Rename isValidSubId to isValidSubscriptionId.

Bug: 18668873
Change-Id: Ie937d20b1bc6d3d63b658abe48e0aa65d830181f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
56dbbcf63e9991ee83945fd10661190d917f700a 09-Dec-2014 xinhe <xinhe@google.com> Unable to send MMS from Bugle accordian release apk

The root cause is the race condition.SubId is not valid
when OperatorNumeric is tried to be stored.

Bug:18582651
Change-Id: I3a6f91b04fcaf7752b039c9a8ebf696c25de3722
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
ffdf8ce51e37e5e45791c9ea11604aa00dffc88e 15-Jul-2014 Jing Zhao <zhaojing@motorola.com> Separate voice and data roaming state & roaming type.

It is possible for voice and data registered on different network,
so the roaming state could be different.

Set voice and data roaming status and roaming type separately.

Bug: 17318123
Change-Id: Iede9132cbf94bc9971702bd9232374585edd5cd0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
4b09dff383ae7dfca595aeeea886a594a1947340 22-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
3bc32aa4a3f533421f82a6d7991bb1971bf78191 18-Nov-2014 Amit Mahajan <amitmahajan@google.com> Change to use subId with PREFERRED_NETWORK_MODE in all places.

MobileNetworkSettings already does that; it was the mismatch that was
causing the issue.

Bug: 18424733
Change-Id: Ib1c6d55c5bf2cff8986c740e96881f34e536b43f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
14ad8ce79de28b7e4a1d25bacb4e51ca027159b4 07-Nov-2014 Shishir Agrawal <shishir@google.com> ServiceStateTracker: Only call updatePhoneObject when the phone is registered.

This is to avoid situations where we switch phone types unnecessarily.

Bug: 18193790

Change-Id: Ic0fa608122a43077ca599d1b1ac5b41365466237
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e97be3971cb6b55e019433c32524cc60ce0d037b 26-Sep-2014 Wink Saville <wink@google.com> Reorganize and add more dumps within opt/telephony.

In particular dump is added to PhoneProxy which dumps
PhoneSubInfoProxy which dumps PhoneSubInfo this should
provide the desired information.

Also add some additional pw.flush() statements to
minimize the buffer overflows and truncate the output.

Bug: 17545077
Change-Id: I39787a84c97a8fc0410419965f6be2468dec7568
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
1b55fc1e32eed284ed0fec3ec115a956ad4f828a 25-Sep-2014 Sukanya Rajkhowa <srajkh@codeaurora.org> am 17a89329: Trigger phone switch based on config

* commit '17a893295d021cd48ad0e2e6ccf9ceda3f97c70c':
Trigger phone switch based on config
17a893295d021cd48ad0e2e6ccf9ceda3f97c70c 16-Sep-2014 Sukanya Rajkhowa <srajkh@codeaurora.org> Trigger phone switch based on config

When VOICE_REGISTRATION_STATE changes, phone switch
may not be needed as a previous switch would have
happened on receiving UNSOL_VOICE_RADIO_TECH_CHANGED.
Do a phone switch only if the config is true.

Bug: 17394282
Change-Id: I4a4aa98bd0af9eaca46b0d09458a126313e97611
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
38bb6dda49db7023e847d2e827199d7a87cba229 23-Sep-2014 Amit Mahajan <amitmahajan@google.com> am 491ed0cc: Merge "Don\'t disconnect data for some carrier" into lmp-dev

* commit '491ed0cc6eb8ae15af76bb2df2d110be0b34849b':
Don't disconnect data for some carrier
75c934492b242f8ba750b11d9dae4304c76bbc07 06-Aug-2014 Jing Zhao <zhaojing@motorola.com> Don't disconnect data for some carrier

In some network, deactivate PDP connection cause releasing of RRC connection,
which MM/IMSI detaching request needs. Without this detaching, network can
not release the network resources previously attached.
So we are avoiding data detaching on these networks.

Bug: 16207801
Change-Id: Ib2ccc04d67f313e1241872b17ab38416607b0b48
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
d5eaf6c9015c1f36064fb571e1326f98a184ffa1 18-Sep-2014 Amit Mahajan <amitmahajan@google.com> am f3e102d8: Merge "Change to timeout if cell_info_list is not received from modem for 5s." into lmp-dev

* commit 'f3e102d889f223354f568b97324b1ce5fcb73bc7':
Change to timeout if cell_info_list is not received from modem for 5s.
bed429d6d0a0dbc6384b04e0641aa1e03e406f42 18-Sep-2014 Amit Mahajan <amitmahajan@google.com> Change to timeout if cell_info_list is not received from modem for 5s.

Bug: 17348559
Change-Id: I94c4a14ea6e88330082e79a7ba633ac7b18a1a2e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
6bc4098827f3070a44b5e51508b455d7c7be9c07 01-Sep-2014 Wink Saville <wink@google.com> ksd to lmp-sprout-dev

Change-Id: I94eb65c62231b5831570bb0cbbbd9c916bee0a37
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
07cacec1e947abee67aeca1e004d76d14ca42158 23-Aug-2014 Amit Mahajan <amitmahajan@google.com> Merge "Revert "Revert "Add code to handle voice radio technology of LTE.""" into lmp-dev
03b37b67755a4033c6be32ae2e389c310e06e7d1 22-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "Revert "Add code to handle voice radio technology of LTE.""

This reverts commit 3beec5e255c514dc419e5cc3021d178b3a416d40.

Bug: 17035252
Change-Id: Ife832f79627f64aa419af5881b8ac0ef32954c3c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
03586878fb3d870373f2fdf65afb81cc5ae97067 02-Aug-2014 Naveen Kalla <nkalla@codeaurora.org> Send Shutdown Request to RIL.

Send RIL_REQUEST_SHUTDOWN to RIL when device is shutting down.
RIL can use this request to shutdown the SIM card and modem gracefully.

Bug: 9773278
Change-Id: I6afa9e810cefc7855f7ae42e51f39cc51fa2aa6e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
3beec5e255c514dc419e5cc3021d178b3a416d40 22-Jul-2014 Jing Zhao <zhaojing@motorola.com> Revert "Add code to handle voice radio technology of LTE."

This reverts commit b54cd09892e0676d719e6df00e60c77b663f993c.

PhoneProxy.java should not be reverted because we want phoneObjectUpdater() to always be called from the handler function. That is done in commit I2fc7220496e66fc2a48f2609e94cbd8eed6adc44

Change-Id: I83b4ffe40a30207ca01d4268de2fc1cde8fff602
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b93bb3538c55f173f94a4ee7510d9d1521d8f731 18-Jul-2014 Shishir Agrawal <shishir@google.com> Adding the ability for carrier app to override SPN and carrier name.

The change allows system apps (holding MODIFY_PHONE_STATE permission) or
carrier apps to override the "carrier branding" on a per ICCID basis. The
override affects the service provider name as well as the network operator
name. The override is also saved as a SharedPreference and will persist for
the iccId across reboots.

Change-Id: I985ba247e10e2501e3d0d21567ccadc46f365879
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
a8467dd0c524787104b1ccdddc5e8af10ba729ed 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b0b637dbf2a67c0e7eee917c0809f1cc54983986 06-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> Switch from SIM to carrier info for wifi country

Now will also inform when no known country too.

bug:11062898
Change-Id: I4a938119c1c06898b39b3bcc6124031d2f66dd71
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
b54cd09892e0676d719e6df00e60c77b663f993c 12-Sep-2013 Wink Saville <wink@google.com> Add code to handle voice radio technology of LTE.

Sometimes the Voice Radio Technology is reported as LTE but Voice
over LTE (VoLte) is not currently supported and for Sprint we
should default to CDMAPhone in that case. Otherwise the could stay
as a GSMPhone and handling voice calls will fail.

Bug: 10673760
Change-Id: Ic77411b5da415c620fce5a185ca1d7542dfe3b7f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e356d9a99d41a9350aee7d52ad20fa979463d42c 31-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> am 06f093f7: Merge "Mobile network type is not updated when the network mode is switched."

* commit '06f093f728861837c54a96666ece5dc1853787c1':
Mobile network type is not updated when the network mode is switched.
c4161078eff3305894f1f9f1b2f00952ea0e83d8 18-Mar-2013 Kazuya Ohshiro <kazuya.x.ohshiro@sonymobile.com> Mobile network type is not updated when the network mode is switched.

Because ServiceStateTracker doesn't handle the change of ServiceState
after switching of Telephony FW, SystemProperty used for displaying
the mobile network type does not become to Unknown. To fix this issue,
when the network mode is switched, the SystemProperty should be
initialized to Unknown in the constructor of ServiceStateTracker.

Change-Id: I903ba855b9fe22530db8494a9d2615959970c5a4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
13347e89869fe1d71a75dfec3d7307d62f61796e 04-Jul-2013 Wink Saville <wink@google.com> am c8865f1d: am 0c5a2697: Allow GSMPhone#getCellLocation to report LTE location information

* commit 'c8865f1dfc810e20908f45d3eef431a81544e9f6':
Allow GSMPhone#getCellLocation to report LTE location information
0c5a2697697b49228bd2e23dc8d8217877a0fd7b 04-Jul-2013 Wink Saville <wink@google.com> Allow GSMPhone#getCellLocation to report LTE location information

Bug: 9228974
Change-Id: I7e9b190aa67968f1f2b2b567614c35c5dd5d78fa
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
203e588e3c42a81aa8a56f595119c181a63b12ca 31-May-2013 Wink Saville <wink@google.com> Handling data registration and radio technology changing.

When the DataRegistrationState (aka DRS) or RilDataRadioTechnology changes
aka Radio Access Technology or RAT) while retrying the DataConnection
StateMachine will return the connection as lost immediately. This allows
the connection to be retried with the correct handling of the changed
DRS or RAT quickly, rather than having to wait until retires are exhausted.

Changes:

- Pass RAT in bringUp
- Add the capability to register for DRS/RAT changes with SST
- When DRS/RAT changes in DcRetryState return LOST_CONNECTION to DcTracker

Bug: 9069568
Change-Id: Id4f29a63421af65ce153d24d646c09f7a1e8269b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
f1317a4b3492218ac2e449ee990948bac0295b65 20-Apr-2013 Wink Saville <wink@google.com> On data only devices use data registration state.

Some operators may report that the voice registration state is
not in service on a data only device. So use the Data registration
state for data only devices.

Bug: 8213254
Change-Id: Ieb6eef65fa5afb3d2c1a39b32a5bc5825ccc7f1c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
5fb811ff076aa6b4a9ceca6edaf504a4c6d9ad20 09-Apr-2013 Wink Saville <wink@google.com> Add FW support for CellInfo RIL commands.

Bug: 8235566
Change-Id: I7ad7dabc4b6c38bfba4461b08e6e30d0eb9efea1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
60ced166cb63c35a0ebbee1fc356cddcb76b956f 25-Mar-2013 Jeff Sharkey <jsharkey@android.com> Testing property to verify roaming behavior.

Bug: 6777372
Change-Id: Ia698f0eca6f05a6327f6c8b36cfe14f51f01e6e3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
454b1dfd508844b42eb775e4ab2359be74d3672b 23-Mar-2013 Wink Saville <wink@google.com> Rename a few files and variables.

Change-Id: I4e90dbf57797b9485920f943e24fa7a4c29d070b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
22d85a8e3a575a6d01d2c788587971657dfe20c6 23-Feb-2013 Wink Saville <wink@google.com> Clean up member variables.

Change-Id: Ib60f350131ade626aca682407ea0b4377b16f6c6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
cbaa45bbf2cab852b6c9c3a887e9f803d4e857ea 23-Feb-2013 Wink Saville <wink@google.com> Clean up

- Add @Overrides where needed.
- Update javadoc comments
- Remove extra semi-colons
- Rename DataConnection.java to DataConnectionBase.java
- Rename GsmDataConnection.java to DataConnection.java
- Add defaults to switch statements
- Remove/fix most "if (false)" statements. Fixed by using a CONSTANT
- Fix hidden variables by hoisting to base class or renaming
- Tweak some debug output

Change-Id: If38de2fdeaacafbf40cdfd7f84dc5c52030ba2a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
4918296afe1c667e9523cdfc799f558f7ebc2bfb 21-Feb-2013 Wink Saville <wink@google.com> Move DataConnection related classes to their own package.

Change-Id: I34ee9e87545e6b15ebf4d3ec101d4ed3d322f7b2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e48f50193e1f621e02c1193118511e6eb2cbd662 15-Jan-2013 Wink Saville <wink@google.com> am 4594790b: am 58eafee3: Merge "Telephony: Unregister from UiccController when disposed"

* commit '4594790b7cfc5edb9052622f6f93a4e8b4e50e99':
Telephony: Unregister from UiccController when disposed
c26fb77c4e637466cf0483a4995fe82e6f68b8d3 28-Sep-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Unregister from UiccController when disposed

Change-Id: I296d3f292a72d2f8181f866bd1de7637c8333c63
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
60dc9dc311361f9fb52155ea28d383d55afa90d8 11-Dec-2012 Wink Saville <wink@google.com> Merge commit '7e4b734a' into fix-merge-conflict

* commit '7e4b734a':
Telephony: Move uicc classes into uicc package

Change-Id: Iacc7f1805500bfe55299aaedbe0241ebba8e8b23
d720945f2be5ea5fe0faf67e67d9ea0e184eba67 01-Aug-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Move uicc classes into uicc package

Reduce constructor visibility to package where
possible

Dependent Changes:
I3b718b9aea1f21c7906c8243b4ca0db6af495a08
I80204a2f3dc57cac875abeab390bb9db7a636ff7
Ib9c19e8b157dc7ec74eb14baca5bd3b5caf08c47

Change-Id: Ib4f43374c041cb5eaf2e3883e5ea28b2eb2c9a69
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
f92cb4bd5519427a0db673709d94683a8baf203a 16-Nov-2012 Wink Saville <wink@google.com> Remove CdmaDCT and CdmaDC.

Change-Id: Ifa251706326dae6b1676c79fa591f056a853953d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
2e648e5c481ac90f64d71e1643c83bc67f8c0e7f 16-Nov-2012 Wink Saville <wink@google.com> Revert "Remove CdmaDCT and CdmaDC."

This reverts commit 88f9756a023639f48e85680b8bf2cd1469a5471a

Change-Id: I9b4f140b06acfc9d5f0856f380313a097171437a
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
88f9756a023639f48e85680b8bf2cd1469a5471a 15-Nov-2012 Wink Saville <wink@google.com> Remove CdmaDCT and CdmaDC.

Change-Id: I11ead478231bdd5f0b67bc2354e161eab3d4fd87
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
565013a713156a0ddcc46dc3a0077e4c268ce272 08-Sep-2012 Wink Saville <wink@google.com> Merge commit '599f207f' into fix-merge-conflict

* commit '599f207f':
Telephony: Remove CdmaLteUicc objects

Change-Id: I5d63ea7edbcb1e7fe4010bcb3e5c9d6c961827d6
e287feac673ff68565b766e0e463d105fa9cef9d 10-Jul-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Remove CdmaLteUicc objects

-Pass IccCard object to GsmMmiCode
-Create IccCardProxy
-Make IccCard an interface and pass instance of IccCardProxy to
external applications (PhoneApp). IccCardProxy will use internal
UiccCard to map Icc requests to current active application on
UiccCard to maintain backwards compatibility for external
applications
-Add documentation to UiccController

The primary advantage of UiccController is that we can work with
multiple uicc applications at the same time. And that is a
requirement for modes like Cdma/Lte. The existing code supports
Cdma/Lte only partially and with guessing on modem side. However,
some things modem can guess, while others - it can't.

For instance, when a user tries to edit the fdn list the current
code will pass ef_id for fdn (0x6F3B). But the modem will have no
clue which fdn list the user wants to edit (csim or usim, both
have path 7FFF), and it's impossible for modem to guess correctly
all the time. All the modem can do is try to be consistent and
hope another device is doing same things. Imagine you bring your
card from another Cdma/Lte device to your new Cdma/Lte device:
if this modem uses different fdn file, it won't work as all
existing entries won't be there.

Another example is when the modem's guess is wrong for files like
csim/ef_li (7FFF 6F3A) versus usim/ef_adn (7FFF 6F3A). They have
same ef_ids so Android really should pass aid of the app it wants
to access. Without aids there is no way modem can know for sure
which file Android wants to read! However, in the current code
even Android doesn't know which aid it wants to read file from
since CdmaLteRecords has only 1 aid.

All of these problems cause more and more hacks, both in the modem
and in Android side. UiccController cleans up current code and
provides framework to work with multiple Uicc applications at the
same time.

Change-Id: I60216887b14140bdf833a8ed579ba16cad932bdc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
e0e2ceb1ae025e6dd2adda75c32dba93c6dfeea4 13-Aug-2012 Wink Saville <wink@google.com> Merge commit '616b281b' into merge-conflict-TelephonySignal-Strength-cleanup

* commit '616b281b':
Telephony: Signal Strength cleanup

Change-Id: I3c211a06c480169d90fb5bc2c1774bd509d91f87
15e350dbdedb12c36c4432375e8c58a633b1e492 13-Aug-2012 Wink Saville <wink@google.com> Merge "Telephony: Signal Strength cleanup"
049ab0421f32e6effc5d1277b69bd382cebadb18 09-Aug-2012 Wink Saville <wink@google.com> Merge commit 'e0e2ebb5' into fix-merge-conflict

* commit 'e0e2ebb5':
Telephony: Dynamically instantiate IccCard

Change-Id: I37d65c140033f110bc4990f68adf9489737c9c38
e0e2ebb5a50e580cbe6957dcafb3495a2d0a27f2 27-Jul-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Dynamically instantiate IccCard

Instantiate when get_sim_status request returns

Change-Id: I9c9333d23f1e0b23256731b245577d1a25721647
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
bb36adde615d3d85fa0fc23935197c6bc6a799ed 27-Jul-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Dynamically instantiate IccCard

Instantiate when get_sim_status request returns

Change-Id: I9c9333d23f1e0b23256731b245577d1a25721647
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
5b81adc82a53b3064f4baa3acfeabef31586588a 10-Jul-2012 Uma Maheswari Ramalingam <umam@codeaurora.org> Telephony: Signal Strength cleanup

Make signal strength parsing common for all modes

Change-Id: I41bce658c536dc30558224c8ca76d6d70afb78ee
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
ef1d4bff9bbf7d967dbcace73f08910e14e367d0 17-Jul-2012 Wink Saville <wink@google.com> Revise CellInfo API's

Change-Id: I35bc22caf4a6a2255f2ce122690823f8d602b359
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
c38bb60d867c5d61d90b7179a9ed2b2d1848124f 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common - DO NOT MERGE

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java
0825495a331bb44df395a0cdb79fab85e68db5d5 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ServiceStateTracker.java