Lines Matching refs:number

43  * Looks up caller information for the given phone number.
69 * connection. This is especially relevant for the phone number field,
74 * 2. Device recognizes that this is an emergency number
80 * for a connection, but the number should be displayable.
93 /* Split up the phoneLabel into number type and label name */
155 * number. The returned CallerInfo is null if no number is supplied.
183 // Look for the number
189 // Look for the normalized number
253 * number. The returned CallerInfo is null if no number is supplied.
262 * getCallerInfo given a phone number, look up in the call-log database
265 * @param number the phone number used to lookup caller id
267 * number. The returned CallerInfo is null if no number is supplied. If
268 * a matching number is not found, then a generic caller info is returned,
271 public static CallerInfo getCallerInfo(Context context, String number) {
272 if (VDBG) Log.v(TAG, "getCallerInfo() based on number...");
274 if (TextUtils.isEmpty(number)) {
278 // Change the callerInfo number ONLY if it is an emergency number
279 // or if it is the voicemail number. If it is either, take a
281 if (PhoneNumberUtils.isLocalEmergencyNumber(number, context)) {
283 } else if (PhoneNumberUtils.isVoiceMailNumber(number)) {
287 Uri contactUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));
290 info = doSecondaryLookupIfNecessary(context, number, info);
292 // if no query results were returned with a viable number,
293 // fill in the original number value we used to query with.
295 info.phoneNumber = number;
304 * could be a PSTN number in the contact database.
307 * @param number the original phone number, could be a SIP URI
312 String number, CallerInfo previousResult) {
314 && PhoneNumberUtils.isUriNumber(number)) {
315 String username = PhoneNumberUtils.getUsernameFromUriNumber(number);
327 * number.
330 * @param number a phone number.
331 * @return if the number belongs to a contact, the contact's name is
332 * returned; otherwise, the number itself is returned.
341 public static String getCallerId(Context context, String number) {
342 CallerInfo info = getCallerInfo(context, number);
351 callerID = number;
361 * @return true if the caller info is an emergency number.
368 * @return true if the caller info is a voicemail number.
379 // TODO: Note we're setting the phone number here (refer to
383 // should set the phone number to the dialed number and name to
402 // TODO: As in the emergency number handling, we end up writing a
403 // string in the phone number field.
414 // permission to retrieve VM number and would not call
512 * phone number in the phoneNumber field.
520 * this specifies a fallback number to use instead.
523 String number = TextUtils.isEmpty(phoneNumber) ? fallbackNumber : phoneNumber;
524 geoDescription = getGeoDescription(context, number);
528 * @return a geographical description string for the specified number.
531 private static String getGeoDescription(Context context, String number) {
532 if (VDBG) Log.v(TAG, "getGeoDescription('" + number + "')...");
534 if (TextUtils.isEmpty(number)) {
545 if (VDBG) Log.v(TAG, "parsing '" + number
547 pn = util.parse(number, countryIso);
548 if (VDBG) Log.v(TAG, "- parsed number: " + pn);
550 Log.w(TAG, "getGeoDescription: NumberParseException for incoming number '" + number + "'");