Searched refs:defaultCountry (Results 1 – 4 of 4) sorted by relevance
/external/libphonenumber/demo/src/com/google/phonenumbers/ |
D | PhoneNumberParserServlet.java | 58 String defaultCountry = null; in doPost() local 74 defaultCountry = Streams.asString(in).toUpperCase(); in doPost() 97 output = getOutputForSingleNumber(phoneNumber, defaultCountry, languageCode, regionCode); in doPost() 106 resp.getWriter().println("defaultCountry entered: " + defaultCountry + "<br>"); in doPost() 111 output = getOutputForFile(defaultCountry, fileContents); in doPost() 118 private StringBuilder getOutputForFile(String defaultCountry, String fileContents) { in getOutputForFile() argument 137 PhoneNumber number = phoneUtil.parseAndKeepRawInput(numberStr, defaultCountry); in getOutputForFile() 140 ? phoneUtil.formatInOriginalFormat(number, defaultCountry) in getOutputForFile() 170 String phoneNumber, String defaultCountry, String languageCode, String regionCode) { in getOutputForSingleNumber() argument 173 PhoneNumber number = phoneUtil.parseAndKeepRawInput(phoneNumber, defaultCountry); in getOutputForSingleNumber() [all …]
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberMatcherTest.java | 945 private void doTestFindInContext(String number, String defaultCountry) throws Exception { in doTestFindInContext() argument 946 findPossibleInContext(number, defaultCountry); in doTestFindInContext() 948 PhoneNumber parsed = phoneUtil.parse(number, defaultCountry); in doTestFindInContext() 950 findValidInContext(number, defaultCountry); in doTestFindInContext() 957 private void findPossibleInContext(String number, String defaultCountry) { in findPossibleInContext() argument 987 doTestInContext(number, defaultCountry, contextPairs, Leniency.POSSIBLE); in findPossibleInContext() 994 private void findValidInContext(String number, String defaultCountry) { in findValidInContext() argument 1007 doTestInContext(number, defaultCountry, contextPairs, Leniency.VALID); in findValidInContext() 1010 private void doTestInContext(String number, String defaultCountry, in doTestInContext() argument 1019 phoneUtil.findNumbers(text, defaultCountry, leniency, Long.MAX_VALUE).iterator(); in doTestInContext() [all …]
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | AsYouTypeFormatter.java | 59 private String defaultCountry; field in AsYouTypeFormatter 128 defaultCountry = regionCode; in AsYouTypeFormatter() 129 currentMetadata = getMetadataForRegion(defaultCountry); in AsYouTypeFormatter() 284 currentMetadata = getMetadataForRegion(defaultCountry); in clear() 609 } else if (!newRegionCode.equals(defaultCountry)) { in attemptToExtractCountryCallingCode()
|
/external/libphonenumber/demo/war/ |
D | phonenumberparser.jsp | 21 <input type="text" name="defaultCountry" size="2">
|