History log of /packages/services/Telephony/src/com/android/phone/PhoneUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
33e6415e92858d24a04133a0bae9b002dc14ea46 16-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove unused functions from PhoneUtils"
b337c1611bb8b4a3df615ebd37b8b4d0ae8b10fb 09-Feb-2018 Brad Ebinger <breadley@google.com> Merge "Fix Telephony crashes from bad broadcast receiver behavior." am: 6f51720d3a am: f674732e1e
am: 984360c72a

Change-Id: I6538b13b94a723e941d32709e96f8a5bdd0c06f8
6d4ef741f425046657b52eee15087cf9a01fc99f 07-Feb-2018 Brad Ebinger <breadley@google.com> Fix Telephony crashes from bad broadcast receiver behavior.

1) Removes old classes that are no longer used or caused
a crash in Telephony when adb was used to start them.

2) Fixes some potential issues when starting Telephony
components from other processes.

Bug: 66504458
Test: Launch with adb and make sure nothing crashes
Change-Id: If1cae5d41cc21c48d248a018dd393c41fe1e595d
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
42c1e89176d05eb02479c5ba3b54219a37dc9adf 07-Feb-2018 Mikhail Naganov <mnaganov@google.com> Remove unused functions from PhoneUtils

The following functions are not used, and can be removed:

- turnOnNoiseSuppression
- restoreNoiseSuppression
- isNoiseSuppressionOn

Another reason for removal is that these functions use
historic AudioManager.get/setParameters API for which deprecation
is being planned.

Change-Id: Iac8beb5ae403f8908225f2542ae0fde22314cd6f
Test: make
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
d889c77c2ddbdbc28319362046b2164c58dc0069 02-Nov-2017 Zheng Zhang <zhzh@google.com> Using dark theme for ProgressDialog

Bug: 68822513

Change-Id: I933a5867bc38867747f55e4b50192fe76fd4d568
(cherry picked from commit 2c19fb7dc4b0a630455954a907b713cb8f21048c)
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
2eefb2bb91cbc3c7d2ce1170ca1043b834ad394e 03-Aug-2017 Brad Ebinger <breadley@google.com> Move AlertDialog to SYSTEM_ALERT

Move USSD alert dialog to SYSTEM_ALERT
so that it doesn't draw over other system
UI, such as the drop down menu.

Test: Manual
Bug: 63875994
Change-Id: I0664208729757a826c24725c8019f17c9c47ef77
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
13fe249b0ba05e6652a4ce2d5271be5b8f3a3672 22-May-2017 Tyler Gunn <tgunn@google.com> Add extra USSD code logging.

Test: Manual
Bug: 37561464
Change-Id: Ia3447d5984e83d5848dd8dba57e0758cfe3d3185
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
dd21031e41b68706b01efc79fefcf8e6a1bf944a 13-Apr-2017 Shuo Qian <shuoq@google.com> ECBM SystemProperty cleanup

- Add getEmergencyCallbackMode() method to get the boolean
value for ECBM callback mode from the phone, in the
PhoneInterfaceManager.java

- Replace the 'get' of PROPERTY_INECM_MODE system property
in the packages/services/Telephony

Change-Id: Ide35e28b3339f58523bfe92be3c2fdfce111d45e
Test: Manual
Bug: 30361624
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
f78851443a876b706e36e3e9925049557486bdc1 28-Nov-2016 fionaxu <fionaxu@google.com> otasp refactor

- rewrite otasp with simplied logic
- streamline the flow, remove dependencies with SuW
- remove support for interactive otasp call which has been deprecated since Kitkat
- TODO: remove deprecated codes or mark as deprecated
- TODO: otasp app update SimActivationStatus when API is ready

Test: manual test
Bug: 31061369
Change-Id: Ia210186d7c900ed719eea1d19dc52e6638e04bc5
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
845f699e273a2490faec1bd13843e90f23413cc8 16-Jun-2016 Ta-wei Yen <twyen@google.com> Support visual voicemail legacy mode

Legacy mode is a mode that on the carrier side visual voicemail is still
activated, but on the client side all network operations are disabled.
SMSs are still monitored so a new message SYNC SMS will be translated
to show a message waiting indicator, like traditional voicemails.

This is for carriers that does not support VVM deactivation so voicemail
can continue to function without the data cost.

