Home
last modified time | relevance | path

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

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberMatcherTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
547 doTestNumberMatchesForLeniency(testCases, Leniency.POSSIBLE); in testMatchesWithPossibleLeniency()
553 doTestNumberNonMatchesForLeniency(testCases, Leniency.POSSIBLE); in testNonMatchesWithPossibleLeniency()
561 doTestNumberMatchesForLeniency(testCases, Leniency.VALID); in testMatchesWithValidLeniency()
568 doTestNumberNonMatchesForLeniency(testCases, Leniency.VALID); in testNonMatchesWithValidLeniency()
575 doTestNumberMatchesForLeniency(testCases, Leniency.STRICT_GROUPING); in testMatchesWithStrictGroupingLeniency()
583 doTestNumberNonMatchesForLeniency(testCases, Leniency.STRICT_GROUPING); in testNonMatchesWithStrictGroupLeniency()
589 doTestNumberMatchesForLeniency(testCases, Leniency.EXACT_GROUPING); in testMatchesWithExactGroupingLeniency()
598 doTestNumberNonMatchesForLeniency(testCases, Leniency.EXACT_GROUPING); in testNonMatchesExactGroupLeniency()
601 private void doTestNumberMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) { in doTestNumberMatchesForLeniency()
[all …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
199 private final Leniency leniency;
225 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher()
396 if (leniency.compareTo(Leniency.VALID) >= 0) { in parseAndVerify()
DPhoneNumberUtil.java441 public enum Leniency { enum in PhoneNumberUtil
2814 return findNumbers(text, defaultRegion, Leniency.VALID, Long.MAX_VALUE);
2832 final CharSequence text, final String defaultRegion, final Leniency leniency,