/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
LocaleSetTest.java | 28 assertEquals(Locale.CANADA, LocaleSet.newForTest(Locale.CANADA).getPrimaryLocale()); 29 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN).getPrimaryLocale()); 30 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN, Locale.CANADA) 33 assertEquals(Locale.getDefault(), LocaleSet.newDefault().getPrimaryLocale()); 37 assertEquals(Locale.JAPANESE, LocaleSet.newDefault().getPrimaryLocale()); 44 assertTrue(LocaleSet.isLanguageChinese(Locale.CHINESE)); 45 assertTrue(LocaleSet.isLanguageChinese(Locale.TRADITIONAL_CHINESE)); 46 assertTrue(LocaleSet.isLanguageChinese(Locale.SIMPLIFIED_CHINESE)); 48 assertFalse(LocaleSet.isLanguageChinese(Locale.JAPANESE)); 49 assertFalse(LocaleSet.isLanguageChinese(Locale.ENGLISH)) [all...] |
ContactLocaleUtilsTest.java | 190 LocaleSet.newForTest(Locale.ENGLISH, Locale.SIMPLIFIED_CHINESE)); 200 LocaleSet.newForTest(Locale.ENGLISH, Locale.JAPAN));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
LocaleSet.java | 28 public class LocaleSet { 35 private LocaleSet(LocaleList localeList, Locale defaultLocaleOverrideForTest) { 40 public static LocaleSet newDefault() { 41 return new LocaleSet(LocaleList.getDefault(), 46 public static LocaleSet newForTest(Locale... locales) { 47 return new LocaleSet(new LocaleList(locales), locales[0]); 163 if (object instanceof LocaleSet) { 164 final LocaleSet other = (LocaleSet) object;
|
ContactLocaleUtils.java | 100 public ContactLocaleUtilsBase(LocaleSet locales) { 247 public JapaneseContactUtils(LocaleSet locales) { 389 public SimplifiedChineseContactUtils(LocaleSet locales) { 443 private final LocaleSet mLocales; 446 private ContactLocaleUtils(LocaleSet locales) { 448 mLocales = LocaleSet.newDefault(); 463 public boolean isLocale(LocaleSet locales) { 469 sSingleton = new ContactLocaleUtils(LocaleSet.newDefault()); 476 setLocales(LocaleSet.newForTest(locales)); 479 public static synchronized void setLocales(LocaleSet locales) [all...] |
ContactsDatabaseHelper.java | [all...] |
ContactsProvider2.java | [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
UserDictionaryList.java | 85 final TreeSet<String> localeSet = new TreeSet<String>(); 95 localeSet.add(null != locale ? locale : ""); 106 // localeSet.add(""); 119 localeSet.add(locale); 128 if (!localeSet.contains(Locale.getDefault().getLanguage().toString())) { 129 localeSet.add(Locale.getDefault().toString()); 132 return localeSet; 142 final TreeSet<String> localeSet = 147 localeSet.add(mLocale); 149 if (localeSet.size() > 1) [all...] |
InputMethodAndLanguageSettings.java | 215 final TreeSet<String> localeSet = UserDictionaryList.getUserDictionaryLocalesSet(activity); 216 if (null == localeSet) { 229 if (localeSet.size() <= 1) { 230 if (!localeSet.isEmpty()) { 239 extras.putString("locale", localeSet.first()); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionaryList.java | 61 final TreeSet<String> localeSet = new TreeSet<>(); 71 localeSet.add(null != locale ? locale : ""); 80 localeSet.add(""); 93 localeSet.add(locale); 102 if (!localeSet.contains(Locale.getDefault().getLanguage().toString())) { 103 localeSet.add(Locale.getDefault().toString()); 106 return localeSet; 116 final TreeSet<String> localeSet = 119 if (localeSet.size() > 1) { 122 localeSet.add("") [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/ |
ICULocaleServiceProvider.java | 132 Set<Locale> localeSet = new HashSet<Locale>(); 140 addULocale(uloc, localeSet); 150 addULocale(ulocWithoutScript, localeSet); 158 addLocale(l, localeSet); 161 LOCALES = localeSet.toArray(new Locale[0]);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
LocaleDisplayNames.java | 246 * @param localeSet a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance. 248 * @throws IllformedLocaleException if any of the locales in localeSet are malformed. 251 public List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { 252 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); 259 * @param localeSet a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance. 261 * @throws IllformedLocaleException if any of the locales in localeSet are malformed. 264 public abstract List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator); 511 public List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator) {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
LocaleDisplayNames.java | 266 * @param localeSet a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance. 268 * @throws IllformedLocaleException if any of the locales in localeSet are malformed. 272 public List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { 273 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); 280 * @param localeSet a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance. 282 * @throws IllformedLocaleException if any of the locales in localeSet are malformed. 286 public abstract List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator); 542 public List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator) {
|
/external/icu/icu4c/source/test/intltest/ |
plurults.cpp | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
LocaleDisplayNamesImpl.java | 499 public List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator) { 505 for (ULocale locOriginal : localeSet) {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
LocaleDisplayNamesImpl.java | 495 public List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator) { 501 for (ULocale locOriginal : localeSet) {
|
/external/pdfium/fpdfsdk/src/fpdfxfa/ |
fpdfxfa_doc.cpp | 980 if (pPrePDFObj->GetString() == "localeSet" && !(flag & FXFA_LOCALESET))
1018 if (csSrcContent.Find(L" localeSet ", 0) != -1)
[all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
PluralRulesTest.java | 501 Set localeSet = new HashSet(); 502 localeSet.addAll(Arrays.asList(locales)); 504 assertEquals("locales are unique in list", locales.length, localeSet.size()); [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
PluralRulesTest.java | 497 Set localeSet = new HashSet(); 498 localeSet.addAll(Arrays.asList(locales)); 500 assertEquals("locales are unique in list", locales.length, localeSet.size()); [all...] |
/external/pdfium/xfa/src/fxfa/src/parser/ |
xfa_basic_data.cpp | [all...] |