Home | History | Annotate | Download | only in phone

Lines Matching refs:number

58  * Emergency calls and calls where no number is present (like for a CDMA
59 * "empty flash" or a nonexistent voicemail number) are exempt from being
119 * a modified phone number and optional provider info (uri + package name + remote views.)
136 String number;
147 // is used as the actual number to call. (If null, no call will be
150 number = getResultData();
151 if (VDBG) Log.v(TAG, "- got number from resultData: '" + number + "'");
197 if (number == null) {
198 if (DBG) Log.v(TAG, "CALL cancelled (null number), returning...");
202 && (app.phone.isOtaSpNumber(number))) {
205 } else if (PhoneNumberUtils.isPotentialLocalEmergencyNumber(number, context)) {
209 // an outgoing call into an emergency number.
210 Log.w(TAG, "Cannot modify outgoing call to emergency number " + number + ".");
226 // too, since the number might have been modified/rewritten during
228 number = PhoneNumberUtils.convertKeypadLettersToDigits(number);
229 number = PhoneNumberUtils.stripSeparators(number);
233 if (VDBG) Log.v(TAG, "- actual number to dial: '" + number + "'");
235 startSipCallOptionHandler(context, intent, uri, number);
244 * (*) We now know exactly what phone number we need to dial, so the next
265 * @param number the actual number (or SIP address) to dial. This is
266 * guaranteed to be either a PSTN phone number with separators stripped
271 Uri uri, String number) {
276 Log.i(TAG, "- number: " + number);
284 newIntent.putExtra(EXTRA_ACTUAL_NUMBER_TO_DIAL, number);
405 String number = PhoneNumberUtils.getNumberFromIntent(intent, this);
406 // Check the number, don't convert for sip uri
408 if (number != null) {
409 if (!PhoneNumberUtils.isUriNumber(number)) {
410 number = PhoneNumberUtils.convertKeypadLettersToDigits(number);
411 number = PhoneNumberUtils.stripSeparators(number);
414 Log.w(TAG, "The number obtained from Intent is null.");
438 // of call (most likely an emergency number) that 3rd parties aren't allowed
453 // Check whether or not this is an emergency number, in order to
461 // "invalid" number like "9111234" that isn't technically an
462 // emergency number but might still result in an emergency call
465 (number != null) && PhoneNumberUtils.isLocalEmergencyNumber(number, this);
467 (number != null) && PhoneNumberUtils.isPotentialLocalEmergencyNumber(number, this);
469 Log.v(TAG, " - Checking restrictions for number '" + number + "':");
478 // from a trusted source (like the built-in dialer.) So even a number
479 // that's *potentially* an emergency number can safely be promoted to
483 Log.i(TAG, "ACTION_CALL_PRIVILEGED is used while the number is a potential"
484 + " emergency number. Use ACTION_CALL_EMERGENCY as an action instead.");
495 Log.w(TAG, "Cannot call potential emergency number '" + number
525 // emergency number.
527 Log.w(TAG, "Cannot call non-potential-emergency number " + number
551 // If number is null, we're probably trying to call a non-existent voicemail number,
553 // number, so there's no point in allowing apps to modify the number.
554 if (TextUtils.isEmpty(number)) {
561 Log.i(TAG, "onCreate: null or empty number, setting callNow=true...");
567 // This is a special kind of call (most likely an emergency number)
608 if (Constants.SCHEME_SIP.equals(scheme) || PhoneNumberUtils.isUriNumber(number)) {
609 Log.i(TAG, "The requested number was detected as SIP call.");
610 startSipCallOptionHandler(this, intent, uri, number);
620 if (number != null) {
621 broadcastIntent.putExtra(Intent.EXTRA_PHONE_NUMBER, number);
641 number, // initialData: initial value for the result data
677 // bring up a UI letting you do something useful with the phone number