/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
InputMethodSubtypeTest.java | 28 public void verifyLocale(final String localeString) { 31 assertEquals(localeString, createDummySubtype(localeString).getLocale()); 34 assertEquals(createDummySubtype(localeString).getLocale(), 35 cloneViaParcel(createDummySubtype(localeString)).getLocale()); 38 assertEquals(createDummySubtype(localeString).getLocale(), 39 cloneViaParcel(cloneViaParcel(createDummySubtype(localeString))).getLocale()); 42 assertEquals(createDummySubtype(localeString).hashCode(), 43 createDummySubtype(localeString).hashCode()); 44 assertEquals(createDummySubtype(localeString).hashCode() [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
SubtypeLocaleUtils.java | 123 final String localeString = exceptionalLocaleInRootLocale[i]; 124 final String resourceName = SUBTYPE_NAME_RESOURCE_IN_ROOT_LOCALE_PREFIX + localeString; 126 sExceptionalLocaleDisplayedInRootLocale.put(localeString, resId); 132 final String localeString = exceptionalLocales[i]; 133 final String resourceName = SUBTYPE_NAME_RESOURCE_PREFIX + localeString; 135 sExceptionalLocaleToNameIdsMap.put(localeString, resId); 137 SUBTYPE_NAME_RESOURCE_WITH_LAYOUT_PREFIX + localeString; 140 sExceptionalLocaleToWithLayoutNameIdsMap.put(localeString, resIdWithLayout); 152 public static boolean isExceptionalLocale(final String localeString) { 153 return sExceptionalLocaleToNameIdsMap.containsKey(localeString); [all...] |
AdditionalSubtypeUtils.java | 62 final String localeString, final String keyboardLayoutSetName, 64 final int nameId = SubtypeLocaleUtils.getSubtypeNameId(localeString, keyboardLayoutSetName); 66 localeString, keyboardLayoutSetName, isAsciiCapable, isEmojiCapable); 68 getPlatformVersionIndependentSubtypeId(localeString, keyboardLayoutSetName); 72 R.drawable.ic_ime_switcher_dark, localeString, KEYBOARD_MODE, 79 final String localeString, final String keyboardLayoutSetName) { 80 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName, 85 final String localeString, final String keyboardLayoutSetName) { 86 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName, 91 final String localeString = subtype.getLocale() [all...] |
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/dictionarypack/ |
DownloadOverMeteredDialog.java | 51 final String localeString = intent.getStringExtra(LOCALE_KEY); 54 setTexts(localeString, size); 57 private void setTexts(@Nullable final String localeString, final long size) { 60 final String language = (null == localeString) ? "" 61 : LocaleUtils.constructLocaleFromString(localeString).getDisplayLanguage();
|
DictionaryService.java | 165 final String localeString = intent.getStringExtra(LOCALE_INTENT_ARGUMENT); 166 if (localeString == null) { 171 this, LocaleUtils.constructLocaleFromString(localeString));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
DictionaryHeader.java | 66 final String localeString = dictionaryOptions.mAttributes.get(DICTIONARY_LOCALE_KEY); 67 if (null == localeString) { 79 mLocaleString = localeString;
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
LocaleUtils.java | 168 * @param localeString a string specification of a locale, in a format of "ll_cc_variant" where 172 public static Locale constructLocaleFromString(@Nonnull final String localeString) { 174 if (sLocaleCache.containsKey(localeString)) { 175 return sLocaleCache.get(localeString); 177 final String[] elements = localeString.split("_", 3); 187 sLocaleCache.put(localeString, locale);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionaryList.java | 136 * @param localeString The locale for which this user dictionary is for. 139 protected Preference createUserDictionaryPreference(@Nullable final String localeString) { 142 if (null == localeString) { 145 if (localeString.isEmpty()) { 149 LocaleUtils.constructLocaleFromString(localeString).getDisplayName()); 151 intent.putExtra("locale", localeString); 152 newPref.getExtras().putString("locale", localeString);
|
UserDictionaryAddWordContents.java | 224 public LocaleRenderer(final Context context, @Nullable final String localeString) { 225 mLocaleString = localeString; 226 if (null == localeString) { 228 } else if ("".equals(localeString)) { 231 mDescription = LocaleUtils.constructLocaleFromString(localeString).getDisplayName();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
SuggestionSpanUtils.java | 113 final String localeString = suggestionSpan.getLocale(); 114 if (TextUtils.isEmpty(localeString)) { 117 return LocaleUtils.constructLocaleFromString(localeString);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
CollationIteratorTest.java | 719 private String localeString; 722 localeString = locStr; 725 public String getLocaleString() { return localeString; } 734 String localeString = tsceItem.getLocaleString(); 735 ULocale uloc = new ULocale(localeString); 740 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); 752 logln(String.format("(%s) offset=%2d ce=%08x\n", tsceItem.localeString, offset, element)); 754 errln("Error: in locale " + localeString + ", CEIterator next() returned element 0"); 758 errln("Error: in locale " + localeString + ", expected CEIterator next()->getOffset " + offsets[ioff] + ", got " + offset); 764 errln("Error: in locale " + localeString + ", CEIterator next() returned more elements than expected") [all...] |
AlphabeticIndexTest.java | 392 private void checkBuckets(String localeString, String[] test, ULocale additionalLocale, String testBucket, String... items) { 394 ULocale desiredLocale = new ULocale(localeString); [all...] |
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
CollationIteratorTest.java | 718 private String localeString; 721 localeString = locStr; 724 public String getLocaleString() { return localeString; } 733 String localeString = tsceItem.getLocaleString(); 734 ULocale uloc = new ULocale(localeString); 739 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); 751 logln(String.format("(%s) offset=%2d ce=%08x\n", tsceItem.localeString, offset, element)); 753 errln("Error: in locale " + localeString + ", CEIterator next() returned element 0"); 757 errln("Error: in locale " + localeString + ", expected CEIterator next()->getOffset " + offsets[ioff] + ", got " + offset); 763 errln("Error: in locale " + localeString + ", CEIterator next() returned more elements than expected") [all...] |
AlphabeticIndexTest.java | 391 private void checkBuckets(String localeString, String[] test, ULocale additionalLocale, String testBucket, String... items) { 393 ULocale desiredLocale = new ULocale(localeString); [all...] |
/frameworks/base/core/java/android/speech/tts/ |
TtsEngines.java | 338 String localeString = parseEnginePrefFromList( 342 if (TextUtils.isEmpty(localeString)) { 347 Locale result = parseLocaleString(localeString); 349 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead"); 379 public Locale parseLocaleString(String localeString) { 381 if (!TextUtils.isEmpty(localeString)) { 382 String[] split = localeString.split( 386 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Only" + 391 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Too" + 423 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object.") [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
UserDictionaryAddWordContents.java | 200 // LocaleString may NOT be null. 201 public LocaleRenderer(final Context context, final String localeString) { 202 mLocaleString = localeString; 203 if (null == localeString) { 205 } else if ("".equals(localeString)) { 208 mDescription = Utils.createLocaleFromString(localeString).getDisplayName();
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/ |
ActionTestsBase.java | 73 final String localeString = subtype.getLocale(); 74 if (localeString.equals(SubtypeLocaleUtils.NO_LANGUAGE)) { 77 return LocaleUtils.constructLocaleFromString(localeString);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
Locale.java | 92 * @param localeString the locale description 97 String localeString) { 101 LocaleQualifier qualifier = LocaleQualifier.getQualifier(localeString);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
TtsEngineSettingsFragment.java | 348 String localeString = (String) newValue; 349 updateLanguageTo((!TextUtils.isEmpty(localeString) ? 350 mEnginesHelper.parseLocaleString(localeString) : null)); 358 String localeString = (locale != null) ? locale.toString() : ""; 360 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) {
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 309 String localeString = loc.getLanguage(); 312 localeString += "-" + country; 314 return localeString.getBytes();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidWordLevelSpellCheckerSession.java | 116 final String localeString = getLocale(); 117 mLocale = (null == localeString) ? null 118 : LocaleUtils.constructLocaleFromString(localeString);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
LanguageOnSpacebarUtilsTests.java | 74 private RichInputMethodSubtype findSubtypeOf(final String localeString, 77 localeString, keyboardLayoutSetName); 79 throw new RuntimeException("Can't find subtype of " + localeString + " with "
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
PersonalDictionaryLookup.java | 572 String localeString = cursor.getString(dictLocaleIndex); 573 if (null == localeString) { 579 localeString = ""; 581 final Locale dictLocale = LocaleUtils.constructLocaleFromString(localeString);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
ICUDurationTest.java | 274 final String localeString; 281 localeString = loc; 308 String loc = tc.localeString;
|