Bug: 29399579
Change-Id: I0b72d6e4740aca083401ef1ae3d33976aeaa1253
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
208cb8de2f8fad5c1d3797bf38e0879bb0996670 05-May-2016 Brad Ebinger <breadley@google.com> Merge "Add a check to see if a call has been disconnected" into nyc-dev
baeabcf139c95c1b9c4446d3b46497837dee9744 25-Apr-2016 Brad Ebinger <breadley@google.com> Add a check to see if a call has been disconnected

Previously, we would retrieve the currently active Foreground call to
determine whether or not it is a an emergency call. The utility for
finding the currently active call includes calls in the DISCONNECTED
state, however, which would keep Airplane mode from turning on even if
the call was ended.

This change adds an additional check to be sure that the call is not in the
DISCONNECTED state before determining whether or not the call was an
emergency call.

Change-Id: Id694d8b8ef66845c834e37dba5f0077c7f145b67
Fix: 27942284
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
4fe48111c7d1f9410e65ad7abdf6e29879e09d16 13-Apr-2016 Brad Ebinger <breadley@google.com> Use the full SIM UICC to prevent possible collisions

Currently, Telephony registers the SIM PhoneAccounts using the partial
UICC, which has the possibility of colliding with another sim UICC on
a multi-SIM device. To Telecom, it looks like there is only one
PhoneAccount. We now register the full UICC with Telecom so that
this collision does not occur.

Change-Id: I517d05c69f1f2005b917f1e3463a14a235b49ad8
Fix: 25410213
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
d3edc2292d969ecf8df96281c50e1a8f7a3fc777 24-Mar-2016 Brad Ebinger <breadley@google.com> Use Emergency PhoneAccount for MT ECM Call on no SIM

Use the correct Emergency PhoneAccount for a MT call on a phone with no
SIM that is in ECM. Also, reject incoming SIP calls that are received on
a disabled PhoneAccount instead of crashing the Phone process.

Bug: 27820226
Change-Id: Iab81df05ba9c4f94f08576baee47475d59760a13
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
31f9ba14fc404ce4baa7e5cba6bad84ebe4bf124 06-Jan-2016 Nancy Chen <nancychen@google.com> Implement API methods to get voicemail notification settings.

Bug: 24164917
Change-Id: I1364a89a12f506a74d65ab86f445ff662a776381
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
6d83e5eb90ee8b4551d61c4789bb8f124c4c12d2 14-Dec-2015 Amit Mahajan <amitmahajan@google.com> Code cleanup including removing direct references to IMS classes.

Also removing code in PstnIncomingCallNotifier to unregister and
re-register on phone type switch as that is not required now.

Bug: 25793157
Change-Id: Ic0c0fd5067d65b950a2a0ddb2bec528c22b694d4
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
0b8359493a68d7bd2b50d509e5a6ea09a79002c9 08-Dec-2015 Bryce Lee <brycelee@google.com> Remove BluetoothManager. am: 5ccda61670 am: c28c7e82a0 am: 171fd51940
am: 35614690f3

* commit '35614690f3d12cad4d5c244c5fe5a9c274461983':
Remove BluetoothManager.
4c8f3c63b75ba080ab697b2e8e0f1e3f732dda74 07-Dec-2015 Tony Mak <tonymak@google.com> Allow non-primary users to configure calling accounts

PhoneAccountSettingsFragment is now open to non-primary user.
Hardcoding component of pstn conecntion service to avoid accessing
PhoneGlobal in non-primary user.

Change-Id: I05632fdf61fa6a579ca260e04a74ae370b4de51f
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
5ccda616708b298d6f71598b6ac23a94cd6033f8 05-Dec-2015 Bryce Lee <brycelee@google.com> Remove BluetoothManager.

Bug: 25851538
Change-Id: I40cbd1fc5c26fb61bdf815a5ecc044197d887a0e
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
779841a270cfd831df58eb7e9b3d5ae0fd4211da 22-Oct-2015 Alex Hills <ahills@google.com> Fixes Telephony ProgressDialog to use system theme

PhoneUtil has to do explicit work when creating dialogs
to inherit system themes. It does that work across the
various AlertDialogs, but doesn't do the work for
ProgressDialogs, causing system-dependent (currently
watch only) configurations to be lost. This change adds
the explicit setting of themes to those Dialogs.

Bug:23387146
Change-Id: I74a257c6a4e3c11fc51416e67c3b17b438c51bab
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
3b9c21fad915066c537fde5a8bf83fdc65891085 20-Jun-2015 Jonathan Basseri <misterikkit@google.com> Migrate noise suppression check to use CarrierConfigManager.

