History log of /packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e83529f2f30e8d5f762bd2b01a3e1f70bb91c39d 08-Sep-2017 Tyler Gunn <tgunn@google.com> Ensure restricted number CDMA call waiting info is passed to Telecom.

The code which notifies Telecom of an incoming call-waiting call over CDMA
made the erroneous assumption that if the phone number provided was empty
that it was not possible to pass the call information to Telecom.

This change specifically checks for the case where the connection's
number presentation is not "allow" and then opts to do the match solely
on the number presentation.

Finally, some more logging is present in all scenarios.

Test: Manual
Bug: 65432905
Change-Id: I13bd319606da450b7bb478f9ce51cde80013b780
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
6ae83e2c15b08a04d92c083bb3d2c9aa39c0b085 08-Jul-2017 Tyler Gunn <tgunn@google.com> Invoke call cleanup on handover from GSM to IMS.

Previously we hung up the call which is problematic because the modem
maintains a single call list. This would cause the IMS call to hangup.

Instead, we will not call a cleanup method on the call tracker.

Test: Manual
Bug: 63317180
Change-Id: I99accbcb83e02603048ed38ac084a3b5ffb22252
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
ca51a7cda7705169dad64e28f7cfb4a49560ff86 27-Jun-2017 sqian <shuoq@google.com> Check 'number' against both empty and null string for handleCdmaCallWaiting

The new RIL in O changes all null strings to empty strings, but the code
only checks 'number' against null for handleCdmaCallWaiting. This CL adds
the check against both empty and null strings.

Test: TreeHugger
Bug: 62490549
Change-Id: I9f4f577c40bcd5caa2a9bb1fd4c9e9c4c27e318c
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
aee68204870f51e30808411e5de774111f8e9039 07-Jun-2017 Brad Ebinger <breadley@google.com> Hang up original swapped connection

In the past, when we swapped an unknown connection with
an old original connection, we did not hang up the call.
This causes the old connection to stay active in the
CallTracker and can block new calls.

Bug: 62114647
Test: Manual E911 Testing
Change-Id: I68928e3a419f7ecc059f33142a6c6efb19eecbac
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
5e32cc7fbcd6e62684c72e5d50ec7795ab6bb23b 25-May-2016 Tyler Gunn <tgunn@google.com> Fix unknown call logic for multi-endpoint.

When adding a new unknownn call, ensure we don't try to reuse an existing
actual call to represent an extral call. This will happen when a call is
pulled away from the device. We want the actual call to disconnect so it
can be logged, and a new unknown call to be created to represent the now
external version of that call.

Bug: 27458894
Change-Id: Ib5e950bce66011afab32257ff61d36b6b0d252a9
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
a35276c6b0c79c2dc509faa251a2bfefe79f27ef 15-Apr-2016 Sailesh Nepal <sail@google.com> [Call Timing] Set call created timing

This CL sets the call created times for incoming and outgoing telephony
calls. The time values are sent to telecom as extras and passed onto the
dialer in the call's intent extra.

Bug: 28202119
Change-Id: Idb7629db3a528fa6ab2e823bec3c5607c320d56c
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.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/services/telephony/PstnIncomingCallNotifier.java
5046bc73a9bb72c6f6f9f913def0c71d551da62d 26-Mar-2016 Tyler Gunn <tgunn@google.com> Add support for adding external calls to Telecom.

- Modify PstnIncomingCallNotifier to include the external call ID in the
"addNewUnknownCall" request to Telecom; this ensures we can key back in on
the ID when Telephony is asked to add that connection.
- Modify TelephonyConnectionService so it can add new external calls.
- Update TelephonyConnection to translate the new internal connection
properties related to multi-endpoint to ones Telecom can relate to.

Bug: 27458894
Change-Id: I47ad22aaeed955bcecbae894486c00539f8f7ea7
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
24322a67418840ac1367c6c9ff21b4424de2fdae 13-Jan-2016 Tyler Gunn <tgunn@google.com> Merge "Fix potential ClassCastException." into mnc-dr1.5-dev am: 0829e9228a am: 40e3e15bfd
am: bd403df496

