/frameworks/base/services/core/java/com/android/server/textservices/ |
D | LocaleUtils.java | 68 @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()
|
D | TextServicesManagerService.java | 537 final Locale systemLocale; in getCurrentSpellCheckerSubtype() local 549 systemLocale = mContext.getResources().getConfiguration().locale; in getCurrentSpellCheckerSubtype() 576 if (systemLocale == null) { in getCurrentSpellCheckerSubtype() 583 if (Objects.equals(scsLocale, systemLocale)) { in getCurrentSpellCheckerSubtype() 588 && TextUtils.equals(systemLocale.getLanguage(), scsLocale.getLanguage())) { in getCurrentSpellCheckerSubtype()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodSubtypePreference.java | 55 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/ |
D | InputMethodSubtypePreferenceTest.java | 101 final Locale systemLocale) { in createPreference() argument 102 final String key = subtypeName + "-" + subtypeLocaleString + "-" + systemLocale; in createPreference() 111 systemLocale); in createPreference()
|
D | InputMethodPreferenceTest.java | 121 final Locale systemLocale = targetContext in createInputMethodInfo() local 130 .setSubtypeLocale(systemLocale.getLanguage()) in createInputMethodInfo()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodUtils.java | 270 ArrayList<InputMethodInfo> imis, Context context, @Nullable Locale systemLocale, 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 328 getMinimumKeyboardSetWithSystemLocale(imis, context, systemLocale, fallbackLocale); in getDefaultEnabledImes() 330 builder.fillImes(imis, context, true /* checkDefaultAttribute */, systemLocale, in getDefaultEnabledImes() 461 final String systemLocale = systemLocales.get(0).toString(); in getImplicitlyApplicableSubtypesLockedImpl() local 462 if (TextUtils.isEmpty(systemLocale)) return new ArrayList<>(); in getImplicitlyApplicableSubtypesLockedImpl() 527 res, subtypes, SUBTYPE_MODE_KEYBOARD, systemLocale, true); in getImplicitlyApplicableSubtypesLockedImpl()
|
D | InputMethodSubtypeSwitchingController.java | 59 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/ |
D | InputManagerService.java | 843 final Locale systemLocale = mContext.getResources().getConfiguration().locale; in getDefaultKeyboardLayout() local 846 if (TextUtils.isEmpty(systemLocale.getLanguage())) { in getDefaultKeyboardLayout() 863 if (isCompatibleLocale(systemLocale, locales.get(localeIndex))) { in getDefaultKeyboardLayout() 885 if (locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout() 886 && locale.getVariant().equals(systemLocale.getVariant())) { in getDefaultKeyboardLayout() 898 if (locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout() 908 private static boolean isCompatibleLocale(Locale systemLocale, Locale keyboardLocale) { in isCompatibleLocale() argument 910 if (!systemLocale.getLanguage().equals(keyboardLocale.getLanguage())) { in isCompatibleLocale() 914 if (!TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale() 916 && !systemLocale.getCountry().equals(keyboardLocale.getCountry())) { in isCompatibleLocale()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 105 String systemLocale) { in createDummyItem() argument 130 systemLocale); in createDummyItem()
|
D | InputMethodUtilsTest.java | 798 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/ |
D | StorageManagerService.java | 1084 String systemLocale; in copyLocaleFromMountService() local 1086 systemLocale = getField(StorageManager.SYSTEM_LOCALE_KEY); in copyLocaleFromMountService() 1090 if (TextUtils.isEmpty(systemLocale)) { in copyLocaleFromMountService() 1094 Slog.d(TAG, "Got locale " + systemLocale + " from mount service"); in copyLocaleFromMountService() 1095 Locale locale = Locale.forLanguageTag(systemLocale); in copyLocaleFromMountService() 1105 Slog.d(TAG, "Setting system properties to " + systemLocale + " from mount service"); in copyLocaleFromMountService()
|