/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SubtypeLocaleUtils.java | 123 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 …]
|
D | AdditionalSubtypeUtils.java | 62 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 …]
|
D | DictionaryInfoUtils.java | 501 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/ |
D | UserDictionaryList.java | 139 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()
|
D | UserDictionaryAddWordContents.java | 224 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/ |
D | DownloadOverMeteredDialog.java | 51 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()
|
D | DictionaryService.java | 165 final String localeString = intent.getStringExtra(LOCALE_INTENT_ARGUMENT); in onStartCommand() local 166 if (localeString == null) { in onStartCommand() 171 this, LocaleUtils.constructLocaleFromString(localeString)); in onStartCommand()
|
D | UpdateHandler.java | 854 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()
|
D | DictionarySettingsFragment.java | 318 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()
|
D | ActionBatch.java | 196 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/ |
D | LocaleUtils.java | 172 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | UserDictionaryAddWordContents.java | 202 public LocaleRenderer(final Context context, final String localeString) { in LocaleRenderer() argument 203 mLocaleString = localeString; in LocaleRenderer() 204 if (null == localeString) { in LocaleRenderer() 206 } else if ("".equals(localeString)) { in LocaleRenderer() 209 mDescription = Utils.createLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionaryAddWordContents.java | 202 public LocaleRenderer(final Context context, final String localeString) { in LocaleRenderer() argument 203 mLocaleString = localeString; in LocaleRenderer() 204 if (null == localeString) { in LocaleRenderer() 206 } else if ("".equals(localeString)) { in LocaleRenderer() 209 mDescription = Utils.createLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | DictionaryHeader.java | 66 final String localeString = dictionaryOptions.mAttributes.get(DICTIONARY_LOCALE_KEY); in DictionaryHeader() 67 if (null == localeString) { in DictionaryHeader() 79 mLocaleString = localeString; in DictionaryHeader()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | TtsEngineSettingsFragment.java | 350 String localeString = (String) newValue; in onPreferenceChange() local 351 updateLanguageTo((!TextUtils.isEmpty(localeString) ? in onPreferenceChange() 352 mEnginesHelper.parseLocaleString(localeString) : null)); in onPreferenceChange() 360 String localeString = (locale != null) ? locale.toString() : ""; in updateLanguageTo() local 362 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) { in updateLanguageTo()
|
/packages/apps/Car/Settings/src/com/android/car/settings/tts/ |
D | TtsPlaybackPreferenceController.java | 272 String localeString = (locale != null) ? locale.toString() : ""; in findLocaleIndex() local 273 return mDefaultLanguagePreference.findIndexOfValue(localeString); in findLocaleIndex() 332 String localeString = (String) newValue; in initDefaultLanguagePreference() local 333 updateLanguageTo(!TextUtils.isEmpty(localeString) ? mEnginesHelper.parseLocaleString( in initDefaultLanguagePreference() 334 localeString) : null); in initDefaultLanguagePreference()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | SuggestionSpanUtils.java | 113 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/ |
D | ActionTestsBase.java | 73 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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowTtsEngines.java | 79 protected Locale parseLocaleString(String localeString) { in parseLocaleString() argument 80 return sInstance.parseLocaleString(localeString); in parseLocaleString()
|
/packages/apps/Settings/src/com/android/settings/tts/ |
D | TextToSpeechSettings.java | 622 String localeString = (String) objValue; in onPreferenceChange() local 624 (!TextUtils.isEmpty(localeString) in onPreferenceChange() 625 ? mEnginesHelper.parseLocaleString(localeString) in onPreferenceChange() 635 String localeString = (locale != null) ? locale.toString() : ""; in updateLanguageTo() local 637 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) { in updateLanguageTo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/ |
D | TextToSpeechSettings.java | 622 String localeString = (String) objValue; in onPreferenceChange() local 624 (!TextUtils.isEmpty(localeString) in onPreferenceChange() 625 ? mEnginesHelper.parseLocaleString(localeString) in onPreferenceChange() 635 String localeString = (locale != null) ? locale.toString() : ""; in updateLanguageTo() local 637 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) { in updateLanguageTo()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | LanguageOnSpacebarUtilsTests.java | 82 private RichInputMethodSubtype findSubtypeOf(final String localeString, in findSubtypeOf() argument 85 localeString, keyboardLayoutSetName); in findSubtypeOf() 87 throw new RuntimeException("Can't find subtype of " + localeString + " with " in findSubtypeOf()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidWordLevelSpellCheckerSession.java | 116 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/ |
D | CustomInputStyleSettingsFragment.java | 225 final String localeString = subtype.getLocale(); in findDuplicatedSubtype() local 228 localeString, keyboardLayoutSetName); in findDuplicatedSubtype()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 417 public InputMethodSubtype findSubtypeByLocaleAndKeyboardLayoutSet(final String localeString, in findSubtypeByLocaleAndKeyboardLayoutSet() argument 424 if (localeString.equals(subtype.getLocale()) in findSubtypeByLocaleAndKeyboardLayoutSet()
|