2428 Commits

Author SHA1 Message Date
Gabriel Peal
f1e1e77143 resolved conflicts for merge of 74fb97de to master
Change-Id: If28dc21a2ea7e634da130f3c59c17cd63dd5336a
2014-03-25 11:08:19 -07:00
Gabriel Peal
4668f1ed0d am 8ee4491d: am e05077d7: am 83da75d9: Added a private apis jar that includes explicitly supported APIs that are not useful for 3rd party developers.
* commit '8ee4491dc80943429cd79d0c7b87c28056067a58':
  Added a private apis jar that includes explicitly supported APIs that are not useful for 3rd party developers.
2014-03-25 03:54:11 +00:00
Gabriel Peal
8ee4491dc8 am e05077d7: am 83da75d9: Added a private apis jar that includes explicitly 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.
2014-03-25 03:46:17 +00:00
Gabriel Peal
16578caea8 am e05077d7: am 83da75d9: Added a private apis jar that includes explicitly 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.
2014-03-22 23:41:43 +00:00
Gabriel Peal
83da75d938 Added a private apis jar that includes explicitly supported APIs that are 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
2014-03-22 13:33:43 -07:00
Shishir Agrawal
37384dedab Modify TelephonyManager to expose sendEnvelopeWithStatus instead of sendEnvelope.
The RIL sendEnvelope command does not return the response from the SIM while
the sendEnvelopeWithStatus does. Since the response is required for certain
envelope commands, its better to expose sendEnvelopeWithStatus.

Change-Id: I209bfc59e396bb6f91345d6f99c51cfa35f2d650
2014-03-14 09:38:03 -07:00
Rakesh Pallerla
f099a5f389 Telephony: Add functionality to handle ICC IO error
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
2014-03-12 12:23:41 +05:30
Evan Charlton
9bbb37116d resolved conflicts for merge 322f7d6e to master-nova
Change-Id: I31de6084253ce21f50224582f82b7f7e630ef34e
2014-03-06 10:08:06 -08:00
Anders Kristensen
b584e690a6 Remove duplicate call disconnect codes.
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
2014-03-05 15:45:26 -08:00
Jake Hamby
4a2fa35a6a Add get/setPreferredNetworkType() for OMA DM client.
Add get/setPreferredNetworkType() commands for OMA DM client.

Bug: 8847590
Change-Id: Ia898d712b90ec583d61efe7385a5a1844d8beff1
2014-03-03 13:27:20 -08:00
Jake Hamby
4a4db51194 resolved conflicts for merge of 786e71ab to master-nova
Change-Id: Ibe5e0a68f59d95c4a8c721d9e21626714d33ccd0
2014-02-24 12:50:48 -08:00
Jake Hamby
786e71ab11 Remove unneeded new RIL command.
Remove the recently added RIL_REQUEST_SET_RADIO_MODE command and update
the definition of the RIL_REQUEST_NV_RESET_CONFIG parameter.
Also remove some accidentally added debug log lines.

Bug: 12864208
Change-Id: I6f035d6900c9fcb1427bad62057d7b4a1d3cd99c
2014-02-24 11:42:51 -08:00
Evan Charlton
7692be4129 Delete telephony's CallService
This moved to telecomm; kill it again.

Change-Id: I6ae581ac3fe5417f3a17f10f8615caacc69a21ad
2014-02-20 15:26:18 -08:00
Sailesh Nepal
968740b5f5 Add abstract base implementation of CallService.
Base implementation takes care of a lot of boilerplate code.

Change-Id: Iaf5a16f5718727cee0f7efb4af53a021536f50d8
2014-02-20 15:26:18 -08:00
Sailesh Nepal
77e0d606f6 Add interface definitions for CallService/PhoneService
Interfaces are meant to replace ThirdParty*.aidl/java files in same
directory long term.  The differences in methods are on purpose and
reflect more recent design directions.

Change-Id: Ia98603a1d0b6d07a3393c5f7c5aa040f9e3916e4
2014-02-20 15:26:03 -08:00
Ben Gilad
d13e1d2bab Remove the telecomm entries now that we have https://googleplex-android-review.git.corp.google.com/#/c/398927
DO NOT SUBMIT until the above CL is uploaded.

Change-Id: I4e4f19175b502ba81c882d1379d1d225b0e6ba67
2014-02-20 15:12:43 -08:00
Sailesh Nepal
f86a9221a4 Delete Third Party Call APIs
Change-Id: I6121c53362804a228e0316a1666b5032817530ab
2014-02-18 17:04:10 -08:00
Wink Saville
c19a10b1b2 am c1e0f9be: am df10f02a: am e574f7de: am ea56c795: am bbba8211: Merge "Telephony: Handle DATA_CALL_LIST in DCC."
* commit 'c1e0f9be09750055914f873e690d334821739909':
  Telephony: Handle DATA_CALL_LIST in DCC.
