HomeSort by relevance Sort by last modified time
    Searched full:localestring (Results 1 - 25 of 39) sorted by null

1 2

  /frameworks/base/core/tests/inputmethodtests/src/android/os/
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...]
InputMethodTest.java 316 private static ArrayList<InputMethodInfo> getSamplePreinstalledImes(final String localeString) {
331 final boolean isDefaultIme = contains(new String[]{ "hi", "en-rIN" }, localeString);
345 final boolean isDefaultIme = contains(new String[]{ "zh-rCN" }, localeString);
356 final boolean isDefaultIme = contains(new String[]{ "ko" }, localeString);
368 new String[]{ "en-rUS", "en-rGB", "en-rIN", "en", "hi" }, localeString);
385 final boolean isDefaultIme = contains(new String[]{ "ja", "ja-rJP" }, localeString);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
SubtypeLocaleUtils.java 112 final String localeString = exceptionalLocales[i];
113 final String resourceName = SUBTYPE_NAME_RESOURCE_PREFIX + localeString;
115 sExceptionalLocaleToNameIdsMap.put(localeString, resId);
117 SUBTYPE_NAME_RESOURCE_WITH_LAYOUT_PREFIX + localeString;
120 sExceptionalLocaleToWithLayoutNameIdsMap.put(localeString, resIdWithLayout);
136 public static boolean isExceptionalLocale(final String localeString) {
137 return sExceptionalLocaleToNameIdsMap.containsKey(localeString);
144 public static int getSubtypeNameId(final String localeString, final String keyboardLayoutName) {
146 && isExceptionalLocale(localeString)) {
147 return sExceptionalLocaleToWithLayoutNameIdsMap.get(localeString);
    [all...]
AdditionalSubtypeUtils.java 61 final String localeString, final String keyboardLayoutSetName,
63 final int nameId = SubtypeLocaleUtils.getSubtypeNameId(localeString, keyboardLayoutSetName);
65 localeString, keyboardLayoutSetName, isAsciiCapable, isEmojiCapable);
67 getPlatformVersionIndependentSubtypeId(localeString, keyboardLayoutSetName);
71 R.drawable.ic_ime_switcher_dark, localeString, KEYBOARD_MODE,
78 final String localeString, final String keyboardLayoutSetName) {
79 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName,
84 final String localeString, final String keyboardLayoutSetName) {
85 return createAdditionalSubtypeInternal(localeString, keyboardLayoutSetName,
90 final String localeString = subtype.getLocale()
    [all...]
DictionaryInfoUtils.java 345 final String localeString = getWordListIdFromFileName(directory.getName());
346 File[] dicts = BinaryDictionaryGetter.getCachedWordLists(localeString, context);
350 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
366 for (final String localeString : assets.getLocales()) {
367 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
  /external/chromium_org/third_party/WebKit/Source/web/tests/
LocaleICUTest.cpp 90 String monthFormat(const char* localeString)
92 OwnPtr<LocaleICU> locale = LocaleICU::create(localeString);
96 String localizedDateFormatText(const char* localeString)
98 OwnPtr<LocaleICU> locale = LocaleICU::create(localeString);
102 String localizedShortDateFormatText(const char* localeString)
104 OwnPtr<LocaleICU> locale = LocaleICU::create(localeString);
108 String shortMonthLabel(const char* localeString, unsigned index)
110 OwnPtr<LocaleICU> locale = LocaleICU::create(localeString);
114 String shortStandAloneMonthLabel(const char* localeString, unsigned index)
116 OwnPtr<LocaleICU> locale = LocaleICU::create(localeString);
    [all...]
LocaleMacTest.cpp 72 String formatWeek(const String& localeString, const String& isoString)
74 OwnPtr<LocaleMac> locale = LocaleMac::create(localeString);
81 String formatMonth(const String& localeString, const String& isoString, bool useShortFormat)
83 OwnPtr<LocaleMac> locale = LocaleMac::create(localeString);
90 String formatDate(const String& localeString, int year, int month, int day)
92 OwnPtr<LocaleMac> locale = LocaleMac::create(localeString);
96 String formatTime(const String& localeString, int hour, int minute, int second, int millisecond, bool useShortFormat)
98 OwnPtr<LocaleMac> locale = LocaleMac::create(localeString);
102 unsigned firstDayOfWeek(const String& localeString)
104 OwnPtr<LocaleMac> locale = LocaleMac::create(localeString);
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
LocaleSetTest.java 28 final String localeString = locales.toString();
29 assertEquals(expectedString, localeString);
31 final LocaleSet parseLocales = LocaleSet.getLocaleSet(localeString);
42 private void testNormalizationHelper(String localeString,
45 final LocaleSet actual = LocaleSet.getLocaleSet(localeString).normalize();
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DownloadOverMeteredDialog.java 49 final String localeString = intent.getStringExtra(LOCALE_KEY);
52 setTexts(localeString, size);
55 private void setTexts(final String localeString, final long size) {
58 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
DictionarySettingsFragment.java 305 final String localeString = cursor.getString(localeIndex);
306 final Locale locale = new Locale(localeString);
310 LocaleUtils.getMatchLevel(systemLocaleString, localeString);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
LocaleSet.java 91 * @param localeString One or more BCP-47 tags separated by ';'.
95 public static LocaleSet getLocaleSet(String localeString) {
99 if (localeString != null && localeString.indexOf('_') == -1) {
100 final String[] locales = localeString.split(";");
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
CustomInputStyleSettingsFragment.java 78 public SubtypeLocaleItem(final String localeString, final String displayName) {
79 super(localeString, displayName);
82 public SubtypeLocaleItem(final String localeString) {
83 this(localeString,
84 SubtypeLocaleUtils.getSubtypeLocaleDisplayNameInSystemLocale(localeString));
126 final String localeString) {
127 if (localeString.equals(SubtypeLocaleUtils.NO_LANGUAGE)) {
129 return new SubtypeLocaleItem(localeString, displayName);
131 return new SubtypeLocaleItem(localeString);
550 final String localeString = subtype.getLocale()
    [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/java/src/com/android/inputmethod/latin/userdictionary/
UserDictionaryAddWordContents.java 221 // LocaleString may NOT be null.
222 public LocaleRenderer(final Context context, final String localeString) {
223 mLocaleString = localeString;
224 if (null == localeString) {
226 } else if ("".equals(localeString)) {
229 mDescription = LocaleUtils.constructLocaleFromString(localeString).getDisplayName();
  /packages/apps/Settings/src/com/android/settings/tts/
TtsEngineSettingsFragment.java 324 String localeString = (String) newValue;
325 updateLanguageTo((!TextUtils.isEmpty(localeString) ?
326 mEnginesHelper.parseLocaleString(localeString) : null));
334 String localeString = (locale != null) ? locale.toString() : "";
336 if (localeString.equalsIgnoreCase(mLocalePreference.getEntryValues()[i].toString())) {
  /frameworks/base/core/java/android/speech/tts/
TtsEngines.java 339 String localeString = parseEnginePrefFromList(
343 if (TextUtils.isEmpty(localeString)) {
348 Locale result = parseLocaleString(localeString);
350 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead");
380 public Locale parseLocaleString(String localeString) {
382 if (!TextUtils.isEmpty(localeString)) {
383 String[] split = localeString.split(
387 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Only" +
392 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Too" +
424 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object.")
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 205 String localeString = loc.getLanguage();
208 localeString += "-" + country;
210 return localeString.getBytes();
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
MessageParser.java 265 String localeString = intent.getStringExtra(EXTRA_PROVISIONING_LOCALE);
266 if (localeString != null) {
267 params.mLocale = stringToLocale(localeString);
  /external/chromium_org/third_party/WebKit/Source/platform/text/
LocaleICU.h 49 static PassOwnPtr<LocaleICU> create(const char* localeString);
LocaleICU.cpp 72 PassOwnPtr<LocaleICU> LocaleICU::create(const char* localeString)
74 return adoptPtr(new LocaleICU(localeString));
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
ConfigurationDescription.java 199 String localeString = element.getAttribute(ATTR_LOCALE);
200 if (!localeString.isEmpty()) {
205 String locales[] = localeString.split(SEP_LOCALE);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
RichInputMethodManager.java 366 public InputMethodSubtype findSubtypeByLocaleAndKeyboardLayoutSet(final String localeString,
373 if (localeString.equals(subtype.getLocale())
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidWordLevelSpellCheckerSession.java 119 final String localeString = getLocale();
120 mLocale = LocaleUtils.constructLocaleFromString(localeString);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
HarfBuzzShaper.cpp 826 const String& localeString = fontDescription.locale();
827 CString locale = localeString.latin1();
850 if (cachedResults->dir == currentRun->direction() && cachedResults->font == *m_font && cachedResults->locale == localeString) {
886 runCache.insert(key, new CachedShapingResults(harfBuzzBuffer.get(), m_font, currentRun->direction(), localeString));
    [all...]
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaScannerService.java 74 String localeString = null;

Completed in 813 milliseconds

1 2