/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SubtypeLocaleUtils.java | 112 final String localeString = exceptionalLocales[i]; in initLocked() local 113 final String resourceName = SUBTYPE_NAME_RESOURCE_PREFIX + localeString; in initLocked() 115 sExceptionalLocaleToNameIdsMap.put(localeString, resId); in initLocked() 117 SUBTYPE_NAME_RESOURCE_WITH_LAYOUT_PREFIX + localeString; in initLocked() 120 sExceptionalLocaleToWithLayoutNameIdsMap.put(localeString, resIdWithLayout); in initLocked() 136 public static boolean isExceptionalLocale(final String localeString) { in isExceptionalLocale() argument 137 return sExceptionalLocaleToNameIdsMap.containsKey(localeString); in isExceptionalLocale() 144 public static int getSubtypeNameId(final String localeString, final String keyboardLayoutName) { in getSubtypeNameId() argument 146 && isExceptionalLocale(localeString)) { in getSubtypeNameId() 147 return sExceptionalLocaleToWithLayoutNameIdsMap.get(localeString); in getSubtypeNameId() [all …]
|
D | AdditionalSubtypeUtils.java | 61 final String localeString, final String keyboardLayoutSetName, in createAdditionalSubtypeInternal() argument 63 final int nameId = SubtypeLocaleUtils.getSubtypeNameId(localeString, keyboardLayoutSetName); in createAdditionalSubtypeInternal() 65 localeString, keyboardLayoutSetName, isAsciiCapable, isEmojiCapable); in createAdditionalSubtypeInternal() 67 getPlatformVersionIndependentSubtypeId(localeString, keyboardLayoutSetName); in createAdditionalSubtypeInternal() 71 R.drawable.ic_ime_switcher_dark, localeString, KEYBOARD_MODE, in createAdditionalSubtypeInternal() 78 final String localeString, final String keyboardLayoutSetName) { in createDummyAdditionalSubtype() argument 79 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName, in createDummyAdditionalSubtype() 84 final String localeString, final String keyboardLayoutSetName) { in createAsciiEmojiCapableAdditionalSubtype() argument 85 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName, in createAsciiEmojiCapableAdditionalSubtype() 90 final String localeString = subtype.getLocale(); in getPrefSubtype() local [all …]
|
D | DictionaryInfoUtils.java | 345 final String localeString = getWordListIdFromFileName(directory.getName()); in getCurrentDictionaryFileNameAndVersionInfo() local 346 File[] dicts = BinaryDictionaryGetter.getCachedWordLists(localeString, context); in getCurrentDictionaryFileNameAndVersionInfo() 350 final Locale locale = LocaleUtils.constructLocaleFromString(localeString); in getCurrentDictionaryFileNameAndVersionInfo() 366 for (final String localeString : assets.getLocales()) { in getCurrentDictionaryFileNameAndVersionInfo() 367 final Locale locale = LocaleUtils.constructLocaleFromString(localeString); in getCurrentDictionaryFileNameAndVersionInfo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | CustomInputStyleSettingsFragment.java | 78 public SubtypeLocaleItem(final String localeString, final String displayName) { in SubtypeLocaleItem() argument 79 super(localeString, displayName); in SubtypeLocaleItem() 82 public SubtypeLocaleItem(final String localeString) { in SubtypeLocaleItem() argument 83 this(localeString, in SubtypeLocaleItem() 84 SubtypeLocaleUtils.getSubtypeLocaleDisplayNameInSystemLocale(localeString)); in SubtypeLocaleItem() 126 final String localeString) { in createItem() argument 127 if (localeString.equals(SubtypeLocaleUtils.NO_LANGUAGE)) { in createItem() 129 return new SubtypeLocaleItem(localeString, displayName); in createItem() 131 return new SubtypeLocaleItem(localeString); in createItem() 550 final String localeString = subtype.getLocale(); in findDuplicatedSubtype() local [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | LocaleSetTest.java | 28 final String localeString = locales.toString(); in testLocaleStringsHelper() local 29 assertEquals(expectedString, localeString); in testLocaleStringsHelper() 31 final LocaleSet parseLocales = LocaleSet.getLocaleSet(localeString); in testLocaleStringsHelper() 42 private void testNormalizationHelper(String localeString, in testNormalizationHelper() argument 45 final LocaleSet actual = LocaleSet.getLocaleSet(localeString).normalize(); in testNormalizationHelper()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionaryAddWordContents.java | 201 public LocaleRenderer(final Context context, final String localeString) { in LocaleRenderer() argument 202 mLocaleString = localeString; in LocaleRenderer() 203 if (null == localeString) { in LocaleRenderer() 205 } else if ("".equals(localeString)) { in LocaleRenderer() 208 mDescription = Utils.createLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionaryAddWordContents.java | 222 public LocaleRenderer(final Context context, final String localeString) { in LocaleRenderer() argument 223 mLocaleString = localeString; in LocaleRenderer() 224 if (null == localeString) { in LocaleRenderer() 226 } else if ("".equals(localeString)) { in LocaleRenderer() 229 mDescription = LocaleUtils.constructLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DownloadOverMeteredDialog.java | 49 final String localeString = intent.getStringExtra(LOCALE_KEY); in onCreate() local 52 setTexts(localeString, size); in onCreate() 55 private void setTexts(final String localeString, final long size) { in setTexts() argument 58 final Locale locale = LocaleUtils.constructLocaleFromString(localeString); in setTexts()
|
D | UpdateHandler.java | 841 final String localeString = installCandidate.getAsString(MetadataDbHelper.LOCALE_COLUMN); in showDictionaryAvailableNotification() local 849 intent.putExtra(DownloadOverMeteredDialog.LOCALE_KEY, localeString); in showDictionaryAvailableNotification() 859 final Locale locale = LocaleUtils.constructLocaleFromString(localeString); in showDictionaryAvailableNotification() 955 final String localeString = installCandidate.getAsString(MetadataDbHelper.LOCALE_COLUMN); in installIfNeverRequested() local 963 intent.putExtra(DictionaryService.LOCALE_INTENT_ARGUMENT, localeString); in installIfNeverRequested()
|
D | DictionarySettingsFragment.java | 305 final String localeString = cursor.getString(localeIndex); in createInstalledDictSettingsCollection() local 306 final Locale locale = new Locale(localeString); in createInstalledDictSettingsCollection() 310 LocaleUtils.getMatchLevel(systemLocaleString, localeString); in createInstalledDictSettingsCollection()
|
/packages/apps/Settings/src/com/android/settings/tts/ |
D | TtsEngineSettingsFragment.java | 325 String localeString = (String) newValue; in onPreferenceChange() local 326 updateLanguageTo((!TextUtils.isEmpty(localeString) ? in onPreferenceChange() 327 mEnginesHelper.parseLocaleString(localeString) : null)); in onPreferenceChange() 335 String localeString = (locale != null) ? locale.toString() : ""; in updateLanguageTo() local 337 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) { in updateLanguageTo()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LocaleSet.java | 95 public static LocaleSet getLocaleSet(String localeString) { in getLocaleSet() argument 99 if (localeString != null && localeString.indexOf('_') == -1) { in getLocaleSet() 100 final String[] locales = localeString.split(";"); in getLocaleSet()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | MessageParser.java | 255 String localeString = intent.getStringExtra(EXTRA_PROVISIONING_LOCALE); in parseNonNfcIntent() local 256 if (localeString != null) { in parseNonNfcIntent() 257 params.mLocale = stringToLocale(localeString); in parseNonNfcIntent()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidWordLevelSpellCheckerSession.java | 119 final String localeString = getLocale(); in onCreate() local 120 mLocale = LocaleUtils.constructLocaleFromString(localeString); in onCreate()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 366 public InputMethodSubtype findSubtypeByLocaleAndKeyboardLayoutSet(final String localeString, in findSubtypeByLocaleAndKeyboardLayoutSet() argument 373 if (localeString.equals(subtype.getLocale()) in findSubtypeByLocaleAndKeyboardLayoutSet()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaScannerService.java | 74 String localeString = null; in createMediaScanner() local
|