/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | WordListInfo.java | 25 public WordListInfo(final String id, final String locale) { argument 27 mLocale = locale;
|
H A D | DicTraverseSession.java | 28 private static native long setDicTraverseSessionNative(String locale, long dictSize); argument 35 public DicTraverseSession(Locale locale, long dictionary, long dictSize) { argument 37 locale != null ? locale.toString() : "", dictSize); 54 private final long createNativeDicTraverseSession(String locale, long dictSize) { argument 55 return setDicTraverseSessionNative(locale, dictSize);
|
H A D | SynchronouslyLoadedUserBinaryDictionary.java | 28 public SynchronouslyLoadedUserBinaryDictionary(final Context context, final String locale) { argument 29 this(context, locale, false); 32 public SynchronouslyLoadedUserBinaryDictionary(final Context context, final String locale, argument 34 super(context, locale, alsoUseMoreRestrictiveLocales);
|
H A D | DictionaryFactory.java | 43 * 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); 81 * locale 49 createMainDictionaryFromManager(final Context context, final Locale locale, final boolean useFullEditDistance) argument 86 createMainDictionaryFromManager(final Context context, final Locale locale) argument 97 createReadOnlyBinaryDictionary(final Context context, final Locale locale) argument 139 createDictionaryForTest(final AssetFileAddress[] dictionaryList, final boolean useFullEditDistance, Locale locale) argument 158 isDictionaryAvailable(Context context, Locale locale) argument [all...] |
H A D | SynchronouslyLoadedContactsBinaryDictionary.java | 30 public SynchronouslyLoadedContactsBinaryDictionary(final Context context, final Locale locale) { argument 31 super(context, locale);
|
H A D | UserBinaryDictionary.java | 78 public UserBinaryDictionary(final Context context, final String locale) { argument 79 this(context, locale, false); 82 public UserBinaryDictionary(final Context context, final String locale, argument 84 super(context, getFilenameWithLocale(NAME, locale), Dictionary.TYPE_USER, 86 if (null == locale) throw new NullPointerException(); // Catch the error earlier 87 if (SubtypeLocaleUtils.NO_LANGUAGE.equals(locale)) { 88 // If we don't have a locale, insert into the "all locales" user dictionary. 91 mLocale = locale; 130 // Split the locale. For example "en" => ["en"], "de_DE" => ["de", "DE"], 132 // This is correct for locale processin [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | PersonalizationPredictionDictionary.java | 28 /* package */ PersonalizationPredictionDictionary(final Context context, final String locale, argument 30 super(context, locale, sp, Dictionary.TYPE_PERSONALIZATION_PREDICTION_IN_JAVA, 31 getDictionaryFileName(locale)); 34 private static String getDictionaryFileName(final String locale) { argument 35 return NAME + "." + locale + ExpandableBinaryDictionary.DICT_FILE_EXTENSION;
|
H A D | UserHistoryDictionary.java | 32 /* package */ UserHistoryDictionary(final Context context, final String locale, argument 34 super(context, locale, sp, Dictionary.TYPE_USER_HISTORY, getDictionaryFileName(locale)); 37 private static String getDictionaryFileName(final String locale) { argument 38 return NAME + "." + locale + ExpandableBinaryDictionary.DICT_FILE_EXTENSION;
|
H A D | PersonalizationHelper.java | 44 final Context context, final String locale, final SharedPreferences sp) { 46 if (sLangUserHistoryDictCache.containsKey(locale)) { 48 sLangUserHistoryDictCache.get(locale); 52 Log.w(TAG, "Use cached UserHistoryDictionary for " + locale); 58 final UserHistoryDictionary dict = new UserHistoryDictionary(context, locale, sp); 59 sLangUserHistoryDictCache.put(locale, new SoftReference<UserHistoryDictionary>(dict)); 77 final PersonalizationDictionaryUpdateSession session, String locale) { 79 getPersonalizationPredictionDictionary(context, locale, 83 getPersonalizationDictionary(context, locale, 89 final Context context, final String locale, fina 43 getUserHistoryDictionary( final Context context, final String locale, final SharedPreferences sp) argument 76 registerPersonalizationDictionaryUpdateSession(final Context context, final PersonalizationDictionaryUpdateSession session, String locale) argument 88 getPersonalizationDictionary( final Context context, final String locale, final SharedPreferences sp) argument 110 getPersonalizationPredictionDictionary( final Context context, final String locale, final SharedPreferences sp) argument [all...] |
H A D | PersonalizationDictionary.java | 39 public PersonalizationDictionary(final Context context, final String locale, argument 42 super(context, getFilenameWithLocale(NAME, locale), Dictionary.TYPE_PERSONALIZATION, 44 mLocale = locale;
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | UserDictionaryList.java | 58 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; 87 final String locale = cursor.getString(columnIndex); 88 localeSet.add(null != locale ? locale 158 createUserDictionaryPreference(String locale, Activity activity) argument [all...] |
H A D | UserDictionarySettingsUtils.java | 33 // 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 D | LocaleTestUtils.java | 26 * 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 D | UserDictionarySettingsUtils.java | 34 // 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 D | UserDictionaryLocalePicker.java | 34 public void onLocaleSelected(Locale locale); argument
|
H A D | UserDictionaryList.java | 67 final String locale = cursor.getString(columnIndex); 68 localeSet.add(null != locale ? locale : ""); 72 // For ICS, we need to show "For all languages" in case that the keyboard locale 73 // is different from the system locale 85 final String locale = subtype.getLocale(); 86 if (!TextUtils.isEmpty(locale)) { 87 localeSet.add(locale); 93 // enabled subtypes. If we already have the locale-without-country version of the system 94 // locale, w 133 createUserDictionaryPreference(String locale, Activity activity) argument [all...] |
/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | AccessibilityUtils.java | 65 static CharSequence getTextForLocale(Context context, Locale locale, int resId) { argument 68 final Locale prevLocale = config.locale; 70 config.locale = locale; 74 config.locale = prevLocale;
|
H A D | LocalePreference.java | 31 * List preference that allows the user to pick a locale from the list of 78 if (previous.locale.getLanguage().equals(language) 79 && !previous.locale.getLanguage().equals("zz")) { 81 localeInfos[finalSize - 1].locale, specialLocaleCodes, 109 entryValues[i + 1] = info.locale.toString(); 133 public Locale locale; field in class:LocalePreference.LocaleInfo 135 public LocaleInfo(String label, Locale locale) { argument 137 this.locale = locale;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | UserDictionaryCompatUtils.java | 33 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
|
H A D | InputMethodSubtypeCompatUtils.java | 26 // Note that InputMethodSubtype(int nameId, int iconId, String locale, String mode, 44 public static InputMethodSubtype newInputMethodSubtype(int nameId, int iconId, String locale, argument 49 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary, 53 nameId, iconId, locale, mode, extraValue, isAuxiliary,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | RunInLocale.java | 30 * Execute {@link #job(Resources)} method in specified system locale exclusively. 33 * @param newLocale the locale to change to. 39 final Locale oldLocale = conf.locale; 43 conf.locale = newLocale; 49 conf.locale = oldLocale;
|
H A D | DictionaryInfoUtils.java | 49 private static final String LOCALE_COLUMN = "locale"; 61 public DictionaryInfo(final String id, final Locale locale, final String description, argument 64 mLocale = locale; 160 * Helper method to the list of cache directories, one for each distinct locale. 176 // An id is supposed to be in format category:locale, so splitting on the separator 183 * Find out the cache directory associated with a specific locale. 185 private static String getCacheDirectoryForLocale(final String locale, final Context context) { argument 186 final String relativeDirectoryName = replaceFileNameDangerousCharacters(locale); 192 Log.e(TAG, "Could not create the directory for locale" + locale); 213 getCacheFileName(String id, String locale, Context context) argument 231 getMainDictionaryResourceIdIfAvailableForLocale(final Resources res, final Locale locale) argument 259 getMainDictionaryResourceId(final Resources res, final Locale locale) argument 273 getMainDictId(final Locale locale) argument [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | NameNormalizer.java | 40 * Ensure that the cached collators are for the current locale. 43 final Locale locale = Locale.getDefault(); 44 if (locale.equals(sCollatorLocale)) { 47 sCollatorLocale = locale; 49 sCachedCompressingCollator = (RuleBasedCollator) Collator.getInstance(locale); 53 sCachedComplexityCollator = (RuleBasedCollator) Collator.getInstance(locale);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | MoreKeySpec.java | 32 public MoreKeySpec(final String moreKeySpec, boolean needsToUpperCase, final Locale locale, argument 35 KeySpecParser.getLabel(moreKeySpec), needsToUpperCase, locale); 37 KeySpecParser.getCode(moreKeySpec, codesSet), needsToUpperCase, locale); 46 KeySpecParser.getOutputText(moreKeySpec), needsToUpperCase, locale);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
H A D | GeoUtil.java | 60 final Locale locale = context.getResources().getConfiguration().locale; 61 return geocoder.getDescriptionForNumber(structuredPhoneNumber, locale);
|