The variable used for noise suppression was migrated from config
overlays to carrier config. This updates PhoneUtils to read the new
variable so we can delete the old one.

Bug: 21957544
Change-Id: I18ce92c6971e95170aa231a92a9463276f651b2c
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
c6514358fdf6060233141140a5cc08579c55b8ea 03-Jun-2015 Tyler Gunn <tgunn@google.com> API Cleanup: Remove use of VideoState class.

Bug: 21573551
Change-Id: Iac8f9f7010a6b04f25c92ea6c2eeb38033f95c34
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
85798a99c5f78ab2d459498e915d41db4faaabdb 19-Mar-2015 Nancy Chen <nancychen@google.com> Merge "Set up activate and deactivate on SIM state change."
e53a064be1bcea3ec2acb3c7681fa9a2762f4e3e 12-Mar-2015 Nancy Chen <nancychen@google.com> Set up activate and deactivate on SIM state change.

Register for sim state changes so that a voicemail source can be added
and removed as appropriate:
- When a sim is added, send an activate sms. (the received status sms is
processed in OmtpMessageReceiver)
- When a sim is removed, remove the corresponding sync account and
change the status in the voicemail status table to not configured.

Bug: 19236241
Change-Id: Ida82af1aee9e9a5e7649fcb2fc7dabd436816ef8
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
7802ffa38f6b1726ced6cb72e0a1093b4682d6ea 18-Mar-2015 Yorke Lee <yorkelee@google.com> am 7c4ff609: am f003cd89: Merge "Fix no response when MMI fails on emergency dialer"

* commit '7c4ff609e95bb00b5a6057d918f9c33e5aaf1e05':
Fix no response when MMI fails on emergency dialer
e8e0571d621a3daa2fb312137cb7906cdcac7a69 06-Mar-2015 Wenlu Wu <wenlu.xa.wu@sonymobile.com> Fix no response when MMI fails on emergency dialer

WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG is used
for showing the error message dialog. The dialog is then
covered by the keyguard.

Change-Id: I4ae5237d886c4122f6448a08277996573570f8cf
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
32031f403cadffdcb27375d8ffee3482d19953ab 05-Mar-2015 Nancy Chen <nancychen@google.com> Save status and set up sync adapter.

There are two parts to this CL:
1. Set up the sync adapter - this involves relevant xml files and
additions to the manifest and subclassing the general VvmSyncAdapter.
2. Processing the status sms that activates the voicemail source -
saving it to the voicemail status database and registering a sync
account.
These were done together because in order to have a fully-functioning
sync adapter, at least one sync account must be registered for it.

Also moved the code from VvmSyncService to OmtpVvmSyncService because
there's no need to have a super class yet. Note that most of the syncing
logic was removed for now so it can be added incrementally.

Bug: 19236241
Change-Id: If2baf43de4bd70761feadd2d2bd5c4f58c25d19b
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
80855d56b0e0ca102371a56285c9f259f2e5f426 10-Feb-2015 Santos Cordon <santoscordon@google.com> Change Telephony PhoneAccount to use ICC ID

Stop using subscription ID and instead use the ICC ID.

Change-Id: I7f73caa5788ea3822b23b98e49a58bc3d2c2f324
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
21e78ace4e0366ad2bc7f39406b7fa8dff2bd407 06-Feb-2015 Santos Cordon <santoscordon@google.com> Consolidate subscription ID acquisition.

Update TelephonyConnectionService to use
PhoneUtil.getSubIdForPhoneAccount instead of duplicating the code.

Change-Id: I7fbbc406a45ccea0e7a544d311878697562273b8
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
f69df96f713523a8b078aa6ef922e3e752a1a594 03-Feb-2015 Santos Cordon <santoscordon@google.com> Add phoneAccount->subID conversion method.

Adds method to convert from a phone account to sub ID so that other apps
can use the method instead of implementing the logic themselves.

Change-Id: Icfd8337f7aeca740076afa82db786a905e03ae9c
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
b3ee4dc3dd39ebe765ebe6b535b3900bb95813d8 24-Jan-2015 Andrew Lee <anwlee@google.com> Restyle USSD AlertDialog.

+ Fix text color.
+ Tweak padding by adding FrameLayout and applying padding.
+ Change button colors to dialer blue.

