Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/textservices/
DLocaleUtils.java68 @Nullable final Locale systemLocale) { in getSuitableLocalesForSpellChecker()
72 if (systemLocale != null) { in getSuitableLocalesForSpellChecker()
73 final String language = systemLocale.getLanguage(); in getSuitableLocalesForSpellChecker()
75 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker()
77 final String variant = systemLocale.getVariant(); in getSuitableLocalesForSpellChecker()
DTextServicesManagerService.java507 final Locale systemLocale; in getCurrentSpellCheckerSubtype() local
519 systemLocale = mContext.getResources().getConfiguration().locale; in getCurrentSpellCheckerSubtype()
546 if (systemLocale == null) { in getCurrentSpellCheckerSubtype()
553 if (Objects.equals(scsLocale, systemLocale)) { in getCurrentSpellCheckerSubtype()
558 && TextUtils.equals(systemLocale.getLanguage(), scsLocale.getLanguage())) { in getCurrentSpellCheckerSubtype()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodSubtypePreference.java55 final Locale systemLocale) { in InputMethodSubtypePreference() argument
64 mIsSystemLocale = subtypeLocale.equals(systemLocale); in InputMethodSubtypePreference()
66 || TextUtils.equals(subtypeLocale.getLanguage(), systemLocale.getLanguage()); in InputMethodSubtypePreference()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodSubtypePreferenceTest.java101 final Locale systemLocale) { in createPreference() argument
102 final String key = subtypeName + "-" + subtypeLocaleString + "-" + systemLocale; in createPreference()
111 systemLocale); in createPreference()
DInputMethodPreferenceTest.java121 final Locale systemLocale = targetContext in createInputMethodInfo() local
130 .setSubtypeLocale(systemLocale.getLanguage()) in createInputMethodInfo()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodUtils.java268 ArrayList<InputMethodInfo> imis, Context context, @Nullable Locale systemLocale, in getMinimumKeyboardSetWithSystemLocale() argument
281 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getMinimumKeyboardSetWithSystemLocale()
286 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getMinimumKeyboardSetWithSystemLocale()
312 + " systemLocale=" + systemLocale + " fallbackLocale=" + fallbackLocale); in getMinimumKeyboardSetWithSystemLocale()
324 final Locale systemLocale = getSystemLocaleFromContext(context); in getDefaultEnabledImes() local
326 getMinimumKeyboardSetWithSystemLocale(imis, context, systemLocale, fallbackLocale); in getDefaultEnabledImes()
328 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getDefaultEnabledImes()
459 final String systemLocale = systemLocales.get(0).toString(); in getImplicitlyApplicableSubtypesLockedImpl() local
460 if (TextUtils.isEmpty(systemLocale)) return new ArrayList<>(); in getImplicitlyApplicableSubtypesLockedImpl()
525 res, subtypes, SUBTYPE_MODE_KEYBOARD, systemLocale, true); in getImplicitlyApplicableSubtypesLockedImpl()
DInputMethodSubtypeSwitchingController.java59 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument
68 mIsSystemLocale = subtypeLocale.equals(systemLocale); in ImeSubtypeListItem()
73 final String systemLanguage = parseLanguageFromLocaleString(systemLocale); in ImeSubtypeListItem()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java876 final Locale systemLocale = mContext.getResources().getConfiguration().locale; in getDefaultKeyboardLayout() local
879 if (TextUtils.isEmpty(systemLocale.getLanguage())) { in getDefaultKeyboardLayout()
896 if (isCompatibleLocale(systemLocale, locales.get(localeIndex))) { in getDefaultKeyboardLayout()
918 if (locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout()
919 && locale.getVariant().equals(systemLocale.getVariant())) { in getDefaultKeyboardLayout()
931 if (locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout()
941 private static boolean isCompatibleLocale(Locale systemLocale, Locale keyboardLocale) { in isCompatibleLocale() argument
943 if (!systemLocale.getLanguage().equals(keyboardLocale.getLanguage())) { in isCompatibleLocale()
947 if (!TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale()
949 && !systemLocale.getCountry().equals(keyboardLocale.getCountry())) { in isCompatibleLocale()
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodSubtypeSwitchingControllerTest.java105 String systemLocale) { in createDummyItem() argument
130 systemLocale); in createDummyItem()
DInputMethodUtilsTest.java798 final Locale systemLocale, String... expectedImeNames) { in assertDefaultEnabledImes() argument
799 final Context context = createTargetContextWithLocales(new LocaleList(systemLocale)); in assertDefaultEnabledImes()
809 final Locale systemLocale, String... expectedImeNames) { in assertDefaultEnabledMinimumImes() argument
810 final Context context = createTargetContextWithLocales(new LocaleList(systemLocale)); in assertDefaultEnabledMinimumImes()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java1299 String systemLocale; in copyLocaleFromMountService() local
1301 systemLocale = getField(StorageManager.SYSTEM_LOCALE_KEY); in copyLocaleFromMountService()
1305 if (TextUtils.isEmpty(systemLocale)) { in copyLocaleFromMountService()
1309 Slog.d(TAG, "Got locale " + systemLocale + " from mount service"); in copyLocaleFromMountService()
1310 Locale locale = Locale.forLanguageTag(systemLocale); in copyLocaleFromMountService()
1320 Slog.d(TAG, "Setting system properties to " + systemLocale + " from mount service"); in copyLocaleFromMountService()