History log of /packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3dc68df0b856eace41aaca6bd0266da023c18835 11-Mar-2016 Tony Mak <tonymak@google.com> Query lookup uri with work lookup key directly is not allowed

Query lookup uri with work lookup key directly is not allowed, app crashes
if doing so. And actually, all APIs do not support work lookup key
except those explicitly say it does.

This Cls changed two places:
1. Do not pass lookup uri with work lookup to NotificationManager to avoid
NotificationManager using the uri to query.
2. Dialer perform query for alternative display name using lookup key.
But if it is a work contact, do not do so.

Bug: 27146678

Change-Id: Ie59c37ff43b6f953a96564c446d79d8812f5ada1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
68d86c656e5522dec1b04e85ebc0e0f78e436c3d 21-Feb-2016 Sailesh Nepal <sail@google.com> [Gradle] Allow dialer to be compiled as a library

This CL adds a new build-library.gradle file for AOSP dialer.
This allows the dialer to be built as a library that can be
included from GoogleDialer.

Switching to a library project meant making two other changes:
- changed all switch statements that used resources to if statements.
This was required because resource IDs are not final in library
projects.
- changed InCalUI code to import com.android.dialer.R instead of
com.android.incallui.R. See http://b.android.com/82743 for more info
on why this is required.

src-N isn't supported yet. Also, this isn't the ideal project layout.
In the future we should consider switching to the following layout:
- dialer/incallui/ <- incall UI as an independent library project
- dialer/dialerlib/ <- dialer code as an independent library project
- dialer/app <- skelent app that builds a standalone dialer AOSP app

Bug: 26676586
Change-Id: I07fbee4d33cc683539e4f8b3953c93f1427af9d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
83583b735686aa02119f5754f77eb9f0d318fe44 22-Feb-2016 Tony Mak <tonymak@google.com> Show Briefcase icon not displayed in in-call UI for work SIP calls

Current dialer always queries PhoneLookup._ID and uses this as a contact
ID.

In pre-N, contact id of non-sip query is stored in PhoneLookup._ID and
it is actually a mistake. This problem does not exist in sip query,
and contact id of sip query is stored in Data.CONTACT_ID. So it is a "bug"
in dialer that we use PhoneLooup._ID for sip query as it is not really a
contacat id. The bug of missing work badge may not be the only issue
introduced by this.

In N, the issue is get fixed in framework, PhoneLookup.CONTACT_ID is
introduced. We should access PhoneLookup.CONTACT_ID no matter what
phone lookup query we are having.

The ideal case is we always use PhoneLookup.CONTACT_ID for retrieving
contact id, but given that we need to support in pre-N, we need to
query PhoneLookup._ID for contact id in non-sip query in pre-N.

BUG:27242975
Change-Id: Id14378e3dce5b07629ffe0c6e83c3d107fbb468e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
fced467693d0f69c355fe12f0f3feecb5caca0da 22-Jan-2016 Victor Chang <vichang@google.com> Open work profile QuickContacts for work contacts in personal dialer

Set lookup key for enterprise contacts to allow QuickContacts to open it.
It requires framework change in NYC to support it.

BUG=26176780

Change-Id: I61345d52aa9fa296fdf95eca624b295c86925e46
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
7b2b43c0589ec79ba74359f7d9d6e0450fc322ab 17-Dec-2015 Victor Chang <vichang@google.com> Show work badge icon/description in InCallUI/Dialer

Add work badge icon into IncallUI
Add work description into incoming call notification

To see this feature
1. Receive/Make a call from work contact
(a contact in work profile has the phone number)
2. See work description in incoming call notification
and work badge icon in IncallUI

BUG=26082618

Change-Id: I182b48a34d3d87ee3093e8433ae33939705d59d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
699fc20598c9dd933ba1c8be0e3cb7992ef71aad 10-Sep-2015 Roshan Pius <rpius@google.com> DO NOT MERGE Display no-caller ID reason in InCallUI

Changes to fetch the no-caller ID reason from callsubject extra in the
call object to display in the InCall UI. The callsubject extra would be
populated by the RIL to hold the non-caller ID reason in case of number
presentation that is set to RESTRICTED/UNKOWN and hence we need to
differentiate the contents of this extra in InCallUI.
PS: We should ideally be creating a different extra for the no-caller ID
reason at telephony layer even if RIL sends it in the same exta as call
subject, but that would require API changes.

BUG: 22683773
Change-Id: I4ae51754d7660e4b8c1082d142e2c1860d3f1604
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
ecc833db402cff9122e28efb54156af165d1e38e 26-Nov-2015 Victor Chang <vichang@google.com> Show Enterprise directory contacts name in IncallUI and notification

known issue:b/25859809

BUG: 25899500
Change-Id: If185e817b70f104a30f9d6f7c9b0bb4c39ae815e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
5e0d2d1c7ddac7be7c814492441bbde54fba8ca9 02-Nov-2015 Brandon Maxwell <maxwelb@google.com> Retrieving nameAlternative for ContactInfo

