Lines Matching defs:dialStr

2130      * The passed-in dialStr should only contain the valid format as described below,
2131 * 1) the 1st character in the dialStr should be one of the really dialable
2134 * 2) the dialStr should already strip out the separator characters,
2135 * every character in the dialStr should be one of the non separator characters
2141 * @param dialStr the original dial string
2150 public static String cdmaCheckAndProcessPlusCode(String dialStr) {
2151 if (!TextUtils.isEmpty(dialStr)) {
2152 if (isReallyDialable(dialStr.charAt(0)) &&
2153 isNonSeparator(dialStr)) {
2157 return cdmaCheckAndProcessPlusCodeByNumberFormat(dialStr,
2163 return dialStr;
2170 * @param dialStr the original dial string
2174 public static String cdmaCheckAndProcessPlusCodeForSms(String dialStr) {
2175 if (!TextUtils.isEmpty(dialStr)) {
2176 if (isReallyDialable(dialStr.charAt(0)) && isNonSeparator(dialStr)) {
2180 return cdmaCheckAndProcessPlusCodeByNumberFormat(dialStr, format, format);
2184 return dialStr;
2205 * @param dialStr the original dial string
2215 cdmaCheckAndProcessPlusCodeByNumberFormat(String dialStr,int currFormat,int defaultFormat) {
2216 String retStr = dialStr;
2221 if (dialStr != null &&
2222 dialStr.lastIndexOf(PLUS_SIGN_STRING) != -1) {
2226 String tempDialStr = dialStr;
2230 if (DBG) log("checkAndProcessPlusCode,dialStr=" + dialStr);
2255 // This should never happen since we checked the if dialStr is null
2259 return dialStr;
2321 public static boolean isNanp (String dialStr) {
2323 if (dialStr != null) {
2324 if (dialStr.length() == NANP_LENGTH) {
2325 if (isTwoToNine(dialStr.charAt(0)) &&
2326 isTwoToNine(dialStr.charAt(3))) {
2329 char c=dialStr.charAt(i);
2338 Rlog.e("isNanp: null dialStr passed in", dialStr);
2346 private static boolean isOneNanp(String dialStr) {
2348 if (dialStr != null) {
2349 String newDialStr = dialStr.substring(1);
2350 if ((dialStr.charAt(0) == '1') && isNanp(newDialStr)) {
2354 Rlog.e("isOneNanp: null dialStr passed in", dialStr);
2445 appendPwCharBackToOrigDialStr(int dialableIndex,String origStr, String dialStr) {
2451 ret = ret.append(dialStr.charAt(0));
2456 String nonDigitStr = dialStr.substring(0,dialableIndex);