Searched refs:number (Results 1 - 25 of 113) sorted by relevance

12345

/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DPhoneNumberUtilsWrapper.java34 /** Returns true if it is possible to place a call to the given number. */
35 public static boolean canPlaceCallsTo(CharSequence number, int presentation) { argument
37 && !TextUtils.isEmpty(number) && !isLegacyUnknownNumbers(number);
41 * Returns true if it is possible to send an SMS to the given number.
43 public boolean canSendSmsTo(CharSequence number, int presentation) { argument
44 return canPlaceCallsTo(number, presentation) && !isVoicemailNumber(number) && !isSipNumber(
45 number);
49 * Returns true if the given number i
52 isVoicemailNumber(CharSequence number) argument
60 isSipNumber(CharSequence number) argument
64 isUnknownNumberThatCanBeLookedUp(CharSequence number, int presentation) argument
86 isLegacyUnknownNumbers(CharSequence number) argument
[all...]
H A DPhoneNumberDisplayHelper.java43 /* package */ CharSequence getDisplayName(CharSequence number, int presentation) { argument
53 if (mPhoneNumberUtils.isVoicemailNumber(number)) {
56 if (PhoneNumberUtilsWrapper.isLegacyUnknownNumbers(number)) {
63 * Returns the string to display for the given phone number.
65 * @param number the number to display
66 * @param formattedNumber the formatted number if available, may be null
68 public CharSequence getDisplayNumber(CharSequence number, argument
71 final CharSequence displayName = getDisplayName(number, presentation);
76 if (TextUtils.isEmpty(number)) {
[all...]
H A DContactInfoHelper.java40 * Utility class to look up the contact information for a given number.
55 * Returns the contact information for the given number.
57 * If the number does not match any contact, returns a contact info containing only the number
58 * and the formatted number.
62 * @param number the number to look up
63 * @param countryIso the country associated with this number
65 public ContactInfo lookupNumber(String number, String countryIso) { argument
69 if (PhoneNumberUtils.isUriNumber(number)) {
118 createTemporaryContactUri(String number) argument
211 queryContactInfoForPhoneNumber(String number, String countryIso) argument
246 formatPhoneNumber(String number, String normalizedNumber, String countryIso) argument
[all...]
H A DCallLogAdapter.java65 * Stores a phone number of a call with the country code where it originally occurred.
67 * Note the country does not necessarily specifies the country of the phone number itself, but
71 public final String number; field in class:CallLogAdapter.NumberWithCountryIso
74 public NumberWithCountryIso(String number, String countryIso) { argument
75 this.number = number;
84 return TextUtils.equals(number, other.number)
90 return (number == null ? 0 : number
121 public final String number; field in class:CallLogAdapter.ContactInfoRequest
127 ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) argument
360 enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, boolean immediate) argument
383 queryContactInfo(String number, String countryIso, ContactInfo callLogInfo) argument
782 updateCallLogContactInfoCache(String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) argument
913 injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) argument
932 getBetterNumberFromContacts(String number, String countryIso) argument
[all...]
H A DContactInfo.java34 public String number; field in class:ContactInfo
70 if (!TextUtils.equals(number, other.number)) return false;
81 "type", type).add("label", label).add("number", number).add("formattedNumber",
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
H A DTestPhoneNumberUtilsWrapper.java21 * that allows injecting the voicemail number.
31 public boolean isVoicemailNumber(CharSequence number) { argument
32 return mVoicemailNumber.equals(number);
/packages/apps/InCallUI/src/com/android/incallui/
H A DCallerInfoUtils.java38 * information about the phone number label, user's name, etc).
43 String number = info.phoneNumber;
48 // Start the query with the number provided from the call.
50 CallerInfoAsyncQuery.startQuery(QUERY_TOKEN, context, number, listener, call);
59 // here regardless of whether the number is empty or not).
65 String number = identification.getNumber();
66 if (!TextUtils.isEmpty(number)) {
67 final String[] numbers = number.split("&");
68 number = numbers[0];
73 number
87 modifyForSpecialCnapCases(Context context, CallerInfo ci, String number, int presentation) argument
158 toLogSafePhoneNumber(String number) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
H A DPhoneNumberTestService.java35 * A service to test various phone number formatters.
59 final String number = intent.getStringExtra(EXTRA_PHONE_NUMBER);
63 Log.i(TAG, "Input phone number: " + number);
76 dump(number, c);
80 private void dump(String number, String country) { argument
81 Log.i(TAG, "Result for: " + number + " / " +country);
82 dump_PhoneNumberUtils_formatNumberToE164(number, country);
83 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.E164);
84 dump_PhoneNumberUtil_format(number, countr
89 dump_PhoneNumberUtils_formatNumberToE164(String number, String country) argument
94 dump_PhoneNumberUtil_format(String number, String country, PhoneNumberFormat format) argument
[all...]
/packages/services/Telephony/src/com/android/phone/
H A DProcessOutgoingCallTest.java44 String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
45 if (LOGV) Log.v(TAG, "Received intent " + intent + " (number = " + number + ".");
46 /* Example of how to redirect calls from one number to another. */
47 if (REDIRECT_411_TO_GOOG411 && number.equals("411")) {
51 /* Example of how to modify the phone number in flight. */
52 if (SEVEN_DIGIT_DIALING && number.length() == 7) {
53 setResultData(AREACODE + number);
57 if (POUND_POUND_SEARCH && number.startsWith("##")) {
59 newIntent.putExtra(SearchManager.QUERY, number
[all...]
H A DOutgoingCallBroadcaster.java51 * contains the phone number being dialed. Applications can use this intent to (1) see which numbers
52 * are being dialed, (2) redirect a call (change the number being dialed), or (3) prevent a call
61 * Calls where no number is present (like for a CDMA "empty flash" or a nonexistent voicemail
62 * number) are exempt from being broadcast.
139 * a modified phone number and optional provider info (uri + package name + remote views.)
173 String number;
184 // is used as the actual number to call. (If null, no call will be
187 number = getResultData();
188 if (VDBG) Log.v(TAG, "- got number from resultData: '" + number
308 startSipCallOptionHandler(Context context, Intent intent, Uri uri, String number) argument
[all...]
H A DCallLogger.java57 final String number = c.getAddress();
67 ", number set to: " + PhoneUtils.toLogSafePhoneNumber(number));
78 && phone.isOtaSpNumber(number);
109 public void logCall(CallerInfo ci, String number, int presentation, int callType, long start, argument
111 final boolean isEmergencyNumber = PhoneNumberUtils.isLocalEmergencyNumber(number,
127 log("sending Calllog entry: " + ci + ", " + PhoneUtils.toLogSafePhoneNumber(number)
131 CallLogAsync.AddCallArgs args = new CallLogAsync.AddCallArgs(mApplication, ci, number,
158 * Retrieve the phone number from the caller info or the connection.
160 * For incoming call the number i
[all...]
H A DCallController.java174 * (4) Here in CallController.placeCall() we read the phone number or SIP
209 String number = PhoneNumberUtils.getNumberFromIntent(intent, mApp);
214 log("- number: " + number);
296 String number;
312 number = PhoneUtils.getInitialNumber(intent);
313 if (VDBG) log("- actual number to dial: '" + number + "'");
318 // or by number, i.e. for international,
323 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUr
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DCallUtil.java44 public static Intent getCallIntent(String number) { argument
45 return getCallIntent(number, null);
60 public static Intent getCallIntent(String number, String callOrigin) { argument
61 return getCallIntent(getCallUri(number), callOrigin);
87 public static Uri getCallUri(String number) { argument
88 if (PhoneNumberUtils.isUriNumber(number)) {
89 return Uri.fromParts(SCHEME_SIP, number, null);
91 return Uri.fromParts(SCHEME_TEL, number, null);
/packages/apps/Mms/src/com/android/mms/data/
H A DContactList.java19 for (String number : numbers) {
20 if (!TextUtils.isEmpty(number)) {
21 list.add(Contact.get(number, canBlock));
31 for (String number : semiSepNumbers.split(";")) {
32 if (!TextUtils.isEmpty(number)) {
33 Contact contact = Contact.get(number, canBlock);
35 contact.setNumber(number);
75 if (entry != null && !TextUtils.isEmpty(entry.number)) {
76 Contact contact = Contact.get(entry.number, canBlock);
129 String number;
[all...]
H A DRecipientIdCache.java45 public String number; field in class:RecipientIdCache.Entry
47 public Entry(long id, String number) { argument
49 this.number = number;
88 String number = c.getString(1);
89 sInstance.mCache.put(id, number);
116 String number = sInstance.mCache.get(longId);
118 if (number == null) {
125 number = sInstance.mCache.get(longId);
128 if (TextUtils.isEmpty(number)) {
180 updateCanonicalAddressInDb(long id, String number) argument
262 insertCanonicalAddressInDb(final Context context, String number) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogInsertionHelper.java27 /** Returns the geocoded location for a given phone number. */
28 public String getGeocodedLocationFor(String number, String countryIso); argument
H A DDefaultCallLogInsertionHelper.java37 * It checks for legacy unknown numbers and updates number presentation.
39 * It uses {@link PhoneNumberOfflineGeocoder} to compute the geocoded location of a phone number.
65 // Insert the current country code, so we know the country the number belongs to.
72 final String number = values.getAsString(Calls.NUMBER);
73 if (LEGACY_UNKNOWN_NUMBERS.contains(number)) {
90 private PhoneNumber parsePhoneNumber(String number, String countryIso) { argument
92 return getPhoneNumberUtil().parse(number, countryIso);
106 public String getGeocodedLocationFor(String number, String countryIso) { argument
107 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
/packages/apps/PhoneCommon/src/com/android/phone/common/
H A DCallLogAsync.java41 * this, ci, number, presentation, type, timestamp, duration);
47 * public void lastOutgoingCall(String number) { mLastNumber = number; }
63 * @param number To be logged.
64 * @param presentation Of the number.
72 String number,
96 this.number = number;
106 public final String number; field in class:CallLogAsync.AddCallArgs
135 /** Interface to retrieve the last dialed number asynchronousl
70 AddCallArgs(Context context, CallerInfo ci, String number, int presentation, int callType, long timestamp, long durationInMillis) argument
139 lastOutgoingCall(String number) argument
222 onPostExecute(String number) argument
[all...]
/packages/apps/Dialer/src/com/android/dialer/
H A DPhoneCallDetails.java27 /** The number of the other party involved in the call. */
28 public final CharSequence number; field in class:PhoneCallDetails
29 /** The number presenting rules set by the network, e.g., {@link Calls#PRESENTATION_ALLOWED} */
31 /** The formatted version of {@link #number}. */
33 /** The country corresponding with the phone number. */
35 /** The geocoded location for the phone number. */
51 /** The custom label associated with the phone number in the contact, or the empty string. */
67 /** Create the details for a call with a number not associated with a contact. */
68 public PhoneCallDetails(CharSequence number, int numberPresentation, argument
71 this(number, numberPresentatio
76 PhoneCallDetails(CharSequence number, int numberPresentation, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration, CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri, int sourceType) argument
[all...]
/packages/services/Telephony/tests/src/com/android/phone/tests/
H A DCallDialTest.java60 mNumber = (EditText) findViewById(R.id.number);
113 // Get a phone number or SIP address from the EditText widget
114 String number = mNumber.getText().toString();
115 log("==> number: '" + number + "'");
117 // Based on the number, fire off a CALL or DIAL intent:
120 // - if it's just a number, prepend tel: automatically
124 if (!TextUtils.isEmpty(number)) {
125 if (number.contains(":")) {
126 uri = Uri.parse(number);
[all...]
/packages/services/Telephony/tests/src/com/android/phone/unit/
H A DCnapTest.java57 * Checks the number and CallerInfo structure indicate the number
60 private void assertIsUnknown(String number) { argument
61 assertEquals(mUnknown, number);
72 private String modifyForSpecialCnapCases(String number, int presentation) { argument
74 mContext, mCallerInfo, number, presentation);
/packages/apps/Mms/src/com/android/mms/ui/
H A DNumberPickerDialog.java34 private static final String NUMBER = "number";
43 * @param number The number that was set.
45 void onNumberSet(int number); argument
54 * @param number The initial number.
58 int number,
62 this(context, AlertDialog.THEME_HOLO_LIGHT, callBack, number, rangeMin, rangeMax, title);
69 * @param number The initial number
56 NumberPickerDialog(Context context, OnNumberSetListener callBack, int number, int rangeMin, int rangeMax, int title) argument
71 NumberPickerDialog(Context context, int theme, OnNumberSetListener callBack, int number, int rangeMin, int rangeMax, int title) argument
[all...]
H A DRecipientsEditor.java169 for (String number : numbers) {
170 Contact contact = Contact.get(number, blocking);
171 contact.setNumber(number);
177 private boolean isValidAddress(String number, boolean isMms) { argument
179 return MessageUtils.isValidMmsAddress(number);
181 // TODO: PhoneNumberUtils.isWellFormedSmsAddress() only check if the number is a valid
185 return PhoneNumberUtils.isWellFormedSmsAddress(number)
186 || Mms.isEmailAddress(number);
191 for (String number : mTokenizer.getNumbers()) {
192 if (isValidAddress(number, isMm
[all...]
/packages/apps/Dialer/src/com/android/dialer/interactions/
H A DUndemoteOutgoingCallReceiver.java31 * contacts if a phone call is made to a phone number belonging to that contact.
40 final String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
41 if (TextUtils.isEmpty(number)) {
47 final long id = getContactIdFromPhoneNumber(context, number);
66 private long getContactIdFromPhoneNumber(Context context, String number) { argument
68 Uri.encode(number));
/packages/apps/Dialer/src/com/android/dialer/service/
H A DCachedNumberLookupService.java21 * Perform a lookup using the cached number lookup service to return contact
22 * information stored in the cache that corresponds to the given number.
25 * @param number Phone number to lookup the cache for
27 * number is found in the cache, {@link ContactInfo#EMPTY} if the phone number was
30 public CachedContactInfo lookupCachedContactFromNumber(Context context, String number); argument
38 public boolean addPhoto(Context context, String number, byte[] photo); argument
41 * Remove all cached phone number entries from the cache, regardless of how old they

Completed in 466 milliseconds

12345