2473 Commits

Author SHA1 Message Date
Andrew Lee
7f3d41fd12 Add new DisconnectCause class to telecomm.
+ Add a hidden "UNKNOWN" default type to ToneGenerator.
- Hide the Telephony DisconnectCause from the public API.
+ Add a Telecomm DisconnectCause. This is parcelable, and contains
information (code, user facing message, non-user facing reason,
and tone) to help describe the disconnect state and what behaviors
an application can implement for the user experience. This reduces
the causes for a disconnect to a more generic set.
+ Lots of work to pipe this through. DisconnectCause replaces the
code and message which were formerly passed around.

Bug: 17241433
Bug: 17329632
Change-Id: I9d337e478a8784bcc0ade02267c2df52cac9bf17
2014-09-16 12:07:41 -07:00
Yorke Lee
2ae312e306 Pipe TelephonyManager.getCallState through TelecommManager
* Add TelecommManager.getCallState (hidden API)
* Make TelephonyManager.getCallState call through to
TelecommManager, to be consistent with
TelephonyManager.ACTION_PHONE_STATE_CHANGED broadcasts for
overall call state. Telephony continues to manage call states for
individual subscriptions.

Bug: 17378767
Change-Id: Ia5e8b21df801ed3af4f6e14c110a72c92f077f88
2014-09-14 09:54:23 -07:00
Tyler Gunn
ef9f6f957d Renaming Telecomm to Telecom.
- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638
2014-09-12 22:16:17 -07:00
Cheuksan Wang
a6c52ac624 Merge "Send and download MMS via content provider instead of PDU bytes." into lmp-dev 2014-09-12 17:07:49 +00:00
Cheuksan Wang
ee04543d58 Send and download MMS via content provider instead of PDU bytes.
Change-Id: Ib5a93d07799c9e14fea8be820c6bd4bc7ae8be3a
2014-09-11 14:17:15 -07:00
Anthony Lee
b78890c159 isValidSlotId() and isValidPhoneId() updated to handle negatives.
The old version of the code wanted to just check to make sure
that the slot/phone id is greater than INVALID_SLOT_ID or
INVALID_PHONE_ID that are both currently defined to be -1000. The
changes are made for 2 reasons.  First, INVALID_SLOT_ID and/or
INVALID_PHONE_ID might not always be defined to be a negative value
so there is a big assumption.  Secondly, anything greater than
-1000 allows other negative values to be considered valid ids.

Bug: 17243556
Change-Id: I2bbfcc2cfd2d7c4772dfb9c50af2dc88c0f315e2
2014-09-11 12:37:29 -07:00
Derek Tan
6d955b88c3 Merge "Update the comment in two APIs since we will persist the settings." into lmp-dev 2014-09-11 05:16:35 +00:00
Junda Liu
13e28bb938 Add ForSubscriber suffix to APIs w/ subId argument.
Bug: b/17255752
Change-Id: I142d8961aa4c1fa074833f70c404c955caea0870
2014-09-09 17:50:09 -07:00
Wink Saville
bc0272754d Change suffix UsingSubId to ForSubscriber.
Bug: 17255752
Change-Id: Ifd522888b5aaae111f642d1e35bd1bb939e539d4
2014-09-09 17:38:19 +00:00
Wink Saville
40e9f393df Merge "Change getCurrentPhoneType to SystemApi" into lmp-dev 2014-09-09 00:00:49 +00:00
Amit Mahajan
4009b98f73 Merge "Assisted dialing support of MO SMS" into lmp-dev 2014-09-08 23:56:31 +00:00
Wink Saville
96b3e61ff6 Change getCurrentPhoneType to SystemApi
Bug: 17394367
Change-Id: I293faa26884e8d63a833e624e6c9a201c7652683
2014-09-08 16:52:03 -07:00
Steven Liu
db960ad188 change the property name about IDP from 'telephony.' to 'gsm.'
'telphony.' couldn't be set successfully.

Change-Id: I8a9ee29461bf764f2b269bb81fafe83d8d5e48d9
2014-09-08 16:47:15 -07:00
Derek Tan
2bae510cce Update the comment in two APIs since we will persist the settings.
Bug: 17255752
Change-Id: I28926381e8e982579b38c19799078f7a3151aefe
2014-09-08 10:55:29 -07:00
Junda Liu
c6bd32e94f Merge "Hide APIs for simplified network settings." into lmp-dev 2014-09-06 00:55:30 +00:00
Derek Tan
54e883bedc Update the preferred network type APIs.
Bug: 17255752
Change-Id: I8f74749752f8d8c6cd5b28dd5fe4ed89a33481ed
2014-09-05 17:06:46 -07:00
Derek Tan
b5928445d1 Merge "Remove setCdmaSubscription API." into lmp-dev 2014-09-05 23:53:55 +00:00
Derek Tan
a0729d3487 Merge "Update the comment in sendEnvelope." into lmp-dev 2014-09-05 23:53:10 +00:00
Xia Ying
77ea3ee5ec Assisted dialing support of MO SMS
This is special for VZW requirement. Follow the specificaitons
of assisted dialing of MO SMS while traveling on VZW CDMA,
international CDMA or GSM markets.

