HomeSort by relevance Sort by last modified time
    Searched defs:LocaleList (Results 1 - 15 of 15) sorted by null

  /frameworks/base/core/tests/coretests/src/android/os/
LocaleListTest.java 27 LocaleList ll;
28 ll = new LocaleList(Locale.forLanguageTag("fr"), null);
31 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.getEmptyLocaleList());
34 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr"));
37 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de"));
40 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,ja"))
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
LocaleListTest.java 19 import android.os.LocaleList;
27 LocaleList ll = new LocaleList();
35 ll = new LocaleList(new Locale[0]);
45 final LocaleList ll = new LocaleList(Locale.US);
56 final LocaleList ll = new LocaleList(la);
67 LocaleList ll = new LocaleList((Locale) null)
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
LocaleSpanTest.java 21 import android.os.LocaleList;
29 private void checkGetLocales(@NonNull final LocaleList locales) {
41 checkGetLocales(LocaleList.getEmptyLocaleList());
42 checkGetLocales(LocaleList.forLanguageTags("en"));
43 checkGetLocales(LocaleList.forLanguageTags("en-GB,en"));
44 checkGetLocales(LocaleList.forLanguageTags("de-DE-u-co-phonebk,en-GB,en"));
50 new LocaleSpan((LocaleList) null);
75 LocaleSpan localeSpan = new LocaleSpan(LocaleList.getEmptyLocaleList());
81 LocaleSpan localeSpan = new LocaleSpan(LocaleList.getEmptyLocaleList());
87 LocaleList localeListForSpan = LocaleList.forLanguageTags("en")
    [all...]
  /frameworks/base/core/tests/coretests/src/android/content/res/
ResourcesManagerTest.java 21 import android.os.LocaleList;
150 expectedConfig.setLocales(LocaleList.getAdjustedDefault());
232 expectedConfig1.setLocales(LocaleList.getAdjustedDefault());
239 expectedConfig2.setLocales(LocaleList.getAdjustedDefault());
  /frameworks/base/core/java/android/os/
LocaleList.java 33 * LocaleList is an immutable list of Locales, typically used to keep an ordered list of user
36 public final class LocaleList implements Parcelable {
38 // This is a comma-separated list of the locales in the LocaleList created at construction time,
45 private static final LocaleList sEmptyLocaleList = new LocaleList();
58 * Returns whether the {@link LocaleList} contains no {@link Locale} items.
60 * @return {@code true} if this {@link LocaleList} has no {@link Locale} items, {@code false}
68 * Returns the number of {@link Locale} items in this {@link LocaleList}.
76 * Searches this {@link LocaleList} for the specified {@link Locale} and returns the index of
97 if (!(other instanceof LocaleList))
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
ConfigurationTest.java 23 import android.os.LocaleList;
97 cfg1.setLocales(LocaleList.forLanguageTags("fr"));
98 cfg2.setLocales(LocaleList.forLanguageTags("fr,en"));
100 cfg1.setLocales(LocaleList.forLanguageTags("fr,en"));
101 cfg2.setLocales(LocaleList.forLanguageTags("fr"));
104 cfg1.setLocales(LocaleList.forLanguageTags("fr,en"));
105 cfg2.setLocales(LocaleList.forLanguageTags("fr,en-US"));
107 cfg1.setLocales(LocaleList.forLanguageTags("fr,en-US"));
108 cfg2.setLocales(LocaleList.forLanguageTags("fr,en"));
192 config.setLocales(LocaleList.forLanguageTags("fr,en"))
    [all...]
ResourcesTest.java 35 import android.os.LocaleList;
248 assertEquals(LocaleList.getDefault(), res.getConfiguration().getLocales());
255 cfg.setLocales(LocaleList.forLanguageTags("az-Arab,ru"));
259 // Depending on the locales available in the framework resources, the LocaleList may be
261 final LocaleList locales = res.getConfiguration().getLocales();
262 assertTrue(LocaleList.forLanguageTags("az-Arab,ru").equals(locales) ||
263 LocaleList.forLanguageTags("ru,az-Arab").equals(locales));
269 cfg.setLocales(LocaleList.forLanguageTags("az-Arab"));
272 assertEquals(LocaleList.forLanguageTags("az-Arab"), res.getConfiguration().getLocales());
277 assertEquals(LocaleList.getDefault(), res.getConfiguration().getLocales())
    [all...]
  /frameworks/base/core/java/android/content/res/
ResourcesImpl.java 38 import android.os.LocaleList;
352 LocaleList locales = mConfiguration.getLocales();
354 locales = LocaleList.getDefault();
360 // The LocaleList has changed. We must query the AssetManager's available
361 // Locales and figure out the best matching Locale in the new LocaleList.
363 if (LocaleList.isPseudoLocalesOnly(availableLocales)) {
366 if (LocaleList.isPseudoLocalesOnly(availableLocales)) {
375 mConfiguration.setLocales(new LocaleList(bestLocale, locales));
465 mTmpConfig.setLocales(LocaleList.getDefault());
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Paint.java 22 import android.os.LocaleList;
70 private LocaleList mLocales;
78 * A map from a string representation of the LocaleList to Minikin's language list ID.
465 setTextLocales(LocaleList.getAdjustedDefault());
506 setTextLocales(LocaleList.getAdjustedDefault());
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
TextViewTest.java 42 import android.os.LocaleList;
    [all...]
  /frameworks/base/services/core/java/com/android/server/am/
ActivityManagerService.java 170 import android.os.LocaleList;
    [all...]
  /frameworks/base/core/java/android/app/
ActivityThread.java 67 import android.os.LocaleList;
    [all...]
  /frameworks/base/core/java/android/widget/
TextView.java 55 import android.os.LocaleList;
    [all...]
  /frameworks/base/core/java/android/provider/
Settings.java 51 import android.os.LocaleList;
    [all...]
  /prebuilts/sdk/24/
android.jar 

Completed in 506 milliseconds