Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/dialer/assisteddialing/
DConstraints.java95 Optional<PhoneNumber> parsedPhoneNumber = parsePhoneNumber(numberToCheck, userHomeCountryCode); in meetsPreconditions() local
97 if (!parsedPhoneNumber.isPresent()) { in meetsPreconditions()
104 && isNotInternationalNumber(parsedPhoneNumber) in meetsPreconditions()
106 && isValidNumber(parsedPhoneNumber) in meetsPreconditions()
107 && doesNotHaveExtension(parsedPhoneNumber); in meetsPreconditions()
162 private boolean isNotInternationalNumber(@NonNull Optional<PhoneNumber> parsedPhoneNumber) {
164 if (parsedPhoneNumber.get().hasCountryCode()
165 && parsedPhoneNumber.get().getCountryCodeSource()
182 private boolean doesNotHaveExtension(@NonNull Optional<PhoneNumber> parsedPhoneNumber) {
184 if (parsedPhoneNumber.get().hasExtension()
[all …]