summaryrefslogtreecommitdiffstats
path: root/telephony/java
Commit message (Collapse)AuthorAgeFilesLines
* am 9cd3ff7d: Merge "Introduce a new event: EVENT_DATA_RAT_CHANGED which is ↵Wink Saville2014-05-291-0/+1
|\ | | | | | | | | | | | | used to indicate data rat change." * commit '9cd3ff7d61ed65e8b815155747e7bbfc99c1e861': Introduce a new event: EVENT_DATA_RAT_CHANGED which is used to indicate data rat change.
| * Introduce a new event: EVENT_DATA_RAT_CHANGED which is used to indicate data ↵Zhang Wei-e7976c2014-05-291-0/+1
| | | | | | | | | | | | rat change. Change-Id: Ibe9e68295661f2f2ffaca3057d696df6a1db3f0c
* | am 7e411f74: Merge "Add support for NETWORK_TYPE_GSM"Wink Saville2014-05-012-0/+7
|\ \ | |/ | | | | | | * commit '7e411f74efe6dd383e59634760cccd96da1c209b': Add support for NETWORK_TYPE_GSM
| * Add support for NETWORK_TYPE_GSMSandeep Kunta2014-05-012-0/+7
| | | | | | | | | | | | | | | | | | | | Add support for NETWORK_TYPE_GSM in TelephonyManager and corresponding mapping in ServicState.java so that when application queries for getVoiceNetworkType() and currently camped rat is GSM, they get network mode as GSM instead of network mode unknown. Change-Id: Ibe4672b04a5044710d63499c4cf2b6ebe91444bf
* | Merge commit '0b62467b142b61ee1e449ba958ba37dfd961ef56' into HEADBill Yi2014-04-294-2/+543
|\ \ | |/ |/|
| * am e05077d7: am 83da75d9: Added a private apis jar that includes explicitly ↵Gabriel Peal2014-03-224-2/+543
| |\ | | | | | | | | | | | | | | | | | | supported APIs that are not useful for 3rd party developers. * commit 'e05077d78c9abde054a754db53e71c647b9a705c': Added a private apis jar that includes explicitly supported APIs that are not useful for 3rd party developers.
| | * Added a private apis jar that includes explicitly supported APIs that are ↵Gabriel Peal2014-03-224-2/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not useful for 3rd party developers. The first set of these APIs is for telephony: Added some APIs to ITelephony and created a first party framework for them toggleHold() merge() mute(boolean mute) playDtmfTone(char digit, boolean timedShortCode) stopDtmfTone() swap() addListener(ITelephonyListener listener) removeListener(ITelephonyListener listener) Bug: 13302451 Change-Id: Iefec5688c26a1b4fe77f5643eba6e1690a057ee6
* | | Merge "Telephony: Add functionality to handle ICC IO error"Wink Saville2014-04-252-2/+13
|\ \ \
| * | | Telephony: Add functionality to handle ICC IO errorRakesh Pallerla2014-03-122-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present in Android all ICC Card states other than ICC PRESENT are treated as ICC ABSENT.Adding functionality to handle ICC IO error card state. Change-Id: I229bd80cb5e487f4345bef9fb7fee60850f085d9 Bug: 10643652
* | | | Remove duplicate call disconnect codes.Anders Kristensen2014-03-051-0/+85
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Android code base defines call disconnect codes in three places: - android.telephony.DisconnectCause - android.internal.telephony.Connection.DisconnectCause - com.android.services.telephony.common.Call.DisconnectCause This CL consolidates the code to use the integer codes from android.telephony.DisconnectCause everywhere. Change-Id: I84a3fd5182a51d07fc7d81076e4b2c15ff26c61c
* | | Merge "Telephony: Handle DATA_CALL_LIST in DCC."Wink Saville2014-02-131-0/+1
|\ \ \
| * | | Telephony: Handle DATA_CALL_LIST in DCC.Yashdev Singh2014-01-151-0/+1
| |/ / | | | | | | | | | | | | | | | | | | - Added async handling of NetStatPoll. Bug: 11596853 Change-Id: Iffb7bf369062264dd773338c732bc69318d90b73
* | | Merge "Telephony API extension v2"Wink Saville2014-02-1311-0/+1166
|\ \ \
| * | | Telephony API extension v2Antonio Marín Cerezuela2014-01-1011-0/+1166
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new AndroidManifest permission: android.permission.READ_PRECISE_PHONE_STATE Added the following PhoneStateListeners and corresponding broadcast intents: onPreciseCallStateChanged(PreciseCallState callState); onPreciseDataConnectionStateChanged(PreciseDataConnectionState dataConnectionState); broadcastPreciseCallStateChanged(int ringingCallState, int foregroundCallState, int backgroundCallState, int disconnectCause, int preciseDisconnectCause) broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) Added TelephonyManager intent actions with their extras and constants: public static final String ACTION_PRECISE_CALL_STATE_CHANGED = "android.intent.action.PRECISE_CALL_STATE"; public static final String ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED = "android.intent.action.PRECISE_DATA_CONNECTION_STATE_CHANGED"; public static final int PRECISE_CALL_STATE_* Moved public static final int DISCONNECT_CAUSE_* from PreciseCallState.java to a new class DisconnectCause.java Moved public static final int PRECISE_DISCONNECT_CAUSE_* from PreciseCallState.java to a new class PreciseDisconnectCause.java Change-Id: If3b88c679507c529b746046c4a17cf6d9974bd09
* | | Fixed mistaken reference to "LTE".David Friedman2014-01-081-2/+2
|/ / | | | | | | | | | | Bug 7637224 Change-Id: I9c78fe6edd1182f8132cc5db9ecedbb69681b473
* | Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEADThe Android Open Source Project2013-12-055-4/+54
|\ \ | |/ | | | | Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
| * Add PhoneNumberUtils method for CDMA SMS number formatting.Jake Hamby2013-11-041-0/+21
| | | | | | | | | | | | | | | | | | For CDMA networks, convert "+" prefix to "011" if the home network is using the North American Numbering Plan (NANP). New method is only used for MO SMS messages. Bug: 11360679 Change-Id: I534e0322b566de3fb49d7333bfcf62cfbfafb78a
| * Merge "Enhance pin/puk support" into klp-devWink Saville2013-10-252-0/+28
| |\
| | * Enhance pin/puk supportWink Saville2013-10-232-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add supplyPinReportResult & supplyPukReportResult that returns the result code and attempts remaining. Display "Attempts remaining" in Keyguard Bug: 9928717 Change-Id: Ibad0635dd1375fabce11ba2b7b9f95f8868489e6
| * | Merge "Fix CountryDetector NPE" into klp-devJay Shrauner2013-10-212-4/+5
| |\ \
| | * | Fix CountryDetector NPEJay Shrauner2013-10-212-4/+5
| | |/ | | | | | | | | | | | | | | | | | | | | | Fix CountryDetector NPE by calling CallerInfo.getCurrentCountryIso() which checks for potential nulls. Bug:11291034 Change-Id: I0a4412c432551c64ec30652d69636442653ee337
| * | Fix typo for radio technologySungmin Choi2013-10-211-1/+1
| |/ | | | | | | | | Bug: 11317677 Change-Id: I792517f4c3aa568b014d6c2bc0023ce5255f8abb
* | RIL changes for supporting generic SIM communication.Shishir Agrawal2013-12-021-0/+6
| | | | | | | | | | | | | | | | | | | | Adds the 4 new commands to RIL interface: - RIL_REQUEST_SIM_TRANSMIT_BASIC (AT+CSIM - TS 27.007) - RIL_REQUEST_SIM_OPEN_CHANNEL (AT+CCHO - TS 27.007) - RIL_REQUEST_SIM_CLOSE_CHANNEL (AT+CCHC - TS 27.007) - RIL_REQUEST_SIM_TRANSMIT_CHANNEL (AT+CGLA - TS 27.007) Change-Id: Iee4d950d37a6097493cd945e611c914c40827215
* | Merge commit 'b873a17ce7be0a9771c24999adca6964431728f6' into HEADThe Android Open Source Project2013-11-2211-42/+172
|\ \ | |/ | | | | Change-Id: I938755073e70602cc8f51ce9bd420fdcf870cecd
| * Merge "Telephony: Read signal strength values as expected" into klp-devWink Saville2013-10-142-12/+21
| |\
| | * Telephony: Read signal strength values as expectedJaime Lopez2013-10-112-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Telephony framework expects Lte rsrp and rsrq, as well as dbm and ecio values for cdma and evdoe to be negative. RIL Interface provides positive values. Fix that by changing the constructor from Parcel to also multiply by -1 Writing to parcel also modified for consistency Bug: 10440827 Change-Id: I6a8112a5b343c5e6c6dc12332a6e9a489b093cc1
| * | am 3a920545: am 2cc953f1: am 9006c422: more documentation for ↵Scott Main2013-10-141-11/+32
| |\ \ | | |/ | |/| | | | | | | | | | | | | SEND_RESPOND_VIA_MESSAGE * commit '3a92054541864c1831fc1a67ea711acd2c4f3690': more documentation for SEND_RESPOND_VIA_MESSAGE
| | * am 2cc953f1: am 9006c422: more documentation for SEND_RESPOND_VIA_MESSAGEScott Main2013-10-141-11/+32
| | |\ | | | | | | | | | | | | | | | | * commit '2cc953f19ad5b7bd2ff1ef4d239cd638daf90744': more documentation for SEND_RESPOND_VIA_MESSAGE
| | | * am 9006c422: more documentation for SEND_RESPOND_VIA_MESSAGEScott Main2013-10-141-11/+32
| | | |\ | | | | | | | | | | | | | | | | | | | | * commit '9006c422909a13e61aa10bac385f05940f345b3b': more documentation for SEND_RESPOND_VIA_MESSAGE
| | | | * more documentation for SEND_RESPOND_VIA_MESSAGEScott Main2013-10-141-11/+32
| | | | | | | | | | | | | | | | | | | | Change-Id: I51ffd122a99481694088d84d46a50752c4c07a48
| * | | | Telephony: SMS over IMSRika Brooks2013-10-103-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add RIL_REQUEST_IMS_REGISTRATION_STATE, RIL_REQUEST_IMS_SEND_SMS, and RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED. Add FORMAT_UNKNOWN to SmsConstants. Bug: 9626411 Change-Id: I87ca9841b4ace931c55e2d379fe6d7589b2dc8a5 Signed-off-by: Ed Tam <etam@google.com>
| * | | | Fix NPE in CallerInfo.getCurrentCountryIso().Jake Hamby2013-10-081-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Internal method CallerInfo.getCurrentCountryIso() can throw NPE if the country detector's detectCountry() method returns null. Add code to check that the Country is not null before calling getCountryIso() on it. Change fallback logic to call locale.getCountry() whenever countryIso was not assigned. Bug: 10607906 Change-Id: I08fe3f4d942f67c37a2e6ff0b067fe32ad8a6fa5
| * | | | New Telephony APIs to return MMS UA and UAProfUrlYuhao Zheng2013-10-031-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two public APIs under TelephonyManager to return MMS UserAgent and UAProfUrl strings, for apps that handle SMS/MMS. Bug: 11054501 Change-Id: Ifa1a64990fa2bf7d0e340d784a9672bf79525338
| * | | | Add RIL_REQUEST_SET_INITIAL_ATTACH_APN.Wink Saville2013-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 9626411 Change-Id: I0c278d9f4c6fd7e12c495c2411ab94ac87e1f316
| * | | | Fix issue #10688644: Java crash in com.android.phone:Dianne Hackborn2013-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | java.lang.SecurityException: Operation not allowed There was a situation I wasn't taking into account -- components declared by the system has a special ability to run in the processes of other uids. This means that if that code loaded into another process tries to do anything needing an app op verification, it will fail, because it will say it is calling as the system package name but it is not actually coming from the system uid. To fix this, we add a new Context.getOpPackageName() to go along-side getBasePackageName(). This is a special call for use by all app ops verification, which will be initialized with either the base package name, the actual package name, or now the default package name of the process if we are creating a context for system code being loaded into a non-system process. I had to update all of the code doing app ops checks to switch to this method to get the calling package name. Also improve the security exception throw to have a more descriptive error message. Change-Id: Ic04f77b3938585b02fccabbc12d2f0dc62b9ef25
| * | | | For NETWORK_MODE_LTE_CMDA_EVDO_GSM_WCDMA default to PHONE_TYPE_GSMWink Saville2013-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 9710534 Change-Id: Iba999579d30045f18b5d370359dbce65d9646c69
| * | | | am 323af8b4: am aa5b0f8b: am ce1e3798: Add provisioning apn timeout.Wink Saville2013-09-041-0/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '323af8b49df3535977b5aa7f5b31c429d8a50f10': Add provisioning apn timeout.
| | * | | am aa5b0f8b: am ce1e3798: Add provisioning apn timeout.Wink Saville2013-09-041-0/+1
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * commit 'aa5b0f8bdadcfa1ddb041e09b815ea4b5986e901': Add provisioning apn timeout.
| | | * | Add provisioning apn timeout.Wink Saville2013-09-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 10609993 Change-Id: I2dd4fe23fa2b22ef8f4849c161c630d1a85cdb4b
| | * | | am 00e4c672: am f85aa0fc: Merge "Telephony: SMS over IMS, DO NOT MERGE" into ↵Ed Tam2013-08-303-0/+34
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr2-dev * commit '00e4c6721b344eca1d8b0de0e82e5de6f4f21f16': Telephony: SMS over IMS, DO NOT MERGE
| | | * | Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-devEd Tam2013-08-303-0/+34
| | | |\ \
| | | | * | Telephony: SMS over IMS, DO NOT MERGERika Brooks2013-08-273-0/+34
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add RIL_REQUEST_IMS_REGISTRATION_STATE, RIL_REQUEST_IMS_SEND_SMS, and RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED. Add FORMAT_UNKNOWN to SmsConstants. Bug: 9626411 Change-Id: I87ca9841b4ace931c55e2d379fe6d7589b2dc8a5
| * | | | Merge commit '270226b0' into manualmergeWink Saville2013-08-292-0/+26
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '270226b0': Add support for handling mobile provisioning networks. Conflicts: core/java/android/net/CaptivePortalTracker.java core/java/android/net/ConnectivityManager.java core/java/android/net/IConnectivityManager.aidl core/java/android/net/MobileDataStateTracker.java core/res/AndroidManifest.xml services/java/com/android/server/ConnectivityService.java Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
| | * | | am 8cb2f42e: am 948282b0: Add support for handling mobile provisioning networks.Wink Saville2013-08-292-0/+26
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * commit '8cb2f42eea2ef3b249528aa7913fc7a6dfc6b741': Add support for handling mobile provisioning networks.
| | | * | Add support for handling mobile provisioning networks.Wink Saville2013-08-292-0/+26
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a sim is new or it has expired it needs to be provisioned with the carrier. Basically provisioning is associating a sim with a user account. When a sim isn't provisioned then operators will restrict access to the network and only allow certain addresses or services to be used. This set of changes allows two types of provisioning networks to be recognized. The first is a network that causes all DNS lookups to be redirected to a different address than was intended. This is exemplified by how T-Mobile works. The second technique uses a special apn for provisioning. An example is AT&T where lwaactivate is the provisioning apn and broadband is the normal apn. We first try broadband and if we are unable to connect we try lwaactivate. When we see the activate we identify it as special and the ApnContext.isProvisioningApn will return true. In the future our plan is to create a new network type that can be added to the apn list, but for now it identified by name. Here is a list of significant changes: - CaptivePortalTracker now only test WiFi networks instead of all networks - checkMobileProvisioning checks for provisioning networks and doesn't try to ping. - IConnectivityManager.aidl changes: * getProvisioningOrActiveNetworkInfo was added to and used by Manage mobile plan in WirelessSettings so even when there is no active network it will still allow provisioning. Otherwise it would report no internet connection. * setSignInErrorNotificationVisible is used by both CaptiviePortalTracker and checkMobileProvisioning so they use the same code for the notifications. * checkMobileProvisioning was simplified to have only a timeout as returning the result is now harder as we abort simultaneous call otherwise we'd could get into loops because we now check every time we connect to mobile. - Enhanced MDST to handle the provisioning network. - Added CONNECTED_TO_PROVISIONING_NETWORK to NetworkInfo to make a new state so we don't announce to the world we're connected. - TelephonyIntents.ACTION_DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN is sent by the low level data connection code to notify Connectivity Service that a provisioning apn has connected. This allows CS to handle the connection differently than a normal connection. Bug: 10328264 Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
| * | | Protecting against NPE with null country detector.Santos Cordon2013-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | bug:10514454 Change-Id: I316c47eddbe4929599866a3f9da9129d0056e3e2
| * | | Add network type TYPE_MOBILE_IA.Wink Saville2013-07-292-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a network type for establishing connections to the apn used for the initial connection. Enable some debug for now. Bug: 8733613 Change-Id: Ia627ac0cf5715660b6d02bb13a83d46ec1727b87
| * | | Merge "Add carrier setup app integration"Evan Charlton2013-07-151-0/+17
| |\ \ \
| | * | | Add carrier setup app integrationEvan Charlton2013-06-271-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an intent to invoke a native carrier setup app. This is paired with the INVOKE_CARRIER_SETUP permission, though it is up to the app to enforce that callers hold this permission. Change-Id: I317a40675de7e9587de23c028459be2331a2f8a2
| * | | | Merge commit '3b5d686e' into fix-merge-conflictWink Saville2013-07-011-0/+1
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b5d686e': Add checkMobileProvisioning to ConnectivityService. Conflicts: services/java/com/android/server/ConnectivityService.java Change-Id: Ieceb9c8f4aa4fa99258e56a720b4c74512369458