* commit 'bd403df49693fe08267a90c8abf0396dfab2c4bf':
Fix potential ClassCastException.
d0a745cc30614b02b88923964725937f789b6acb 11-Jan-2016 Tyler Gunn <tgunn@google.com> Fix potential ClassCastException.

It is possible for some of the Connections returned by getAllConnections()
in the CS to NOT be TelephonyConnections. This is the case when an
ImsConferenceCall has received Conference Event Package data, and there are
ConferenceParticipantConnections present.

Bug: 26350817
Change-Id: I45c2c97e2462719cf3b858db70a20c9f9056f449
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.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/services/telephony/PstnIncomingCallNotifier.java
c5201f417b58f95c5f1b54de1c101b3a35ad544f 25-Nov-2015 Amit Mahajan <amitmahajan@google.com> Rename PhoneBase to Phone.

Bug: 25793157
Change-Id: I9d169972c71d2f261e053de2898c698ad4a22601
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
9cf11515781910c7fda66a8a27a0fa14ab1ed2af 09-Nov-2015 Amit Mahajan <amitmahajan@google.com> Phone refactor (merging Gsm and Cdma phones)

Bug: 25793157
Change-Id: I8539846dcb8a3a8971616e63aa8b373ab1032259
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
fff1c1dc2ffc2372b02b5bb78a8dfd0a16659ea8 20-Oct-2015 Santos Cordon <santoscordon@google.com> Prevent DISCONNECTED unknown connections.

1) Add an early return to disallow disconnected unknown connections.
2) Move code in run updateState() after uses of mOriginalConnection
since it is possible for updateState() to set it to null.
3) Add logging to the bug so that we can recognize when and how this
situation happens in the wild.

Bug: 24469962
Change-Id: Ic7c986bff98ee65677a4a2cb06beff54d79e5ab6
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
5204cd32dc744cb3450401a19029fe95d665a13b 09-Jun-2015 Yorke Lee <yorkelee@google.com> Use Telecom constant for providing incoming call handle

Bug: 19696065
Change-Id: Ic45da710649b3cd0a598933f53a5cd7b1dac04df
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
0918d946e9711796acd766bac053b6dedf21f079 13-Feb-2015 Ihab Awad <ihab@google.com> Handle unknown connection from technology swap

If an unknown connection is seen from the Telephony layer, attempt to
use it to replace a matching, existing connection, since that
situation may occur when the underlying technology changes in the
radio layer.

Bug: 19363089
Change-Id: Ibe5b89cc791c2d7e8dfac91c47636361796d68cd
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.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/services/telephony/PstnIncomingCallNotifier.java
fac053aeb7e30a964d683812b4f2bc6c37e1a038 10-Oct-2014 Yorke Lee <yorkelee@google.com> Protect against ClassCastException in PstnIncomingCallNotifier

Just to be safe, if handleNewUnknownConnection is called with an
unexpected result, just ignore it.

Bug: 17939852
Change-Id: If8f490f5233e45fe5e87677d0d27b9028a970df7
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
3f7f717a2295f9ae5cc6a34ed404ec22e94012da 02-Oct-2014 Yorke Lee <yorkelee@google.com> Add ability to add sim-initiated MO call to UI (1/4)

Listen to new unknown calls in PstnIncomingCallNotifier, and add them to
Telecom when a new unknown connection is detected.

Bug: 16852844

Change-Id: I8c1e3fcd0724d22839e6af388b0bbed90d5f7c9a
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.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/services/telephony/PstnIncomingCallNotifier.java
4ddf9f9db56f7174c4cb20f7e9888a36b07e4d81 12-Sep-2014 Sailesh Nepal <sail@google.com> Include phone number in incoming call intent

This CL includes a phone number when sending an incoming
call intent. This is used by Hangouts to detect when two
incoming calls are duplicate.

This is a work around for an underlying bug where Telecomm
incorrectly shows UI for connections that are in the state
INITIALIZING.

