summaryrefslogtreecommitdiffstats
path: root/telephony
Commit message (Collapse)AuthorAgeFilesLines
* Change default TIME_DELAYED_TO_RESTART_RADIO to 60secs from 20secs.Wink Saville2009-10-261-1/+1
| | | | | | | | | | This is the simple fix for bug 2199271 which increases the timeout for DEACTIVATE thus allowing more time to complete before SETUP_DATA_CALL is retried. This should fix some occurrences of this bug as the current time is known to be too short. Bug: 2199271 Change-Id: I11c3cdc74678399de5f812133c83d687d0ed9937
* Merge change I2811f162 into eclairAndroid (Google) Code Review2009-10-263-5/+11
|\ | | | | | | | | * changes: Add Authentication Type field to the APN settings.
| * Add Authentication Type field to the APN settings.Jaikumar Ganesh2009-10-263-5/+11
| | | | | | | | | | | | | | | | Use auth type to setup data connection. This value defaults to -1 (unset) to maintain compatibility. When the value is -1, the auth type gets set to 0 (if no user is specified) or 3. Bug: 181700
* | Merge change Ie7105dae into eclairAndroid (Google) Code Review2009-10-222-2/+4
|\ \ | | | | | | | | | | | | * changes: Handle bad SIM message
| * | Handle bad SIM messageTom Taylor2009-10-222-2/+4
| |/ | | | | | | | | | | | | | | When trying to view the saved sms messages on my SIM, I ran into a null ref. With this fix, we don't try and wrap a null message, but just skip it. This is part one of three fixes for BC-triaged bug 2205782. Change-Id: Ie7105dae7e3134b98681deabcc14f5db555902f3
* | Send "encoding problem" to the network for general errors during SMS dispatch.jsh2009-10-212-1/+2
|/ | | | | | | | | | Previously we were returning "other terminal problem" to the network, but this had the potential of blocking MT SMS messages for days at a time (eg, if the problematic message is resent). Sending the "encoding problem" cause code is reasonable since in most cases the we have encountered an error while trying to parse the message. Addresses b/2200412.
* telephony/cdma: Fix Erroneous Roaming Indicators and Latitude-Longitude parsingNaveen Kalla2009-10-212-45/+90
| | | | | | | | | | | | | | | When Android Telephony receives response to GET_REGISTRATION_STATE message from RIL it may contain few fields set to NULL. Due to a parsing exception encountered while parsing that field, the remaining fields will not be parsed even if they are valid data. Ignore all fields that are NULL while letting it parse non-NULL data. For Latitude and Longitude, the values should not be hexadecimal. They shall be parsed as decimal values as specified in the 3GPP2 C.S0005-A specification. Invalid value is changed from -1 to Integer.MAX_VALUE. Bug: 2201613 Change-Id: I13dd02fcfa2ae7fcb6f21c4b94b830786bd7270c
* Log exception if we hit an error parsing an incoming SMS message.jsh2009-10-192-0/+2
| | | | | This will help debug b/2197566. We should have been logging the error anyway.
* Make sure CF icon updates when using "all CF" MMI.jsh2009-10-141-1/+2
| | | | Fixes b/2074739.
* Futher reduce the logging of EriManager.Robert Greenwalt2009-10-131-1/+1
| | | | | | There was another log statement that was poluting radio logs. bug: 2180891
* Make standard roaming indicator display indications configurableLibin Tang2009-10-121-3/+13
| | | | | | | | Allow the ERI overlay file to specify the text for any built-in strings. Currently only the hard-coded strings are used for those. Bug: 2170881 Change-Id: I5d6169696a4558e62587585e17f908f823c54a2b
* Reduce the amount of EriManager Logging.Robert Greenwalt2009-10-121-9/+9
| | | | | | | It was filling the radio log with noise. Added a VDBG set to false to preserve the logging but deactivate it. bug: 2180891
* Make PhoneStateListeners not call TelephonyManagerRobert Greenwalt2009-10-096-5/+68
| | | | | | | | Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into the Telephony process we decided to make sure all the needed info was passed along with the original notifications. bug: 2173053
* Add PERIOD char to CDMA address sugar list.Tammo Spalink2009-10-051-1/+1
| | | | | Addresses issue: http://buganizer/issue?id=2164455
* Unhide constant DATA_ACTIVITY_DORMANT.John Wang2009-10-011-1/+0
|
* Update from API review.Dianne Hackborn2009-09-301-0/+4
| | | | Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
* Revert setDataEnabled to setting a master switch.Robert Greenwalt2009-09-304-13/+42
| | | | | | | | This is independent of whether or not the ConnectivityManager wanted any particular APN on and allows us to track the two seperately - so when data is re-enabled we don't turn things on that CM wants off. bug: 2158290
* Telephony: Add a failure cause for CDMA call failures and renameNaveen Kalla2009-09-295-6/+13
| | | | | | | | | | RIL_REQUEST_CDMA_VALIDATE_AKEY to RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY Add failure cause for CDMA call failures due to access blocked by the CDMA network. Rename RIL_REQUEST_CDMA_VALIDATE_AKEY to RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY. This change needs to go in with the corresponding change in ril.h (1141)
* Fix the reporting of ActiveApnTypes on CDMARobert Greenwalt2009-09-292-13/+27
| | | | | | | Previous fix limiting what was reported active was too strict, leading to DISCONNECTED messages not being accepted (apn list was empty). bug: 2151520
* Merge change I49fbfc68 into eclairAndroid (Google) Code Review2009-09-291-0/+12
|\ | | | | | | | | * changes: Add PhoneNumberUtils.compare() method that uses a resource to determine strictness.
| * Add PhoneNumberUtils.compare() method that uses a resource to determine ↵Evan Millar2009-09-291-0/+12
| | | | | | | | | | | | strictness. Change-Id: I49fbfc683f7089f052671b567ad3e19203a568f0
* | Merge change Ib23e57cf into eclairAndroid (Google) Code Review2009-09-292-58/+33
|\ \ | | | | | | | | | | | | * changes: Set roaming based on both data and voice.
| * | Set roaming based on both data and voice.John Wang2009-09-282-58/+33
| | | | | | | | | | | | | | | | | | In GSM network the data roaming (from +CGREG) and the voice roaming (from +CREG) could be different. Set GSM roaming based on both data and voice roaming status and set it true if either indicates roaming. This solves the unwanted roaming billing issues and respects the download roaming setting in systemUpdater, DownloadProvider, and MMS downloader. For more details refer to bug 2052473.
* | | Fix the reporting of ActiveApnTypes on CDMARobert Greenwalt2009-09-281-2/+2
| |/ |/| | | | | | | | | | | Previous fix limiting what was reported active was too strict, leading to DISCONNECTED messages not being accepted (apn list was empty). bug: 2151520
* | Fix Cdma re-start of default connection.Robert Greenwalt2009-09-271-4/+11
| | | | | | | | | | | | | | | | We dropped an onTrySetupData call because onEnableNewApn calls that automatically on GSM, but CDMA was not doing anything. Made CDMA simply call onTrySetupData. Also, isApnTypeActive for CDMA was returning true even when no data was working. Changed to report true when initing or connected, like GSM.
* | Fix ConnectivityManager's handling of apn switch.Robert Greenwalt2009-09-251-16/+20
| | | | | | | | | | | | | | | | | | It was clearing the interfacename when it was needed later in the process - the prevented us from clearing the route to private dns servers and clearing the flag that this was set. Consequently future uses would not set the private dns servers (since it thought they were already set) and our lookups would fail. bug: 2146929
* | Unhide NETWORK_TYPE_XXX.John Wang2009-09-251-8/+2
| | | | | | | | Make NETWORK_TYPE_HSDPA etc. unhide in TelephonyManager.
* | Update CID in NeighboringCellInfojohnwang2009-09-253-25/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NeighboringCellInfo works in GSM and UMTS network. In GSM network, the locaiton value is the combination of LAC and CID. In UMTS network, the locaiton value is PSC code. NeighboringCellInfo should access and store those two values seperately. It involves the change of Public API. 1. Add new API getRadioType(), getLac(), and getPsc() to get location info in GSM and UMTS. 2. Deprecate setCid() and NeighboringCellInfo(int cid) because cid is set by interpreting network type.
* | Add null check at isEmergencyNumber().Peng Zhu2009-09-241-0/+3
|/ | | | Change-Id: I7eca1ba1ce42e02c7506a7d969e4865778bb49cc
* Print IMEI/MEID in dumpsys.jsh2009-09-242-0/+29
| | | | | Helps with debugging. http://b/issue?id=2133066
* Add Phone.getPhoneType() operation.Tammo Spalink2009-09-2410-59/+66
| | | | | | | | | | | | | | | This routine returns integer values defined in the Phone interface, derived from RILConstants values. Direct references to the RILConstants are replaced by references to these new ones for consistency. API CHANGE: unhide TelephonyManager.PHONE_TYPE_CDMA Addresses issue: http://buganizer/issue?id=1905415 Change-Id: Icfec6d457231b098c031677a66770b5e57be4a44
* Resolve race conditions with disconnect of CDMA data and airplane modeYong Zhang2009-09-211-3/+6
| | | | | | | | Specifically, wait for data to be deactivated when setPowerStateToDesired() is called during data activation. Bug: 2101430 Change-Id: Ia97dd799f779c3f88f66bc1235e7a65958e1e04f
* Merge change 26171 into eclairAndroid (Google) Code Review2009-09-211-15/+43
|\ | | | | | | | | * changes: Fix several CDMA call collision cases
| * Fix several CDMA call collision casesWink Saville2009-09-211-15/+43
| | | | | | | | | | | | | | | | | | | | | | | | 1. Continous ringing after receiving a call waiting while in a call, and before user answers the call waiting, the 1st call drops. If another MT call comes in, while it rings, it also drops, the phone will keep ringing. 2. Data call is not re-initiated if emergency MO call collides with an MT call. Bug: 2123287 Change-Id: I6b12a900ec60b478691544ab5326eac4952ce834
* | make PhoneNumberUtils.compareLoosely use MIN_MATCH of 7 instead of 5.Wei Huang2009-09-201-5/+19
|/ | | | Change-Id: Id4a08c3834b727e253ab189293d5715ffbbe8f35
* Add ring back tone notification.John Wang2009-09-207-0/+67
| | | | | | | | Some networks may not play ring back tone, RIL will send UNSOL ringback notification. Apps can register for ring back tone msg and play tone to user for receiving ALERTING message. The return value indicates to play or stop ring tone.
* Implement compareStrictly() using phone_number_compare() written in C.Daisuke Miyakawa2009-09-191-120/+492
| | | | | | | | | | | | | As per several discussions, we stick to the default behavior now. In stead, we provide compareStrictly() as a hidden method, so that some internal components are able to use the method if needed. Since these are static methods, they cannot refer to the configuration files, whose values can be obtained only via Resources object. Please make callers' side if you want to use strict version of compare(). Internal issue number: 1892808
* Moved the toString method in the parent Connection class.Nicolas Catania2009-09-193-9/+23
| | | | | | Beefed up the output to get more info in the logs about a connection. Personal data is only logged at debug level.
* Fix potential ArrayIndexOutOfBoundsException.jsh2009-09-181-1/+1
| | | | | | | | | When parsing an SMS message as email, extractEmailAddressFromMessageBody() checks parts.length >= 1, but then proceeds to access parts[1] (which may not exist). Instead, check for parts.length >= 2, and treat parts.length = 1 as non-email. b/2122698
* Merge change 25810 into eclairAndroid (Google) Code Review2009-09-181-10/+18
|\ | | | | | | | | * changes: Fix pause-wait dial string conversion error
| * Fix pause-wait dial string conversion errorLibin Tang2009-09-181-10/+18
| | | | | | | | | | | | | | | | | | | | Resolves these specific cases: - 8475766800;,1234 - 8475766800,;1234 Both of these should be converted to 8475766800;1234 Change-Id: Ic329007a3a6e99b1dd55cd8cdec7239dd734c3ca
* | Fix typo in SECONDARY_DATA_RETRY_CONFIGRobert Greenwalt2009-09-181-1/+1
|/ | | | | | The parser doesn't like ';'. bug: 2130639
* telephony: Add CdmaCellLocation class to the public API.Mike Lockwood2009-09-171-3/+3
| | | | | | | Its twin sister GsmCellLocation is public, so this really should be in the SDK too. Change-Id: If6f5899047546a7398f1e4191c67acf15555c21b Signed-off-by: Mike Lockwood <lockwood@android.com>
* Message Reject notification shouldn't be shown in Emergency Calling ModeSatish Roddom2009-09-171-1/+1
| | | | | | | | | | | | | | | Issue: While in emergency mode, if we receive a message, there is a notification being shown as "Text Message rejected". Fix: In CdmaSMSDispatcher.java, send RESULT_OK response instead of RESULT_SMS_GENERIC_ERROR for messages during Emergency mode. So, that SMS_REJECTED action is not broadcasted. If the result is RESULT_OK from CdmaSMSDispatcher, the function notifyAndAcknowledgeLastIncomingSms() is not called from SMSDispatcher.java and hence SMS_REJECTED_ACTION intent is not broadcast. Consequently SMSRejectReceiver.java will not receive the broadcast and will not show reject notification. Change-Id: I2aa8f239393b3e6eeac6b0c2bb69799018e9ae9d
* Merge change 25535 into eclairAndroid (Google) Code Review2009-09-172-2/+33
|\ | | | | | | | | * changes: CDMA Check for network duplicate sms
| * CDMA Check for network duplicate smsChristian Gustafsson2009-09-172-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases a sms acknowledgement might be lost. The network will then resend the same sms. These duplicate sms should be acknowledged but not shown to the user. C.S0015-B 4.3.1.6 Unique Message Identification. The fields used to identify a message are: * Message Identifier, * Originating Address, * Originating Subaddress, and * Message Center Time Stamp. Since some of the fields are optional, the Teleservice Layer shall use as many of the fields as are present in the SMS message to determine message uniqueness. Mobile stations should discard repeated messages. 1. Add a fingerprint function to SmsMessage.java. This returns a byte array to be used as a unique identifier. Parts that make up the identifier are the originating address, teleservice id and the bearerdata. Using all of the bearerdata saves parsing time. There are no random bits allowed in the standard. This makes binary comparison possible. Using all of the bearerdata accounts for the message id, smsc timestamp and "... shall use as many of the fields as are present in the SMS message". 2. Have CdmaSMSDispatcher.dispatchMessage() pull a fingerprint and check if it matches the last acknowledged fingerprint. When it matches return and signal that message was handled. 3. Have CdmaSMSDispatcher.acknowledgeLastIncomingSms() take the last dispatched fingerprint move it to the last acknowledged fingerprint. Only do this if processing of the sms was successful. Change-Id: If79f8fe40896cd290940b7ccd5a17531ab937b60
* | Added a field to track if the call is to a voicemail instance.Nicolas Catania2009-09-167-65/+191
|/ | | | | | | | | | | | | | | | | | | | Refactored common code between CallerInfo and CallerInfoAsyncQuery that deal with voicemail number comparison. In CallerInfo.java added a new field mIsVoiceMail to indicate this is a voicemail call. Added a new method to convert the CallerInfo into a VM instance. Added a new method to generate a debug string from an instance. PhoneNumberUtils has a new method "isVoiceMailNumber" to check if a number is a VM one. I left the method as hidden. Previously any security exception failure was cached in a static variable. I removed that and privilege the optmistic scenario. I am not sure if the security exception is only for the 'regular' telephony layer and if it applies if a 3rd party VM app is installed (e.g googlevoice), hence i removed the cashing to make sure we can pick up new voicemail providers when installed/enabled/disabled. Bug:2112640
* Merge change 25092 into eclairAndroid (Google) Code Review2009-09-156-14/+360
|\ | | | | | | | | * changes: New field in CallerInfo to cache if the call is an emergency one.
| * New field in CallerInfo to cache if the call is an emergency one.Nicolas Catania2009-09-156-14/+360
| | | | | | | | | | | | | | | | Fixed a bug in the sync call, the photo resource was not set to picture_emergency. Added tests to check the correct emergency fields are set in the caller info instance. Bug 2112640
* | Fix call collision issueLibin Tang2009-09-151-25/+59
| | | | | | | | | | | | | | | | | | | | This patch is to fix the call collision issue between an MT call and an MO call causing the MT call screen shown with the MO call info. The fix is to add the condition of foreground call to determine the call collision on top of the pendingMO call only. Bug ID: 2116865 Change-Id: I73aa310d39ebea97e6183281821bf941b5890ccf