Searched refs:systemLocale (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputMethodUtils.java | 308 @Nullable final Locale systemLocale, @Nullable final Locale fallbackLocale) { in getMinimumKeyboardSetWithSystemLocale() argument 320 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getMinimumKeyboardSetWithSystemLocale() 325 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getMinimumKeyboardSetWithSystemLocale() 351 + " systemLocale=" + systemLocale + " fallbackLocale=" + fallbackLocale); in getMinimumKeyboardSetWithSystemLocale() 374 final Locale systemLocale = getSystemLocaleFromContext(context); in getDefaultEnabledImes() local 375 return getMinimumKeyboardSetWithSystemLocale(imis, context, systemLocale, fallbackLocale) in getDefaultEnabledImes() 376 .fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getDefaultEnabledImes() 541 final String systemLocale = systemLocales.get(0).toString(); in getImplicitlyApplicableSubtypesLockedImpl() local 542 if (TextUtils.isEmpty(systemLocale)) return new ArrayList<>(); in getImplicitlyApplicableSubtypesLockedImpl() 607 res, subtypes, SUBTYPE_MODE_KEYBOARD, systemLocale, true); in getImplicitlyApplicableSubtypesLockedImpl() [all …]
|
D | InputMethodSubtypeSwitchingController.java | 63 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument 72 mIsSystemLocale = subtypeLocale.equals(systemLocale); in ImeSubtypeListItem() 77 final String systemLanguage = parseLanguageFromLocaleString(systemLocale); in ImeSubtypeListItem()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 781 final Locale systemLocale = mContext.getResources().getConfiguration().locale; in getDefaultKeyboardLayout() local 784 if (TextUtils.isEmpty(systemLocale.getLanguage())) { in getDefaultKeyboardLayout() 801 if (isCompatibleLocale(systemLocale, locales.get(localeIndex))) { in getDefaultKeyboardLayout() 823 if (locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout() 824 && locale.getVariant().equals(systemLocale.getVariant())) { in getDefaultKeyboardLayout() 836 if (locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout() 846 private static boolean isCompatibleLocale(Locale systemLocale, Locale keyboardLocale) { in isCompatibleLocale() argument 848 if (!systemLocale.getLanguage().equals(keyboardLocale.getLanguage())) { in isCompatibleLocale() 852 if (!TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale() 854 && !systemLocale.getCountry().equals(keyboardLocale.getCountry())) { in isCompatibleLocale()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MountService.java | 1006 String systemLocale; in copyLocaleFromMountService() local 1008 systemLocale = getField(StorageManager.SYSTEM_LOCALE_KEY); in copyLocaleFromMountService() 1012 if (TextUtils.isEmpty(systemLocale)) { in copyLocaleFromMountService() 1016 Slog.d(TAG, "Got locale " + systemLocale + " from mount service"); in copyLocaleFromMountService() 1017 Locale locale = Locale.forLanguageTag(systemLocale); in copyLocaleFromMountService() 1027 Slog.d(TAG, "Setting system properties to " + systemLocale + " from mount service"); in copyLocaleFromMountService()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | InputMethodUtilsTest.java | 795 final Locale systemLocale, final boolean isSystemReady, String... expectedImeNames) { in assertDefaultEnabledImes() argument 796 final Context context = createTargetContextWithLocales(new LocaleList(systemLocale)); in assertDefaultEnabledImes()
|