Bug:19364093
Change-Id: I965707f5623db8b16bf5089b4bff3202db4192ec
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
8c03464c2c348af3bcd3bdfb911cd1bf17a760d0 31-Oct-2015 Brandon Maxwell <maxwelb@google.com> Updating InCallUI to respect name display and sort preferences

+ CallCardPresenter, StatusBarNotifier, ConferenceParticipantListAdapter
respect display name preferences
+ ConferenceParticipantListAdapter sorts names in conference call based
on sort order preference
~ Still need to populate data objects with real data, currently it's
just stubbed

Bug: 19364093
Change-Id: I77ad9cb063bf439ae7e5551e40946ea29e414b7f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
dd3dc41b589977bca9621484aed15a7f1508e7f6 18-Sep-2015 Wenyi Wang <wenyiw@google.com> Merge "Modified getCallerInfo() to handle silent ringtone" into ub-contactsdialer-a-dev
3cf50edd29f372657192ebdaf9ca197c74fe94ad 18-Sep-2015 Anne Rong <annerong@google.com> Merge "Move CallerInfo.getGeoDescription to PhoneNumberUtil in Dialer." into ub-contactsdialer-a-dev
6287536903eb28979f453303f75956e5368f08d5 16-Sep-2015 Wenyi Wang <wenyiw@google.com> Modified getCallerInfo() to handle silent ringtone

Bug: 12800232
Change-Id: I002c3df378cbaf367f212bf266d3682f6119daec

Modified code here so that it is consistent with framework/base/... and this module will be used in the future.
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
126d3d065a88c7c01bc9fa38f9eecf09716fb6a2 18-Sep-2015 Anne Rong <annerong@google.com> Move CallerInfo.getGeoDescription to PhoneNumberUtil in Dialer.

Bug: 23350280
Change-Id: I531bde77a0d9eeb26d3a803c006317e99b13f99b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
aade8ed7c3d36a55ae6b0703ca7b257097ddcc91 17-Sep-2015 Wenyi Wang <wenyiw@google.com> Merge "Modified getCallerInfo() to handle silent ringtone" into ub-contactsdialer-a-dev
96c2b755cf0c503fc152268e3e5761f3074ac6b1 16-Sep-2015 Wenyi Wang <wenyiw@google.com> Modified getCallerInfo() to handle silent ringtone

Bug: 12800232
Change-Id: I002c3df378cbaf367f212bf266d3682f6119daec

Modified code here so that it is consistent with framework/base/... and this module will be used in the future.
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
89fa8c5b9f3bcd0bdf4c3409216b7fe88a1486e4 04-Sep-2015 Yorke Lee <yorkelee@google.com> Logging changes in InCallUI

Log call metadata/non PII when a call is removed from the
call list.

Bug: 23164804

Change-Id: Id65d1fd4ab774587de3cd92fa7c71aee69cd4b84
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
876b39ec9d6cd73ffc770f0903f7e29577c80037 07-Nov-2014 Yorke Lee <yorkelee@google.com> Correctly RTL align special numbers (emergency, voicemail)

Save the special display string in the name rather than the
number string. This allows the UI to correctly determine
that the name is not actually a phone number, and not force the
text view to LTR.

Bug: 18277361
Change-Id: Iad9eaf1ede67d96789dc55b48e25b26e1777037b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
68501ba893e9f733b260dc18cafdd89efa3d9937 20-Sep-2014 Andrew Lee <anwlee@google.com> Update InCallUI for "generic" conference calls.

+ Use the newer "phone" asset (same as emergency calls).
+ Add xxxhdpi phone asset.
- Remove unused assets.
+ Tint the subscription icon properly in secondary call info.
+ Reorganize listeners in CallCardFragment to be less
redundant, and so FAB is properly positioned above the secondary
call info.

Bug: 17581379
Change-Id: Id4f1c1659ab8c17313cdd0393be51954b5cd449a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
e6f5fe95a766240d36d74e4613c7cbeb9dcad778 26-Aug-2014 Makoto Onuki <omakoto@google.com> Address API review comments:

- Rename isCorpContactId() to isEnterpriseContactId().

Bug 17253963

Change-Id: I053067387e65ea5f95fd59e4a372299d15638d4b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
a676d20db28770c386d610ba492bd9c58a10e0d3 18-Aug-2014 Yorke Lee <yorkelee@google.com> Asset swap for InCallUI

Bug: 17112104
Change-Id: I85ec1fda31ce626368c722c4de95f558b0b523d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
3718dcb345e77e421ab18a760e48f0c3a760fcca 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (3/8)

Bug: 16416927
Bug: 16494880
Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
d073d72017fd652f84071fecd73456160cd4daeb 12-Jul-2014 Sailesh Nepal <sail@google.com> Misc Telecomm API changes: InCallUI

This CL hooks up the new APIs introduced in ag/501321 to the
InCallUI.

Change-Id: Iaffe0b84cea6003f2a9b9d8b30676743d2b236d4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
773ae90fbe87a14dd1c48ac0f769f5878c53a693 10-Jul-2014 Makoto Onuki <omakoto@google.com> Enterprise caller-id: Now CP2 returns contact-id for corp contacts.

