Home
last modified time | relevance | path

Searched refs:localeString (Results 1 – 22 of 22) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtils.java123 final String localeString = exceptionalLocaleInRootLocale[i]; in initLocked() local
124 final String resourceName = SUBTYPE_NAME_RESOURCE_IN_ROOT_LOCALE_PREFIX + localeString; in initLocked()
126 sExceptionalLocaleDisplayedInRootLocale.put(localeString, resId); in initLocked()
132 final String localeString = exceptionalLocales[i]; in initLocked() local
133 final String resourceName = SUBTYPE_NAME_RESOURCE_PREFIX + localeString; in initLocked()
135 sExceptionalLocaleToNameIdsMap.put(localeString, resId); in initLocked()
137 SUBTYPE_NAME_RESOURCE_WITH_LAYOUT_PREFIX + localeString; in initLocked()
140 sExceptionalLocaleToWithLayoutNameIdsMap.put(localeString, resIdWithLayout); in initLocked()
152 public static boolean isExceptionalLocale(final String localeString) { in isExceptionalLocale() argument
153 return sExceptionalLocaleToNameIdsMap.containsKey(localeString); in isExceptionalLocale()
[all …]
DAdditionalSubtypeUtils.java62 final String localeString, final String keyboardLayoutSetName, in createAdditionalSubtypeInternal() argument
64 final int nameId = SubtypeLocaleUtils.getSubtypeNameId(localeString, keyboardLayoutSetName); in createAdditionalSubtypeInternal()
66 localeString, keyboardLayoutSetName, isAsciiCapable, isEmojiCapable); in createAdditionalSubtypeInternal()
68 getPlatformVersionIndependentSubtypeId(localeString, keyboardLayoutSetName); in createAdditionalSubtypeInternal()
72 R.drawable.ic_ime_switcher_dark, localeString, KEYBOARD_MODE, in createAdditionalSubtypeInternal()
79 final String localeString, final String keyboardLayoutSetName) { in createDummyAdditionalSubtype() argument
80 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName, in createDummyAdditionalSubtype()
85 final String localeString, final String keyboardLayoutSetName) { in createAsciiEmojiCapableAdditionalSubtype() argument
86 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName, in createAsciiEmojiCapableAdditionalSubtype()
91 final String localeString = subtype.getLocale(); in getPrefSubtype() local
[all …]
DDictionaryInfoUtils.java501 final String localeString = getWordListIdFromFileName(directory.getName());
503 localeString, context);
509 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
546 for (final String localeString : assets.getLocales()) {
547 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryList.java139 protected Preference createUserDictionaryPreference(@Nullable final String localeString) { in createUserDictionaryPreference() argument
142 if (null == localeString) { in createUserDictionaryPreference()
145 if (localeString.isEmpty()) { in createUserDictionaryPreference()
149 LocaleUtils.constructLocaleFromString(localeString).getDisplayName()); in createUserDictionaryPreference()
151 intent.putExtra("locale", localeString); in createUserDictionaryPreference()
152 newPref.getExtras().putString("locale", localeString); in createUserDictionaryPreference()
DUserDictionaryAddWordContents.java224 public LocaleRenderer(final Context context, @Nullable final String localeString) { in LocaleRenderer() argument
225 mLocaleString = localeString; in LocaleRenderer()
226 if (null == localeString) { in LocaleRenderer()
228 } else if ("".equals(localeString)) { in LocaleRenderer()
231 mDescription = LocaleUtils.constructLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadOverMeteredDialog.java51 final String localeString = intent.getStringExtra(LOCALE_KEY); in onCreate() local
54 setTexts(localeString, size); in onCreate()
57 private void setTexts(@Nullable final String localeString, final long size) { in setTexts() argument
60 final String language = (null == localeString) ? "" in setTexts()
61 : LocaleUtils.constructLocaleFromString(localeString).getDisplayLanguage(); in setTexts()
DDictionaryService.java165 final String localeString = intent.getStringExtra(LOCALE_INTENT_ARGUMENT); in onStartCommand() local
166 if (localeString == null) { in onStartCommand()
171 this, LocaleUtils.constructLocaleFromString(localeString)); in onStartCommand()
DUpdateHandler.java854 final String localeString = installCandidate.getAsString(MetadataDbHelper.LOCALE_COLUMN); in showDictionaryAvailableNotification() local
862 intent.putExtra(DownloadOverMeteredDialog.LOCALE_KEY, localeString); in showDictionaryAvailableNotification()
872 final String language = (null == localeString) ? "" in showDictionaryAvailableNotification()
873 : LocaleUtils.constructLocaleFromString(localeString).getDisplayLanguage(); in showDictionaryAvailableNotification()
959 final String localeString = installCandidate.getAsString(MetadataDbHelper.LOCALE_COLUMN); in installIfNeverRequested() local
971 intent.putExtra(DictionaryService.LOCALE_INTENT_ARGUMENT, localeString); in installIfNeverRequested()
DDictionarySettingsFragment.java318 final String localeString = cursor.getString(localeIndex); in createInstalledDictSettingsCollection() local
319 final Locale locale = new Locale(localeString); in createInstalledDictSettingsCollection()
322 final int matchLevel = LocaleUtils.getMatchLevel(systemLocaleString, localeString); in createInstalledDictSettingsCollection()
DActionBatch.java196 final String localeString = mWordListValues.getAsString(MetadataDbHelper.LOCALE_COLUMN); in execute() local
198 LocaleUtils.constructLocaleFromString(localeString), context, false); in execute()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DLocaleUtils.java172 public static Locale constructLocaleFromString(@Nonnull final String localeString) { in constructLocaleFromString() argument
174 if (sLocaleCache.containsKey(localeString)) { in constructLocaleFromString()
175 return sLocaleCache.get(localeString); in constructLocaleFromString()
177 final String[] elements = localeString.split("_", 3); in constructLocaleFromString()
187 sLocaleCache.put(localeString, locale); in constructLocaleFromString()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java200 public LocaleRenderer(final Context context, final String localeString) { in LocaleRenderer() argument
201 mLocaleString = localeString; in LocaleRenderer()
202 if (null == localeString) { in LocaleRenderer()
204 } else if ("".equals(localeString)) { in LocaleRenderer()
207 mDescription = Utils.createLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java348 String localeString = (String) newValue; in onPreferenceChange() local
349 updateLanguageTo((!TextUtils.isEmpty(localeString) ? in onPreferenceChange()
350 mEnginesHelper.parseLocaleString(localeString) : null)); in onPreferenceChange()
358 String localeString = (locale != null) ? locale.toString() : ""; in updateLanguageTo() local
360 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) { in updateLanguageTo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DDictionaryHeader.java66 final String localeString = dictionaryOptions.mAttributes.get(DICTIONARY_LOCALE_KEY); in DictionaryHeader()
67 if (null == localeString) { in DictionaryHeader()
79 mLocaleString = localeString; in DictionaryHeader()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DSuggestionSpanUtils.java113 final String localeString = suggestionSpan.getLocale(); in findFirstLocaleFromSuggestionSpans() local
114 if (TextUtils.isEmpty(localeString)) { in findFirstLocaleFromSuggestionSpans()
117 return LocaleUtils.constructLocaleFromString(localeString); in findFirstLocaleFromSuggestionSpans()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
DActionTestsBase.java73 final String localeString = subtype.getLocale(); in getLabelLocale() local
74 if (localeString.equals(SubtypeLocaleUtils.NO_LANGUAGE)) { in getLabelLocale()
77 return LocaleUtils.constructLocaleFromString(localeString); in getLabelLocale()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPersonalDictionaryLookup.java572 String localeString = cursor.getString(dictLocaleIndex); in loadPersonalDictionary() local
573 if (null == localeString) { in loadPersonalDictionary()
579 localeString = ""; in loadPersonalDictionary()
581 final Locale dictLocale = LocaleUtils.constructLocaleFromString(localeString); in loadPersonalDictionary()
DRichInputMethodManager.java417 public InputMethodSubtype findSubtypeByLocaleAndKeyboardLayoutSet(final String localeString, in findSubtypeByLocaleAndKeyboardLayoutSet() argument
424 if (localeString.equals(subtype.getLocale()) in findSubtypeByLocaleAndKeyboardLayoutSet()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java625 String localeString = (String) objValue; in onPreferenceChange() local
627 (!TextUtils.isEmpty(localeString) in onPreferenceChange()
628 ? mEnginesHelper.parseLocaleString(localeString) in onPreferenceChange()
638 String localeString = (locale != null) ? locale.toString() : ""; in updateLanguageTo() local
640 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) { in updateLanguageTo()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DLanguageOnSpacebarUtilsTests.java74 private RichInputMethodSubtype findSubtypeOf(final String localeString, in findSubtypeOf() argument
77 localeString, keyboardLayoutSetName); in findSubtypeOf()
79 throw new RuntimeException("Can't find subtype of " + localeString + " with " in findSubtypeOf()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java116 final String localeString = getLocale(); in onCreate() local
117 mLocale = (null == localeString) ? null in onCreate()
118 : LocaleUtils.constructLocaleFromString(localeString); in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DCustomInputStyleSettingsFragment.java225 final String localeString = subtype.getLocale(); in findDuplicatedSubtype() local
228 localeString, keyboardLayoutSetName); in findDuplicatedSubtype()