Lines Matching refs:number

48  * Looks up caller information for the given phone number.
73 * connection. This is especially relevant for the phone number field,
78 * 2. Device recognizes that this is an emergency number
84 * for a connection, but the number should be displayable.
97 /* Split up the phoneLabel into number type and label name */
171 * number. The returned CallerInfo is null if no number is supplied.
200 // Look for the number
206 // Look for the normalized number
301 * number. The returned CallerInfo is null if no number is supplied.
318 * getCallerInfo given a phone number, look up in the call-log database
321 * @param number the phone number used to lookup caller id
323 * number. The returned CallerInfo is null if no number is supplied. If
324 * a matching number is not found, then a generic caller info is returned,
327 public static CallerInfo getCallerInfo(Context context, String number) {
328 if (VDBG) Rlog.v(TAG, "getCallerInfo() based on number...");
331 return getCallerInfo(context, number, subId);
335 * getCallerInfo given a phone number and subscription, look up in the call-log database
338 * @param number the phone number used to lookup caller id
339 * @param subId the subscription for checking for if voice mail number or not
341 * number. The returned CallerInfo is null if no number is supplied. If
342 * a matching number is not found, then a generic caller info is returned,
345 public static CallerInfo getCallerInfo(Context context, String number, int subId) {
347 if (TextUtils.isEmpty(number)) {
351 // Change the callerInfo number ONLY if it is an emergency number
352 // or if it is the voicemail number. If it is either, take a
354 if (PhoneNumberUtils.isLocalEmergencyNumber(context, number)) {
356 } else if (PhoneNumberUtils.isVoiceMailNumber(subId, number)) {
361 Uri.encode(number));
364 info = doSecondaryLookupIfNecessary(context, number, info);
366 // if no query results were returned with a viable number,
367 // fill in the original number value we used to query with.
369 info.phoneNumber = number;
378 * could be a PSTN number in the contact database.
381 * @param number the original phone number, could be a SIP URI
386 String number, CallerInfo previousResult) {
388 && PhoneNumberUtils.isUriNumber(number)) {
389 String username = PhoneNumberUtils.getUsernameFromUriNumber(number);
402 * @return true if the caller info is an emergency number.
409 * @return true if the caller info is a voicemail number.
420 // TODO: Note we're setting the phone number here (refer to
424 // should set the phone number to the dialed number and name to
443 // TODO: As in the emergency number handling, we end up writing a
444 // string in the phone number field.
462 // permission to retrieve VM number and would not call
560 * phone number in the phoneNumber field.
568 * this specifies a fallback number to use instead.
571 String number = TextUtils.isEmpty(phoneNumber) ? fallbackNumber : phoneNumber;
572 geoDescription = getGeoDescription(context, number);
576 * @return a geographical description string for the specified number.
579 public static String getGeoDescription(Context context, String number) {
580 if (VDBG) Rlog.v(TAG, "getGeoDescription('" + number + "')...");
582 if (TextUtils.isEmpty(number)) {
593 if (VDBG) Rlog.v(TAG, "parsing '" + number
595 pn = util.parse(number, countryIso);
596 if (VDBG) Rlog.v(TAG, "- parsed number: " + pn);
598 Rlog.w(TAG, "getGeoDescription: NumberParseException for incoming number '"
599 + Rlog.pii(TAG, number) + "'");