/frameworks/base/core/tests/coretests/src/android/os/ |
D | LocaleListTest.java | 27 LocaleList ll; in testConstructor() 28 ll = new LocaleList(Locale.forLanguageTag("fr"), null); in testConstructor() 31 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.getEmptyLocaleList()); in testConstructor() 34 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr")); in testConstructor() 37 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de")); in testConstructor() 40 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,ja")); in testConstructor() 43 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr,ja")); in testConstructor() 46 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr")); in testConstructor() 49 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr,de")); in testConstructor() 56 final LocaleList ll = new LocaleList(null, LocaleList.getEmptyLocaleList()); in testConstructor_nullThrows() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | LocaleUtilsTest.java | 19 import android.os.LocaleList; 45 final LocaleList preferredLocales = LocaleList.getEmptyLocaleList(); in testFilterByLanguageEmptyLanguageList() 61 final LocaleList preferredLocales = LocaleList.forLanguageTags("zh-Hans-TW"); in testFilterDoesNotMatchAnything() 72 final LocaleList preferredLocales = LocaleList.forLanguageTags("fr,en-US,ja-JP"); in testFilterByLanguageEmptySource() 82 final LocaleList preferredLocales = in testFilterByLanguageNullAvailableLocales() 83 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN"); in testFilterByLanguageNullAvailableLocales() 91 final LocaleList preferredLocales = in testFilterByLanguageNullAvailableLocales() 92 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN"); in testFilterByLanguageNullAvailableLocales() 102 final LocaleList preferredLocales = in testFilterByLanguageNullAvailableLocales() 103 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN"); in testFilterByLanguageNullAvailableLocales() [all …]
|
/frameworks/base/core/java/android/os/ |
D | LocaleList.java | 36 public final class LocaleList implements Parcelable { class 45 private static final LocaleList sEmptyLocaleList = new LocaleList(); 97 if (!(other instanceof LocaleList)) in equals() 99 final Locale[] otherList = ((LocaleList) other).mList; in equals() 159 public LocaleList(@NonNull Locale... list) { in LocaleList() method in LocaleList 194 public LocaleList(@NonNull Locale topLocale, LocaleList otherLocales) { in LocaleList() method in LocaleList 237 public static final Parcelable.Creator<LocaleList> CREATOR 238 = new Parcelable.Creator<LocaleList>() { 240 public LocaleList createFromParcel(Parcel source) { 241 return LocaleList.forLanguageTags(source.readString()); [all …]
|
D | LocaleList.aidl | 19 parcelable LocaleList;
|
/frameworks/base/core/java/android/text/style/ |
D | LocaleSpan.java | 24 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()
|
/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 | 19 import android.os.LocaleList; 69 final LocaleList preferredLocales = LocaleList.forLanguageTags("en-US,pl-PL"); in testEnglishIsAlwaysConsideredSupported() 86 final LocaleList preferredLocales = LocaleList.forLanguageTags("fr-FR,pl-PL"); in testSelectFirstSupportedLanguage()
|
D | ResourcesManagerTest.java | 21 import android.os.LocaleList; 150 expectedConfig.setLocales(LocaleList.getAdjustedDefault()); in testUpdateConfigurationUpdatesAllAssetManagers() 232 expectedConfig1.setLocales(LocaleList.getAdjustedDefault()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 239 expectedConfig2.setLocales(LocaleList.getAdjustedDefault()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | EditorInfo.java | 21 import android.os.LocaleList; 364 public LocaleList hintLocales = null; 447 LocaleList.getEmptyLocaleList().writeToParcel(dest, flags); in writeToParcel() 472 LocaleList hintLocales = LocaleList.CREATOR.createFromParcel(source);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | AutoReinflateContainer.java | 21 import android.os.LocaleList; 39 private LocaleList mLocaleList; 64 final LocaleList localeList = newConfig.getLocales(); in onConfigurationChanged()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocalePicker.java | 29 import android.os.LocaleList; 262 updateLocales(new LocaleList(locale)); 270 public static void updateLocales(LocaleList locales) { 291 public static LocaleList getLocales() { 297 return LocaleList.getDefault();
|
D | LocaleHelper.java | 22 import android.os.LocaleList; 162 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) { in getDisplayLocaleList()
|
D | LocalePickerWithRegion.java | 24 import android.os.LocaleList; 112 final LocaleList userLocales = LocalePicker.getLocales(); in setListener()
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | LocaleUtils.java | 25 import android.os.LocaleList; 93 @NonNull final LocaleList desired, @NonNull byte[] out) { in calculateMatchingScore() 197 @NonNull LocaleList preferredLanguages, in filterByLanguage()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 31 import android.os.LocaleList; 95 private LocaleList mLocaleList; 747 mLocaleList = locale == null ? LocaleList.getEmptyLocaleList() : new LocaleList(locale); in fixUpLocaleList() 923 mLocaleList = LocaleList.getEmptyLocaleList(); in setToDefaults() 1300 mLocaleList = new LocaleList(localeArray); in readFromParcel() 1449 public @NonNull LocaleList getLocales() { in getLocales() 1465 public void setLocales(@Nullable LocaleList locales) { in setLocales() 1466 mLocaleList = locales == null ? LocaleList.getEmptyLocaleList() : locales; in setLocales() 1484 setLocales(loc == null ? LocaleList.getEmptyLocaleList() : new LocaleList(loc)); in setLocale() 1493 mLocaleList = LocaleList.getEmptyLocaleList(); in clearLocales() [all …]
|
D | ResourcesImpl.java | 38 import android.os.LocaleList; 352 LocaleList locales = mConfiguration.getLocales(); in updateConfiguration() 354 locales = LocaleList.getDefault(); in updateConfiguration() 363 if (LocaleList.isPseudoLocalesOnly(availableLocales)) { in updateConfiguration() 366 if (LocaleList.isPseudoLocalesOnly(availableLocales)) { in updateConfiguration() 375 mConfiguration.setLocales(new LocaleList(bestLocale, locales)); in updateConfiguration() 465 mTmpConfig.setLocales(LocaleList.getDefault()); in calcConfigChanges()
|
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/ |
D | multilingual-support.jd | 192 <h3>LocaleList API</h3> 194 <p>Android N 添加了新的 API {@code LocaleList.getDefault()},从而让应用可以直接查询用户已指定的语言列表。
|
/frameworks/base/docs/html-intl/intl/ru/preview/features/ |
D | multilingual-support.jd | 188 <h3>API LocaleList</h3> 190 <p>В Android N добавлен новый API {@code LocaleList.GetDefault()},
|
/frameworks/base/docs/html-intl/intl/ko/preview/features/ |
D | multilingual-support.jd | 192 <h3>LocaleList API</h3> 194 <p>Android N에서는 앱이 사용자가 지정한 언어 목록을 직접 쿼리할 수 있는 새로운 API {@code LocaleList.getDefault()}가
|
/frameworks/base/docs/html-intl/intl/zh-tw/preview/features/ |
D | multilingual-support.jd | 188 <h3>LocaleList API</h3> 190 <p>Android N 增加了新的 API {@code LocaleList.GetDefault()}
|
/frameworks/base/docs/html-intl/intl/ja/preview/features/ |
D | multilingual-support.jd | 192 <h3>LocaleList API</h3> 194 <p>Android N では、新しい API {@code LocaleList.getDefault()} が加わりました。これにより、アプリは直接、ユーザーが指定した言語のリストを問い合わせる…
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 22 import android.os.LocaleList; 70 private LocaleList mLocales; 465 setTextLocales(LocaleList.getAdjustedDefault()); in Paint() 506 setTextLocales(LocaleList.getAdjustedDefault()); in reset() 1307 public LocaleList getTextLocales() { in getTextLocales() 1326 mLocales = new LocaleList(locale); in setTextLocale() 1357 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) { in setTextLocales()
|
/frameworks/base/core/tests/coretests/src/android/print/ |
D | BasePrintTest.java | 32 import android.os.LocaleList; 74 private LocaleList mOldLocale;
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 21 import android.os.LocaleList; 785 final LocaleList locales = layout.getLocales(); in getDefaultKeyboardLayout() 806 final LocaleList locales = layout.getLocales(); in getDefaultKeyboardLayout() 819 final LocaleList locales = layout.getLocales(); in getDefaultKeyboardLayout() 1185 LocaleList locales = getLocalesFromLanguageTags(languageTags); in visitKeyboardLayoutsInPackage() 1226 private static LocaleList getLocalesFromLanguageTags(String languageTags) { in getLocalesFromLanguageTags() 1228 return LocaleList.getEmptyLocaleList(); in getLocalesFromLanguageTags() 1230 return LocaleList.forLanguageTags(languageTags.replace('|', ',')); in getLocalesFromLanguageTags()
|
/frameworks/base/docs/html-intl/intl/in/preview/features/ |
D | multilingual-support.jd | 192 <h3>LocaleList API</h3> 194 <p>Android N menambahkan API baru {@code LocaleList.getDefault()}
|