Home
last modified time | relevance | path

Searched refs:systemLocale (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodSubtypePreference.java53 final Locale systemLocale = context.getResources().getConfiguration().locale; in InputMethodSubtypePreference() local
54 mIsSystemLocale = subtypeLocaleString.equals(systemLocale.toString()); in InputMethodSubtypePreference()
57 .equals(systemLocale.getLanguage()); in InputMethodSubtypePreference()
DInputMethodSettingValuesWrapper.java171 final Locale systemLocale = context.getResources().getConfiguration().locale; in isValidSystemNonAuxAsciiCapableIme() local
173 true /* checkDefaultAttribute */, systemLocale, false /* checkCountry */, in isValidSystemNonAuxAsciiCapableIme()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodUtils.java271 @Nullable final Locale systemLocale, @Nullable final Locale fallbackLocale) { in getMinimumKeyboardSetWithSystemLocale() argument
283 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getMinimumKeyboardSetWithSystemLocale()
288 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getMinimumKeyboardSetWithSystemLocale()
314 + " systemLocale=" + systemLocale + " fallbackLocale=" + fallbackLocale); in getMinimumKeyboardSetWithSystemLocale()
326 final Locale systemLocale = getSystemLocaleFromContext(context); in getDefaultEnabledImes() local
327 return getMinimumKeyboardSetWithSystemLocale(imis, context, systemLocale, fallbackLocale) in getDefaultEnabledImes()
328 .fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getDefaultEnabledImes()
493 final String systemLocale = systemLocales.get(0).toString(); in getImplicitlyApplicableSubtypesLockedImpl() local
494 if (TextUtils.isEmpty(systemLocale)) return new ArrayList<>(); in getImplicitlyApplicableSubtypesLockedImpl()
559 res, subtypes, SUBTYPE_MODE_KEYBOARD, systemLocale, true); in getImplicitlyApplicableSubtypesLockedImpl()
[all …]
DInputMethodSubtypeSwitchingController.java64 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument
73 mIsSystemLocale = subtypeLocale.equals(systemLocale); in ImeSubtypeListItem()
78 final String systemLanguage = parseLanguageFromLocaleString(systemLocale); in ImeSubtypeListItem()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java828 final Locale systemLocale = mContext.getResources().getConfiguration().locale; in getDefaultKeyboardLayout() local
831 if (TextUtils.isEmpty(systemLocale.getLanguage())) { in getDefaultKeyboardLayout()
848 if (isCompatibleLocale(systemLocale, locales.get(localeIndex))) { in getDefaultKeyboardLayout()
870 if (locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout()
871 && locale.getVariant().equals(systemLocale.getVariant())) { in getDefaultKeyboardLayout()
883 if (locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout()
893 private static boolean isCompatibleLocale(Locale systemLocale, Locale keyboardLocale) { in isCompatibleLocale() argument
895 if (!systemLocale.getLanguage().equals(keyboardLocale.getLanguage())) { in isCompatibleLocale()
899 if (!TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale()
901 && !systemLocale.getCountry().equals(keyboardLocale.getCountry())) { in isCompatibleLocale()
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingControllerTest.java92 String subtypeName, String subtypeLocale, int subtypeIndex, String systemLocale) { in createDummyItem() argument
116 systemLocale); in createDummyItem()
DInputMethodUtilsTest.java764 final Locale systemLocale, String... expectedImeNames) { in assertDefaultEnabledImes() argument
765 final Context context = createTargetContextWithLocales(new LocaleList(systemLocale)); in assertDefaultEnabledImes()
/frameworks/base/services/core/java/com/android/server/
DTextServicesManagerService.java483 final Locale systemLocale; in getCurrentSpellCheckerSubtype() local
491 systemLocale = mContext.getResources().getConfiguration().locale; in getCurrentSpellCheckerSubtype()
520 candidateLocale = systemLocale.toString(); in getCurrentSpellCheckerSubtype()
DStorageManagerService.java1028 String systemLocale; in copyLocaleFromMountService() local
1030 systemLocale = getField(StorageManager.SYSTEM_LOCALE_KEY); in copyLocaleFromMountService()
1034 if (TextUtils.isEmpty(systemLocale)) { in copyLocaleFromMountService()
1038 Slog.d(TAG, "Got locale " + systemLocale + " from mount service"); in copyLocaleFromMountService()
1039 Locale locale = Locale.forLanguageTag(systemLocale); in copyLocaleFromMountService()
1049 Slog.d(TAG, "Setting system properties to " + systemLocale + " from mount service"); in copyLocaleFromMountService()