Bug: 19015785
Change-Id: I2f5ace88897db728dd677786f2be744d91cdadf7
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
dcf40a9cc562d95f826123d8d670262c8d15e7bd 09-Dec-2014 Stuart Scott <stuartscott@google.com> Set radio power of all phones and multi phone changes.

bug:18415518
Change-Id: I33845aec1e7f162430b76ce0dee4d10664722bdd
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
d5165b05c851ecd47d330b600ed2768e0db8b9d1 06-Dec-2014 Andrew Lee <anwlee@google.com> Tidy up visuals/behaviors for MSIM notifications.

+ If MSIM device, show subscription display name on voicemail
or call forwarding notifications instead of some of the normal
title/summary text.
+ Use subscription colors to tint notification backgrounds.
+ Use PhoneAccountHandle to specify SIM to call with for voicemail
notifications.
+ Move code for getting PhoneAccountHandle from Phone into PhoneUtils
and update references throughout telephony. This assumes we only need
to do the conversion for PSTN phones; this seems to be a safe
assumption given how the notification manager previously got the
default Phone from the phone factory.

Bug: 18232725
Change-Id: I62574643de1d61ef716e06fb733467ce2f607586
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
e0f2b791135a88de7930e4339686fd5b79e53a9f 15-Oct-2014 Yorke Lee <yorkelee@google.com> Set correct theme for MMI-related dialogs

Bug: 17999493

Change-Id: Ifbca5ff1e4203270b0d3b0a7439d5bd2f49de384
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
13fed9f2657f9bcc8c4b54783cf165cd4d7b57c1 24-Sep-2014 Santos Cordon <santoscordon@google.com> Remove BluetoothPhoneService.

Service moved to telecom.

Bug:17475562
Change-Id: I20d20b00f8f7caedd5ba59245c06fd369534857b
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
4d45d1cf58a2003378fd35912d6d73a00001bf06 13-Sep-2014 Tyler Gunn <tgunn@google.com> 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: Ic33bafd37200e65431543a9889aed549dbb04831
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
5422a8deb513e4466ec6cc1e640895a6b536fee0 12-Sep-2014 Santos Cordon <santoscordon@google.com> Re-add some CallNotifier implementations.

By disabling all listeners to CallStateMonitor, we inadvertently removed
some required functionality, including tones to play as requested by the
radio and messages.

This change allows adding of listeners to CallStateMonitor but comments
out the events which are now listened to by ConnectionService.

Additionally, this change removed all ringer and
direct-to-voicemail-related code in telephony.

Bug: 17466554
Bug: 17414427
Change-Id: I6afce24bb8dc741c896c5b3cb6c944e138886060
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
137458b4bf3516941483e59c123c22cbee27ed43 05-Sep-2014 Jay Shrauner <shrauner@google.com> Use framework scheme definitions

Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}.

Bug:17398074
Change-Id: I36adb16f659daef89957072f9e00d08ea2cb8e9e
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
a956f73382c3aa2619c73b880a11ee1899c2fe18 04-Sep-2014 Santos Cordon <santoscordon@google.com> Add support for Multiple calls on CDMA devices.

Includes changes for call-waiting, adding outgoing calls, mergig and
conferenceing.

Bug: 17316859
Change-Id: Ia71c1b9b61d93a40cd717e74b33786ae07b656b6
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
76f3b4ec8d9bcb8926db1b3e4fb2d1e969b09fbb 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (5/8)

Bug: 16416927
Bug: 16494880
Change-Id: Ibc2ba9e5d17242380ed3afed359600362bb3e664
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
bb2bcef62b916b1b544195ca671d56af6ed32cc2 06-Aug-2014 Santos Cordon <santoscordon@google.com> Remove audio handling from telephony. (1/2)

Bug: 16175960
Change-Id: Id4ec9963f559b4cd1870c18b91521afca8d8f153
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
da120f4e3d32ca97c5b4c21d6c505d834a29ab8d 06-Aug-2014 Santos Cordon <santoscordon@google.com> Remove ldaps from AOSP code.

Bug: 16327484
Change-Id: Ic51f12e52db0839a9ee6b727755873edf65cd044
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
96da1e1daf6a2e8d400ac857d319392c1b887034 28-Jul-2014 Andrew Lee <anwlee@google.com> Update VideoState reference.