Change-Id: I34a531b817095f4ce035f3f49a3bf7d6e2e8bc13
2014-09-05 16:52:56 -07:00
Shishir Agrawal
1244333998 Merge "API change: SetOperatorBrandOverride should not take iccId as a param." into lmp-dev 2014-09-05 23:51:40 +00:00
Junda Liu
b8025f3260 Hide APIs for simplified network settings.
Bug: b/17255752
Change-Id: Ibbe5d5cdbc2398ba0df2103bd7a33b98dc977734
2014-09-05 16:46:38 -07:00
Shishir Agrawal
d2cfa92146 API change: SetOperatorBrandOverride should not take iccId as a param.
Taking ICCID as a parameter is not scure since a carrier can override the
brand for other carriers. We should override only the current ICCID.

Bug: 17390144

Change-Id: I9be2cb5c5fa15367fcb3b548b6e601a294e84dbc
2014-09-05 15:37:44 -07:00
Steven Liu
9b656ee320 Plus code handling for non-NANP CDMA carrier
Since most of CDMA network do not support phone number with "+" for
international dialing, current AOSP support the "+" handling for
NANP CDMA network, this part add the support for non-NANP CDMA Network,
convert "+" to right IDD(International Direct Dialing) code. And adding
a new property for current IDD.

Bug: 17210134

Change-Id: I369083169bb3504f8de9774b65f3993dd561c525
2014-09-05 22:13:11 +00:00
Derek Tan
1eda68766b Update the comment in sendEnvelope.
Bug: 17255752
Change-Id: I4b56447e28bc9838b9ae0425a3673891647116d1
2014-09-05 14:56:32 -07:00
Derek Tan
274baa73c5 Remove setCdmaSubscription API.
Bug: 17255752
Change-Id: I0adc5c3d1b690d86f538c084d17d239f7ffccfca
2014-09-05 14:48:11 -07:00
Amit Mahajan
f11b43d8bf Merge "Fix the IndexOutOfBoundsException when unpacking GSM 8-bit pdu" into lmp-dev 2014-09-05 19:25:36 +00:00
Shishir Agrawal
949bb79f70 Merge "IccOpenLogicalChannelResponse: Adding final to fa few constants." into lmp-dev 2014-09-05 14:48:20 +00:00
Wink Saville
3e0c8d3d3c Merge "More cleanup prior to unhiding" into lmp-dev 2014-09-05 03:40:19 +00:00
Wink Saville
905bb54108 More cleanup prior to unhiding
Adding comments and rename publci SubInfoRecord instance variables

Change-Id: I25a56d779c63a3f483d7a43c5c123404bf489fa3
2014-09-04 17:10:23 -07:00
Shishir Agrawal
ed62dd4e7f IccOpenLogicalChannelResponse: Adding final to fa few constants.
Bug: 17390620 
Change-Id: I81d02b5b0d6e353a04d46663baad1b90398f5b36
2014-09-04 23:15:27 +00:00
Ye Wen
8179c2a6e4 MMS API cleanup (1/4)
- Hide APIs not approved by API council (b/17189780)
- Change configOverrides in MMS APIs from ContentValues to Bundle to be
consistent (b/17390017)
- Change SmsManager.MMS_EXTRA_DATA to EXTRA_MMS_DATA per API council
review (b/17390977)

b/17189780
b/17390017
b/17390977

Change-Id: If5a43e9ab9e42b6328f1581b39051ddf1a58f0dd
2014-09-04 15:41:56 -07:00
Tom Taylor
7a96207e2b Add mcc/mnc to SubInfoRecord
Bug 17157686

Change-Id: I47d19dea73f038a8d748f95dd33452da62ebf26b
2014-09-04 14:05:20 -07:00
Nancy Chen
81a0cbcda3 Merge "Remove check for voicemail number when parsing URI phone number." into lmp-dev 2014-09-04 19:21:30 +00:00
Xia Ying
9bd196bb42 Fix the IndexOutOfBoundsException when unpacking GSM 8-bit pdu
Some wap push messages contains the charactors which are not in the
GSM 7 bit Default Alphabet table and its extension table, it cause the
IndexOutOfBoundsException when unpacking GSM 8-bit encoded pdu.
Solution: Replace them with white space.

