Home
last modified time | relevance | path

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

/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java66 String defaultCountry = null; in doPost() local
82 defaultCountry = Streams.asString(in).toUpperCase(); in doPost()
109 resp.sendRedirect(getPermaLinkURL(phoneNumber, defaultCountry, geocodingLocale, in doPost()
112 resp.getWriter().println(getOutputForFile(defaultCountry, fileContents)); in doPost()
124 String defaultCountry = req.getParameter("country"); in doGet() local
125 if (defaultCountry == null) { in doGet()
126 defaultCountry = ""; in doGet()
138 getOutputForSingleNumber(phoneNumber, defaultCountry, geocodingLocale)); in doGet()
141 private StringBuilder getOutputForFile(String defaultCountry, String fileContents) { in getOutputForFile() argument
161 PhoneNumber number = phoneUtil.parseAndKeepRawInput(numberStr, defaultCountry); in getOutputForFile()
[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
990 doTestInContext(number, defaultCountry, contextPairs, Leniency.POSSIBLE); in findPossibleInContext()
997 private void findValidInContext(String number, String defaultCountry) { in findValidInContext() argument
1010 doTestInContext(number, defaultCountry, contextPairs, Leniency.VALID); in findValidInContext()
1013 private void doTestInContext(String number, String defaultCountry, in doTestInContext() argument
1022 phoneUtil.findNumbers(text, defaultCountry, leniency, Long.MAX_VALUE).iterator(); in doTestInContext()
[all …]
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DAsYouTypeFormatter.java61 private String defaultCountry; field in AsYouTypeFormatter
120 defaultCountry = regionCode; in AsYouTypeFormatter()
121 currentMetadata = getMetadataForRegion(defaultCountry); in AsYouTypeFormatter()
278 currentMetadata = getMetadataForRegion(defaultCountry); in clear()
608 } else if (!newRegionCode.equals(defaultCountry)) { in attemptToExtractCountryCallingCode()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java59 private String defaultCountry; field in AsYouTypeFormatter
118 defaultCountry = regionCode; in AsYouTypeFormatter()
119 currentMetadata = getMetadataForRegion(defaultCountry); in AsYouTypeFormatter()
275 currentMetadata = getMetadataForRegion(defaultCountry); in clear()
602 } else if (!newRegionCode.equals(defaultCountry)) { in attemptToExtractCountryCallingCode()
/external/libphonenumber/demo/war/
Dphonenumberparser.jsp21 <input type="text" name="defaultCountry" size="2">