Bug: 16629892
Change-Id: Id2e5d5fb6a39e0fd1d0fa00b160b3e90ce9621c1
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
f77a3397cb022cb6aa8e7e72a5b14ba29a99563f 22-Jul-2014 Santos Cordon <santoscordon@google.com> Stop showing "Call not sent" for MMI calls.

Bug: 15603571
Change-Id: I50abc4a847f54db74c9c065dcd8d4a302585f659
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
788959e2d798da2d8a34cf89779421966d200f3d 09-Jul-2014 Sailesh Nepal <sail@google.com> SIP Part 1, move sip code

This CL moves the SIP code to
sip/src/com/android/services/telephony/sip

Moving the SIP code helps with a couple of things:
- remove legacy dependency on old telephony code
(PhoneUtils, etc...)
- separate SIP from the PSTN connection code which
is very different from SIP code
- get the code ready for a future move out of
Telephony all together

Bug: 14999064
Change-Id: Id32de6517d31be4aa177b2764d5bac1e1f9851c2
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
9d67f24b3101e21894610c8e4b74a71ecd018898 08-Jul-2014 Tyler Gunn <tgunn@google.com> Passing video state through to phone dial.

Bug: 16014224
Change-Id: I9fce676527b22f8649238dcce35903e6877af58e
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
0ca1c80f1ca60966a16169b109e96ac19fa69743 08-Jul-2014 Etan Cohen <etancohen@google.com> Merge IMS changes from klp-wireless-dev to master

Change-Id: I247fa2b0e3aa159a27d96951edb0b04afd4d5ec6
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
23d9ed758fbe78e4afd4067e6845bcaf3387bca7 03-Jul-2014 Sailesh Nepal <sail@google.com> Remove Call from telephony.common

This API is no longer used.

Change-Id: I979480633f4a9eb649585968e984eaad1e57973d
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
36bb2546cbc86a4e6d338c3c31bbd02c4602b5e2 05-Jun-2014 Yorke Lee <yorkelee@google.com> Follow API change in PhoneNumberUtils

Bug: 15432083
Change-Id: I88b5ace925e3704bd032dc9694b0c2dd871b9cf9
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
352ff6587456f60948648726cf1573a2e595e238 30-May-2014 Santos Cordon <santoscordon@google.com> Move headset hook from Telephony to Telecomm. (2/2)

Lots of code deletion of the headset code and old status bar
notification code.

Bug: 15190069
Change-Id: I990110816ec37c168e3646290a538be3cd23be35
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
33d39b59c0b590cd4cb2ac08ed6eeba7b7bcd971 14-May-2014 Evan Charlton <evanc@google.com> Remove ThirdPartyPhone usage

Stop using the obsolete ThirdPartyPhone APIs. This is only a first
pass; additional scrubbing will need to be done.

Change-Id: I6d3c2919299c0a0b9714ffecd30da68e5c880b6a
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
f445cf38463067b0b85be2314755b8f419a0eeac 26-Apr-2014 Wink Saville <wink@google.com> am 0d085404: am 325688d2: am 72a4aa95: Merge "Do not set audioGroup ECHO SUPRESSION mode"

* commit '0d085404af53e47b2bb193102d0f1a6c07ba8797':
Do not set audioGroup ECHO SUPRESSION mode
325688d277f11d44e7321ce7f27e37684419aae4 26-Apr-2014 Wink Saville <wink@google.com> am 72a4aa95: Merge "Do not set audioGroup ECHO SUPRESSION mode"

* commit '72a4aa95ce88b040395da3adbe554c3b10437fe7':
Do not set audioGroup ECHO SUPRESSION mode
eee6a9e11d50f918b278dad2133cc6408e27369d 26-Apr-2014 Hariprasad Jayakumar <hjayak@codeaurora.org> Do not set audioGroup ECHO SUPRESSION mode

when speaker enable, do not set AudioGroup EC mode
if EC already supported in hardware.

Change-Id: I3623b0c49011d6db5e0060999d17963a7e58f775
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
181a15ba353ff460adc0cea05481ab80f7d15aa4 25-Mar-2014 Sailesh Nepal <sail@google.com> resolved conflicts for merge of 36ebb0d4 to master-nova

Change-Id: Id654f339085c29dd73ef3ae53248a8afa06bcd5b
36ebb0d4d04346a367b7a54b178ab4f78696e95c 20-Mar-2014 Gabriel Peal <gpeal@google.com> resolved conflicts for merge of 74fb97de to master