Change-Id: I273953341cffddc2269332eabc556e303ff81bec
2014-09-04 12:05:53 -07:00
Wink Saville
8fec2e4414 Cleanup ISub.aidl
Fix copyright and remove @param context

Change-Id: Icf0a7899070f03161db54aac4a83f6dd060bc28d
2014-09-03 20:42:37 -07:00
Wink Saville
cf39f86b50 Merge "Add PhoneStateListener(Looper looper) and some documentation." into lmp-dev 2014-09-03 23:37:17 +00:00
Wink Saville
2e40ba9dca Add PhoneStateListener(Looper looper) and some documentation.
Bug: 17374935
Change-Id: I1eeb77fd7478cb81cde92f43a26ed19697323e6a
2014-09-03 15:44:02 -07:00
Wink Saville
f5bca080a2 Hide SubscriptionManager using individual @hide on fields and methods.
Doing this so the unhide for API Council will just be unhiding a few
fields/methods.

Change-Id: Iebc995c1aebe1f17a6552c28f771be7584bf0acb
2014-09-03 15:41:36 -07:00
Julian Odell
6c25708eb5 Merge "Bug 17262099: MMS API changes (multi-project)." into lmp-dev 2014-09-03 20:20:34 +00:00
Julian Odell
31ef14d4f0 Bug 17262099: MMS API changes (multi-project).
Move MMS api to using content provider rather than byte[] to pass MMS message contents.
Rebased and merged into TOT.

Change-Id: I3509b2774b1cb30a1c8100bb25d283140c963b6b
2014-09-03 13:11:56 -07:00
Wink Saville
8a38a203a9 Rename getActivatedXxx to getActiveXxx
Change-Id: Iba6d2805a69d3385c93b7ed3c6267b5b8b252a28
2014-09-03 12:22:54 -07:00
Nancy Chen
fe99099ea7 Remove check for voicemail number when parsing URI phone number.
Getting the voicemail number will be done in Telephony instead of in
PhoneNumberUtils which is called by Telecomm.

Bug: 17317190
Change-Id: Ia88a56516b4f57ac62dc5696ae359fd042fec040
2014-09-03 11:05:31 -07:00
Wink Saville
c650e0b12a Prepare to make SubscriptionManager public.
Sync SubscriptionManager and its dependentes between lmp-dev
and lmp-sprout-dev.

In SubscriptionManager and SubscriptionController:
-Rename getActivatedSubInfoList to getActiveSubInfoList.
-Remove context as a parameter
-Cleanup

Change-Id: Ie06ced3e7ff5a3d06b3b47892fed22b4bb8972c7
2014-09-02 22:46:42 -07:00
Shri Borde
7237972bff Bug 17243357: Remove MessagingConfigurationManager
It is replaced with SmsManager.getCarrierConfigValues

Change-Id: I560a53427b08746f2a7ed2e540ecb2c978b7ebd0
2014-09-02 14:00:21 -07:00
Yorke Lee
282f368069 Add lookup key to callerInfo
Bug: 16825519
Change-Id: I71c4b2366caa3351b1f2cedd1c341f9ac909b7ea
2014-08-29 18:40:09 -07:00
Diego Pontoriero
3892fc0349 Change TelephonyManager method name to accurately reflect functionality.
Bug: 17163860
Change-Id: I4390d79c49831454146a42b89520a16984c5f260
2014-08-28 13:50:36 -07:00
Makoto Onuki
0e917336a2 Address API review comments:
- Rename isCorpContactId() to isEnterpriseContactId().
- Update EXTRA_* constant values.
- Update javadoc on NAME_VERIFIED.

Bug 17253963

Change-Id: I1bef3adbb4125b39129c77cca29c4b8089e1f8cc
2014-08-27 16:29:40 +00:00
Libin.Tang@motorola.com
c47b18fb25 IMS: modify sendDtmf interface.
Bug: 17282921
Change-Id: If96f209e91db420e089d429bb5c7a0f9882b4057
2014-08-26 20:15:33 +00:00
Diego Pontoriero
04154bcd91 Remove unused constant from TelephonyIntents.
Bug: 16457806
Change-Id: Ia987c3167e5731a1eceb6b1ff4a8795ced826a5d
2014-08-26 10:58:57 -07:00
Shishir Agrawal
ef489ef8ef Modify IccOpenLogicalChannelResponse: Document and rename constants.
Bug: 17189780

Change-Id: Iac96e3bc7265d20f21b29d4a05b615c5ff3cdd6e
2014-08-25 09:09:41 -07:00