Home | History | Annotate | Download | only in phone

Lines Matching refs:number

87     static final int CALL_STATUS_DIALED = 0;  // The number was successfully dialed
88 static final int CALL_STATUS_DIALED_MMI = 1; // The specified number was an MMI code
559 * Dial the number using the phone passed in.
567 * @param number to be dialed as requested by the user. This is
568 * NOT the phone number to connect to. It is used only to build the
580 String number, Uri contactRef, boolean isEmergencyCall,
583 log("placeCall()... number: '" + number + "'"
588 log("placeCall()... number: " + toLogSafePhoneNumber(number)
597 PhoneUtils.isRoutableViaGateway(number)) { // Filter out MMI, OTA and other codes.
619 numberToDial = number;
645 if (DBG) log("dialed MMI code: " + number);
655 // Clean up the number to be displayed.
657 number = CdmaConnection.formatDialString(number);
659 number = PhoneNumberUtils.extractNetworkPortion(number);
660 number = PhoneNumberUtils.convertKeypadLettersToDigits(number);
661 number = PhoneNumberUtils.formatNumber(number);
688 // CallerInfo object to update the dialed number with the one
689 // requested by the user (and not the provider's gateway number).
696 // Fallback, lookup contact using the phone number if the
700 info = CallerInfo.getCallerInfo(context, number);
702 info.phoneNumber = number;
723 /* package */ static String toLogSafePhoneNumber(String number) {
724 // For unknown number, log empty string.
725 if (number == null) {
731 return number;
737 for (int i = 0; i < number.length(); i++) {
738 char c = number.charAt(i);
1174 * initiated this outgoing call), figure out the actual phone number we
1177 * Note that the returned "number" may actually be a SIP address,
1184 * phone number with separators and keypad letters stripped out, or a raw
1187 * @return the phone number corresponding to the specified Intent, or null
1193 * number configured on the device.
1205 // number from there. (That extra takes precedence over the actual data
1221 * Gets the phone number to be called from an intent. Requires a Context
1223 * number.
1231 * "number" is actually the SIP address.
1238 * have a voicemail number set.
1240 * @return the phone number (or SIP address) that would be called by the intent,
1241 * or <code>null</code> if the number cannot be found.
1257 final String number = PhoneNumberUtils.getNumberFromIntent(intent, context);
1259 // Check for a voicemail-dialing request. If the voicemail number is
1262 (number == null || TextUtils.isEmpty(number)))
1265 return number;
1271 * extract a phone number from the specified Connection, and feed that
1272 * number into CallerInfo.getCallerInfo().)
1276 * phone number from the Connection.
1307 // querying a new CallerInfo using the connection's phone number.
1308 String number = c.getAddress();
1310 if (DBG) log("getCallerInfo: number = " + toLogSafePhoneNumber(number));
1312 if (!TextUtils.isEmpty(number)) {
1313 info = CallerInfo.getCallerInfo(context, number);
1392 // will not be attached, like when the number is empty (caller id
1399 // Note: For the case where a number is NOT retrievable, we leave
1424 // querying a new CallerInfo using the connection's phone number.
1425 String number = c.getAddress();
1428 log("PhoneUtils.startGetCallerInfo: new query for phone number...");
1429 log("- number (address): " + toLogSafePhoneNumber(number));
1447 // here regardless of whether the number is empty or not).
1455 log("startGetCallerInfo: number = " + number);
1458 + ", Name/Number Pres=" + cit.currentInfo.numberPresentation);
1461 // handling case where number is null (caller id hidden) as well.
1462 if (!TextUtils.isEmpty(number)) {
1465 number = modifyForSpecialCnapCases(context, cit.currentInfo, number,
1468 cit.currentInfo.phoneNumber = number;
1469 // For scenarios where we may receive a valid number from the network but a
1477 number, sCallerInfoQueryListener, c);
1482 number that
1494 log("startGetCallerInfo: query based on number: " + toLogSafePhoneNumber(number));
1503 // handling case where number is null (caller id hidden) as well.
1510 // handling case where number/name gets updated later on by the network
1535 + ", Name/Number Pres=" + cit.currentInfo.numberPresentation);
1539 // For scenarios where we may receive a valid number from the network but a
1565 + ", Name/Number Pres=" + cit.currentInfo.numberPresentation);
1610 // If the number presentation has not been set by
1630 // No matching contact was found for this number.
1639 newCi.phoneNumber = ci.phoneNumber; // To get formatted phone number
1663 // the phone number being displayed, if applicable.
1695 * Watch out: This method simply checks the number of Connections,
1729 // the number of ACTIVE connections, not the total number of
2217 * Based on the input CNAP number string,
2234 if (DBG) log("checkCnapSpecialCases, normal str. number: " + n);
2241 * from the network to indicate different number presentations, convert them to
2242 * expected number and presentation values within the CallerInfo object.
2243 * @param number number we use to verify if we are in a corner case
2245 * @return the new String that should be used for the phone number
2248 String number, int presentation) {
2249 // Obviously we return number if ci == null, but still return number if
2250 // number == null, because in these cases the correct string will still be
2252 if (ci == null || number == null) return number;
2255 log("modifyForSpecialCnapCases: initially, number="
2256 + toLogSafePhoneNumber(number)
2260 // "ABSENT NUMBER" is a possible value we could get from the network as the
2261 // phone number, so if this happens, change it to "Unknown" in the CallerInfo
2265 if (Arrays.asList(absentNumberValues).contains(number)
2267 number = context.getString(R.string.unknown);
2279 int cnapSpecialCase = checkCnapSpecialCases(number);
2281 // For all special strings, change number & numberPresentation.
2283 number = context.getString(R.string.private_num);
2285 number = context.getString(R.string.unknown);
2288 log("SpecialCnap: number=" + toLogSafePhoneNumber(number)
2295 log("modifyForSpecialCnapCases: returning number string="
2296 + toLogSafePhoneNumber(number));
2298 return number;
2391 * @param uri A 'tel:' URI with the gateway phone number.
2407 * Check if a phone number can be route through a 3rd party
2408 * gateway. The number must be a global phone number in numerical
2411 * MMI codes and the like cannot be used as a dial number for the
2414 * @param number To be dialed via a 3rd party gateway.
2415 * @return true If the number can be routed through the 3rd party network.
2417 /* package */ static boolean isRoutableViaGateway(String number) {
2418 if (TextUtils.isEmpty(number)) {
2421 number = PhoneNumberUtils.stripSeparators(number);
2422 if (!number.equals(PhoneNumberUtils.convertKeypadLettersToDigits(number))) {
2425 number = PhoneNumberUtils.extractNetworkPortion(number);
2426 return PhoneNumberUtils.isGlobalPhoneNumber(number);
2474 * to the specified number.
2477 * @param scheme the scheme from the data URI that the number originally came from.
2478 * @param number the phone number, or SIP address.
2481 String scheme, String number, String primarySipUri) {
2484 + ", number " + toLogSafePhoneNumber(number)