Home
last modified time | relevance | path

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

1234

/packages/apps/Contacts/src/com/android/contacts/calllog/
DPhoneNumberHelper.java37 public boolean canPlaceCallsTo(CharSequence number) { in canPlaceCallsTo() argument
38 return !(TextUtils.isEmpty(number) in canPlaceCallsTo()
39 || number.equals(CallerInfo.UNKNOWN_NUMBER) in canPlaceCallsTo()
40 || number.equals(CallerInfo.PRIVATE_NUMBER) in canPlaceCallsTo()
41 || number.equals(CallerInfo.PAYPHONE_NUMBER)); in canPlaceCallsTo()
45 public boolean canSendSmsTo(CharSequence number) { in canSendSmsTo() argument
46 return canPlaceCallsTo(number) && !isVoicemailNumber(number) && !isSipNumber(number); in canSendSmsTo()
55 public CharSequence getDisplayNumber(CharSequence number, CharSequence formattedNumber) { in getDisplayNumber() argument
56 if (TextUtils.isEmpty(number)) { in getDisplayNumber()
59 if (number.equals(CallerInfo.UNKNOWN_NUMBER)) { in getDisplayNumber()
[all …]
DContactInfoHelper.java52 public ContactInfo lookupNumber(String number, String countryIso) { in lookupNumber() argument
56 if (PhoneNumberUtils.isUriNumber(number)) { in lookupNumber()
58 ContactInfo sipInfo = queryContactInfoForSipAddress(number); in lookupNumber()
62 String username = PhoneNumberUtils.getUsernameFromUriNumber(number); in lookupNumber()
70 ContactInfo phoneInfo = queryContactInfoForPhoneNumber(number, countryIso); in lookupNumber()
74 phoneInfo = queryContactInfoForSipAddress(number); in lookupNumber()
88 updatedInfo.number = number; in lookupNumber()
89 updatedInfo.formattedNumber = formatPhoneNumber(number, null, countryIso); in lookupNumber()
122 info.number = phonesCursor.getString(PhoneQuery.MATCHED_NUMBER); in lookupContactFromUri()
169 private ContactInfo queryContactInfoForPhoneNumber(String number, String countryIso) { in queryContactInfoForPhoneNumber() argument
[all …]
DCallLogAdapter.java63 public final String number; field in CallLogAdapter.NumberWithCountryIso
66 public NumberWithCountryIso(String number, String countryIso) { in NumberWithCountryIso() argument
67 this.number = number; in NumberWithCountryIso()
76 return TextUtils.equals(number, other.number) in equals()
82 return (number == null ? 0 : number.hashCode()) in hashCode()
113 public final String number; field in CallLogAdapter.ContactInfoRequest
119 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) { in ContactInfoRequest() argument
120 this.number = number; in ContactInfoRequest()
133 if (!TextUtils.equals(number, other.number)) return false; in equals()
146 result = prime * result + ((number == null) ? 0 : number.hashCode()); in hashCode()
[all …]
DDefaultVoicemailNotifier.java119 String name = names.get(newCall.number); in updateNotification()
122 name = mNameLookupQuery.query(newCall.number); in updateNotification()
125 name = mPhoneNumberHelper.getDisplayNumber(newCall.number, "").toString(); in updateNotification()
127 name = newCall.number; in updateNotification()
130 names.put(newCall.number, name); in updateNotification()
190 R.string.notification_new_voicemail_ticker, names.get(callToNotify.number))); in updateNotification()
212 public final String number; field in DefaultVoicemailNotifier.NewCall
214 public NewCall(Uri callsUri, Uri voicemailUri, String number) { in NewCall() argument
217 this.number = number; in NewCall()
292 public String query(String number); in query() argument
[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/Phone/src/com/android/phone/
DOutgoingCallBroadcaster.java132 String number; in doReceive() local
146 number = getResultData(); in doReceive()
147 if (VDBG) Log.v(TAG, "- got number from resultData: '" + number + "'"); in doReceive()
193 if (number == null) { in doReceive()
198 && (app.phone.isOtaSpNumber(number))) { in doReceive()
201 } else if (PhoneNumberUtils.isPotentialLocalEmergencyNumber(number, context)) { in doReceive()
206 Log.w(TAG, "Cannot modify outgoing call to emergency number " + number + "."); in doReceive()
224 number = PhoneNumberUtils.convertKeypadLettersToDigits(number); in doReceive()
225 number = PhoneNumberUtils.stripSeparators(number); in doReceive()
229 if (VDBG) Log.v(TAG, "- actual number to dial: '" + number + "'"); in doReceive()
[all …]
DProcessOutgoingCallTest.java44 String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER); in onReceive() local
45 if (LOGV) Log.v(TAG, "Received intent " + intent + " (number = " + number + "."); in onReceive()
47 if (REDIRECT_411_TO_GOOG411 && number.equals("411")) { in onReceive()
52 if (SEVEN_DIGIT_DIALING && number.length() == 7) { in onReceive()
53 setResultData(AREACODE + number); in onReceive()
57 if (POUND_POUND_SEARCH && number.startsWith("##")) { in onReceive()
59 newIntent.putExtra(SearchManager.QUERY, number.substring(2)); in onReceive()
69 int length = number.length(); in onReceive()
71 String exchange = number.substring(length - 7, length - 4); in onReceive()
DCallLogAsync.java72 String number, in AddCallArgs() argument
96 this.number = number; in AddCallArgs()
106 public final String number; field in CallLogAsync.AddCallArgs
139 void lastOutgoingCall(String number); in lastOutgoingCall() argument
164 c.ci, c.context, c.number, c.presentation, in doInBackground()
211 String number = ""; in doInBackground() local
214 number = Calls.getLastOutgoingCall(args.context); in doInBackground()
216 return number; // passed to the onPostExecute method. in doInBackground()
222 protected void onPostExecute(String number) { in onPostExecute() argument
224 mCallback.lastOutgoingCall(number); in onPostExecute()
DCallController.java207 String number = PhoneNumberUtils.getNumberFromIntent(intent, mApp); in placeCall() local
212 log("- number: " + number); in placeCall()
333 String number; in placeCallInternal() local
349 number = PhoneUtils.getInitialNumber(intent); in placeCallInternal()
350 if (VDBG) log("- actual number to dial: '" + number + "'"); in placeCallInternal()
360 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUri); in placeCallInternal()
380 if (number == null) { in placeCallInternal()
391 boolean isEmergencyNumber = PhoneNumberUtils.isLocalEmergencyNumber(number, mApp); in placeCallInternal()
393 PhoneNumberUtils.isPotentialLocalEmergencyNumber(number, mApp); in placeCallInternal()
398 + " attempted to call potential emergency number " + number in placeCallInternal()
[all …]
DPhoneUtils.java580 String number, Uri contactRef, boolean isEmergencyCall, in placeCall() argument
583 log("placeCall()... number: '" + number + "'" in placeCall()
588 log("placeCall()... number: " + toLogSafePhoneNumber(number) in placeCall()
597 PhoneUtils.isRoutableViaGateway(number)) { // Filter out MMI, OTA and other codes. in placeCall()
619 numberToDial = number; in placeCall()
645 if (DBG) log("dialed MMI code: " + number); in placeCall()
657 number = CdmaConnection.formatDialString(number); in placeCall()
659 number = PhoneNumberUtils.extractNetworkPortion(number); in placeCall()
660 number = PhoneNumberUtils.convertKeypadLettersToDigits(number); in placeCall()
661 number = PhoneNumberUtils.formatNumber(number); in placeCall()
[all …]
DCallForwardEditPreference.java104 final String number = getPhoneNumber(); in onDialogClosed() local
111 && number.equals(callForwardInfo.number)) { in onDialogClosed()
117 + ", number=" + number); in onDialogClosed()
127 number, in onDialogClosed()
145 setPhoneNumber(callForwardInfo.number); in handleCallForwardResult()
151 final String number = getRawPhoneNumber(); in updateSummaryText() local
152 if (number != null && number.length() > 0) { in updateSummaryText()
153 String values[] = { number }; in updateSummaryText()
DCallerInfoCache.java222 final String number = cursor.getString(INDEX_NUMBER); in refreshCacheEntry() local
227 normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in refreshCacheEntry()
232 if (PhoneNumberUtils.isUriNumber(number)) { in refreshCacheEntry()
235 newNumberToEntry, number, customRingtone, sendToVoicemail); in refreshCacheEntry()
307 public CacheEntry getCacheEntry(String number) { in getCacheEntry() argument
316 if (PhoneNumberUtils.isUriNumber(number)) { in getCacheEntry()
317 if (VDBG) log("Trying to lookup " + number); in getCacheEntry()
319 entry = mNumberToEntry.get(number); in getCacheEntry()
321 final String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in getCacheEntry()
/packages/apps/Mms/src/com/android/mms/data/
DContactList.java19 for (String number : numbers) { in getByNumbers()
20 if (!TextUtils.isEmpty(number)) { in getByNumbers()
21 list.add(Contact.get(number, canBlock)); in getByNumbers()
31 for (String number : semiSepNumbers.split(";")) { in getByNumbers()
32 if (!TextUtils.isEmpty(number)) { in getByNumbers()
33 Contact contact = Contact.get(number, canBlock); in getByNumbers()
35 contact.setNumber(number); in getByNumbers()
75 if (entry != null && !TextUtils.isEmpty(entry.number)) { in getByIds()
76 Contact contact = Contact.get(entry.number, canBlock); in getByIds()
129 String number; in getNumbers() local
[all …]
DRecipientIdCache.java45 public String number; field in RecipientIdCache.Entry
47 public Entry(long id, String number) { in Entry() argument
49 this.number = number; in Entry()
88 String number = c.getString(1); in fill() local
89 sInstance.mCache.put(id, number); in fill()
116 String number = sInstance.mCache.get(longId); in getAddresses() local
118 if (number == null) { in getAddresses()
125 number = sInstance.mCache.get(longId); in getAddresses()
128 if (TextUtils.isEmpty(number)) { in getAddresses()
131 numbers.add(new Entry(longId, number)); in getAddresses()
[all …]
DContact.java100 private Contact(String number, String name) { in Contact() argument
101 init(number, name); in Contact()
106 private Contact(String number) { in Contact() argument
107 init(number, ""); in Contact()
115 private void init(String number, String name) { in init() argument
118 setNumber(number); in init()
160 public static Contact get(String number, boolean canBlock) { in get() argument
161 return sContactCache.get(number, canBlock); in get()
208 public static String formatNameAndNumber(String name, String number, String numberE164) { in formatNameAndNumber() argument
213 String formattedNumber = number; in formatNameAndNumber()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java169 for (String number : numbers) { in constructContactsFromInput()
170 Contact contact = Contact.get(number, blocking); in constructContactsFromInput()
171 contact.setNumber(number); in constructContactsFromInput()
177 private boolean isValidAddress(String number, boolean isMms) { in isValidAddress() argument
179 return MessageUtils.isValidMmsAddress(number); in isValidAddress()
185 return PhoneNumberUtils.isWellFormedSmsAddress(number) in isValidAddress()
186 || Mms.isEmailAddress(number); in isValidAddress()
191 for (String number : mTokenizer.getNumbers()) { in hasValidRecipient()
192 if (isValidAddress(number, isMms)) in hasValidRecipient()
199 for (String number : mTokenizer.getNumbers()) { in hasInvalidRecipient()
[all …]
DNumberPickerDialog.java45 void onNumberSet(int number); in onNumberSet() argument
58 int number, in NumberPickerDialog() argument
62 this(context, AlertDialog.THEME_HOLO_LIGHT, callBack, number, rangeMin, rangeMax, title); in NumberPickerDialog()
74 int number, in NumberPickerDialog() argument
96 mNumberPicker.setValue(number); in NumberPickerDialog()
120 int number = savedInstanceState.getInt(NUMBER); in onRestoreInstanceState() local
121 mNumberPicker.setValue(number); in onRestoreInstanceState()
DRecipientsAdapter.java85 String number = cursor.getString(RecipientsAdapter.NUMBER_INDEX); in convertToString() local
86 if (number == null) { in convertToString()
89 number = number.trim(); in convertToString()
110 String nameAndNumber = Contact.formatNameAndNumber( name, number, in convertToString()
120 out.setSpan(new Annotation("name", number), 0, len, in convertToString()
129 out.setSpan(new Annotation("number", number), 0, len, in convertToString()
154 TextView number = (TextView) view.findViewById(R.id.number); in bindView() local
155 number.setText( in bindView()
/packages/apps/Phone/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(Constants.SCHEME_SIP, number, null); in fireIntent()
130 uri = Uri.fromParts(Constants.SCHEME_TEL, number, null); in fireIntent()
154 String number = mNumber.getText().toString(); in doITelephonyCall() local
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/
DCallLogAdapterTest.java58 public ContactInfo lookupNumber(String number, String countryIso) { in setUp()
60 info.number = number; in setUp()
61 info.formattedNumber = number; in setUp()
94 assertEquals(TEST_NUMBER, request.number); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest()
166 info.number = TEST_NUMBER; in createContactInfo()
197 public final String number; field in CallLogAdapterTest.TestCallLogAdapter.Request
202 public Request(String number, String countryIso, ContactInfo callLogInfo, in Request() argument
204 this.number = number; in Request()
219 void enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, in enqueueRequest() argument
221 requests.add(new Request(number, countryIso, callLogInfo, immediate)); in enqueueRequest()
DCallLogFragmentTest.java366 String number = getPhoneNumberForListEntry(i); in checkCallStatus() local
367 if (CallerInfo.PRIVATE_NUMBER.equals(number) || in checkCallStatus()
368 CallerInfo.UNKNOWN_NUMBER.equals(number)) { in checkCallStatus()
470 private void insertWithCachedValues(String number, long date, int duration, int type, in insertWithCachedValues() argument
472 insert(number, date, duration, type); in insertWithCachedValues()
478 String formattedNumber = PhoneNumberUtils.formatNumber(number, TEST_COUNTRY_ISO); in insertWithCachedValues()
480 formattedNumber = number; in insertWithCachedValues()
483 contactInfo.normalizedNumber = number; in insertWithCachedValues()
485 mAdapter.injectContactInfoForTest(number, TEST_COUNTRY_ISO, contactInfo); in insertWithCachedValues()
496 private void insert(String number, long date, int duration, int type) { in insert() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DPhoneCallDetails.java28 public final CharSequence number; field in PhoneCallDetails
62 public PhoneCallDetails(CharSequence number, CharSequence formattedNumber, in PhoneCallDetails() argument
64 this(number, formattedNumber, countryIso, geocode, callTypes, date, duration, "", 0, "", in PhoneCallDetails()
69 public PhoneCallDetails(CharSequence number, CharSequence formattedNumber, in PhoneCallDetails() argument
73 this.number = number; in PhoneCallDetails()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForPhoneNumber.java48 final String number = values.getAsString(Phone.NUMBER); in insert() local
50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber); in insert()
91 final String number = values.getAsString(Phone.NUMBER); in fillNormalizedNumber() local
93 if (number != null && numberE164 == null) { in fillNormalizedNumber()
94 final String newNumberE164 = PhoneNumberUtils.formatNumberToE164(number, in fillNormalizedNumber()
115 String number, String numberE164) { in updatePhoneLookup() argument
118 if (number != null) { in updatePhoneLookup()
119 String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in updatePhoneLookup()
161 String number = builder.getString(Phone.NUMBER); in appendSearchableData() local
162 if (TextUtils.isEmpty(number)) { in appendSearchableData()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java132 String number = cursor.getString(column); in getLastDialledNumber() local
134 return number; in getLastDialledNumber()
488 String number = pbr.cursor.getString(pbr.numberColumn); in processCpbrCommand() local
496 query(Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, number), in processCpbrCommand()
506 if (DBG && name == null) log("Caller ID lookup failed for " + number); in processCpbrCommand()
520 if (number == null) number = ""; in processCpbrCommand()
521 int regionType = PhoneNumberUtils.toaFromString(number); in processCpbrCommand()
523 number = number.trim(); in processCpbrCommand()
524 number = PhoneNumberUtils.stripSeparators(number); in processCpbrCommand()
525 if (number.length() > 30) number = number.substring(0, 30); in processCpbrCommand()
[all …]
/packages/apps/Phone/tests/src/com/android/phone/unit/
DCnapTest.java60 private void assertIsUnknown(String number) { in assertIsUnknown() argument
61 assertEquals(mUnknown, number); in assertIsUnknown()
72 private String modifyForSpecialCnapCases(String number, int presentation) { in modifyForSpecialCnapCases() argument
74 mContext, mCallerInfo, number, presentation); in modifyForSpecialCnapCases()

1234