Searched refs:locale (Results 1 - 25 of 248) sorted by relevance

12345678910

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DWordListInfo.java26 public WordListInfo(final String id, final String locale, final String rawChecksum) { argument
28 mLocale = locale;
H A DDicTraverseSession.java47 private static native long setDicTraverseSessionNative(String locale, long dictSize); argument
54 public DicTraverseSession(Locale locale, long dictionary, long dictSize) { argument
56 locale != null ? locale.toString() : "", dictSize);
73 private final long createNativeDicTraverseSession(String locale, long dictSize) { argument
74 return setDicTraverseSessionNative(locale, dictSize);
H A DDictionaryFactory.java43 * locale. If none is found, it falls back to the built-in dictionary - if any.
45 * @param locale the locale for which to create the dictionary
50 final Locale locale, final boolean useFullEditDistance) {
51 if (null == locale) {
52 Log.e(TAG, "No locale defined for dictionary");
54 createReadOnlyBinaryDictionary(context, locale));
59 BinaryDictionaryGetter.getDictionaryFiles(locale, context);
64 useFullEditDistance, locale, Dictionary.TYPE_MAIN);
130 * locale
49 createMainDictionaryFromManager(final Context context, final Locale locale, final boolean useFullEditDistance) argument
135 createMainDictionaryFromManager(final Context context, final Locale locale) argument
146 createReadOnlyBinaryDictionary(final Context context, final Locale locale) argument
188 createDictionaryForTest(final AssetFileAddress[] dictionaryList, final boolean useFullEditDistance, Locale locale) argument
207 isDictionaryAvailable(Context context, Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DUserDictionaryCompatUtils.java33 final int freq, final String shortcut, final Locale locale) {
36 locale);
40 if (null == locale) {
43 final Locale currentLocale = context.getResources().getConfiguration().locale;
44 if (locale.equals(currentLocale)) {
32 addWord(final Context context, final String word, final int freq, final String shortcut, final Locale locale) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
H A DContextualDictionary.java31 private ContextualDictionary(final Context context, final Locale locale, argument
33 super(context, getDictName(NAME, locale, dictFile), locale, Dictionary.TYPE_CONTEXTUAL,
40 public static ContextualDictionary getDictionary(final Context context, final Locale locale, argument
42 return new ContextualDictionary(context, locale, dictFile);
H A DPersonalizationDictionary.java31 /* package */ PersonalizationDictionary(final Context context, final Locale locale) { argument
32 super(context, getDictName(NAME, locale, null /* dictFile */), locale,
38 final Locale locale, final File dictFile, final String dictNamePrefix) {
39 return PersonalizationHelper.getPersonalizationDictionary(context, locale);
37 getDictionary(final Context context, final Locale locale, final File dictFile, final String dictNamePrefix) argument
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DUserDictionaryList.java58 null == intent ? null : intent.getStringExtra("locale");
62 null == arguments ? null : arguments.getString("locale");
64 final String locale;
66 locale = localeFromArguments;
68 locale = localeFromIntent;
70 locale = null;
72 mLocale = locale;
88 final String locale = cursor.getString(columnIndex);
89 localeSet.add(null != locale ? locale
163 createUserDictionaryPreference(String locale, Activity activity) argument
[all...]
H A DUserDictionarySettingsUtils.java33 // CAVEAT: localeStr should not be null because a null locale stands for the system
34 // locale in UserDictionary.Words.addWord.
37 final Locale locale = Utils.createLocaleFromString(localeStr);
38 final Locale systemLocale = context.getResources().getConfiguration().locale;
39 return locale.getDisplayName(systemLocale);
/packages/apps/Dialer/tests/src/com/android/dialer/util/
H A DLocaleTestUtils.java26 * Utility class to save and restore the locale of the system.
28 * This can be used for tests that assume to be run in a certain locale, e.g., because they
30 * will behave in a specific locale.
32 * In your test, you can change the locale with the following code:
66 * Create a new instance that can be used to set and reset the locale for the given context.
68 * @param context the context on which to alter the locale
76 * Set the locale to the given value and saves the previous value.
78 * @param locale the value to which the locale should be set
79 * @throws IllegalStateException if the locale wa
81 setLocale(Locale locale) argument
112 setResourcesLocale(Resources resources, Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionarySettingsUtils.java34 // CAVEAT: localeStr should not be null because a null locale stands for the system
35 // locale in UserDictionary.Words.addWord.
38 final Locale locale = LocaleUtils.constructLocaleFromString(localeStr);
39 final Locale systemLocale = context.getResources().getConfiguration().locale;
40 return locale.getDisplayName(systemLocale);
H A DUserDictionaryLocalePicker.java34 public void onLocaleSelected(Locale locale); argument
H A DUserDictionaryList.java68 final String locale = cursor.getString(columnIndex);
69 localeSet.add(null != locale ? locale : "");
76 // For ICS, we need to show "For all languages" in case that the keyboard locale
77 // is different from the system locale
89 final String locale = subtype.getLocale();
90 if (!TextUtils.isEmpty(locale)) {
91 localeSet.add(locale);
97 // enabled subtypes. If we already have the locale-without-country version of the system
98 // locale, w
137 createUserDictionaryPreference(String locale, Activity activity) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DRunInLocale.java30 * Execute {@link #job(Resources)} method in specified system locale exclusively.
33 * @param newLocale the locale to change to. Run in system locale if null.
39 if (newLocale == null || newLocale.equals(conf.locale)) {
42 final Locale savedLocale = conf.locale;
44 conf.locale = newLocale;
48 conf.locale = savedLocale;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardTextsSetTests.java61 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
62 textsSet.setLocale(locale, context);
65 assertNotNull("Switch to alpha key label of " + locale, switchToAlphaKeyLabel);
66 assertFalse("Switch to alpha key label of " + locale, switchToAlphaKeyLabel.isEmpty());
87 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
88 textsSet.setLocale(locale, context);
91 assertNotNull(name + " of " + locale, text);
92 assertFalse(name + " of " + locale, text.isEmpty());
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
H A DItalianCustomizer.java25 public ItalianCustomizer(final Locale locale) { super(locale); } argument
H A DPortugueseCustomizer.java25 PortugueseCustomizer(final Locale locale) { super(locale); } argument
H A DTestsBasqueES.java42 public BasqueESCustomizer(final Locale locale) { argument
43 super(locale);
44 mSpanishCustomizer = new SpanishCustomizer(locale);
H A DTestsEnglishDvorak.java42 EnglishDvorakCustomizer(final Locale locale) { argument
43 super(locale);
44 mEnglishCustomizer = new EnglishCustomizer(locale);
H A DTestsFrench.java42 public FrenchEuroCustomizer(final Locale locale) { argument
43 super(locale);
44 mEuroCustomizer = new EuroCustomizer(locale);
H A DTestsGalicianES.java42 public GalicianESCustomizer(final Locale locale) { argument
43 super(locale);
44 mSpanishCustomizer = new SpanishCustomizer(locale);
H A DTestsGerman.java42 public GermanEuroCustomizer(final Locale locale) { argument
43 super(locale);
44 mEuroCustomizer = new EuroCustomizer(locale);
H A DTestsItalian.java42 public ItalianITCustomizer(final Locale locale) { argument
43 super(locale);
44 mItalianCustomizer = new ItalianCustomizer(locale);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DLocaleSet.java39 public LocaleWrapper(Locale locale) { argument
40 mLocale = locale;
58 public boolean isLocale(Locale locale) { argument
59 return mLocale == null ? (locale == null) : mLocale.equals(locale);
80 public LocaleSet(Locale locale) { argument
81 this(locale, null);
85 * Returns locale set for a given set of IETF BCP-47 tags separated by ';'.
88 * "zh-CN" for Locale.CHINA, etc. So eg "en-US;zh-CN" specifies the locale
92 * @return LocaleSet for specified locale strin
159 isPrimaryLocale(Locale locale) argument
163 isSecondaryLocale(Locale locale) argument
171 isLocaleSimplifiedChinese(Locale locale) argument
193 isLocaleTraditionalChinese(Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DLocaleUtils.java46 * Creates a locale from a string specification.
69 throw new RuntimeException("Unknown locale format: " + localeStr);
80 throw new RuntimeException("Unknown locale format: " + localeStr);
88 throw new RuntimeException("Unknown locale format: " + localeStr);
91 final Locale locale = builder.build();
92 sLocaleCache.put(localeStr, locale);
93 return locale;
151 public static String getLocaleCode(final Locale locale) { argument
152 if (locale == DEFAULT_LOCALE) {
155 return locale
158 getLocaleDisplayName(final Locale locale) argument
[all...]
/packages/apps/Settings/src/com/android/settings/accessibility/
H A DAccessibilityUtils.java65 static CharSequence getTextForLocale(Context context, Locale locale, int resId) { argument
68 final Locale prevLocale = config.locale;
70 config.locale = locale;
74 config.locale = prevLocale;

Completed in 379 milliseconds

12345678910