Change-Id: Ia068e1e5f9f4995a84d5a184efa1cc76d0d159e4
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
805a72e527e74b6ca6a4bd64f0df3e19f0ae2a72 20-Mar-2014 Gabriel Peal <gpeal@google.com> Added some APIs to TelephonyManager

toggleHold()
merge()
mute(boolean mute)
playDtmfTone(char digit, boolean timedShortCode)
stopDtmfTone()
swap()
addListener(ITelephonyListener listener)

Also add ITelephonyListener to get more detailed phone updates

Bug: 13302451
Change-Id: Iaf5970700bb107d2735a97a66cbb82477355bfe4
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
80040da72ab0711f9c8fd00cfa28f4dbf97a4e26 12-Mar-2014 Etan Cohen <etancohen@google.com> am 023e003d: am 2425b0f3: am 18636118: am 1648dba0: am ea7a7052: am 70b1f88b: Merge "[USSD] Consolidate USSD messages in a single dialog box" into klp-dev

* commit '023e003d99a37c9ef715b5eea8296e13c628b06b':
[USSD] Consolidate USSD messages in a single dialog box
37abbab24baec145cdf995693be96cd7162b0c06 08-Mar-2014 Etan Cohen <etancohen@google.com> [USSD] Consolidate USSD messages in a single dialog box

All USSD messages (interactive or non-interactive) will be displayed
in a single dialog-box with a separator in between messages.

Bug: 12892053

Change-Id: I31bc0cd4b55492e4e62adc8c925cc0371c54f5a8
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
6e06e30bffc3b5067153f65099d18fbdb27b0bd0 17-Jan-2014 Tyler Gunn <tgunn@google.com> Modified PhoneUtils.java to move call to setGatewayInfoForConnection inside a code block that appropriately checks for null, as required.
b/12210645

Change-Id: I3108872c7e5081a9e5c9e4b202577218871488a9
(cherry picked from commit 10f1c6a97074b981b08bb804a3568c17ec3890a5)
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
6f342d923df7bbb65ab801ef37bc870459396d59 23-Feb-2014 Sailesh Nepal <sail@google.com> Implement PSTN call services

Change-Id: I6239f0d9c68a3c08b63553b3fca266631211c759
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
dd3d53c43c53e48a1df5f49816896d151efe2a42 17-Jan-2014 Tyler Gunn <tgunn@google.com> am 10f1c6a9: Modified PhoneUtils.java to move call to setGatewayInfoForConnection inside a code block that appropriately checks for null, as required. b/12210645

* commit '10f1c6a97074b981b08bb804a3568c17ec3890a5':
Modified PhoneUtils.java to move call to setGatewayInfoForConnection inside a code block that appropriately checks for null, as required. b/12210645
10f1c6a97074b981b08bb804a3568c17ec3890a5 17-Jan-2014 Tyler Gunn <tgunn@google.com> Modified PhoneUtils.java to move call to setGatewayInfoForConnection inside a code block that appropriately checks for null, as required.
b/12210645

Change-Id: I3108872c7e5081a9e5c9e4b202577218871488a9
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
bfb6832c4bcc535aef12b07ac5bcf4a973c65d00 07-Nov-2013 Sailesh Nepal <sail@google.com> Instantiate third party phone on call DO NOT MERGE

With this CL we now create a new third party phone as needed.

Change-Id: I31880c9ac758ddf7f9538e1c182197b8d3e073e4
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
bd76e4e0407f75c4e6a6961cf943d36fc75a0e1a 27-Oct-2013 Sailesh Nepal <sail@google.com> Plumbing for newIncomingThirdPartyCall() DO NOT MERGE

Handles the new newIncomingThirdPartyCall() API. Passes it to the
first matching third party phone.

Change-Id: I06b206d0710c0e966106d7cc17748c18935aa680
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
a4915c7016996a0df4cb34bff1607e49fbd6d403 19-Oct-2013 Zhihai Xu <zhihaixu@google.com> 3way call is not working with BT

When we receive AT+CHLD=1,
we will call answerAndEndActive
which will Answers the incoming call specified by "ringing",
and ends the currently active phone call,
In this case, hanging up the active call also accepts the waiting call
in hangupActiveCall.
But ringing.isRinging() is still true,
because it take some time to change state for ringing call.
we should wait for finishing disconnecting
before check the ringing call state.
bug:10234670

