/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/ |
D | PhoneNumberHelper.java | 53 public static boolean canPlaceCallsTo(CharSequence number, int presentation) { in canPlaceCallsTo() argument 55 && !TextUtils.isEmpty(number) in canPlaceCallsTo() 56 && !isLegacyUnknownNumbers(number); in canPlaceCallsTo() 130 public static boolean numberHasSpecialChars(String number) { in numberHasSpecialChars() argument 131 return !TextUtils.isEmpty(number) && number.contains("#"); in numberHasSpecialChars() 154 public static boolean isLocalEmergencyNumber(Context context, String number) { in isLocalEmergencyNumber() argument 161 return PhoneNumberUtils.isLocalEmergencyNumber(context, number); in isLocalEmergencyNumber() 169 context, subscriptionInfo.get().getSubscriptionId(), number)) { in isLocalEmergencyNumber() 182 Context context, PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument 183 if (TextUtils.isEmpty(number)) { in isVoicemailNumber() [all …]
|
/packages/services/Car/tools/emulator/ |
D | VehicleHalProto_pb2.py | 26 name='GET_CONFIG_CMD', index=0, number=0, 30 name='GET_CONFIG_RESP', index=1, number=1, 34 name='GET_CONFIG_ALL_CMD', index=2, number=2, 38 name='GET_CONFIG_ALL_RESP', index=3, number=3, 42 name='GET_PROPERTY_CMD', index=4, number=4, 46 name='GET_PROPERTY_RESP', index=5, number=5, 50 name='GET_PROPERTY_ALL_CMD', index=6, number=6, 54 name='GET_PROPERTY_ALL_RESP', index=7, number=7, 58 name='SET_PROPERTY_CMD', index=8, number=8, 62 name='SET_PROPERTY_RESP', index=9, number=9, [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
D | ContactInfoHelper.java | 73 private static Uri createTemporaryContactUri(String number) { in createTemporaryContactUri() argument 79 new JSONObject().put(Phone.NUMBER, number).put(Phone.TYPE, Phone.TYPE_CUSTOM)); in createTemporaryContactUri() 83 .put(Contacts.DISPLAY_NAME, number) in createTemporaryContactUri() 142 public static Uri getContactInfoLookupUri(String number) { in getContactInfoLookupUri() argument 143 return getContactInfoLookupUri(number, -1); in getContactInfoLookupUri() 146 public static Uri getContactInfoLookupUri(String number, long directoryId) { in getContactInfoLookupUri() argument 152 .appendPath(number) in getContactInfoLookupUri() 155 String.valueOf(PhoneNumberHelper.isUriNumber(number))); in getContactInfoLookupUri() 176 info.number = in getContactInfo() 190 public ContactInfo lookupNumber(String number, String countryIso) { in lookupNumber() argument [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | CallerInfoUtils.java | 92 String number = call.getNumber(); in buildCallerInfo() local 93 if (!TextUtils.isEmpty(number)) { in buildCallerInfo() 95 if (!PhoneNumberHelper.isUriNumber(number)) { in buildCallerInfo() 96 final String[] numbers = number.split("&"); in buildCallerInfo() 97 number = numbers[0]; in buildCallerInfo() 101 number = modifyForSpecialCnapCases(context, info, number, info.numberPresentation); in buildCallerInfo() 103 info.phoneNumber = number; in buildCallerInfo() 133 info.number = ci.phoneNumber; in buildCachedContactInfo() 154 Context context, CallerInfo ci, String number, int presentation) { in modifyForSpecialCnapCases() argument 158 if (ci == null || number == null) { in modifyForSpecialCnapCases() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | NewOutgoingCallIntentBroadcaster.java | 97 String number; field in NewOutgoingCallIntentBroadcaster.CallDisposition 256 result.number = ""; in evaluateCall() 269 String number = getNumberFromCallIntent(intent); in evaluateCall() local 270 result.number = number; in evaluateCall() 271 if (number == null) { in evaluateCall() 276 final boolean isPotentialEmergencyNumber = isPotentialEmergencyNumber(number); in evaluateCall() 286 + "unless caller is system or default dialer.", number, intent); in evaluateCall() 298 + "Intent %s.", number, intent); in evaluateCall() 310 String scheme = mPhoneNumberUtilsAdapter.isUriNumber(number) in evaluateCall() 312 result.callingAddress = Uri.fromParts(scheme, number, null); in evaluateCall() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | EccShortcutAdapter.java | 48 public CharSequence number = null; field in EccShortcutAdapter.EccDisplayMaterial 79 return inflateView(convertView, parent, material.number, material.description, in getView() 99 public abstract View inflateView(View convertView, ViewGroup parent, CharSequence number, in inflateView() argument 120 String number = pickEmergencyNumberForCategory(category, in updateCountryEccInfo() local 122 if (number != null) { in updateCountryEccInfo() 123 emergencyNumbers.put(number, category); in updateCountryEccInfo() 128 for (String number : emergencyNumbers.keySet()) { in updateCountryEccInfo() 129 EccDisplayMaterial material = prepareEccMaterial(context, number, in updateCountryEccInfo() 130 emergencyNumbers.get(number)); in updateCountryEccInfo() 141 boolean hasShortcut(String number) { in hasShortcut() argument [all …]
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamNotificationActivity.java | 119 private static Intent createInsertContactsIntent(String number) { in createInsertContactsIntent() argument 125 intent.putExtra(ContactsContract.Intents.Insert.PHONE, number); in createInsertContactsIntent() 130 private static String getFormattedNumber(String number, Context context) { in getFormattedNumber() argument 132 PhoneNumberHelper.formatNumber(context, number, GeoUtil.getCurrentCountryIso(context)); in getFormattedNumber() 176 String number = getCallInfo().getString(CALL_INFO_KEY_PHONE_NUMBER); in onResume() local 184 startActivity(createInsertContactsIntent(number)); in onResume() 189 maybeShowBlockReportSpamDialog(number, contactLookupResultType); in onResume() 193 maybeShowNotSpamDialog(number, contactLookupResultType); in onResume() 222 final String number, final ContactLookupResult.Type contactLookupResultType) { in maybeShowNotSpamDialog() argument 225 getFormattedNumber(number, this), in maybeShowNotSpamDialog() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | PhoneNumberTestService.java | 59 final String number = intent.getStringExtra(EXTRA_PHONE_NUMBER); in onHandleIntent() local 63 Log.i(TAG, "Input phone number: " + number); in onHandleIntent() 76 dump(number, c); in onHandleIntent() 80 private void dump(String number, String country) { in dump() argument 81 Log.i(TAG, "Result for: " + number + " / " +country); in dump() 82 dump_PhoneNumberUtils_formatNumberToE164(number, country); in dump() 83 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.E164); in dump() 84 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.INTERNATIONAL); in dump() 85 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.NATIONAL); in dump() 86 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.RFC3966); in dump() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | IntentProvider.java | 50 public static IntentProvider getReturnCallIntentProvider(final String number) { in getReturnCallIntentProvider() argument 51 return getReturnCallIntentProvider(number, null); in getReturnCallIntentProvider() 55 final String number, final PhoneAccountHandle accountHandle) { in getReturnCallIntentProvider() argument 61 new CallIntentBuilder(number, CallInitiationType.Type.CALL_LOG) in getReturnCallIntentProvider() 68 final String number, final Context context, final TelephonyManager telephonyManager) { 74 new CallIntentBuilder(number, CallInitiationType.Type.CALL_LOG) 80 public static IntentProvider getReturnVideoCallIntentProvider(final String number) { 81 return getReturnVideoCallIntentProvider(number, null); 85 final String number, final PhoneAccountHandle accountHandle) { 91 new CallIntentBuilder(number, CallInitiationType.Type.CALL_LOG) [all …]
|
D | CallLogListItemViewHolder.java | 175 @Nullable public String number; field in CallLogListItemViewHolder 396 ClipboardUtils.copyText(context, null, number, true); in onMenuItemClick() 403 final Intent intent = new Intent(Intent.ACTION_DIAL, CallUtil.getCallUri(number)); in onMenuItemClick() 414 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick() 424 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick() 430 displayNumber, number, countryIso, callType, info.sourceType, isSpam, blockId); in onMenuItemClick() 435 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick() 530 if (!PhoneNumberHelper.canPlaceCallsTo(number, numberPresentation)) { in updatePrimaryActionButton() 539 IntentProvider.getReturnVideoCallIntentProvider(number, accountHandle)); in updatePrimaryActionButton() 550 IntentProvider.getDuoVideoIntentProvider(number, isNonContactEntry(info))); in updatePrimaryActionButton() [all …]
|
D | MissedCallNotifier.java | 107 void updateMissedCallNotification(int count, @Nullable String number) { in updateMissedCallNotification() argument 158 number, in updateMissedCallNotification() 170 call.number, call.numberPresentation, call.countryIso); in updateMissedCallNotification() 177 || TextUtils.equals(contactInfo.name, contactInfo.number)) { in updateMissedCallNotification() 302 public void insertPostCallNotification(@NonNull String number, @NonNull String note) { in insertPostCallNotification() argument 308 if (FuzzyPhoneNumberMatcher.matches(call.number, number.replace("tel:", ""))) { in insertPostCallNotification() 327 call.number, call.numberPresentation, call.countryIso); in getNotificationForCall() 341 || TextUtils.equals(contactInfo.name, contactInfo.number)) { in getNotificationForCall() 371 if (!TextUtils.isEmpty(call.number) in getNotificationForCall() 372 && !TextUtils.equals(call.number, context.getString(R.string.handle_restricted))) { in getNotificationForCall() [all …]
|
D | CallLogNotificationsQueryHelper.java | 191 @Nullable String number, int numberPresentation, @Nullable String countryIso) { in getName() 192 return getContactInfo(number, numberPresentation, countryIso).name; in getName() 201 @Nullable String number, int numberPresentation, @Nullable String countryIso) { in getContactInfo() 206 number = (number == null) ? "" : number; in getContactInfo() 208 contactInfo.number = number; in getContactInfo() 209 contactInfo.formattedNumber = PhoneNumberHelper.formatNumber(context, number, countryIso); in getContactInfo() 211 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getContactInfo() 215 PhoneNumberDisplayUtil.getDisplayName(context, number, numberPresentation, false) in getContactInfo() 222 ContactInfo cachedContactInfo = contactInfoHelper.lookupNumber(number, countryIso); in getContactInfo() 231 } else if (!TextUtils.isEmpty(number)) { in getContactInfo() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberAsyncQueryHandler.java | 119 final OnCheckBlockedListener listener, @Nullable final String number, String countryIso) { in isBlockedNumber() argument 120 if (number == null) { in isBlockedNumber() 128 Integer cachedId = blockedNumberCache.get(number); in isBlockedNumber() 148 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in isBlockedNumber() 149 String formattedNumber = FilteredNumbersUtil.getBlockableNumber(context, e164Number, number); in isBlockedNumber() 152 blockedNumberCache.put(number, INVALID_ID); in isBlockedNumber() 168 blockedNumberCache.put(number, BLOCKED_NUMBER_CACHE_NULL_ID); in isBlockedNumber() 177 blockedNumberCache.put(number, BLOCKED_NUMBER_CACHE_NULL_ID); in isBlockedNumber() 182 blockedNumberCache.put(number, blockedId); in isBlockedNumber() 203 public Integer getBlockedIdSynchronous(@Nullable String number, String countryIso) { in getBlockedIdSynchronous() argument [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/tests/ |
D | CallDialTest.java | 60 mNumber = (EditText) findViewById(R.id.number); in onCreate() 114 String number = mNumber.getText().toString(); in fireIntent() local 115 log("==> number: '" + number + "'"); in fireIntent() 124 if (!TextUtils.isEmpty(number)) { in fireIntent() 125 if (number.contains(":")) { in fireIntent() 126 uri = Uri.parse(number); in fireIntent() 127 } else if (PhoneNumberUtils.isUriNumber(number)) { in fireIntent() 128 uri = Uri.fromParts(PhoneAccount.SCHEME_SIP, number, null); in fireIntent() 130 uri = Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null); in fireIntent() 154 String number = mNumber.getText().toString(); in doITelephonyCall() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ContactInfoCache.java | 105 String number, in getValue() argument 109 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso); in getValue() 122 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ true, requestType); in getValue() 128 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType); in getValue() 134 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType); in getValue() 160 LogUtil.sanitizePhoneNumber(request.number), in queryContactInfo() 164 info = contactInfoHelper.lookupNumber(request.number, request.countryIso); in queryContactInfo() 169 contactInfoHelper.updateFromCequintCallerId(cequintCallerIdManager, info, request.number); in queryContactInfo() 177 request.number, in queryContactInfo() 186 info = contactInfoHelper.lookupNumberInRemoteDirectory(request.number, request.countryIso); in queryContactInfo() [all …]
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | TelecomUtils.java | 87 public static boolean isVoicemailNumber(Context context, String number) { in isVoicemailNumber() argument 88 if (TextUtils.isEmpty(number)) { in isVoicemailNumber() 97 return number.equals(getVoicemailNumber(context)); in isVoicemailNumber() 115 public static String getFormattedNumber(Context context, String number) { in getFormattedNumber() argument 117 Log.d(TAG, "getFormattedNumber: " + number); in getFormattedNumber() 119 if (number == null) { in getFormattedNumber() 126 + number + ", country: " + countryIso); in getFormattedNumber() 128 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getFormattedNumber() 129 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso); in getFormattedNumber() 130 formattedNumber = TextUtils.isEmpty(formattedNumber) ? number : formattedNumber; in getFormattedNumber() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | PhoneNumberHelper.java | 40 public static boolean isUriNumber(String number) { in isUriNumber() argument 44 return number != null && (number.contains("@") || number.contains("%40")); in isUriNumber() 84 public static String getUsernameFromUriNumber(String number) { in getUsernameFromUriNumber() argument 87 int delimiterIndex = number.indexOf('@'); in getUsernameFromUriNumber() 89 delimiterIndex = number.indexOf("%40"); in getUsernameFromUriNumber() 93 "getUsernameFromUriNumber: no delimiter found in SIP addr '" + number + "'"); in getUsernameFromUriNumber() 94 return number; in getUsernameFromUriNumber() 96 return number.substring(0, delimiterIndex); in getUsernameFromUriNumber()
|
/packages/apps/Dialer/java/com/android/dialer/oem/ |
D | CequintCallerIdManager.java | 140 Context context, String number, String cnapName, boolean isIncoming) { in getCequintCallerIdContactForCall() argument 145 LogUtil.sanitizePhoneNumber(number), in getCequintCallerIdContactForCall() 156 return lookup(context, getIncallLookupUri(), number, flags); in getCequintCallerIdContactForCall() 169 public CequintCallerIdContact getCachedCequintCallerIdContact(Context context, String number) { in getCachedCequintCallerIdContact() argument 174 LogUtil.sanitizePhoneNumber(number)); in getCachedCequintCallerIdContact() 175 if (callLogCache.containsKey(number)) { in getCachedCequintCallerIdContact() 176 return callLogCache.get(number); in getCachedCequintCallerIdContact() 179 getCequintCallerIdContactForNumber(context, number); in getCachedCequintCallerIdContact() 181 callLogCache.put(number, cequintCallerIdContact); in getCachedCequintCallerIdContact() 193 Context context, String number) { in getCequintCallerIdContactForNumber() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/ |
D | EnrichedCallManager.java | 64 void requestCapabilities(@NonNull String number); in requestCapabilities() argument 77 EnrichedCallCapabilities getCapabilities(@NonNull String number); in getCapabilities() argument 90 long startCallComposerSession(@NonNull String number); in startCallComposerSession() argument 121 void sendPostCallNote(@NonNull String number, @NonNull String message); in sendPostCallNote() argument 132 @NonNull String number, @NonNull EnrichedCallCapabilities capabilities); in onCapabilitiesReceived() 159 Session getSession(@NonNull String uniqueCallId, @NonNull String number, @Nullable Filter filter); in getSession() argument 214 void requestAllHistoricalData(@NonNull String number, @NonNull CallDetailsEntries entries); in requestAllHistoricalData() argument 228 @NonNull String number, @NonNull CallDetailsEntries entries); in getAllHistoricalData() 250 void onSessionStatusUpdate(long sessionId, @NonNull String number, int state); in onSessionStatusUpdate() argument 309 boolean onIncomingVideoShareInvite(long sessionId, @NonNull String number); in onIncomingVideoShareInvite() argument [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/ |
D | CallRedirectionProcessorHelper.java | 145 String number = handle.getSchemeSpecificPart(); in formatNumberToE164() local 150 Log.i(this, "formatNumberToE164, original number: " + Log.pii(number)); in formatNumberToE164() 151 number = PhoneNumberUtils.formatNumberToE164(number, tm.getNetworkCountryIso()); in formatNumberToE164() 152 Log.i(this, "formatNumberToE164, formatted E164 number: " + Log.pii(number)); in formatNumberToE164() 155 if (number == null) { in formatNumberToE164() 158 return Uri.fromParts(handle.getScheme(), number, null); in formatNumberToE164() 163 String number = handle.getSchemeSpecificPart(); in removePostDialDigits() local 166 number = PhoneNumberUtils.extractNetworkPortion(number); in removePostDialDigits() 168 + Log.pii(number)); in removePostDialDigits() 171 if (number == null) { in removePostDialDigits() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/stub/ |
D | EnrichedCallManagerStub.java | 44 public void requestCapabilities(@NonNull String number) {} in requestCapabilities() argument 50 public EnrichedCallCapabilities getCapabilities(@NonNull String number) { in getCapabilities() argument 58 public long startCallComposerSession(@NonNull String number) { in startCallComposerSession() argument 69 public void sendPostCallNote(@NonNull String number, @NonNull String message) {} in sendPostCallNote() argument 73 @NonNull String number, @NonNull EnrichedCallCapabilities capabilities) {} in onCapabilitiesReceived() 81 @NonNull String uniqueCallId, @NonNull String number, @Nullable Filter filter) { in getSession() argument 123 @NonNull String number, @NonNull CallDetailsEntries entries) { in getAllHistoricalData() 137 @NonNull String number, @NonNull CallDetailsEntries entries) { in requestAllHistoricalData() 145 public void onSessionStatusUpdate(long sessionId, @NonNull String number, int state) {} in onSessionStatusUpdate() argument 168 public boolean onIncomingVideoShareInvite(long sessionId, @NonNull String number) { in onIncomingVideoShareInvite() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | CallDetailsFooterViewHolder.java | 44 private String number; field in CallDetailsFooterViewHolder 63 public void setPhoneNumber(String number) { in setPhoneNumber() argument 64 this.number = number; in setPhoneNumber() 65 if (TextUtils.isEmpty(number)) { in setPhoneNumber() 68 } else if (reportCallIdListener.canReportCallerId(number)) { in setPhoneNumber() 80 ClipboardUtils.copyText(context, null, number, true); in onClick() 87 Intent dialIntent = new Intent(Intent.ACTION_DIAL, CallUtil.getCallUri(number)); in onClick() 90 reportCallIdListener.reportCallId(number); in onClick() 103 void reportCallId(String number); in reportCallId() argument 106 boolean canReportCallerId(String number); in canReportCallerId() argument
|
/packages/apps/Dialer/java/com/android/dialer/preferredsim/ |
D | PreferredAccountRecorder.java | 37 @Nullable private final String number; field in PreferredAccountRecorder 42 @Nullable String number, @Nullable Suggestion suggestion, @Nullable String dataId) { in PreferredAccountRecorder() 43 this.number = number; in PreferredAccountRecorder() 74 if (number != null) { in record() 78 new UserSelectionReporter(selectedAccountHandle, number, setDefault)) in record() 86 private final String number; field in PreferredAccountRecorder.UserSelectionReporter 91 @NonNull PhoneAccountHandle phoneAccountHandle, @Nullable String number, boolean remember) { in UserSelectionReporter() argument 93 this.number = Assert.isNotNull(number); in UserSelectionReporter() 102 .reportUserSelection(context, number, phoneAccountHandle, remember); in doInBackground()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/ |
D | AddFavoriteFragment.java | 81 for (PhoneNumber number : mSelectedNumbers) { in onCreate() 83 number); in onCreate() 93 for (PhoneNumber number : phoneNumbers) { in setPhoneNumbers() 95 item.setTitle(number.getNumber()); in setPhoneNumbers() 97 setFavoriteItemState(item, number); in setPhoneNumbers() 100 if (mSelectedNumbers.contains(number)) { in setPhoneNumbers() 101 mSelectedNumbers.remove(number); in setPhoneNumbers() 104 mSelectedNumbers.add(number); in setPhoneNumbers() 114 private void setFavoriteItemState(CarUiContentListItem item, PhoneNumber number) { in setFavoriteItemState() argument 115 CharSequence readableLabel = number.getReadableLabel(getResources()); in setFavoriteItemState() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/contract/ |
D | number_attributes.proto | 25 // Information related to the phone number of the call. 28 // The name (which may be a person's name or business name, but not a number) 46 // The number type as a string to be displayed to the user, for example "Home" 51 // The number is a call to a business from nearby places lookup. 54 // Can the number be reported as invalid through People API 61 // Whether the number is blocked. 64 // Whether the number is spam. 67 // Source of the contact associated with the number. 70 // Whether the number can be reached via a carrier video call. 73 // Description of the number's geolocation (e.g., "Mountain View, CA"). [all …]
|