/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsHelperTest.java | 21 import android.os.LocaleList; 36 assertEquals(LocaleList.forLanguageTags("en-US"), in testResolveLocales() 38 LocaleList.forLanguageTags(""), // restore in testResolveLocales() 39 LocaleList.forLanguageTags("en-US"), // current in testResolveLocales() 43 assertEquals(LocaleList.forLanguageTags("en-US"), in testResolveLocales() 45 LocaleList.forLanguageTags("en-US"), // restore in testResolveLocales() 46 LocaleList.forLanguageTags("en-US"), // current in testResolveLocales() 49 assertEquals(LocaleList.forLanguageTags("en-US,ja-JP"), in testResolveLocales() 51 LocaleList.forLanguageTags("en-US,ja-JP"), // restore in testResolveLocales() 52 LocaleList.forLanguageTags("en-US,ja-JP"), // current in testResolveLocales() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | LocaleListTest.java | 28 LocaleList ll; in testConstructor() 29 ll = new LocaleList(Locale.forLanguageTag("fr"), null); in testConstructor() 32 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.getEmptyLocaleList()); in testConstructor() 35 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr")); in testConstructor() 38 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de")); in testConstructor() 41 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,ja")); in testConstructor() 44 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr,ja")); in testConstructor() 47 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr")); in testConstructor() 50 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr,de")); in testConstructor() 57 final LocaleList ll = new LocaleList(null, LocaleList.getEmptyLocaleList()); in testConstructor_nullThrows() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
D | LocaleUtilsTest.java | 21 import android.os.LocaleList; 47 final LocaleList preferredLocales = LocaleList.getEmptyLocaleList(); in testFilterByLanguageEmptyLanguageList() 63 final LocaleList preferredLocales = LocaleList.forLanguageTags("zh-Hans-TW"); in testFilterDoesNotMatchAnything() 74 final LocaleList preferredLocales = LocaleList.forLanguageTags("fr,en-US,ja-JP"); in testFilterByLanguageEmptySource() 84 final LocaleList preferredLocales = in testFilterByLanguageNullAvailableLocales() 85 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN"); in testFilterByLanguageNullAvailableLocales() 93 final LocaleList preferredLocales = in testFilterByLanguageNullAvailableLocales() 94 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN"); in testFilterByLanguageNullAvailableLocales() 104 final LocaleList preferredLocales = in testFilterByLanguageNullAvailableLocales() 105 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN"); in testFilterByLanguageNullAvailableLocales() [all …]
|
/frameworks/base/core/java/android/os/ |
D | LocaleList.java | 39 public final class LocaleList implements Parcelable { class 48 private static final LocaleList sEmptyLocaleList = new LocaleList(); 100 if (!(other instanceof LocaleList)) in equals() 102 final Locale[] otherList = ((LocaleList) other).mList; in equals() 182 public LocaleList(@NonNull Locale... list) { in LocaleList() method in LocaleList 217 public LocaleList(@NonNull Locale topLocale, LocaleList otherLocales) { in LocaleList() method in LocaleList 260 public static final @android.annotation.NonNull Parcelable.Creator<LocaleList> CREATOR 261 = new Parcelable.Creator<LocaleList>() { 263 public LocaleList createFromParcel(Parcel source) { 264 return LocaleList.forLanguageTags(source.readString()); [all …]
|
D | LocaleList.aidl | 19 parcelable LocaleList;
|
/frameworks/base/core/java/android/text/style/ |
D | LocaleSpan.java | 22 import android.os.LocaleList; 37 private final LocaleList mLocales; 53 mLocales = locale == null ? LocaleList.getEmptyLocaleList() : new LocaleList(locale); in LocaleSpan() 62 public LocaleSpan(@NonNull LocaleList locales) { in LocaleSpan() 68 mLocales = LocaleList.CREATOR.createFromParcel(source); in LocaleSpan() 112 public LocaleList getLocales() { in getLocales() 126 private static void apply(@NonNull Paint paint, @NonNull LocaleList locales) { in apply()
|
D | TextAppearanceSpan.java | 26 import android.os.LocaleList; 70 private final LocaleList mTextLocales; 157 LocaleList localeList = LocaleList.forLanguageTags(localeString); in TextAppearanceSpan() 252 mTextLocales = src.readParcelable(LocaleList.class.getClassLoader()); in TextAppearanceSpan() 374 public LocaleList getTextLocales() { in getTextLocales()
|
/frameworks/minikin/libs/minikin/ |
D | Locale.h | 38 class LocaleList; variable 133 int calcScoreFor(const LocaleList& supported) const; 152 friend class LocaleList; // for LocaleList constructor 196 class LocaleList { 198 explicit LocaleList(std::vector<Locale>&& locales); 199 LocaleList() in LocaleList() function 203 LocaleList(LocaleList&&) = default; 230 LocaleList(const LocaleList&) = delete; 231 void operator=(const LocaleList&) = delete;
|
D | LocaleListCache.h | 46 static inline const LocaleList& getById(uint32_t id) { in getById() 55 const LocaleList& getByIdInternal(uint32_t id); 63 std::vector<LocaleList> mLocaleLists GUARDED_BY(mMutex);
|
D | LocaleListCache.cpp | 122 LocaleList fontLocales(parseLocaleList(locales)); in getIdInternal() 131 const LocaleList& LocaleListCache::getByIdInternal(uint32_t id) { in getByIdInternal()
|
/frameworks/base/core/tests/coretests/src/android/text/util/ |
D | LinkifyTest.java | 25 import android.os.LocaleList; 51 private static final LocaleList LOCALE_LIST_US = new LocaleList(Locale.US); 52 private LocaleList mOriginalLocales; 58 mOriginalLocales = LocaleList.getDefault(); in setup() 59 LocaleList.setDefault(LOCALE_LIST_US); in setup() 64 LocaleList.setDefault(mOriginalLocales); in teardown()
|
/frameworks/base/core/java/android/hardware/input/ |
D | KeyboardLayout.java | 20 import android.os.LocaleList; 38 private final LocaleList mLocales; 53 LocaleList locales, int vid, int pid) { in KeyboardLayout() 68 mLocales = LocaleList.CREATOR.createFromParcel(source); in KeyboardLayout() 106 public LocaleList getLocales() { in getLocales()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesLocaleTest.java | 20 import android.os.LocaleList; 70 final LocaleList preferredLocales = LocaleList.forLanguageTags("en-US,pl-PL"); in testEnglishIsAlwaysConsideredSupported() 87 final LocaleList preferredLocales = LocaleList.forLanguageTags("fr-FR,pl-PL"); in testSelectFirstSupportedLanguage()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 32 import android.os.LocaleList; 338 public static LocaleList resolveLocales(LocaleList restore, LocaleList current, in resolveLocales() 364 return new LocaleList(filtered.toArray(new Locale[filtered.size()])); in resolveLocales() 380 final LocaleList localeList = LocaleList.forLanguageTags(localeCodes); in setLocaleData() 386 final LocaleList currentLocales = conf.getLocales(); in setLocaleData() 388 final LocaleList merged = resolveLocales(localeList, currentLocales, supportedLocales); in setLocaleData()
|
/frameworks/minikin/tests/unittest/ |
D | FontLanguageListCacheTest.cpp | 51 const LocaleList& defLangs = LocaleListCache::getById(0); in TEST() 54 const LocaleList& locales = LocaleListCache::getById(LocaleListCache::getId("en")); in TEST() 58 const LocaleList& locales2 = LocaleListCache::getById(LocaleListCache::getId("en,jp")); in TEST()
|
D | FontFamilyTest.cpp | 30 static const LocaleList& createLocaleList(const std::string& input) { in createLocaleList() 269 LocaleList emptyLocales; in TEST() 273 const LocaleList& singletonLocales = createLocaleList("en"); in TEST() 278 const LocaleList& twoLocales = createLocaleList("en,fr"); in TEST() 285 const LocaleList& oneUnsupported = createLocaleList("abcd-example"); in TEST() 288 const LocaleList& twoUnsupporteds = createLocaleList("abcd-example,abcd-example"); in TEST() 292 const LocaleList& firstUnsupported = createLocaleList("abcd-example,en"); in TEST() 296 const LocaleList& lastUnsupported = createLocaleList("en,abcd-example"); in TEST() 308 const LocaleList& locales = createLocaleList("en,en-Latn"); in TEST() 312 const LocaleList& fr = createLocaleList("fr,fr-FR,fr-Latn-FR"); in TEST() [all …]
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextSelection.java | 25 import android.os.LocaleList; 212 @Nullable private final LocaleList mDefaultLocales; 223 LocaleList defaultLocales, in Request() 274 public LocaleList getDefaultLocales() { in getDefaultLocales() 335 @Nullable private LocaleList mDefaultLocales; 363 public Builder setDefaultLocales(@Nullable LocaleList defaultLocales) { in setDefaultLocales() 427 final LocaleList defaultLocales = in.readParcelable(null); in readFromParcel()
|
D | TextLinks.java | 26 import android.os.LocaleList; 339 @Nullable private final LocaleList mDefaultLocales; 349 LocaleList defaultLocales, in Request() 373 public LocaleList getDefaultLocales() { in getDefaultLocales() 451 @Nullable private LocaleList mDefaultLocales; 467 public Builder setDefaultLocales(@Nullable LocaleList defaultLocales) { in setDefaultLocales() 540 final LocaleList defaultLocales = in.readParcelable(null); in readFromParcel()
|
D | TextClassification.java | 36 import android.os.LocaleList; 552 @Nullable private final LocaleList mDefaultLocales; 563 LocaleList defaultLocales, 604 public LocaleList getDefaultLocales() { 675 @Nullable private LocaleList mDefaultLocales; 702 public Builder setDefaultLocales(@Nullable LocaleList defaultLocales) { 763 final LocaleList defaultLocales = in.readParcelable(null);
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | EditorInfo.java | 24 import android.os.LocaleList; 464 public LocaleList hintLocales = null; 579 LocaleList.getEmptyLocaleList().writeToParcel(dest, flags); in writeToParcel() 606 LocaleList hintLocales = LocaleList.CREATOR.createFromParcel(source);
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | ModelFileManagerTest.java | 23 import android.os.LocaleList; 113 mModelFileManager.findBestModelFile(LocaleList.getEmptyLocaleList()); in findBestModel_versionCode() 136 LocaleList.forLanguageTags(locale.toLanguageTag())); in findBestModel_languageDependentModelIsPreferred() 159 LocaleList.forLanguageTags("zh-hk")); in findBestModel_noMatchedLanguageModel() 182 LocaleList.forLanguageTags("zh-hk")); in findBestModel_noMatchedLanguageModel_defaultLocaleModelExists() 204 LocaleList.forLanguageTags("fr")); in findBestModel_languageIsMoreImportantThanVersion() 225 LocaleList.forLanguageTags("ja")); in findBestModel_languageIsMoreImportantThanVersion_bestModelComesFirst()
|
D | TextClassificationManagerTest.java | 27 import android.os.LocaleList; 42 private static final LocaleList LOCALES = LocaleList.forLanguageTags("en-US");
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocalePicker.java | 30 import android.os.LocaleList; 117 if (!isInDeveloperMode && LocaleList.isPseudoLocale(l)) { in getAllAssetLocales() 258 updateLocales(new LocaleList(locale)); 267 public static void updateLocales(LocaleList locales) { 289 public static LocaleList getLocales() { 295 return LocaleList.getDefault();
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateUtilsTest.java | 23 import android.os.LocaleList; 45 private static final LocaleList LOCALE_LIST_US = new LocaleList(Locale.US); 46 private LocaleList mOriginalLocales; 155 private void setLocales(LocaleList locales) { in setLocales()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | AndroidLocale.java | 21 import android.os.LocaleList; 53 LocaleList localeList = context.getConfiguration().getLocales(); in getDefault()
|