Lines Matching refs:phoneUtil
55 private PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance(); field in PhoneNumberParserServlet
137 PhoneNumber number = phoneUtil.parseAndKeepRawInput(numberStr, defaultCountry); in getOutputForFile()
138 boolean isNumberValid = phoneUtil.isValidNumber(number); in getOutputForFile()
140 ? phoneUtil.formatInOriginalFormat(number, defaultCountry) in getOutputForFile()
143 ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) in getOutputForFile()
173 PhoneNumber number = phoneUtil.parseAndKeepRawInput(phoneNumber, defaultCountry); in getOutputForSingleNumber()
187 boolean isPossible = phoneUtil.isPossibleNumber(number); in getOutputForSingleNumber()
188 boolean isNumberValid = phoneUtil.isValidNumber(number); in getOutputForSingleNumber()
189 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getOutputForSingleNumber()
197 phoneUtil.isPossibleNumberWithReason(number).toString(), output); in getOutputForSingleNumber()
206 Boolean.toString(phoneUtil.isValidNumberForRegion(number, defaultCountry)), in getOutputForSingleNumber()
210 String region = phoneUtil.getRegionCodeForNumber(number); in getOutputForSingleNumber()
221 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.E164) : "invalid", in getOutputForSingleNumber()
224 phoneUtil.formatInOriginalFormat(number, defaultCountry), output); in getOutputForSingleNumber()
225 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output); in getOutputForSingleNumber()
228 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) : "invalid", in getOutputForSingleNumber()
232 isNumberValid ? phoneUtil.formatOutOfCountryCallingNumber(number, "US") : "invalid", in getOutputForSingleNumber()
236 isNumberValid ? phoneUtil.formatOutOfCountryCallingNumber(number, "CH") : "invalid", in getOutputForSingleNumber()
241 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(defaultCountry); in getOutputForSingleNumber()