/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | PhoneNumberHelper.java | 36 /** Returns true if it is possible to place a call to the given number. */ 37 public boolean canPlaceCallsTo(CharSequence number) { argument 38 return !(TextUtils.isEmpty(number) 39 || number.equals(CallerInfo.UNKNOWN_NUMBER) 40 || number.equals(CallerInfo.PRIVATE_NUMBER) 41 || number.equals(CallerInfo.PAYPHONE_NUMBER)); 44 /** Returns true if it is possible to send an SMS to the given number. */ 45 public boolean canSendSmsTo(CharSequence number) { argument 46 return canPlaceCallsTo(number) && !isVoicemailNumber(number) 55 getDisplayNumber(CharSequence number, CharSequence formattedNumber) argument 82 isVoicemailNumber(CharSequence number) argument 90 isSipNumber(CharSequence number) argument [all...] |
H A D | ContactInfoHelper.java | 30 * Utility class to look up the contact information for a given number. 42 * Returns the contact information for the given number. 44 * If the number does not match any contact, returns a contact info containing only the number 45 * and the formatted number. 49 * @param number the number to look up 50 * @param countryIso the country associated with this number 52 public ContactInfo lookupNumber(String number, String countryIso) { argument 56 if (PhoneNumberUtils.isUriNumber(number)) { 169 queryContactInfoForPhoneNumber(String number, String countryIso) argument 201 formatPhoneNumber(String number, String normalizedNumber, String countryIso) argument [all...] |
H A D | CallLogAdapter.java | 57 * Stores a phone number of a call with the country code where it originally occurred. 59 * Note the country does not necessarily specifies the country of the phone number itself, but 63 public final String number; field in class:CallLogAdapter.NumberWithCountryIso 66 public NumberWithCountryIso(String number, String countryIso) { argument 67 this.number = number; 76 return TextUtils.equals(number, other.number) 82 return (number == null ? 0 : number 113 public final String number; field in class:CallLogAdapter.ContactInfoRequest 119 ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) argument 335 enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, boolean immediate) argument 358 queryContactInfo(String number, String countryIso, ContactInfo callLogInfo) argument 637 updateCallLogContactInfoCache(String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) argument 754 injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) argument 773 getBetterNumberFromContacts(String number, String countryIso) argument [all...] |
H A D | ContactInfo.java | 32 public String number; field in class:ContactInfo 64 if (!TextUtils.equals(number, other.number)) return false;
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | PhoneNumberTestService.java | 35 * 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/apps/Phone/src/com/android/phone/ |
H A D | ProcessOutgoingCallTest.java | 44 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 D | OutgoingCallBroadcaster.java | 58 * Emergency calls and calls where no number is present (like for a CDMA 59 * "empty flash" or a nonexistent voicemail number) are exempt from being 119 * a modified phone number and optional provider info (uri + package name + remote views.) 136 String number; 147 // is used as the actual number to call. (If null, no call will be 150 number = getResultData(); 151 if (VDBG) Log.v(TAG, "- got number from resultData: '" + number + "'"); 197 if (number == null) { 198 if (DBG) Log.v(TAG, "CALL cancelled (null number), returnin 270 startSipCallOptionHandler(Context context, Intent intent, Uri uri, String number) argument [all...] |
H A D | CallLogger.java | 56 final String number = c.getAddress(); 66 ", number set to: " + PhoneUtils.toLogSafePhoneNumber(number)); 77 && phone.isOtaSpNumber(number); 108 public void logCall(CallerInfo ci, String number, int presentation, int callType, long start, argument 110 final boolean isEmergencyNumber = PhoneNumberUtils.isLocalEmergencyNumber(number, 126 log("sending Calllog entry: " + ci + ", " + PhoneUtils.toLogSafePhoneNumber(number) 130 CallLogAsync.AddCallArgs args = new CallLogAsync.AddCallArgs(mApplication, ci, number, 155 * Retrieve the phone number from the caller info or the connection. 157 * For incoming call the number i [all...] |
H A D | CallController.java | 173 * (4) Here in CallController.placeCall() we read the phone number or SIP 210 String number = PhoneNumberUtils.getNumberFromIntent(intent, mApp); 215 log("- number: " + number); 336 String number; 352 number = PhoneUtils.getInitialNumber(intent); 353 if (VDBG) log("- actual number to dial: '" + number + "'"); 358 // or by number, i.e. for international, 363 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUr [all...] |
H A D | CallForwardEditPreference.java | 104 final String number = getPhoneNumber(); 111 && number.equals(callForwardInfo.number)) { 117 + ", number=" + number); 119 // Display no forwarding number while we're waiting for 127 number, 145 setPhoneNumber(callForwardInfo.number); 151 final String number = getRawPhoneNumber(); 152 if (number ! [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
H A D | CallUtil.java | 44 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/Dialer/tests/src/com/android/dialer/calllog/ |
H A D | TestPhoneNumberHelper.java | 23 * voicemail number. 34 public boolean isVoicemailNumber(CharSequence number) { argument 35 return mVoicemailNumber.equals(number);
|
H A D | CallLogAdapterTest.java | 58 public ContactInfo lookupNumber(String number, String countryIso) { 60 info.number = number; 61 info.formattedNumber = number; 93 // It is for the number we need to show. 94 assertEquals(TEST_NUMBER, request.number); 166 info.number = TEST_NUMBER; 197 public final String number; field in class:CallLogAdapterTest.TestCallLogAdapter.Request 202 public Request(String number, String countryIso, ContactInfo callLogInfo, argument 204 this.number 219 enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, boolean immediate) argument [all...] |
/packages/apps/Mms/src/com/android/mms/data/ |
H A D | ContactList.java | 19 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 D | RecipientIdCache.java | 45 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...] |
H A D | Contact.java | 82 private boolean mNumberIsModified; // true if the number is modified 100 private Contact(String number, String name) { argument 101 init(number, name); 104 * Make a basic contact object with a phone number. 106 private Contact(String number) { argument 107 init(number, ""); 115 private void init(String number, String name) { argument 118 setNumber(number); 128 return String.format("{ number=%s, name=%s, nameAndNumber=%s, label=%s, person_id=%d, hash=%d method_id=%d }", 160 public static Contact get(String number, boolea argument 208 formatNameAndNumber(String name, String number, String numberE164) argument 235 setNumber(String number) argument 539 get(String number, boolean canBlock) argument 543 get(String number, boolean isMe, boolean canBlock) argument 804 isAlphaNumber(String number) argument 829 getContactInfoForPhoneNumber(String number) argument [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | CallLogInsertionHelper.java | 27 /** Returns the geocoded location for a given phone number. */ 28 public String getGeocodedLocationFor(String number, String countryIso); argument
|
H A D | DefaultCallLogInsertionHelper.java | 35 * It uses {@link PhoneNumberOfflineGeocoder} to compute the geocoded location of a phone number. 59 // Insert the current country code, so we know the country the number belongs to. 78 private PhoneNumber parsePhoneNumber(String number, String countryIso) { argument 80 return getPhoneNumberUtil().parse(number, countryIso); 94 public String getGeocodedLocationFor(String number, String countryIso) { argument 95 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
|
H A D | DataRowHandlerForPhoneNumber.java | 32 * Handler for phone number data rows. 48 final String number = values.getAsString(Phone.NUMBER); 50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber); 91 final String number = values.getAsString(Phone.NUMBER); 93 if (number != null && numberE164 == null) { 94 final String newNumberE164 = PhoneNumberUtils.formatNumberToE164(number, 115 String number, String numberE164) { 118 if (number != null) { 119 String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); 161 String number 114 updatePhoneLookup(SQLiteDatabase db, long rawContactId, long dataId, String number, String numberE164) argument [all...] |
/packages/apps/PhoneCommon/src/com/android/phone/common/ |
H A D | CallLogAsync.java | 41 * 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 D | PhoneCallDetails.java | 27 /** The number of the other party involved in the call. */ 28 public final CharSequence number; field in class:PhoneCallDetails 29 /** The formatted version of {@link #number}. */ 31 /** The country corresponding with the phone number. */ 33 /** The geocoded location for the phone number. */ 49 /** The custom label associated with the phone number in the contact, or the empty string. */ 61 /** Create the details for a call with a number not associated with a contact. */ 62 public PhoneCallDetails(CharSequence number, CharSequence formattedNumber, argument 64 this(number, formattedNumber, countryIso, geocode, callTypes, date, duration, "", 0, "", 68 /** Create the details for a call with a number associate 69 PhoneCallDetails(CharSequence number, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration, CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri) argument [all...] |
/packages/apps/Phone/tests/src/com/android/phone/tests/ |
H A D | CallDialTest.java | 60 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/apps/Phone/tests/src/com/android/phone/unit/ |
H A D | CnapTest.java | 57 * 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 D | NumberPickerDialog.java | 34 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 D | RecipientsEditor.java | 169 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...] |