Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DLocaleLanguageRangeTest.java19 import static java.util.Locale.LanguageRange.MAX_WEIGHT;
42 assertEquals(1.0, MAX_WEIGHT); in testWeight_constantValues()
46 assertEquals(MAX_WEIGHT, new LanguageRange("de-DE").getWeight()); in testConstructor_defaultsToMaxWeight()
73 new LanguageRange(null, MAX_WEIGHT); in testConstructor_nullRange()
77 new LanguageRange("de-DE", MAX_WEIGHT); // works in testConstructor_nullRange()
129 new LanguageRange("en-US", LanguageRange.MAX_WEIGHT)); in testEqualsAndHashCode()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java263 w = MAX_WEIGHT; in parse()
276 if (w < MIN_WEIGHT || w > MAX_WEIGHT) { in parse()
280 + " and " + MAX_WEIGHT + "."); in parse()
/libcore/ojluni/src/main/java/java/util/
DLocale.java3336 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange
3361 this(range, MAX_WEIGHT); in LanguageRange()
3381 if (weight < MIN_WEIGHT || weight > MAX_WEIGHT) { in LanguageRange()
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java285 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java281 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java711 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange