Home | History | Annotate | Download | only in phonenumbers

Lines Matching defs:phoneUtil

62   private PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
161 PhoneNumber number = phoneUtil.parseAndKeepRawInput(numberStr, defaultCountry);
162 boolean isNumberValid = phoneUtil.isValidNumber(number);
164 ? phoneUtil.formatInOriginalFormat(number, defaultCountry)
167 ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL)
256 PhoneNumber number = phoneUtil.parseAndKeepRawInput(phoneNumber, defaultCountry);
270 boolean isPossible = phoneUtil.isPossibleNumber(number);
271 boolean isNumberValid = phoneUtil.isValidNumber(number);
272 PhoneNumberType numberType = phoneUtil.getNumberType(number);
281 phoneUtil.isPossibleNumberWithReason(number).toString(), output);
290 Boolean.toString(phoneUtil.isValidNumberForRegion(number, defaultCountry)),
294 String region = phoneUtil.getRegionCodeForNumber(number);
331 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.E164) : "invalid",
334 phoneUtil.formatInOriginalFormat(number, defaultCountry), output);
335 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output);
338 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) : "invalid",
342 isNumberValid ? phoneUtil.formatOutOfCountryCallingNumber(number, "US") : "invalid",
346 isNumberValid ? phoneUtil.formatOutOfCountryCallingNumber(number, "CH") : "invalid",
351 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(defaultCountry);