Ignore them.

This follows change I21ab20ad4147b303cd0d49d33b64a38275342dc5.

Bug 15779911

Change-Id: Id0256cc740bb7a4d6c2d1515bde2c9f97c30863a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
76855c20de037a38b02716642cd27be674772f2d 09-Jul-2014 Makoto Onuki <omakoto@google.com> Use enterprise caller-id in incall.

- Use PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI for caller-id.

- Removed a bunch of unused code.

- Renamed fields that will have different semantics. e.g. contactId now will be
0 and lookupUri null for corp contacts.

- Simplify the sip caller-id lookup. The regular caller-id lookup can also
do SIP. The original code (http://ag/70555) was written before CP2 supported
it (http://ag/147367). This needs QAing.

- Instead of passing around a contact-id to later load a contact picture,
use the picture URI returned from the API.

Bug 15779911

Change-Id: Ia755b9079d03d9236f824c2f1102a6fa902b2097
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
012631b27c455b16d78d2dfcace4183ceb6cb46b 02-Jul-2014 Andrew Lee <anwlee@google.com> Replace usages of isVoiceMailNumber with PhoneNumberUtils version.

Change-Id: Ib0ef237e25d2cf4608d257a8c71323fc2fbd58ee
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
89997ad9918b9b15e7dfc022ce9230f67a1aa6e2 14-May-2014 Sailesh Nepal <sail@google.com> am 07a822b2: InCallUI: Use telecomm presentation and gateway info

* commit '07a822b2ea92dc5b68cd43139be7efe4c6640cd4':
InCallUI: Use telecomm presentation and gateway info
a6e545ccc15b4925e7b8d2a34a5acb35b03fb463 02-May-2014 Chris Wren <cwren@android.com> Add EXTRA_PEOPLE to the dialer notifications.

Bug: 14489962
Change-Id: I8e83cf04fc4acaefcb83fa2ea7c37d091c99f5c1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
ae73c9aab1c716d9ef85f4f0dbc6f69e97a8f7e6 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Use telecomm presentation and gateway info

Switch to use Telecomm's CallNumberPresentation and GatewayInfo.

Change-Id: I962836c5f4b36c0b1f31d0dd6852fdf8a3a12736
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
27ef1e6c1ae0a0b6b15c7ff83cbb7396d7bd976e 19-Oct-2013 Christine Chen <christinech@google.com> Removing private dependencies in InCallUi

- This CL addresses most of the private API calls in InCallUi.
- This CL removed Android.mk as we are not building InCallUi.apk
separately anymore. Changes to make an unbundled app will go into
Dialer, GoogleDialer, and Contacts apps' makefiles.
- Separated CLs will add libphonenumber, libgeocoding, and util classes
for TelephonyManager and PhoneNumberUtils.
- The only thing left for InCallUi is to unbundle ProximitySensor.
Currently PowerManager's functions to deal with the proximity sensor
are all private. It will take a rather substaintial amount of work to
implement the proximity sensor functions ourselves (read proximity
sensor event values, ask the screen to turn on, etc.). So we should
rather push to get those functions into the public API.

Change-Id: I18b3c52adb41c6131c1eb3c07ce32ebd56d0cc59
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
1bd21c5ffed9c85c78d6d63ce25afa779fab8e5a 16-Oct-2013 Christine Chen <christinech@google.com> Removes private resources from InCallUi

Bug: 11244110
Change-Id: I88471a7d1e164ac7e464f199f1c0c36fa3c0876f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
b7d40f36747d00c353f77e6fcdb11022fa28e349 09-Oct-2013 Jay Shrauner <shrauner@google.com> Catch potential NPE

Catch case where country detector might return a null country.

Bug:11139097
Change-Id: Ib61238ee8b4a628d6428bf65a2b9b67de3f73826
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
1c6bb983216392b5ceb36cea42a46631f68a3dd6 11-Sep-2013 Jay Shrauner <shrauner@google.com> Fix flow of local/remote lookups

Redo logic for looking up numbers. Push all logic into ContactInfoCache
findInfo routine.

Bug:10634005
Change-Id: I87bd987780ba744222d3adc82cf359e3c20f121f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
a4bd83ad639b349fa16dbd07225017fcbf6ed550 21-Aug-2013 Chiao Cheng <chiaocheng@google.com> Protect all logging statements.

- Rename global logger so it can be a drop in replacement for framework log
class.
- Remove imports of android.util.Log

Bug: 10411948
Change-Id: I377625263b16c4f9408c79d5c533a1810fa6cde7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java
be8060acf5ecbb916c161d3249813098c0611ed5 07-Aug-2013 Yorke Lee <yorkelee@google.com> Display primary call info in call card

* CallerInfo, CallerInfoAsyncQuery are copied verbatim from existing
Phone code.
* Added logging methods to Logger to support logging via TAG in static methods
* Only primary caller information (name, phone number and label) are displayed
for now. Secondary caller information and photos are not displayed.

Change-Id: Id4cfdef78f10f7b32255f4892cd51161f37c8be5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallerInfo.java