summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/CallerInfoUtils.java
AgeCommit message (Collapse)Author
2016-01-13Show work badge icon/description in InCallUI/DialerVictor Chang
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
2016-01-11DO NOT MERGE Display no-caller ID reason in InCallUIRoshan Pius
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
2015-12-28Move TelecomManagerCompat to ContactsCommon (3/3).Nancy Chen
Bug: 25776171 Change-Id: I540df6effc01c7c677a874129938b390a446f751
2015-12-23Support Work Directory lookup for calllog in dialerVictor Chang
1. To follow Google Caller id behavior in call log, only find display name in cache, but not actively querying directory 2. To following cache behavior in search bar, cache direcetory result in ObjectFactory.newCachedNumberLookupService() Test: Display name of directory contact is shown in call log if any of the below 1. the directory contact has ever been selected in search bar result 2. the directory contact has ever been called BUG=25967633,25968895 Change-Id: I6f317bfd161c9abb0b7c6ccc2df2bd27af8ef5d3
2015-12-18Backporting InCallUI so to allow calls on nonOEM devicesBrandon Maxwell
VideoProfile#videoStateToString, TelecomManager#getLine1Number, and TelecomManager#isVoiceMailNumber don't exist in the L sdk, so Compat classes were added which duplicated the needed logic. Bug=25776171 Change-Id: Ib546b8fbd802aa6f8f5c712e59b99716db4c6a7b
2015-08-13Rename Telecomm to TelecomJay Shrauner
Bug: Change-Id: Iaed2bbe86370bba7d896cef525086aa51e654b64
2015-05-11Save CNAP in call historyYorke Lee
If the call contains necessary CNAP information, try to save it into the CachedNumberLookupService. Bug: 10121624 Change-Id: I2e842b3145e00618b1afd3ed661d7c40764d0536
2014-10-16Use the phone account when checking if a number is a voicemail number.Nancy Chen
Currently when checking if a number is a voicemail number, we are checking it against the voicemail number of the default phone account, which results in a non-default voicemail number incorrectly being identified as a regular phone number. Bug: 17925501 Change-Id: Id73ff399467e2446a58c58e6211d1ec1d1f20b30
2014-09-12Renaming Telecomm to Telecom.Tyler Gunn
- 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: Ie5ae18f51baa5da2eb9793785ad0c9d83b6343d1
2014-09-09API changes in GatewayInfo, Response, and PropertyPresentation (2/4)Nancy Chen
* GatewayInfo: handle -> address, becomes SystemApi * Response: hidden * PropertyPresentation: class goes away, constants move to TelecommManager Bug: 17329632 Change-Id: I56180181a65e4b726e569aa4b8ac4cbb8dab00f9
2014-09-06Use framework scheme definitionsJay Shrauner
Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}. Bug:17398074 Change-Id: Icd841240929a7531e3c7a93021fc19f7620f2cc6
2014-09-05Support CDMA conference calling.Santos Cordon
Bug:17316859 Change from using GENERIC_CONFERENCE to a better MANAGE_CONFERENCE. Change-Id: I0306aaa5cf4d35bf095d85db63b3d08395394645
2014-09-04Check for voicemail number earlier so it can be set at caller.Nancy Chen
Currently the InCallUI is started before TelephonyConnectionService can set the voicemail number, which means that a lookup of the voicemail number will come up as null. We can check earlier in the process whether a call is a voicemail call by looking at the scheme of the call uri ("voicemail:") this allows the caller name to be set as "Voice Mail" before Telephony supplies additional info. Bug: 17363355 Change-Id: I9a1539a02e15da43bcd067fe7b70163720cb9bec
2014-08-13Final structural tweaks to Telecomm API (3/8)Ihab Awad
Bug: 16416927 Bug: 16494880 Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
2014-07-21Remove references to ViewNotificationService in DialerYorke Lee
ViewNotificationService ultimately uses a ContactLoader to send the view notification to the sync adapter. Since ContactLoader is already a part of ContactsCommon, we just need to create an instance of a ContactLoader in InCallUI to notify the sync adapter to download the high res photo. Bug: 7402960 Change-Id: Icaa120d6c3bc0f1e5ddc45365dfa7684e5a5525c
2014-07-11Misc Telecomm API changes: InCallUISailesh Nepal
This CL hooks up the new APIs introduced in ag/501321 to the InCallUI. Change-Id: Iaffe0b84cea6003f2a9b9d8b30676743d2b236d4
2014-04-01InCallUI: Use telecomm presentation and gateway infoSailesh Nepal
Switch to use Telecomm's CallNumberPresentation and GatewayInfo. Change-Id: I962836c5f4b36c0b1f31d0dd6852fdf8a3a12736
2014-04-01InCallUI - Use custom object to track CallsSailesh Nepal
This is the first step in completely moving away from Telephony. This CL creates a custom Call object. Currently this is just a copy of the telephony Call object. I'll update various fields in individual CLs. This CL also deletes the old Telephony services. Bug: 13643568 Change-Id: Id1860a5df9706f2a7fddd40e70f0d693af7b04bd
2013-10-02Send view notification for viewed contact in IncallUIYorke Lee
This triggers a download of the hi-res photo for the contact so the next time a call is made, the hi-res photo is displayed. Bug: 11006082 Change-Id: I8243dc0a6899c787807425226f2cfcd4a46e0ec1
2013-09-19Addressing finished and postponed TODO(klp)Christine Chen
Bug: 10605909 Change-Id: Id7594b306d23d4bd5d7a6983f2dbe524591a0d69
2013-09-13Fix flow of local/remote lookupsJay Shrauner
Redo logic for looking up numbers. Push all logic into ContactInfoCache findInfo routine. Bug:10634005 Change-Id: I87bd987780ba744222d3adc82cf359e3c20f121f
2013-08-28Major fixes for in call to work with reverse number lookup.Chiao Cheng
- Separated caller info data into CallIdentification and switch callbacks to use it where call state is un-necessary. - Changed mCallList.update() method to be onIncoming(). - Catch all exceptions from service methods so errors do not vanish. - Fixed bind failure cases which led to DeadObjectException. - Changed local contact lookup to only occur for incoming calls. - Fixed CallCardPresenter to start contact search upon isntantiation instead of waiting for next call update. - Convert ContactInfoCache to singleton to avoid race condition where it's not initialized. - Handle cases where primary call may be null when we find a contact. - Fixed race conditions in CallButtonPresenter where audio mode is being set before ui is ready. - Fixed race condition in AnswerPresenter where state change was being called before ui is ready. - Changes to CallCardPresenter to support lookup for conference calls. Bug: 10413515 Bug: 10390984 Change-Id: I9fc4f2f35e8f5aad33c301b3c5c93132634cb63c
2013-08-21Protect all logging statements.Chiao Cheng
- 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
2013-08-13Add Simplifying layer between Contact Info search and CallCardProvider.Santos Cordon
I will be getting contact info on notifications for the next CL so this creates a simpler layer for interacting with the contact data async requester. CHANGES: - Moved the code which does the requesting from CallCardPresenter to ContactInfoCache. - ContactInfo Cache defines new listening interface and new simpler object for transmitting the return data: ContactInfoEntry. - Updated CallCardPresenter to use the new simpler interface. - Updated some logging entries. - Simplified Ui interface inside for CallCardPresenter. Change-Id: Ic802c4e53cdf17fcd37c70deb6da61a78b9d8993
2013-08-07Display primary call info in call cardYorke Lee
* 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