Change-Id: I69031443d25303e387dd94caf79d73974e23f86a
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
a57532c821f6fcb46045be6f747b9c279677ff16 03-Oct-2013 Christine Chen <christinech@google.com> Merge "Updates the saved mute states on background calls." into klp-dev
bdc2da7f2e7a167d55e5fde7879133b56ef7b517 03-Oct-2013 Christine Chen <christinech@google.com> Updates the saved mute states on background calls.

- We discovered recently that we're managing a global mute state in InCallUi but on the telephony side we still keep a mute state for individual connections. This is the reason for the bug referred to.
- Ideally we would like to update the InCallUi code to record the mute state for each connection. However this has to be punted to L.
- Instead we made a change of (hopefully) minimal impact on the telephony side to make sure the mute states for all existing connections reflect the global mute state. We would lose the mute state of individual connections, but Santos and I think this won't contradict with what users expect in such cases.

Bug: 11035657
Change-Id: I09f899e3de31bc3154980795deecab78fc6d9d35
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
685dcb6b0268af57ac5b93a2e5b259eb519fa2d8 02-Oct-2013 Chiao Cheng <chiaocheng@google.com> Fix outgoing call stats for normal calls.

Also check against EMPTY_INFO.

Bug: 10909434
Change-Id: I71eeaa1c3c98eeb750a866e8aceaf40f16c1d3ba
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
e365ba74f63afea89e789f5b94187ee83ee80c8c 26-Sep-2013 Chiao Cheng <chiaocheng@google.com> Fix usage stats for outgoing calls.

Usage stats are updated by the CallLogger and is triggered in onDisconnect
events. But it only updates the usage stats if a caller info has been
retrieved. For outgoing calls, caller info retrieval was done in the
CallCard. This no longer works since the in-call ui split.

Add caller info retrieval to placeCalls().

Bug: 10909434
Change-Id: I558a2657afd52650468da0eb4eac715364249d89
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
de10b75b2802b0a74de17a972d007efc0fc19f55 19-Sep-2013 Santos Cordon <santoscordon@google.com> Hang up all calls if the UI crashes.

bug:10823938
Change-Id: I417b4f4e1351efd65de65edaedd778115e605cd1
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
e01454bb19d21c2903938b543eb9dc3ea1a9b5e4 19-Sep-2013 Santos Cordon <santoscordon@google.com> Merge "Unmute emergency calls when they connect." into klp-dev
3e0f0414daa2266dc51b77198fe433797f7d610a 19-Sep-2013 Christine Chen <christinech@google.com> Adds support for DISCONNECTING state

Bug: 10808537
Change-Id: I012c05baa04c4d5fa6691e2f89d724dad57373c7
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
c264cba0b6ea81b3f741d9c41a0a50b7ffd19220 19-Sep-2013 Santos Cordon <santoscordon@google.com> Unmute emergency calls when they connect.

Also, never allow muting of an emergency call.

bug:10750253
Change-Id: If67375a6e8776971e2ddace3e7fb11794d9e5283
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
ad1ed6d23c4a999a41bb73b8243009e32f96d7df 16-Sep-2013 Santos Cordon <santoscordon@google.com> Cdma Outgoing 3way call support.

Cdma outgoing calls when a call already exists are special because
like normal cdma calls there is no "dialing" state. There is also
no indication that the caller answered the phone so we have to make
guesses as to the state of the world.

This changes leverages code that already established these assumptions
can have those places call directly into CallModeler so that it can
translate those assumptions into Call objects that the UI can
understand.

Changes:
- Add concept of a generic conference call to be used for cdma
conference calls which are very limited in nature.
- Notify CallModeler when we see an outgoing 3way call so that it
can fake it as a "dialing" call until we are notified that it
has "connected". This gives used the impression of a dialing state
on cdma devices which do not have this state.
- fix CallModeler.getFullList() which previously changes model state.

bug:10769004
Change-Id: Iec5fb47fdcd1574c86120ec0fbb38911d54c7b0e
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
af2fd0ad9669ce110dfcf13bb7bf996e8a387a91 14-Sep-2013 Christine Chen <christinech@google.com> Adds more phone states and rules on changing them.

Bug: 10733320
Change-Id: I8176b99777a00b88135e2c954fc5e576bc657ade
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
2bc3fc4e718ce6b2ca28e0a941b54840850ba04e 03-Sep-2013 Yorke Lee <yorkelee@google.com> Remove auto-muting code from Telephony

