aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/android/internal/telephony/ServiceStateTracker.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "IMS: Update VoLTE, VoWifi icons based on IMS capabilities"staging/cm-14.1-cafrebaseArne Coucheron2017-01-171-17/+0
| | | | | | This reverts commit 7d0fa830874b20844d525218ce7bd54df8334566. Change-Id: I5a816b254b2db1ea68ff955adc4c8d4f698717c2
* Telephony: Use regular poll state when radio off for RIL versions < 10Arne Coucheron2017-01-071-1/+5
| | | | | | | | | The modemTriggeredPollState breaks airplane mode on some devices. Although the UI shows that airplane mode is activated, the fact is that the radio remains active and in service. By using original AOSP pollState() here, service state in sim status shows correctly radio off. Change-Id: If2ab5b088a13b1a159e01f82fbea1f58a77b64cd
* Merge N-MR1 to remote branch.Naveen Kumar2016-12-081-141/+287
|\ | | | | | | Change-Id: I0ae7dc11e483e46b2e942339733378d88271dfd8
| * Merge commit '86dd3d2269bc264138cc314b349864dfd8cb115a' into remoteLalit Kansara2016-12-061-141/+287
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/java/android/telephony/SmsManager.java src/java/com/android/internal/telephony/BaseCommands.java src/java/com/android/internal/telephony/CommandsInterface.java src/java/com/android/internal/telephony/GsmCdmaCallTracker.java src/java/com/android/internal/telephony/GsmCdmaConnection.java src/java/com/android/internal/telephony/GsmCdmaPhone.java src/java/com/android/internal/telephony/IccProvider.java src/java/com/android/internal/telephony/ImsSMSDispatcher.java src/java/com/android/internal/telephony/InboundSmsHandler.java src/java/com/android/internal/telephony/Phone.java src/java/com/android/internal/telephony/PhoneInternalInterface.java src/java/com/android/internal/telephony/RIL.java src/java/com/android/internal/telephony/ServiceStateTracker.java src/java/com/android/internal/telephony/TelephonyEventLog.java src/java/com/android/internal/telephony/cdma/CdmaSMSDispatcher.java src/java/com/android/internal/telephony/dataconnection/DcTracker.java src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java src/java/com/android/internal/telephony/test/SimulatedCommandsVerifier.java src/java/com/android/internal/telephony/uicc/AdnRecord.java src/java/com/android/internal/telephony/uicc/UiccController.java tests/telephonytests/src/com/android/internal/telephony/GsmCdmaCallTrackerTest.java tests/telephonytests/src/com/android/internal/telephony/ImsSMSDispatcherTest.java tests/telephonytests/src/com/android/internal/telephony/ServiceStateTrackerTest.java tests/telephonytests/src/com/android/internal/telephony/gsm/GsmInboundSmsHandlerTest.java Change-Id: I353ccef1d324716b13196ff6b3a56a74e091de51
| | * Update the proto and service state logging.Jack Yu2016-10-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Merge "Combined TelephonyEventLog and part of the connectivity metrics app ↵Jack Yu2016-09-301-3/+4
| | |\ | | | | | | | | | | | | into the new TelephonyMetrics" into nyc-mr1-dev
| | | * Combined TelephonyEventLog and part of the connectivity metricsJack Yu2016-09-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | app into the new TelephonyMetrics Added the new TelephonyMetrics to support metrics collection through dumpsys. bug: 31224848 Change-Id: If4b6032e98b6cc8b68e8459e0e799a3755b1f2f9
| | * | Plug hole in Roaming indication.Robert Greenwalt2016-09-281-1/+89
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Use ERI to update operator name before updateSpnDisplay() if needed.Amit Mahajan2016-09-071-58/+66
| | | | | | | | | | | | | | | Bug: 31308687 Change-Id: Id8907abc8f76cc77b5bcfeee4d5ed34bf18e71e3
| | * Use correct SPN format for WFC.Amit Mahajan2016-08-091-34/+53
| | | | | | | | | | | | | | | Bug: 30474919 Change-Id: I082dfd847316c15a2e4eda86e21e003e3ac398d5
| | * Merge "Stop exposing LTE_CA as a RAT type." into nyc-mr1-devRobert Greenwalt2016-07-291-16/+3
| | |\
| | | * Stop exposing LTE_CA as a RAT type.Robert Greenwalt2016-07-281-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead use a new hidden field in ServiceState until we get a real api in O. bug:30480638 Change-Id: I40e3eeddced2c8f078c51fe8be4d45ce2e1139df
| | * | Merge "Call pollState() in APM if RAT or radio state changes." into nyc-mr1-devAmit Mahajan2016-07-291-1/+2
| | |\ \ | | | |/ | | |/|
| | | * Call pollState() in APM if RAT or radio state changes.Amit Mahajan2016-07-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Fix tcp buffer sizes on LTE_CA.Robert Greenwalt2016-07-261-4/+26
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Add a public method to access the Radio stateBrad Ebinger2016-07-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Fix airplane mode doesnt persist cross boot-upfionaxu2016-06-301-5/+5
| | | | | | | | | | | | | | | Bug: 29645680 Change-Id: Ic179390dbab365a026e159895c2c5de2ad90508e
| | * Add support for LTE CarrierAgregationAjay Nambi2016-06-231-25/+21
| | | | | | | | | | | | | | | | | | | | | | | | Note this may be redesigned in O to better handle the various bitrate/channel combinations in a sane way. bug:27360321 Change-Id: I29dc8cbbdec60b3a5c0eed8117e3b7bb27f429ed
| | * Add a Carrier-config specific ratcheter of RATs.Robert Greenwalt2016-06-221-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Merge "add upper bound on nitz year" into nyc-mr1-devChen Xu2016-06-211-0/+6
| | |\
| | | * add upper bound on nitz yearfionaxu2016-06-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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
| | * | Merge \"Move Spammy SST.getAllCellInfo Logs to Verbose\" into nyc-devNathan Harold2016-06-151-1/+1
| | |\ \ | | | |/ | | |/| | | | | | | | | | | | | am: 5dc5ace26c Change-Id: I3ef1cb4cc70cc8adb0f7342c20f2905864eb5c20
| | * | cold sim clean upfionaxu2016-06-031-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | Merge a5d7faeb6a3ba74912e0f18d07ec1b6cd2600c3d on remote branchLinux Build Service Account2016-12-061-0/+2
|\| | | | | | | | | | | | | | | Change-Id: Iac319efc8e8bb6220bea40e8e2961a722596bc25
| * | | Shutdown request not sent in APMWileen Chiu2016-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - if radio is already in the off state, the SHUTDOWN request is not sent down - Adding a condition to send the request immediately Change-Id: I92c108794252538b77b79d897cea8f8ea7489a17 CRs-Fixed: 1085035
* | | | Telephony: Plmn name overridePenchala Prasad Mittadodla2016-10-231-2/+2
|/ / / | | | | | | | | | | | | | | | | | | - Change access specifier for variables Change-Id: I7671cf955e058a5059c9ac7c532fc23252f2e2f8 CRs-Fixed: 1077509
* | | Telephony: Use data and voice states for SPNShiva Kishore Tekale2016-09-211-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. CRs-Fixed: 711942, 532471 Change-Id: Ic46ac0c7e3af51a380bb2db5d71a71bf9595c2ec
* | | Telephony: Fix RUIM app mcc/mnc issue.Yashdev Singh2016-09-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if mUiccAppType is RUIM: use RuimRecords for mcc/mnc lookup. else Use mIccRecords of mUiccAppType for mcc/mnc. Above algorithm mandates that mUiccAppType MUST always be correct for current configuration. This is controlled by VOICE_RADIO_TECH and mPrecisePhoneType For the configuration where simcard has only RuimApp and SimApp. - In home network, VOICE_RADIO_TECH would indicate 1x. - This would result in enforcing that phonetype be CDMA. - MCC/MNC lookup on GsmCdmaPhone would result in using RuimRecords. - *#0000# would show RuimRecords parameters. - In roaming GSM networks, VOICE_RADIO_TECH would indicate 3GPP RAT value. - this would force phone type to change from cdma >> GSM. - SimRecords would be used in mcc/mnc lookup. - *#0000# would show SimRecords parameters. For the configuration where simcard has CsimApp, UsimApp and Isimapp. - In home/roaming network, VOICE_RADIO_TECH would indicate 3GPP-rats/1x/LTE - GsmCdmaPhone would use SimRecords irrespective of VOICE_RADIO_TECH value. - *#0000# would show SimRecords or RuimRecords parameters based on current phoneType and VOICE_RADIO_TECH. For the configurations where simcard has Csimapp or just RuimApp. - RuimRecords would be used in mcc/mnc lookup. - *#0000# woud show RuimRecords parameters. Change-Id: Id2ac103c1d6fc6a3dbe6849f73ce92f84b5305ad
* | | Fix the roaming searching text display in standby screenMengjun Leng2016-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Display roaming searching text in the device when cdma subscription source is NV.As per current implementation, ERI file is always loaded ir-respective of NV or RUIM. Change-Id: I6858e47e669ad5068481d516fb36606e7cb55bb6 CRs-Fixed: 646971
* | | IMS: Update VoLTE, VoWifi icons based on IMS capabilitiesBenergy Meenan Ravuri2016-08-241-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | Handle IMS capabilities changed indication and update service state. Change-Id: I54e3a51c2756c5e399432f89fb6250c5a2ae93a9 CRs-Fixed: 998552
* | | Telephony: Don't ignore modem trigger for polling in APM.Yashdev Singh2016-08-241-1/+1
| | | | | | | | | | | | Change-Id: I5f8561aad14cd49af87ece481bd598ac4a99bad8
* | | Send shutdown command to modemWileen Chiu2016-08-241-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The shutdown command is not sent to the modem for a graceful shutdown when the modem is in offline state in which, the RADIO_POWER off request is rejected - Send the shutdown command as soon as the device has been given a chance to power down the radio CRs-Fixed: 977534 Change-Id: I2fc2eae04918f3927e93924f6ae7b3e19f920de2
* | | MSIM: Dummy subId related changesSandeep Gutta2016-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace isActiveSubId() in some places where isValidSubscriptionId() method used, this change is to filter out DUMMY subId value Change access modifier of below method and enum to protected - handleSimLoaded() - EVENT_SIM_LOCKED_QUERY_ICCID_DONE Change-Id: I768d6de927fc49a6cc5c06f2102b8688e6191c57 CRs-Fixed: 1034971
* | | Fix Operator display issue in CDMA modeRuthwar Kumar Ambeer2016-08-241-1/+3
| | | | | | | | | | | | | | | | | | | | | Update operator alphalong when voice or data is in service Change-Id: I3e0d41b424606516d60319a76f22e2bde6ad3dcd CRs-Fixed: 822749
* | | Telephony: 4G+ icon display on status bar.Qiang Chen2016-08-241-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | - Handle LTE_CA equivalent of LTE RAT. CRs-Fixed: 873290 Change-Id: I8cfd5fdf71e533e225bb823e8fea2074bd79e98e
* | | Fix Acess modifiers as part of extending ServicestateTracker.Ruthwar Kumar Ambeer2016-08-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the process of extending ServicestateTracker class to QtiServiceStateTracker, Modify Access modifier types of few variables and method from private to protected to access from child class. Change-Id: I04c05d432094c4d46216fcca58f776b0e6e7863c
* | | Add Dual Transfer Mode support.Sukanya Rajkhowa2016-08-241-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - In ServiceStateTracker, decode the "concurrent services support indicator" field from RIL_REQUEST_VOICE_REGISTRATION_STATE request and based on the value of this CSSI field allow concurrent CS and PS services to applications. - Notify data connection changed on CSS indicator update. - When the phone moves from a DTM cell to a non DTM cell while in active voice call, data connection is not suspended. To fix this, consider CSS indicator change also for notifying data connection. - To determine concurrent voice and data support we need to query Data Radio Tech CRs-Fixed: 564063, 641116 Change-Id: I57c445ee28be4e1c0f2934cb136a70d39447511c
* | | add upper bound on nitz yearY2016-06-211-0/+6
| |/ |/| | | | | | | | | | | | | | | -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
* | Move Spammy SST.getAllCellInfo Logs to VerboseNathan Harold2016-06-151-1/+1
|/ | | | | | | | | | 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
* Use getConfigForSubId instead of getConfig(int).Derek Tan2016-05-251-1/+1
| | | | | | | | | 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
* Remove synthesized CellInfo reports from ServiceStateTrackerNathan Harold2016-04-211-150/+12
| | | | | | | | | | | | | | | | | | | | | | 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
* Cold Sim fix for DataConnection and DCTfionaxu2016-04-191-0/+4
| | | | | Bug: 25203607 Change-Id: I3bbef77edf57eaa8d7da24d687cc9b5ab0ef111b
* Merge "Update OTASP status correctly" into nyc-devChen Xu2016-04-141-12/+28
|\
| * Update OTASP status correctlyfionaxu2016-04-141-12/+28
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Don't use overlays for WFC error messages and SPN formats" into nyc-devPavel Zhamaitsiak2016-04-141-4/+23
|\ \ | |/ |/|
| * Don't use overlays for WFC error messages and SPN formatsPavel Zhamaitsiak2016-04-121-4/+23
| | | | | | | | | | | | | | | | | | | | | | - 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
* | Merge "Switch TelephonyEventLog from using ITelephonyDebug to ↵TreeHugger Robot2016-04-141-1/+1
|\ \ | | | | | | | | | ConnectivityMetricsLogger" into nyc-dev
| * | Switch TelephonyEventLog from using ITelephonyDebug to ConnectivityMetricsLoggerPavel Zhamaitsiak2016-04-071-1/+1
| | | | | | | | | | | | | | | Bug: 28026463 Change-Id: I3c4f14e8a6611f0cb5c52eb24573621d3a13c4cb
* | | Moved ERI configuration files from resoures to Carrier Config.Jack Yu2016-04-121-4/+0
| |/ |/| | | | | | | | | | | | | Used Carrier Config to load correct ERI configuration file since there are MCC/MNC shared by different carriers. bug: 23887558 Change-Id: Ibe2ff7862bf50e31b52fb783c49bda993f8d2ca7
* | Notify call state when phone app starts and SIM is loaded.Sandeep Gutta2016-04-061-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | am: 9dd3a9f * commit '9dd3a9fff75ee1d6aceff626126f6e3324f20ddb': Notify call state when phone app starts and SIM is loaded. Change-Id: I016c765ef34dac41dd8245c16fdb877fefbe1c81