2014-02-13 18:06:39 -08:00
Wink Saville
c1e0f9be09 am df10f02a: am e574f7de: am ea56c795: am bbba8211: Merge "Telephony: Handle DATA_CALL_LIST in DCC."
* commit 'df10f02a1428e12acda695360a5e760c8e806ea2':
  Telephony: Handle DATA_CALL_LIST in DCC.
2014-02-14 02:03:44 +00:00
Wink Saville
bbba8211f9 Merge "Telephony: Handle DATA_CALL_LIST in DCC." 2014-02-13 23:37:04 +00:00
Derek Tan
ded7d1871d Fix the inconsistent name on @param and the real param.
Change-Id: If9853e91f55c0be89cdf77ae7c4369f274a45bb6
2014-02-13 14:49:26 -08:00
Derek Tan
51c66e72cf Merge "Expose sendEnvelope." into master-nova 2014-02-13 16:04:15 +00:00
Narayan Kamath
40f12d9824 am 00515148: resolved conflicts for merge of 396b9e79 to master
* commit '005151484546fb0bf7f83c5a6ee065715230bf26':
  Telephony API extension v2
2014-02-13 03:59:35 -08:00
Narayan Kamath
0051514845 resolved conflicts for merge of 396b9e79 to master
Change-Id: Ie71a79699be57f5af6069559068bf6253835d805
2014-02-13 11:48:48 +00:00
Wink Saville
bba3a694b8 Merge "Telephony API extension v2" 2014-02-13 04:26:33 +00:00
Derek Tan
6eac2ee0fc Expose sendEnvelope.
Change-Id: I21565fae9ba8f163aed9104db355aecf9bae1796
2014-02-12 15:49:13 -08:00
Sailesh Nepal
2cde710fe4 Update TelephonyManager.WifiCallingChoices API
This CL updates the order of the WifiCallingChoices values
to match the wifi_calling_choice_values resource.

Change-Id: Iaa643d7a70938877c760ff4a65f737a4c1c750da
2014-02-11 22:54:58 -08:00
Sailesh Nepal
bdd484f6f2 Add abstract base implementation of CallService.
Base implementation takes care of a lot of boilerplate code.

Change-Id: Iaf5a16f5718727cee0f7efb4af53a021536f50d8
2014-02-11 22:52:16 -08:00
Sailesh Nepal
eaeb071a17 Add interface definitions for CallService/PhoneService
Interfaces are meant to replace ThirdParty*.aidl/java files in same
directory long term.  The differences in methods are on purpose and
reflect more recent design directions.

Change-Id: Ia98603a1d0b6d07a3393c5f7c5aa040f9e3916e4
2014-02-11 22:36:26 -08:00
Sailesh Nepal
1bd7876d76 Add Wi-Fi calling state setting to telephony interfaces
Change-Id: I01029ade0eb1ff981cb92a536d042a02129a053f
2014-02-11 22:32:21 -08:00
Sailesh Nepal
512b28309d DO NOT MERGE ThirdPartyCallSendDtmfCallBack API
This API is needed to implement post dial.

Change-Id: Iefdeae81d0eae6be86e7ee1e8ab0251ae43ed079
2014-02-11 22:22:42 -08:00
Sailesh Nepal
960fe9a5ff ThirdPartyPhone: DTMF & callerDisplayName API DO NOT MERGE
This CL extends the ThirdPartyCall API to support DTMF and
callerDisplayname.

Change-Id: Ia3b4730e852a95d0c11fbddfbe1b780aec39dbb5
2014-02-11 22:18:35 -08:00
Sailesh Nepal
aae9216320 Add new phone type (public API) DO NOT MERGE
This CL adds a new public API to allow services to implement calls.

Change-Id: I4d30eb4d91bd342506cad4ced059bd8446c2bec4
2014-02-11 22:08:33 -08:00
Sailesh Nepal
b47ed4f44a Revert "Add new phone type (public API) DO NOT MERGE"
This reverts commit 0590ac70a93c713c6cf28c3bcbce287d9864f037.

Change-Id: I1f4b34c0f8246bb601e2ba5f14eabe9c36d33d94
2014-02-12 06:02:26 +00:00
Sailesh Nepal
0590ac70a9 Add new phone type (public API) DO NOT MERGE
This CL adds a new public API to allow services to implement calls.

Change-Id: If6fef93aebc8b199880ad44d35b7d8ae69f71f9e
2014-02-11 21:27:13 -08:00
Jake Hamby
8f9b33e776 Add new RIL commands to read/write NV items and reset NV config.
Add new RIL commands and generic code cleanups.

