/libcore/ojluni/src/main/java/java/text/ |
D | Collator.java | 123 public abstract class Collator class 218 public static synchronized Collator getInstance() { in getInstance() 229 public static Collator getInstance(Locale desiredLocale) { in getInstance() 231 synchronized(Collator.class) { in getInstance() 236 android.icu.text.Collator.getInstance(desiredLocale)); in getInstance() 326 return (value == android.icu.text.Collator.IDENTICAL) ? IDENTICAL : value; in getStrength() 346 newStrength = android.icu.text.Collator.IDENTICAL; in setStrength() 402 return android.icu.text.Collator.getAvailableLocales(); in getAvailableLocales() 408 case Collator.CANONICAL_DECOMPOSITION: in decompositionMode_Java_ICU() 409 return android.icu.text.Collator.CANONICAL_DECOMPOSITION; in decompositionMode_Java_ICU() [all …]
|
D | PatternEntry.java | 120 if (strength == Collator.PRIMARY || lastEntry != null) in addToBuffer() 134 case Collator.IDENTICAL: toAddTo.append('='); break; in addToBuffer() 135 case Collator.TERTIARY: toAddTo.append(','); break; in addToBuffer() 136 case Collator.SECONDARY: toAddTo.append(';'); break; in addToBuffer() 137 case Collator.PRIMARY: toAddTo.append('<'); break; in addToBuffer() 228 newStrength = Collator.IDENTICAL; break; in next() 230 newStrength = Collator.TERTIARY; break; in next() 232 newStrength = Collator.SECONDARY; break; in next() 234 newStrength = Collator.PRIMARY; break; in next()
|
D | RuleBasedCollator.java | 245 public class RuleBasedCollator extends Collator{
|
D | MergeCollation.java | 244 if (newEntry.strength != Collator.IDENTICAL in fixEntry()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 19 import java.text.Collator; 27 Collator c = Collator.getInstance(Locale.GERMAN); in test_clone() 28 Collator c2 = (Collator) c.clone(); in test_clone() 34 Collator c = Collator.getInstance(Locale.FRENCH); in test_compareLjava_lang_ObjectLjava_lang_Object() 37 c.setStrength(Collator.IDENTICAL); in test_compareLjava_lang_ObjectLjava_lang_Object() 56 c.setStrength(Collator.TERTIARY); in test_compareLjava_lang_ObjectLjava_lang_Object() 73 c.setStrength(Collator.SECONDARY); in test_compareLjava_lang_ObjectLjava_lang_Object() 90 c.setStrength(Collator.PRIMARY); in test_compareLjava_lang_ObjectLjava_lang_Object() 117 Collator c = Collator.getInstance(Locale.ENGLISH); in test_equalsLjava_lang_Object() 118 Collator c2 = (Collator) c.clone(); in test_equalsLjava_lang_Object() [all …]
|
D | CollationKeyTest.java | 20 import java.text.Collator; 31 Collator collator = Collator.getInstance(); in test_compareToLjava_text_CollationKey() 32 collator.setStrength(Collator.PRIMARY); in test_compareToLjava_text_CollationKey() 44 Collator collator = Collator.getInstance(); in test_compareToLjava_lang_Object() 45 collator.setStrength(Collator.PRIMARY); in test_compareToLjava_lang_Object() 55 Collator collator = Collator.getInstance(); in test_equalsLjava_lang_Object() 56 collator.setStrength(Collator.PRIMARY); in test_equalsLjava_lang_Object() 66 Collator collator = Collator.getInstance(); in test_getSourceString() 67 collator.setStrength(Collator.PRIMARY); in test_getSourceString() 78 Collator collator = Collator.getInstance(); in test_hashCode() [all …]
|
D | RuleBasedCollatorTest.java | 23 import java.text.Collator; 51 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in testClone() 63 assertEquals(Collator.TERTIARY, coll.getStrength()); in testEqualsObject() 64 assertEquals(Collator.NO_DECOMPOSITION, coll.getDecomposition()); in testEqualsObject() 68 coll.setStrength(Collator.PRIMARY); in testEqualsObject() 71 coll.setStrength(Collator.TERTIARY); in testEqualsObject() 72 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in testEqualsObject() 83 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.GERMAN); in testGetCollationKey() 103 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(locale); in testGetCollationElementIteratorString() 120 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(locale); in testGetCollationElementIteratorString() [all …]
|
D | CollationElementIteratorTest.java | 21 import java.text.Collator; 40 coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in setUp() 42 Collator.getInstance(Locale.forLanguageTag("es-u-co-trad")); in setUp() 85 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in testPrevious() 131 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance( in testGetMaxExpansion() 142 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance(new Locale("de", "DE")); in testPrimaryOrder() 154 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance(new Locale("fr", "FR")); in testSecondaryOrder() 167 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance(new Locale("fr", "FR")); in testTertiaryOrder() 184 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance( in testSetOffset()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | CollatorTest.java | 21 import java.text.Collator; 33 Collator collator = Collator.getInstance(); in test_setStrengthI() 34 collator.setStrength(Collator.PRIMARY); in test_setStrengthI() 35 assertEquals(Collator.PRIMARY, collator.getStrength()); in test_setStrengthI() 36 collator.setStrength(Collator.SECONDARY); in test_setStrengthI() 37 assertEquals(Collator.SECONDARY, collator.getStrength()); in test_setStrengthI() 38 collator.setStrength(Collator.TERTIARY); in test_setStrengthI() 39 assertEquals(Collator.TERTIARY, collator.getStrength()); in test_setStrengthI() 40 collator.setStrength(Collator.IDENTICAL); in test_setStrengthI() 41 assertEquals(Collator.IDENTICAL, collator.getStrength()); in test_setStrengthI() [all …]
|
D | OldCollationKeyTest.java | 20 import java.text.Collator; 29 Collator collator = Collator.getInstance(); in test_toByteArray() 30 collator.setStrength(Collator.PRIMARY); in test_toByteArray()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CollatorBenchmark.java | 19 import java.text.Collator; 26 Collator.getInstance(Locale.US); 29 collator.setStrength(Collator.PRIMARY); in timeCollatorPrimary() 38 collator.setStrength(Collator.SECONDARY); in timeCollatorSecondary() 47 collator.setStrength(Collator.TERTIARY); in timeCollatorTertiary() 56 collator.setStrength(Collator.IDENTICAL); in timeCollatorIdentical()
|
D | ExpensiveObjectsBenchmark.java | 19 import java.text.Collator; 57 Collator.getInstance(Locale.US); in timeNewCollator() 62 Collator c = Collator.getInstance(Locale.US); in timeClonedCollator()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | Collator.java | 45 public abstract class Collator class 48 protected Collator() { in Collator() method in Collator 52 Collator(android.icu.text.Collator icuColl) { in Collator() method in Collator 56 public static synchronized java.text.Collator getInstance() { in getInstance() 60 public static synchronized java.text.Collator getInstance(java.util.Locale desiredLocale) { in getInstance() 129 android.icu.text.Collator icuColl;
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | Actions.java | 19 import java.text.Collator; 101 Collator collator = Collator.getInstance(locale); in useCollatorForLocale()
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | ICUTest.java | 20 import java.text.Collator; 205 Collator.getInstance(sr_Cyrl_BA); in testScriptsPassedToIcu() 206 Collator.getInstance(sr_Cyrl_ME); in testScriptsPassedToIcu() 207 Collator.getInstance(sr_Latn_BA); in testScriptsPassedToIcu() 208 Collator.getInstance(sr_Latn_ME); in testScriptsPassedToIcu() 214 Collator c = Collator.getInstance(l); in testScriptsPassedToIcu()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | FileURLConnection.java | 37 import java.text.Collator; 200 Collections.sort(files, Collator.getInstance()); in getInputStream()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTreeMapTest.java | 22 import java.text.Collator; 265 Collator c = new Collator() { in test_headMapLjava_lang_Object()
|
D | LocaleTest.java | 28 import java.text.Collator; 233 assertOnce(newLocale, Collator.getAvailableLocales()); in assertObsolete()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeMapTest.java | 25 import java.text.Collator; 325 Collator c = new Collator() { in test_headMapLjava_lang_Object()
|
/libcore/ |
D | openjdk_java_files.bp | 754 "ojluni/src/main/java/java/text/Collator.java",
|