/packages/apps/Contacts/src/com/android/contacts/calllog/ |
H A D | PhoneNumberHelper.java | 37 /** Returns true if it is possible to place a call to the given number. */ 38 public boolean canPlaceCallsTo(CharSequence number) { argument 39 return !(TextUtils.isEmpty(number) 40 || number.equals(CallerInfo.UNKNOWN_NUMBER) 41 || number.equals(CallerInfo.PRIVATE_NUMBER) 42 || number.equals(CallerInfo.PAYPHONE_NUMBER)); 45 /** Returns true if it is possible to send an SMS to the given number. */ 46 public boolean canSendSmsTo(CharSequence number) { argument 47 return canPlaceCallsTo(number) && !isVoicemailNumber(number) 56 getDisplayNumber(CharSequence number, CharSequence formattedNumber) argument 80 getCallUri(String number) argument 91 isVoicemailNumber(CharSequence number) argument 96 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 | 58 * Stores a phone number of a call with the country code where it originally occurred. 60 * Note the country does not necessarily specifies the country of the phone number itself, but 64 public final String number; field in class:CallLogAdapter.NumberWithCountryIso 67 public NumberWithCountryIso(String number, String countryIso) { argument 68 this.number = number; 77 return TextUtils.equals(number, other.number) 83 return (number == null ? 0 : number 113 public final String number; field in class:CallLogAdapter.ContactInfoRequest 119 ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) argument 317 enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, boolean immediate) argument 343 queryContactInfo(String number, String countryIso, ContactInfo callLogInfo) argument 596 updateCallLogContactInfoCache(String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) argument 715 injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) argument 734 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;
|
H A D | DefaultVoicemailNotifier.java | 104 // Maps each number into a name: if a number is in the map, it has already left a more 113 // Check if we already know the name associated with this number. 114 String name = names.get(newCall.number); 117 name = mNameLookupQuery.query(newCall.number); 118 // If we cannot lookup the contact, use the number instead. 120 name = mPhoneNumberHelper.getDisplayNumber(newCall.number, "").toString(); 122 name = newCall.number; 125 names.put(newCall.number, name); 176 R.string.notification_new_voicemail_ticker, names.get(callToNotify.number)); 198 public final String number; field in class:DefaultVoicemailNotifier.NewCall 200 NewCall(Uri callsUri, Uri voicemailUri, String number) argument 275 query(String number) argument 298 query(String number) 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 | 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 210 onPostExecute(String number) argument [all...] |
H A D | OutgoingCallBroadcaster.java | 48 * Emergency calls and calls where no number is present (like for a CDMA 49 * "empty flash" or a nonexistent voicemail number) are exempt from being 88 * a modified phone number and optional provider info (uri + package name + remote views.) 102 String number; 113 // is used as the actual number to call. (If null, no call will be 116 number = getResultData(); 117 if (VDBG) Log.v(TAG, "- got number from resultData: '" + number + "'"); 163 if (number == null) { 164 if (DBG) Log.v(TAG, "CALL cancelled (null number), returnin 236 startSipCallOptionHandler(Context context, Intent intent, Uri uri, String number) argument [all...] |
H A D | CallController.java | 169 * (4) Here in CallController.placeCall() we read the phone number or SIP 206 String number = PhoneNumberUtils.getNumberFromIntent(intent, mApp); 211 log("- number: " + number); 330 String number; 346 number = getInitialNumber(intent); 347 if (VDBG) log("- actual number to dial: '" + number + "'"); 352 // or by number, i.e. for international, 359 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUr [all...] |
H A D | BluetoothAtPhonebook.java | 62 * BT periphals don't. Limit the number we'll report. */ 109 /** Returns the last dialled number, or null if no numbers have been called */ 123 String number = cursor.getString(column); 125 return number; 420 String number = pbr.cursor.getString(pbr.numberColumn); 428 query(Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, number), 438 if (DBG && name == null) log("Caller ID lookup failed for " + number); 452 if (number == null) number = ""; 453 int regionType = PhoneNumberUtils.toaFromString(number); [all...] |
H A D | CallForwardEditPreference.java | 87 final String number = getPhoneNumber(); 94 && number.equals(callForwardInfo.number)) { 100 + ", number=" + number); 102 // Display no forwarding number while we're waiting for 110 number, 128 setPhoneNumber(callForwardInfo.number); 134 final String number = getRawPhoneNumber(); 135 if (number ! [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/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 | 20 for (String number : numbers) { 21 if (!TextUtils.isEmpty(number)) { 22 list.add(Contact.get(number, canBlock)); 32 for (String number : semiSepNumbers.split(";")) { 33 if (!TextUtils.isEmpty(number)) { 34 Contact contact = Contact.get(number, canBlock); 36 contact.setNumber(number); 76 if (entry != null && !TextUtils.isEmpty(entry.number)) { 77 Contact contact = Contact.get(entry.number, canBlock); 130 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 | 83 private boolean mNumberIsModified; // true if the number is modified 101 private Contact(String number, String name) { argument 102 init(number, name); 105 * Make a basic contact object with a phone number. 107 private Contact(String number) { argument 108 init(number, ""); 116 private void init(String number, String name) { argument 119 setNumber(number); 129 return String.format("{ number=%s, name=%s, nameAndNumber=%s, label=%s, person_id=%d, hash=%d method_id=%d }", 161 public static Contact get(String number, boolea argument 205 formatNameAndNumber(String name, String number, String numberE164) argument 232 setNumber(String number) argument 534 get(String number, boolean canBlock) argument 538 get(String number, boolean isMe, boolean canBlock) argument 784 isAlphaNumber(String number) argument 809 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 | DataRowHandlerForPhoneNumber.java | 32 * Handler for phone number data rows. 46 String number = values.getAsString(Phone.NUMBER); 49 PhoneNumberUtils.formatNumberToE164(number, mDbHelper.getCurrentCountryIso()); 55 updatePhoneLookup(db, rawContactId, dataId, number, numberE164); 70 String number = null; 73 number = values.getAsString(Phone.NUMBER); 74 if (number != null) { 75 numberE164 = PhoneNumberUtils.formatNumberToE164(number, 90 updatePhoneLookup(db, rawContactId, dataId, number, numberE164); 113 String number, Strin 112 updatePhoneLookup(SQLiteDatabase db, long rawContactId, long dataId, String number, String numberE164) argument [all...] |
H A D | DefaultCallLogInsertionHelper.java | 36 * It uses {@link PhoneNumberOfflineGeocoder} to compute the geocoded location of a phone number. 60 // Insert the current country code, so we know the country the number belongs to. 79 private PhoneNumber parsePhoneNumber(String number, String countryIso) { argument 81 return getPhoneNumberUtil().parse(number, countryIso); 95 public String getGeocodedLocationFor(String number, String countryIso) { argument 96 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
|
/packages/apps/Contacts/src/com/android/contacts/ |
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 | 35 private static final String NUMBER = "number"; 44 * @param number The number that was set. 46 void onNumberSet(int number); argument 55 * @param number The initial number. 59 int number, 63 this(context, AlertDialog.THEME_HOLO_LIGHT, callBack, number, rangeMin, rangeMax, title); 70 * @param number The initial number 57 NumberPickerDialog(Context context, OnNumberSetListener callBack, int number, int rangeMin, int rangeMax, int title) argument 72 NumberPickerDialog(Context context, int theme, OnNumberSetListener callBack, int number, int rangeMin, int rangeMax, int title) argument [all...] |
H A D | RecipientsEditor.java | 129 for (String number : numbers) { 130 Contact contact = Contact.get(number, blocking); 131 contact.setNumber(number); 137 private boolean isValidAddress(String number, boolean isMms) { argument 139 return MessageUtils.isValidMmsAddress(number); 141 // TODO: PhoneNumberUtils.isWellFormedSmsAddress() only check if the number is a valid 145 return PhoneNumberUtils.isWellFormedSmsAddress(number) 146 || Mms.isEmailAddress(number); 151 for (String number : mTokenizer.getNumbers()) { 152 if (isValidAddress(number, isMm [all...] |
H A D | RecipientsAdapter.java | 43 * This adapter is used to filter contacts on both name and number. 85 String number = cursor.getString(RecipientsAdapter.NUMBER_INDEX); 86 if (number == null) { 89 number = number.trim(); 110 String nameAndNumber = Contact.formatNameAndNumber( name, number, 120 out.setSpan(new Annotation("name", number), 0, len, 129 out.setSpan(new Annotation("number", number), 0, len, 154 TextView number [all...] |