Home
last modified time | relevance | path

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

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java199 private final Leniency leniency; field in PhoneNumberMatcher
225 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher() argument
228 if ((util == null) || (leniency == null)) { in PhoneNumberMatcher()
237 this.leniency = leniency; in PhoneNumberMatcher()
396 if (leniency.compareTo(Leniency.VALID) >= 0) { in parseAndVerify()
436 if (leniency.verify(number, candidate, phoneUtil)) { in parseAndVerify()
DPhoneNumberUtil.java2753 final CharSequence text, final String defaultRegion, final Leniency leniency,
2760 PhoneNumberUtil.this, text, defaultRegion, leniency, maxTries);
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberMatcherTest.java601 private void doTestNumberMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) { in doTestNumberMatchesForLeniency() argument
606 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberMatchesForLeniency()
610 System.err.println("No match found in " + test.toString() + " for leniency: " + leniency); in doTestNumberMatchesForLeniency()
623 private void doTestNumberNonMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) { in doTestNumberNonMatchesForLeniency() argument
627 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberNonMatchesForLeniency()
631 System.err.println("Match found in " + test.toString() + " for leniency: " + leniency); in doTestNumberNonMatchesForLeniency()
1011 List<NumberContext> contextPairs, Leniency leniency) { in doTestInContext() argument
1019 phoneUtil.findNumbers(text, defaultCountry, leniency, Long.MAX_VALUE).iterator(); in doTestInContext()
1030 ensureTermination(text, defaultCountry, leniency); in doTestInContext()
1038 private void ensureTermination(String text, String defaultCountry, Leniency leniency) { in ensureTermination() argument
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtfmrgts.cpp1596 UBool leniency; member
1636 sdmft->setLenient(itemPtr->leniency); in TestT10619()
1637 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status); in TestT10619()
1638 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->leniency, status); in TestT10619()
1639 sdmft->setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, itemPtr->leniency, status); in TestT10619()
1646 " - leniency " + itemPtr->leniency); in TestT10619()
Ddtfmttst.cpp4418 UBool leniency; member
4458 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status). in TestDateFormatLeniency()
4459 setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->leniency, status). in TestDateFormatLeniency()
4460 setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, itemPtr->leniency, status); in TestDateFormatLeniency()
4470 " - leniency " + itemPtr->leniency); in TestDateFormatLeniency()
4479 " - leniency " + itemPtr->leniency); in TestDateFormatLeniency()
4497 UBool leniency; member
4558 … sdmft->setBooleanAttribute(UDAT_PARSE_MULTIPLE_PATTERNS_FOR_MATCH, itemPtr->leniency, status); in TestParseMultiPatternMatch()
4567 " - leniency " + itemPtr->leniency); in TestParseMultiPatternMatch()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java4587 public boolean leniency; in TestDateFormatLeniency() field in DateFormatTest.TestDateFormatLeniencyItem
4594 leniency = len; in TestDateFormatLeniency()
4613 sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_WHITESPACE, item.leniency) in TestDateFormatLeniency()
4614 .setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_NUMERIC, item.leniency) in TestDateFormatLeniency()
4615 … .setBooleanAttribute(BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH, item.leniency); in TestDateFormatLeniency()
4623 … errln("error: unexpected parse success..." + item.parseString + " w/ lenient=" + item.leniency in TestDateFormatLeniency()
4691 public boolean leniency; in TestParseMultiPatternMatch() field in DateFormatTest.TestMultiPatternMatchItem
4697 leniency = len; in TestParseMultiPatternMatch()
4745 sdfmt.setLenient(item.leniency); in TestParseMultiPatternMatch()
4746 … sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH, item.leniency); in TestParseMultiPatternMatch()
[all …]
DDateFormatRegressionTest.java1363 public boolean leniency; in TestT10619() field in DateFormatRegressionTest.TestDateFormatLeniencyItem
1369 leniency = len; in TestT10619()
1396 sdfmt.setLenient(item.leniency); in TestT10619()
1405 …or: unexpected parse success..."+item.parseString + " w/ lenient="+item.leniency+" should have fai… in TestT10619()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4583 public boolean leniency; in TestDateFormatLeniency() field in DateFormatTest.TestDateFormatLeniencyItem
4590 leniency = len; in TestDateFormatLeniency()
4609 sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_WHITESPACE, item.leniency) in TestDateFormatLeniency()
4610 .setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_NUMERIC, item.leniency) in TestDateFormatLeniency()
4611 … .setBooleanAttribute(BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH, item.leniency); in TestDateFormatLeniency()
4619 … errln("error: unexpected parse success..." + item.parseString + " w/ lenient=" + item.leniency in TestDateFormatLeniency()
4687 public boolean leniency; in TestParseMultiPatternMatch() field in DateFormatTest.TestMultiPatternMatchItem
4693 leniency = len; in TestParseMultiPatternMatch()
4741 sdfmt.setLenient(item.leniency); in TestParseMultiPatternMatch()
4742 … sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH, item.leniency); in TestParseMultiPatternMatch()
[all …]
DDateFormatRegressionTest.java1359 public boolean leniency; in TestT10619() field in DateFormatRegressionTest.TestDateFormatLeniencyItem
1365 leniency = len; in TestT10619()
1392 sdfmt.setLenient(item.leniency); in TestT10619()
1401 …or: unexpected parse success..."+item.parseString + " w/ lenient="+item.leniency+" should have fai… in TestT10619()
/external/libphonenumber/
Drelease_notes.txt715 metadata that they may be omitted. Applies to leniency level VALID and higher.
/external/robolectric/v3/runtime/
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...