summaryrefslogtreecommitdiffstats
path: root/telephony
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | Some SMS logging improvements.jsh2009-09-152-4/+12
| | | | | | | | | | | | | | Use Log.isLoggable() to enable logs at runtime. Implement SmsResponse.toString() so we can see what's returned. Hopefully helps with debugging b/2086832.
* | Assemble WAP datagram correctly when segments arrive out of orderChristian Gustafsson2009-09-151-5/+7
|/ | | | | | | | The WAP assembly code will always attach the last received segment at the end of the WAP datagram. Change the code to add the current segment at the correct location during the WAP datagram assembly. Change-Id: I4cc18bf33bc68ab9a328a0107f21e3670b5026ac
* Merge change 24662 into eclairAndroid (Google) Code Review2009-09-141-1/+1
|\ | | | | | | | | * changes: Fix URI returned by IccProvider.
| * Fix URI returned by IccProvider.jsh2009-09-101-1/+1
| | | | | | | | | | | | insert() had a typo in the URI it returned. b/2113186
* | Merge change 24754 into eclairAndroid (Google) Code Review2009-09-113-41/+106
|\ \ | | | | | | | | | | | | * changes: Handle secondary APN connect failures.
| * | Handle secondary APN connect failures.Robert Greenwalt2009-09-113-41/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this we'd only try a secondary APN once and the stop silently, leaving no APN connected. Adds a second retry manager with configuration strings to do a more approriate retry. Don't retry secondary apn forever. On permanent failure or retry count hit, we send a Phone.REASON_APN_FAILED disconnect status. bug: 2112114
* | | Merge change 24773 into eclairAndroid (Google) Code Review2009-09-111-21/+76
|\ \ \ | |/ / |/| | | | | | | | * changes: Fix NPE in TelephonyManager.
| * | Fix NPE in TelephonyManager.johnwang2009-09-111-21/+76
| |/ | | | | | | It is for bug 1971628 but affects almost every API function in TelephonyManager. When phone is not ready (for example, after crash and restart) the getSubscriberInfo and getITelephony returns null and causes NPE.
* | Fix CDMA SMS delivery status reporting.Tammo Spalink2009-09-112-22/+50
|/ | | | | | | | | | | | CDMA SMS status reports are messages with bearer data message type DELIVERY_ACK. Identify these messages after parsing during demux, update the deliveryPendingList and generate a RESULT_OK intent in the same manner as GSM. Addresses issue: http://buganizer/issue?id=2047571 Change-Id: Ia38718b0bb169a0f3398f50c27a95e8bce7e4c99
* Allow an alternate eri file.Wink Saville2009-09-101-11/+55
| | | | | | | | | For testing purposes it is deseriable to allow vendors to provide an alternate eri file. This fixes Part A of bug 2108379. Bug:2108379 Change-Id: I51703c9ac211ced053418e28e277dfab68deea21
* [Issue 2099206] Encoding phone number prior to sending it to the phone ↵Dmitri Plotnikov2009-09-102-2/+2
| | | | | lookup filter Change-Id: I80327febe7134ac1bdef958251943a9777879d53
* Make Phone.updateServiceLocation acquire a one-shot wake lock.Tammo Spalink2009-09-107-59/+57
| | | | | | | | | Phone.updateServiceLocation() is the internal routine triggered by external calls to CellLocation.requestLocationUpdate(). addresses bug http://b/issue?id=1724246 Change-Id: Id3d5cab1a77df12d3e94373a58ae94688a8630c6
* Avoid CDMA messages with IDs of zero.Tammo Spalink2009-09-091-12/+11
| | | | | | | In reference to issue: http://buganizer/issue?id=2047571 Change-Id: I88b5cdbb988f12206663bbb3fdc9508a437b19ad