[go: nahoru, domu]

Searched refs:LocaleList (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/os/
H A DLocaleList.aidl19 parcelable LocaleList;
H A DLocaleList.java33 * LocaleList is an immutable list of Locales, typically used to keep an ordered list of user
36 public final class LocaleList implements Parcelable { class in inherits: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))
159 public LocaleList(@NonNull Locale... list) { method in class:LocaleList
194 public LocaleList(@NonNull Locale topLocale, LocaleList otherLocales) { method in class:LocaleList
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DLocaleListTest.java27 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
[all...]
/frameworks/base/core/java/android/text/style/
H A DLocaleSpan.java24 import android.os.LocaleList;
37 private final LocaleList mLocales;
50 * @see #LocaleSpan(LocaleList)
53 mLocales = locale == null ? LocaleList.getEmptyLocaleList() : new LocaleList(locale);
57 * Creates a {@link LocaleSpan} from {@link LocaleList}.
59 * @param locales The {@link LocaleList} of the text to which the span is attached.
62 public LocaleSpan(@NonNull LocaleList locales) {
68 mLocales = LocaleList.CREATOR.createFromParcel(source);
100 * @see LocaleList#ge
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
H A DLocaleUtilsTest.java19 import android.os.LocaleList;
45 final LocaleList preferredLocales = LocaleList.getEmptyLocaleList();
61 final LocaleList preferredLocales = LocaleList.forLanguageTags("zh-Hans-TW");
72 final LocaleList preferredLocales = LocaleList.forLanguageTags("fr,en-US,ja-JP");
82 final LocaleList preferredLocales =
83 LocaleList.forLanguageTags("en-AU,en-GB,en-US,en,en-IN");
91 final LocaleList preferredLocale
[all...]
H A DInputMethodUtilsTest.java25 import android.os.LocaleList;
796 final Context context = createTargetContextWithLocales(new LocaleList(systemLocale));
819 private Context createTargetContextWithLocales(final LocaleList locales) {
828 return createTargetContextWithLocales(new LocaleList(locales)).getResources();
/frameworks/base/core/java/android/hardware/input/
H A DKeyboardLayout.java20 import android.os.LocaleList;
38 private final LocaleList mLocales;
53 LocaleList locales, int vid, int pid) {
68 mLocales = LocaleList.CREATOR.createFromParcel(source);
106 public LocaleList getLocales() {
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesLocaleTest.java19 import android.os.LocaleList;
69 final LocaleList preferredLocales = LocaleList.forLanguageTags("en-US,pl-PL");
86 final LocaleList preferredLocales = LocaleList.forLanguageTags("fr-FR,pl-PL");
H A DResourcesManagerTest.java21 import android.os.LocaleList;
150 expectedConfig.setLocales(LocaleList.getAdjustedDefault());
232 expectedConfig1.setLocales(LocaleList.getAdjustedDefault());
239 expectedConfig2.setLocales(LocaleList.getAdjustedDefault());
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DAutoReinflateContainer.java21 import android.os.LocaleList;
39 private LocaleList mLocaleList;
64 final LocaleList localeList = newConfig.getLocales();
/frameworks/base/core/java/android/view/inputmethod/
H A DEditorInfo.java21 import android.os.LocaleList;
360 * @see android.widget.TextView#setImeHintLocales(LocaleList)
364 public LocaleList hintLocales = null;
447 LocaleList.getEmptyLocaleList().writeToParcel(dest, flags);
472 LocaleList hintLocales = LocaleList.CREATOR.createFromParcel(source);
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java25 import android.os.LocaleList;
44 * @see LocaleUtils#calculateMatchingScore(ULocale, LocaleList, byte[])
93 @NonNull final LocaleList desired, @NonNull byte[] out) {
184 * {@link LocaleUtils#calculateMatchingScore(ULocale, LocaleList, byte[])}</p>
197 @NonNull LocaleList preferredLanguages,
H A DInputMethodUtils.java29 import android.os.LocaleList;
92 private static LocaleList sCachedSystemLocales;
513 final LocaleList systemLocales = res.getConfiguration().getLocales();
525 // LocaleList rather than Resource.
529 // Both LocaleList and InputMethodInfo are immutable. No need to copy them here.
540 final LocaleList systemLocales = res.getConfiguration().getLocales();
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java29 import android.os.LocaleList;
259 * @see #updateLocales(LocaleList)
262 updateLocales(new LocaleList(locale));
270 public static void updateLocales(LocaleList locales) {
291 public static LocaleList getLocales() {
297 return LocaleList.getDefault();
H A DLocaleHelper.java22 import android.os.LocaleList;
162 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) {
H A DLocalePickerWithRegion.java24 import android.os.LocaleList;
112 final LocaleList userLocales = LocalePicker.getLocales();
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java31 import android.os.LocaleList;
90 * {@link #setLocales(LocaleList)}. If only the primary locale is needed,
95 private LocaleList mLocaleList;
747 mLocaleList = locale == null ? LocaleList.getEmptyLocaleList() : new LocaleList(locale);
923 mLocaleList = LocaleList.getEmptyLocaleList();
1300 mLocaleList = new LocaleList(localeArray);
1449 public @NonNull LocaleList getLocales() {
1463 * @param locales The locale list. If null, an empty LocaleList will be assigned.
1465 public void setLocales(@Nullable LocaleList locale
[all...]
H A DResourcesImpl.java38 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());
/frameworks/base/core/tests/coretests/src/android/print/
H A DBasePrintTest.java32 import android.os.LocaleList;
74 private LocaleList mOldLocale;
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java22 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());
1304 * @return the paint's LocaleList used for drawing text, never null or empty.
1307 public LocaleList getTextLocales() {
1314 * See {@link #setTextLocales(LocaleList)} for how the locale list affects
1326 mLocales = new LocaleList(locale);
1357 public void setTextLocales(@NonNull @Size(min=1) LocaleList locale
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java21 import android.os.LocaleList;
785 final LocaleList locales = layout.getLocales();
806 final LocaleList locales = layout.getLocales();
819 final LocaleList locales = layout.getLocales();
1185 LocaleList locales = getLocalesFromLanguageTags(languageTags);
1226 private static LocaleList getLocalesFromLanguageTags(String languageTags) {
1228 return LocaleList.getEmptyLocaleList();
1230 return LocaleList.forLanguageTags(languageTags.replace('|', ','));
/frameworks/base/core/java/android/app/
H A DActivityThread.java67 import android.os.LocaleList;
5030 * The LocaleList set for the app's resources may have been shuffled so that the preferred
5032 * original LocaleList.
5034 private void updateLocaleListFromAppContext(Context context, LocaleList newLocaleList) {
5039 LocaleList.setDefault(newLocaleList, i);
5044 // The app may have overridden the LocaleList with its own Locale
5047 LocaleList.setDefault(new LocaleList(bestLocale, newLocaleList));
5109 * Set the LocaleList. This may change once we create the App Context.
5111 LocaleList
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java55 import android.os.LocaleList;
2878 * Get the default {@link LocaleList} of the text in this TextView.
2879 * @return the default {@link LocaleList} of the text in this TextView.
2882 public LocaleList getTextLocales() {
2887 * Set the default {@link LocaleList} of the text in this TextView to a one-member list
2905 * Set the default {@link LocaleList} of the text in this TextView to the given value.
2911 * @param locales the {@link LocaleList} for drawing text, must not be null or empty.
2915 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) {
2929 mTextPaint.setTextLocales(LocaleList.getDefault());
5036 public void setImeHintLocales(@Nullable LocaleList hintLocale
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DInputMethodManagerService.java85 import android.os.LocaleList;
469 private LocaleList mLastSystemLocales;
975 final LocaleList newLocales = mRes.getConfiguration().getLocales();
983 Slog.i(TAG, "LocaleList has been changed to " + newLocales);
/frameworks/base/core/java/android/provider/
H A DSettings.java51 import android.os.LocaleList;
2247 outConfig.setLocales(LocaleList.forLanguageTags(localeValue));
2680 * To get system locale, use {@link LocaleList#getDefault} instead.

Completed in 765 milliseconds

12