Lines Matching defs:number

45  * Looks up caller information for the given phone number.
67 * connection. This is especially relevant for the phone number field,
72 * 2. Device recognizes that this is an emergency number
78 * for a connection, but the number should be displayable.
91 /* Split up the phoneLabel into number type and label name */
153 * number. The returned CallerInfo is null if no number is supplied.
181 // Look for the number
187 // Look for the normalized number
251 * number. The returned CallerInfo is null if no number is supplied.
260 * getCallerInfo given a phone number, look up in the call-log database
263 * @param number the phone number used to lookup caller id
265 * number. The returned CallerInfo is null if no number is supplied. If
266 * a matching number is not found, then a generic caller info is returned,
269 public static CallerInfo getCallerInfo(Context context, String number) {
270 if (VDBG) Rlog.v(TAG, "getCallerInfo() based on number...");
272 if (TextUtils.isEmpty(number)) {
276 // Change the callerInfo number ONLY if it is an emergency number
277 // or if it is the voicemail number. If it is either, take a
279 if (PhoneNumberUtils.isLocalEmergencyNumber(number, context)) {
281 } else if (PhoneNumberUtils.isVoiceMailNumber(number)) {
285 Uri contactUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));
288 info = doSecondaryLookupIfNecessary(context, number, info);
290 // if no query results were returned with a viable number,
291 // fill in the original number value we used to query with.
293 info.phoneNumber = number;
302 * could be a PSTN number in the contact database.
305 * @param number the original phone number, could be a SIP URI
310 String number, CallerInfo previousResult) {
312 && PhoneNumberUtils.isUriNumber(number)) {
313 String username = PhoneNumberUtils.getUsernameFromUriNumber(number);
325 * number.
328 * @param number a phone number.
329 * @return if the number belongs to a contact, the contact's name is
330 * returned; otherwise, the number itself is returned.
339 public static String getCallerId(Context context, String number) {
340 CallerInfo info = getCallerInfo(context, number);
349 callerID = number;
359 * @return true if the caller info is an emergency number.
366 * @return true if the caller info is a voicemail number.
377 // TODO: Note we're setting the phone number here (refer to
381 // should set the phone number to the dialed number and name to
400 // TODO: As in the emergency number handling, we end up writing a
401 // string in the phone number field.
412 // permission to retrieve VM number and would not call
510 * phone number in the phoneNumber field.
518 * this specifies a fallback number to use instead.
521 String number = TextUtils.isEmpty(phoneNumber) ? fallbackNumber : phoneNumber;
522 geoDescription = getGeoDescription(context, number);
526 * @return a geographical description string for the specified number.
529 private static String getGeoDescription(Context context, String number) {
530 if (VDBG) Rlog.v(TAG, "getGeoDescription('" + number + "')...");
532 if (TextUtils.isEmpty(number)) {
543 if (VDBG) Rlog.v(TAG, "parsing '" + number
545 pn = util.parse(number, countryIso);
546 if (VDBG) Rlog.v(TAG, "- parsed number: " + pn);
548 Rlog.w(TAG, "getGeoDescription: NumberParseException for incoming number '" + number + "'");