Previouly connectinos were created asynchronously and this
allowed the connection service to do several things before
returning a initialized connection. When we moved to synchronous
creation we never updated Telecomm to handle this new state.

This underlying issue should be fixed properly for MR1.

Bug: 17485366

Change-Id: Ifa72064e0f45d799370fb72e286c509bc39f29dc
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.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/services/telephony/PstnIncomingCallNotifier.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/services/telephony/PstnIncomingCallNotifier.java
e3b3e4df2ca751ff55a34aa95c2722dca1a91924 23-Jul-2014 Santos Cordon <santoscordon@google.com> Fix initialization of SIM accounts.

- Moves setup out of a broadcast receiver and into TelephonyGlobals
- Reruns setup whenever the SIM state changes (hotswap support)
- When no SIM is inserted, register an emergency-only PhoneAccount.

Bug: 16491446
Bug: 16445149
Bug: 16495971

Change-Id: Icee8013c35f7439c58af7b7777af9a99798bff43
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
5ad698f06592baf77a439007e0f084df85916a54 20-Jul-2014 Santos Cordon <santoscordon@google.com> Change incoming call intent to a TelecommManager method. (3/3)

Also moves a few constants from TelecommConstants to TelecommManager.
Bug:16416927

Change-Id: I8e74feb228523ed1c186b2f06784d04cb9141f86
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
a5a70f9b338cae25046b336a8602f14bc9b86069 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccount to PhoneAccountHandle

Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
6abba886ada7496a82092cbee92e52f30d576f6d 20-Jul-2014 Evan Charlton <evanc@google.com> Migrate TelecommConstants to TelecommManager

Change-Id: Icdd7637ba1ae27ce7d1f13714257b4a946961037
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
7debf0174288630f54813c7ec43ebc6df0a9c69d 18-Jul-2014 Santos Cordon <santoscordon@google.com> Register PhoneAccounts for telephony on startup.

Change-Id: I597a0565696a742540ba7156f17d6b1d188d7eb7
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
55c2de5e5c742c85d257f00d3b7b3c9e7f96ffda 18-Jul-2014 Ihab Awad <ihab@google.com> Minor changes to "example" PhoneAccounts

Change-Id: Ia6f74314c7bbf7f02d42574d436a8e32866c388e
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
e0f0678d14f09665463abd949e5b217c95ff99c5 17-Jul-2014 Ihab Awad <ihab@google.com> Wire up multi-SIM experience (4/4)

Change-Id: Ibfcf8a0d68bf48bd32cd0e1a155a5fa7719e53e2
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
3199aa7f8bcb48569eb8289abc055ba0f8496ba8 14-Jul-2014 Sailesh Nepal <sail@google.com> Telephony cleanup do not merge

This CL removes the PSTN and SIP call service providers.
The connection services will now be looked up by package
manager instead.

This CL also cleanups the telephony connection service code.
Now that the SIP code has been moved out the code can be much
simpler and PstnConnection* and TelephonyConnection* can be
merged.

Change-Id: I2e40c5c64c0d242dc41b680943d7e9209142db5b
(cherry picked from commit 8306b5e6d829c0aa3eacaa12a1cddcf3df7194dc)
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
536cff018ecf3a329ccf44f723bae071c840ab71 05-Jul-2014 Sailesh Nepal <sail@google.com> Remove references to CallService from Telephony

Change-Id: I5a082e50dafea0104174cb97d3ae8af168944fc3
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java
aa7340388473c1676495a60e30dc6a48d318a489 18-Jun-2014 Ihab Awad <ihab@google.com> Replace CallServiceSelectors with Subscriptions (3/3)

Remove CallServiceSelectors and replace them with comprehensive
support for Subscriptions as the means of selecting ways of making
phone calls. After this change, a ConnectionService is not a
semantically meaningful "way of making a call" -- it's more like the
mechanism whereby the Android system communicates with a 3rd party
process to ask for phone services. We anticipate each process having
only one ConnectionService.

Change-Id: I251c0b6f4106104d945b3723fa4da1081a06b8cd
/packages/services/Telephony/src/com/android/services/telephony/PstnIncomingCallNotifier.java