Home
last modified time | relevance | path

Searched refs:number (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java53 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/
DVehicleHalProto_pb2.py26 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/
DContactInfoHelper.java73 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/
DCallerInfoUtils.java92 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/
DNewOutgoingCallIntentBroadcaster.java95 String number; field in NewOutgoingCallIntentBroadcaster.CallDisposition
255 result.number = ""; in evaluateCall()
268 String number = getNumberFromCallIntent(intent); in evaluateCall() local
269 result.number = number; in evaluateCall()
270 if (number == null) { in evaluateCall()
275 final boolean isPotentialEmergencyNumber = isPotentialEmergencyNumber(number); in evaluateCall()
285 + "unless caller is system or default dialer.", number, intent); in evaluateCall()
297 + "Intent %s.", number, intent); in evaluateCall()
309 String scheme = mPhoneNumberUtilsAdapter.isUriNumber(number) in evaluateCall()
311 result.callingAddress = Uri.fromParts(scheme, number, null); in evaluateCall()
[all …]
DPhoneNumberUtilsAdapterImpl.java26 public boolean isLocalEmergencyNumber(Context context, String number) { in isLocalEmergencyNumber() argument
29 return tm.isEmergencyNumber(number); in isLocalEmergencyNumber()
33 public boolean isPotentialLocalEmergencyNumber(Context context, String number) { in isPotentialLocalEmergencyNumber() argument
36 return tm.isPotentialEmergencyNumber(number); in isPotentialLocalEmergencyNumber()
40 public boolean isUriNumber(String number) { in isUriNumber() argument
41 return PhoneNumberUtils.isUriNumber(number); in isUriNumber()
55 public String convertKeypadLettersToDigits(String number) { in convertKeypadLettersToDigits() argument
56 return PhoneNumberUtils.convertKeypadLettersToDigits(number); in convertKeypadLettersToDigits()
60 public String stripSeparators(String number) { in stripSeparators() argument
61 return PhoneNumberUtils.stripSeparators(number); in stripSeparators()
/packages/services/Telephony/src/com/android/phone/
DEccShortcutAdapter.java48 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 …]
DPhoneUtils.java136 public static int placeCall(Context context, Phone phone, String number, Uri contactRef, in placeCall() argument
138 return placeCall(context, phone, number, contactRef, isEmergencyCall, in placeCall()
164 public static int placeCall(Context context, Phone phone, String number, Uri contactRef, in placeCall() argument
169 log("placeCall()... number: '" + number + "'" in placeCall()
174 log("placeCall()... number: " + toLogSafePhoneNumber(number) in placeCall()
183 PhoneUtils.isRoutableViaGateway(number)) { // Filter out MMI, OTA and other codes. in placeCall()
205 numberToDial = number; in placeCall()
263 /* package */ static String toLogSafePhoneNumber(String number) { in toLogSafePhoneNumber() argument
265 if (number == null) { in toLogSafePhoneNumber()
271 return number; in toLogSafePhoneNumber()
[all …]
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamNotificationActivity.java119 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/
DPhoneNumberTestService.java59 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/
DIntentProvider.java50 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 …]
DCallLogListItemViewHolder.java175 @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 …]
DMissedCallNotifier.java107 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 …]
DCallLogNotificationsQueryHelper.java191 @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/
DFilteredNumberAsyncQueryHandler.java119 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/
DCallDialTest.java60 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/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java75 public static CharSequence getTypeFromNumber(Context context, String number) { in getTypeFromNumber() argument
77 Log.d(TAG, "getTypeFromNumber, number: " + number); in getTypeFromNumber()
81 if (TextUtils.isEmpty(number)) { in getTypeFromNumber()
86 Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number)); in getTypeFromNumber()
121 public static boolean isVoicemailNumber(Context context, String number) { in isVoicemailNumber() argument
122 return !TextUtils.isEmpty(number) && number.equals(getVoicemailNumber(context)); in isVoicemailNumber()
140 public static String getFormattedNumber(Context context, String number) { in getFormattedNumber() argument
142 Log.d(TAG, "getFormattedNumber: " + number); in getFormattedNumber()
144 if (number == null) { in getFormattedNumber()
151 + number + ", country: " + countryIso); in getFormattedNumber()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
DContactInfoCache.java105 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/Contacts/src/com/android/contacts/util/
DPhoneNumberHelper.java40 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/
DCequintCallerIdManager.java140 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/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessorHelper.java133 String number = handle.getSchemeSpecificPart(); in formatNumberToE164() local
138 Log.i(this, "formatNumberToE164, original number: " + Log.pii(number)); in formatNumberToE164()
139 number = PhoneNumberUtils.formatNumberToE164(number, tm.getNetworkCountryIso()); in formatNumberToE164()
140 Log.i(this, "formatNumberToE164, formatted E164 number: " + Log.pii(number)); in formatNumberToE164()
143 if (number == null) { in formatNumberToE164()
146 return Uri.fromParts(handle.getScheme(), number, null); in formatNumberToE164()
151 String number = handle.getSchemeSpecificPart(); in removePostDialDigits() local
154 number = PhoneNumberUtils.extractNetworkPortionAlt(number); in removePostDialDigits()
156 + Log.pii(number)); in removePostDialDigits()
159 if (number == null) { in removePostDialDigits()
[all …]
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
DEnrichedCallManager.java64 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/apps/Dialer/java/com/android/dialer/enrichedcall/stub/
DEnrichedCallManagerStub.java44 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/
DCallDetailsFooterViewHolder.java44 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/
DPreferredAccountRecorder.java37 @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()

12345678910>>...14