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

1234

/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DPhoneNumberHelper.java36 /** 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 DContactInfoHelper.java30 * 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 DCallLogAdapter.java57 * 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 DContactInfo.java32 public String number; field in class:ContactInfo
64 if (!TextUtils.equals(number, other.number)) return false;
H A DDefaultVoicemailNotifier.java109 // Maps each number into a name: if a number is in the map, it has already left a more
118 // Check if we already know the name associated with this number.
119 String name = names.get(newCall.number);
122 name = mNameLookupQuery.query(newCall.number);
123 // If we cannot lookup the contact, use the number instead.
125 name = mPhoneNumberHelper.getDisplayNumber(newCall.number, "").toString();
127 name = newCall.number;
130 names.put(newCall.number, name);
190 R.string.notification_new_voicemail_ticker, names.get(callToNotify.number)));
212 public final String number; field in class:DefaultVoicemailNotifier.NewCall
214 NewCall(Uri callsUri, Uri voicemailUri, String number) argument
292 query(String number) argument
315 query(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/apps/Phone/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 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...]
H A DOutgoingCallBroadcaster.java54 * Emergency calls and calls where no number is present (like for a CDMA
55 * "empty flash" or a nonexistent voicemail number) are exempt from being
115 * a modified phone number and optional provider info (uri + package name + remote views.)
132 String number;
143 // is used as the actual number to call. (If null, no call will be
146 number = getResultData();
147 if (VDBG) Log.v(TAG, "- got number from resultData: '" + number + "'");
193 if (number == null) {
194 if (DBG) Log.v(TAG, "CALL cancelled (null number), returnin
266 startSipCallOptionHandler(Context context, Intent intent, Uri uri, String number) argument
[all...]
H A DCallController.java170 * (4) Here in CallController.placeCall() we read the phone number or SIP
207 String number = PhoneNumberUtils.getNumberFromIntent(intent, mApp);
212 log("- number: " + number);
333 String number;
349 number = PhoneUtils.getInitialNumber(intent);
350 if (VDBG) log("- actual number to dial: '" + number + "'");
355 // or by number, i.e. for international,
360 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUr
[all...]
H A DCallForwardEditPreference.java104 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/Contacts/tests/src/com/android/contacts/calllog/
H A DTestPhoneNumberHelper.java23 * voicemail number.
34 public boolean isVoicemailNumber(CharSequence number) { argument
35 return mVoicemailNumber.equals(number);
H A DCallLogAdapterTest.java58 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 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...]
H A DContact.java82 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 DCallLogInsertionHelper.java27 /** Returns the geocoded location for a given phone number. */
28 public String getGeocodedLocationFor(String number, String countryIso); argument
H A DDefaultCallLogInsertionHelper.java35 * 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 DDataRowHandlerForPhoneNumber.java32 * 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/Contacts/src/com/android/contacts/
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 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 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/apps/Phone/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...]
H A DRecipientsAdapter.java43 * 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...]

Completed in 284 milliseconds

1234