This is now UI-specific behavior instead.

Bug: 10446594
Change-Id: I61e92309e3d69e671d1077538c7597fb4698c8f7
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
cd95f62ea9f94c06d01debfcd1f01fd2cd6e2708 29-Aug-2013 Santos Cordon <santoscordon@google.com> Send mute state to UI.

Append to API to support deliver of mute status.
Have PhoneUtils.setMuteInternal notify the AudioRouter of the change.
AudioRouter then notifies CallHandlerServiceProxy.

Removed unused "previousstate" from the AudioRouter listener method;
replaced it with muted state.

bug:10395427
Change-Id: I0295e9d6b9af981c4911f2f5ba3abd65b748fd6e
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
69a691914e9b013a7ff52c129d8466c152ed7239 22-Aug-2013 Santos Cordon <santoscordon@google.com> Fixing Google Voice to work with new incallui

We were not previously storing and sending the gateway information to
the UI. This change consolidates Call gateway functionality from
InCallUiState and PhoneUtils into a new class CallGatewayManager. It is
responsible for storing a mapping from the call's connection to the
gateway used to make that connection. It also adds gateway packagename
and number to the Call object sent to the UI so that it can show UI
appropriately.

bug: 10393622
Change-Id: Ic5a0b068475bcab60e8cc96470273e36005ccc2e
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
fc309815886e9b4bf9d5dfb76a8c7cffe2ab1fd1 21-Aug-2013 Santos Cordon <santoscordon@google.com> Remove proximity sensor code from TeleService app.

This code is being moved to InCallUI in CL:
I5c2ea6daa9443e7ad77c67f272bc0bafdb060e5e

bug: 10366512
Change-Id: I77e0d15ad1a8f5a090c1368db98edaa246dbcd72
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
593ab38970a84a60ac39edba4306647c8b66436d 07-Aug-2013 Santos Cordon <santoscordon@google.com> Audio routing part 2

- Added WIRED_HEADSET and SPEAKER to AudioModes
- Added WiredHeadsetManager class
- AudioRouter now listens to WiredHeadsetManager and PhoneUtils for
speakerphone
- AudioRouter maintains state across earpiece,headset,bluetooth,speaker
- Most code copied from InCallScreen for speaker logic
- CallHandlerService listens to audioRouter for audio states
- Moved Wired headset logic from phoneglobals to wiredheadsetmanager
- Better toString for logging Call objects

Change-Id: Iebc8c83934ce5eff6f1918b0610804fadb163b43
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
27a3c1f96fab43970e56a5eaa39551a4a248994f 06-Aug-2013 Santos Cordon <santoscordon@google.com> Adding new BluetoothManager class

Previously, the UI-heavy InCallScreen handled all the bluetooth code.
This code does not add very much logic at all...it's mostly copying from
InCallScreen and whatever Bluetooth code existed in PhoneGlobals.

Changes of note:
- New BluetoothManager class from InCallScreen bluetooth code
- I removed the REQUEST_BLUETOOTH... code from InCallScreen since it was
there to "update" the UI, which no longer runs.
- Added a Listener to the BluetoothManager for anyone that wants to
listen in on changes. This helped remove PhoneGlobals references from
BluetoothManager code. Currently PhoneGlobals is the only listener
(for some proximity sensor-related code) but in the next CL there will
be an AudioRouter class that will also listen to those changes.
- Previous callers of InCallScreen->whateverBluetooth has been updated
to use BluetoothManager, or the code was commented because it was
primarily UI code which is being replaced.

Change-Id: I6f86d16c8bd9cd1da2156c1f3743886f32e84c25
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
7f7c652f0d23c9dfaa904431b94ef8f77b0d2e24 17-Jul-2013 Chiao Cheng <chiaocheng@google.com> Disabling incoming call function.

Also fix un-used imports in several files.

Change-Id: Ife01674b2a1fe807a8d0b23c984e46715fc08908
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java
7d4ddf6dc0d7c8158bac3a5dec7936e837e95bdd 10-Jul-2013 Santos Cordon <santoscordon@google.com> Blanket copy of PhoneApp to services/Telephony.

First phase of splitting out InCallUI from PhoneApp.

Change-Id: I237341c4ff00e96c677caa4580b251ef3432931b
/packages/services/Telephony/src/com/android/phone/PhoneUtils.java