The only changes required for OMA DM support are the
addition of five new methods in ITelephony.aidl for
reading/writing NV items and performing NV config and
radio resets (requires MODIFY_PHONE_STATE), along with
the new RIL request IDs in RILConstants.java.

Bug: 12864208
Change-Id: I958d2571580d98a49936ef2e6822e5ac086acbe2
2014-02-03 15:52:18 -08:00
Wink Saville
bef8958652 am 9bc74c4b: am ab092bb0: am 46988138: am 57756970: am a6aa3199: Merge "Fixed mistaken reference to "LTE". Bug 7637224"
* commit '9bc74c4b20bc0c88d01b832517122c28439aa406':
  Fixed mistaken reference to "LTE". Bug 7637224
2014-01-16 00:06:02 +00:00
Yashdev Singh
64ce5047fd Telephony: Handle DATA_CALL_LIST in DCC.
- Added async handling of NetStatPoll.

Bug: 11596853
Change-Id: Iffb7bf369062264dd773338c732bc69318d90b73
2014-01-15 13:01:52 -08:00
Antonio Marín Cerezuela
c5ac15a3e1 Telephony API extension v2
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
2014-01-10 11:08:06 +01:00
David Friedman
5ceef3288d Fixed mistaken reference to "LTE".
Bug 7637224

Change-Id: I9c78fe6edd1182f8132cc5db9ecedbb69681b473
2014-01-08 21:34:02 -08:00
Yorke Lee
710de6dc03 Merge "PhoneNumberUtils API changes" 2013-12-19 18:51:49 +00:00
Shishir Agrawal
375890841d Fixing build breakage due to: c4d41755d73ffe85d179d42a4f0c993b49303145
Mismatched @param in javadoc.

Change-Id: I9034fac389e89e59c0245203543f52504bfc58d7
2013-12-16 17:32:56 -08:00
Shishir Agrawal
57f656b9f6 Adding support for SIM communication from Android over logical channels.
Expose the folowing commands in ITelephony.aidl and TelephonyManager:
    - iccOpenLogicalChannel
    - iccCloseLogicalChannel
    - iccTransmitApduLogicalChannel

Also add a new SIM_COMMUNICATION permission (maked as dangerous) to control
access to the above commands.

Change-Id: I89c08adc6f9738907e3b547c749f3cc61f300710
2013-12-12 16:57:38 -08:00
The Android Open Source Project
ebcb32f58a Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEAD
Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
2013-12-05 13:10:46 -08:00
John Huang
1baf84d267 am 66a9ebfd: am c91c7b4b: am 2e12e052: Merge "RIL changes for supporting generic SIM communication."
* commit '66a9ebfd2fba0b94d84c6bf7bf98b9db7f9fb3b3':
  RIL changes for supporting generic SIM communication.
2013-12-05 02:45:32 +00:00
John Huang
c91c7b4b5d am 2e12e052: Merge "RIL changes for supporting generic SIM communication."
* commit '2e12e0522641649d363a1c6ede9be9af235197fa':
  RIL changes for supporting generic SIM communication.
2013-12-04 17:09:18 -08:00
Yorke Lee
99d1699516 PhoneNumberUtils API changes
Unhide the following methods:
PhoneNumberFormattingTextWatcher(String countryCode)
formatNumber(String phoneNumber, String defaultCountryIso)
formatNumber(String phoneNumber, String phoneNumberE164, String defaultCountryISO)
formatNumberToE164(String phoneNumber, String defaultCountryIso)
(The previous 3 formatting methods use an instance of PhoneNumberUtil to do the formatting)
isLocalEmergencyNumber(String number, Context context)
isVoicemailNumber(String number)
replaceUnicodeDigits(String number)
normalizeNumber(String phoneNumber)

Deprecate the following methods. These formatting-related methods don't use
PhoneNumberUtil to perform the formatting, and so are considered broken:
formatNumber(String source)
formatNumber(String source, int defaultFormattingType)
getFormatTypeForLocale(Locale locale)
formatNumber(Editable text, int defaultFormattingType)
formatNanpNumber(Editable text)
formatJapaneseNumber(Editable text)

Change-Id: Ibf854092b7db05f7e3e9401cc909c9f1ed4997b0
2013-12-02 13:06:30 -08:00
Shishir Agrawal
8b03ab8502 RIL changes for supporting generic SIM communication.
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
2013-12-02 10:56:21 -08:00
The Android Open Source Project
dbccd44a63 Merge commit 'b873a17ce7be0a9771c24999adca6964431728f6' into HEAD
Change-Id: I938755073e70602cc8f51ce9bd420fdcf870cecd
2013-11-22 11:18:57 -08:00
John Spurlock
6090995951 Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-20 11:31:47 -05:00