Home
last modified time | relevance | path

Searched refs:defaultCountry (Results 1 – 4 of 4) sorted by relevance

/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java58 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/
DPhoneNumberMatcherTest.java945 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/
DAsYouTypeFormatter.java59 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/
Dphonenumberparser.jsp21 <input type="text" name="defaultCountry" size="2">