/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | PhoneNumberUtilsWrapper.java | 37 public static boolean canPlaceCallsTo(CharSequence number, int presentation) { argument 38 return presentation == CallLog.Calls.PRESENTATION_ALLOWED 45 public boolean canSendSmsTo(CharSequence number, int presentation) { argument 46 return canPlaceCallsTo(number, presentation) && !isVoicemailNumber(number) && !isSipNumber( 66 public static boolean isUnknownNumberThatCanBeLookedUp(CharSequence number, int presentation) { argument 67 if (presentation == CallLog.Calls.PRESENTATION_UNKNOWN) { 70 if (presentation == CallLog.Calls.PRESENTATION_RESTRICTED) { 73 if (presentation == CallLog.Calls.PRESENTATION_PAYPHONE) {
|
H A D | PhoneNumberDisplayHelper.java | 43 /* package */ CharSequence getDisplayName(CharSequence number, int presentation) { argument 44 if (presentation == Calls.PRESENTATION_UNKNOWN) { 47 if (presentation == Calls.PRESENTATION_RESTRICTED) { 50 if (presentation == Calls.PRESENTATION_PAYPHONE) { 69 int presentation, CharSequence formattedNumber) { 71 final CharSequence displayName = getDisplayName(number, presentation); 68 getDisplayNumber(CharSequence number, int presentation, CharSequence formattedNumber) argument
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | CallLogger.java | 71 // TODO: In getLogNumber we use the presentation from 76 final int presentation = getPresentation(c, ci); 83 logCall(ci, logNumber, presentation, callLogType, date, duration); 110 public void logCall(CallerInfo ci, String number, int presentation, int callType, long start, argument 176 int presentation = conn.getNumberPresentation(); 180 number, presentation); 191 * Get the presentation from the callerinfo if not null otherwise, 196 * @return The presentation to use in the logs. 199 int presentation; 202 presentation [all...] |
H A D | PhoneUtils.java | 1442 // restricted/unavailable presentation, we do not want to perform a contact query 1519 // restricted/unavailable presentation, we do not want to perform a contact query 1589 // If the number presentation has not been set by 1652 // If we're still null/empty here, then check if we have a presentation 2088 * expected number and presentation values within the CallerInfo object. 2090 * @param presentation presentation value used to verify if we are in a corner case 2094 String number, int presentation) { 2097 // displayed/logged after this function returns based on the presentation value. 2103 + ", presentation 2093 modifyForSpecialCnapCases(Context context, CallerInfo ci, String number, int presentation) argument 2271 getPresentationString(Context context, int presentation) argument [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CallLogManager.java | 48 * @param presentation Number presentation of the phone number to be logged. 58 int presentation, int callType, int features, PhoneAccountHandle accountHandle, 63 this.presentation = presentation; 76 public final int presentation; field in class:CallLogManager.AddCallArgs 143 final int presentation = getPresentation(call); 148 logCall(call.getCallerInfo(), logNumber, presentation, callLogType, callFeatures, 157 * @param presentation 167 int presentation, 57 AddCallArgs(Context context, CallerInfo callerInfo, String number, int presentation, int callType, int features, PhoneAccountHandle accountHandle, long creationDate, long durationInMillis, Long dataUsage) argument 164 logCall( CallerInfo callerInfo, String number, int presentation, int callType, int features, PhoneAccountHandle accountHandle, long start, long duration, Long dataUsage) argument [all...] |
H A D | MissedCallNotifier.java | 285 final int presentation = cursor.getInt(cursor.getColumnIndexOrThrow( 289 if (presentation != Calls.PRESENTATION_ALLOWED 317 call.setHandle(handle, presentation);
|
H A D | Call.java | 210 * The presentation requirements for the handle. See {@link TelecomManager} for valid values. 218 * The presentation requirements for the handle. See {@link TelecomManager} for valid values. 418 void setHandle(Uri handle, int presentation) { argument 419 if (!Objects.equals(handle, mHandle) || presentation != mHandlePresentation) { 421 mHandlePresentation = presentation; 439 void setCallerDisplayName(String callerDisplayName, int presentation) { argument 441 presentation != mCallerDisplayNamePresentation) { 443 mCallerDisplayNamePresentation = presentation; 1021 * - a "call presentation" that doesn't allow the number to be revealed 1036 // No incoming number known or call presentation i [all...] |
H A D | ConnectionServiceWrapper.java | 526 public void setAddress(String callId, Uri address, int presentation) { argument 527 logIncoming("setAddress %s %s %d", callId, address, presentation); 532 args.argi1 = presentation; 539 String callId, String callerDisplayName, int presentation) { 540 logIncoming("setCallerDisplayName %s %s %d", callId, callerDisplayName, presentation); 545 args.argi1 = presentation; 538 setCallerDisplayName( String callId, String callerDisplayName, int presentation) argument
|
/packages/services/Telephony/tests/src/com/android/phone/ |
H A D | CnapTest.java | 47 // Checks the cnap 'ABSENT NUMBER' is mapped to the unknown presentation. 63 // TODO: cnapName and name presentation should be set to 72 private String modifyForSpecialCnapCases(String number, int presentation) { argument 74 mContext, mCallerInfo, number, presentation);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | CallerInfoUtils.java | 88 * expected number and presentation values within the CallerInfo object. 90 * @param presentation presentation value used to verify if we are in a corner case 94 String number, int presentation) { 97 // displayed/logged after this function returns based on the presentation value. 102 + ", presentation=" + presentation + " ci " + ci); 106 // and fix the presentation to be the same. 110 && presentation == TelecomManager.PRESENTATION_ALLOWED) { 116 // cases only apply if we received an allowed presentation fro 93 modifyForSpecialCnapCases(Context context, CallerInfo ci, String number, int presentation) argument [all...] |
H A D | ContactInfoCache.java | 307 CallerInfo info, int presentation, boolean isIncoming) { 312 populateCacheEntry(context, info, cce, presentation, isIncoming); 348 int presentation, boolean isIncoming) { 395 // (or potentially some other default based on the presentation.) 396 displayName = getPresentationString(context, presentation); 398 } else if (presentation != TelecomManager.PRESENTATION_ALLOWED) { 400 // AND a restricted presentation. However we leave it here in case of weird 402 displayName = getPresentationString(context, presentation); 403 Log.d(TAG, " ==> presentation not allowed! displayName = " + displayName); 435 if (presentation ! 306 buildEntry(Context context, String callId, CallerInfo info, int presentation, boolean isIncoming) argument 347 populateCacheEntry(Context context, CallerInfo info, ContactCacheEntry cce, int presentation, boolean isIncoming) argument 486 getPresentationString(Context context, int presentation) argument [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/testapps/ |
H A D | TestConnectionManager.java | 93 RemoteConnection connection, Uri address, int presentation) { 94 setAddress(address, presentation); 99 RemoteConnection connection, String callerDisplayName, int presentation) { 100 setCallerDisplayName(callerDisplayName, presentation);
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
H A D | CallLogFragmentTest.java | 375 int presentation = getPhoneNumberPresentationForListEntry(i); 376 if (presentation == Calls.PRESENTATION_RESTRICTED || 377 presentation == Calls.PRESENTATION_UNKNOWN) { 432 /** Returns the number presentation associated with the given entry in {{@link #mList}. */ 497 * @param presentation Number representing display rules for "allowed", 503 private void insert(String number, int presentation, long date, int duration, int type) { argument 504 insertValues(getValuesToInsert(number, presentation, date, duration, type)); 517 * @param presentation Number representing display rules for "allowed", 523 private Object[] getValuesToInsert(String number, int presentation, argument 528 values[CallLogQuery.NUMBER_PRESENTATION] = presentation; 547 insertVoicemail(String number, int presentation, long date, int duration) argument [all...] |
H A D | CallLogListItemHelperTest.java | 341 int presentation, String formattedNumber) { 342 setPhoneCallDetailsWithNumberAndType(number, presentation, 348 int presentation, String formattedNumber, int callType) { 350 new PhoneCallDetails(number, presentation, formattedNumber, 340 setPhoneCallDetailsWithNumber(String number, int presentation, String formattedNumber) argument 347 setPhoneCallDetailsWithNumberAndType(String number, int presentation, String formattedNumber, int callType) argument
|
/packages/apps/Dialer/tests/src/com/android/dialer/ |
H A D | PhoneCallDetailsHelperTest.java | 309 private void setPhoneCallDetailsWithNumber(String number, int presentation, argument 312 new PhoneCallDetails(number, presentation, formattedNumber, 360 private void setCallDetailsHeaderWithNumber(String number, int presentation) { argument 362 new PhoneCallDetails(number, presentation,
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
H A D | SipConnection.java | 280 int presentation = mOriginalConnection.getNumberPresentation(); 282 presentation != getAddressPresentation()) { 284 setAddress(address, presentation);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | TelephonyConnection.java | 344 int presentation = mOriginalConnection.getNumberPresentation(); 346 presentation != getAddressPresentation()) { 348 setAddress(address, presentation);
|