Searched refs:nationalNumber (Results 1 – 10 of 10) sorted by relevance
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/ |
D | AsYouTypeFormatter.java | 107 private StringBuilder nationalNumber = new StringBuilder(); field in AsYouTypeFormatter 245 if (aPhoneNumber.length() < nationalNumber.length()) { in getFormattingTemplate() 268 nationalNumber.setLength(0); in clear() 363 return prefixBeforeNationalNumber + nationalNumber.toString(); in inputDigitWithOptionToRememberPosition() 373 narrowDownPossibleFormats(nationalNumber.toString()); in inputDigitWithOptionToRememberPosition() 406 nationalNumber.insert(0, extractedNationalPrefix); in ableToExtractLongerNdd() 428 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits() 478 private String appendNationalNumber(String nationalNumber) { in appendNationalNumber() argument 487 + nationalNumber; in appendNationalNumber() 489 return prefixBeforeNationalNumber + nationalNumber; in appendNationalNumber() [all …]
|
D | PhoneNumberUtil.java | 1652 String nationalNumber = getNationalSignificantNumber(number); 1654 chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); 1731 String nationalNumber = getNationalSignificantNumber(number); 1733 chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); 1782 String nationalNumber = getNationalSignificantNumber(number); 1783 if (nationalNumber.length() > 3) { 1784 int firstNationalNumberDigit = rawInput.indexOf(nationalNumber.substring(0, 3)); 1798 nationalNumber); 1862 StringBuilder nationalNumber = new StringBuilder(); 1866 nationalNumber.append(new String(zeros)); [all …]
|
D | ShortNumberInfo.java | 330 String nationalNumber = getNationalSignificantNumber(number); in getRegionCodeForShortNumberFromRegionList() local 334 && matchesPossibleNumberAndNationalNumber(nationalNumber, phoneMetadata.getShortCode())) { in getRegionCodeForShortNumberFromRegionList() 473 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecific() local 476 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecific() 497 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecificForRegion() local 501 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecificForRegion() 542 StringBuilder nationalNumber = new StringBuilder(); in getNationalSignificantNumber() local 546 nationalNumber.append(new String(zeros)); in getNationalSignificantNumber() 548 nationalNumber.append(number.getNationalNumber()); in getNationalSignificantNumber() 549 return nationalNumber.toString(); in getNationalSignificantNumber()
|
D | PhoneNumberMatcher.java | 669 String nationalNumber = util.getNationalSignificantNumber(number); in isNationalPrefixPresentIfRequired() local 671 util.chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); in isNationalPrefixPresentIfRequired()
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | AsYouTypeFormatter.java | 105 private StringBuilder nationalNumber = new StringBuilder(); field in AsYouTypeFormatter 243 if (aPhoneNumber.length() < nationalNumber.length()) { in getFormattingTemplate() 265 nationalNumber.setLength(0); in clear() 358 return prefixBeforeNationalNumber + nationalNumber.toString(); in inputDigitWithOptionToRememberPosition() 368 narrowDownPossibleFormats(nationalNumber.toString()); in inputDigitWithOptionToRememberPosition() 401 nationalNumber.insert(0, extractedNationalPrefix); in ableToExtractLongerNdd() 423 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits() 472 private String appendNationalNumber(String nationalNumber) { in appendNationalNumber() argument 481 + nationalNumber; in appendNationalNumber() 483 return prefixBeforeNationalNumber + nationalNumber; in appendNationalNumber() [all …]
|
D | PhoneNumberUtil.java | 1616 String nationalNumber = getNationalSignificantNumber(number); 1618 chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); 1695 String nationalNumber = getNationalSignificantNumber(number); 1697 chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); 1746 String nationalNumber = getNationalSignificantNumber(number); 1747 if (nationalNumber.length() > 3) { 1748 int firstNationalNumberDigit = rawInput.indexOf(nationalNumber.substring(0, 3)); 1762 nationalNumber); 1825 StringBuilder nationalNumber = new StringBuilder(); 1829 nationalNumber.append(new String(zeros)); [all …]
|
D | ShortNumberInfo.java | 327 String nationalNumber = getNationalSignificantNumber(number); in getRegionCodeForShortNumberFromRegionList() local 331 && matchesPossibleNumberAndNationalNumber(nationalNumber, phoneMetadata.getShortCode())) { in getRegionCodeForShortNumberFromRegionList() 470 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecific() local 473 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecific() 494 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecificForRegion() local 498 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecificForRegion() 539 StringBuilder nationalNumber = new StringBuilder(); in getNationalSignificantNumber() local 543 nationalNumber.append(new String(zeros)); in getNationalSignificantNumber() 545 nationalNumber.append(number.getNationalNumber()); in getNationalSignificantNumber() 546 return nationalNumber.toString(); in getNationalSignificantNumber()
|
D | PhoneNumberMatcher.java | 668 String nationalNumber = util.getNationalSignificantNumber(number); in isNationalPrefixPresentIfRequired() local 670 util.chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); in isNationalPrefixPresentIfRequired()
|
/external/libphonenumber/repackaged/geocoder/src/com/android/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 122 String nationalNumber = phoneUtil.getNationalSignificantNumber(number); in getDescriptionForValidNumber() local 123 if (!mobileToken.equals("") && nationalNumber.startsWith(mobileToken)) { in getDescriptionForValidNumber() 126 nationalNumber = nationalNumber.substring(mobileToken.length()); in getDescriptionForValidNumber() 130 copiedNumber = phoneUtil.parse(nationalNumber, region); in getDescriptionForValidNumber()
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 119 String nationalNumber = phoneUtil.getNationalSignificantNumber(number); in getDescriptionForValidNumber() local 120 if (!mobileToken.equals("") && nationalNumber.startsWith(mobileToken)) { in getDescriptionForValidNumber() 123 nationalNumber = nationalNumber.substring(mobileToken.length()); in getDescriptionForValidNumber() 127 copiedNumber = phoneUtil.parse(nationalNumber, region); in getDescriptionForValidNumber()
|