Searched defs:locale (Results 176 - 200 of 222) sorted by relevance

123456789

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionary.java67 // The locale for this dictionary. May be null if unknown (phony dictionary for example).
80 public Dictionary(final String dictType, final Locale locale) { argument
82 mLocale = locale;
92 * @param weightForLocale the weight given to this locale, to multiply the output scores for
H A DPersonalDictionaryLookup.java56 * locale.
205 * We store a map from a shortcut to a word for each locale.
206 * Shortcuts that apply to any locale are keyed by {@link #ANY_LOCALE}.
308 * Returns the set of words defined for the given locale and more general locales.
310 * For example, input locale en_US uses data for en_US, en, and the global dictionary.
315 * @param inputLocale the locale to restrict for
316 * @return set of words that apply to the given locale.
342 * Returns the set of shortcuts defined for the given locale and more general locales.
344 * For example, input locale en_US uses data for en_US, en, and the global dictionary.
349 * @param inputLocale the locale t
508 expandShortcut( @ullable final HashMap<Locale, HashMap<String, String>> shortcutsPerLocale, @Nonnull final String shortcut, @Nonnull final Locale locale) argument
[all...]
H A DSuggest.java167 final Locale locale = mDictionaryFacilitator.getLocale();
170 trailingSingleQuotesCount, locale);
298 final Locale locale = mDictionaryFacilitator.getLocale();
309 wordInfo, null == wordlocale ? locale : wordlocale, isAllUpperCase,
396 final Locale locale = info.mSourceDict.mLocale;
397 if (null == locale) {
401 sLanguageToMaximumAutoCorrectionWithSpaceLength.get(locale.getLanguage());
411 final SuggestedWordInfo wordInfo, final Locale locale, final boolean isAllUpperCase,
415 sb.append(wordInfo.mWord.toUpperCase(locale));
417 sb.append(StringUtils.capitalizeFirstCodePoint(wordInfo.mWord, locale));
410 getTransformedSuggestedWordInfo( final SuggestedWordInfo wordInfo, final Locale locale, final boolean isAllUpperCase, final boolean isOnlyFirstCharCapitalized, final int trailingSingleQuotesCount) argument
[all...]
H A DDictionaryFacilitator.java71 * Returns whether this facilitator is exactly for this locale.
73 * @param locale the locale to test against
75 boolean isForLocale(final Locale locale); argument
127 final Locale locale,
125 resetDictionariesForTesting( final Context context, final Locale locale, final ArrayList<String> dictionaryTypes, final HashMap<String, File> dictionaryFiles, final Map<String, Map<String, String>> additionalDictAttributes, @Nullable final String account) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
H A DAndroidSpellCheckerService.java107 private static String getKeyboardLayoutNameForLocale(final Locale locale) { argument
109 if (locale.getLanguage().equals("sr")) {
112 final int script = ScriptUtils.getScriptFromSpellCheckerLocale(locale);
160 public boolean isValidWord(final Locale locale, final String word) { argument
164 mDictionaryFacilitatorCache.get(locale);
171 public SuggestionResults getSuggestionResults(final Locale locale, argument
179 mDictionaryFacilitatorCache.get(locale);
191 public boolean hasMainDictionaryForLocale(final Locale locale) { argument
195 mDictionaryFacilitatorCache.get(locale);
214 public Keyboard getKeyboardForLocale(final Locale locale) { argument
225 createKeyboardForLocale(final Locale locale) argument
[all...]
H A DAndroidWordLevelSpellCheckerSession.java277 Log.w(TAG, "onGetSuggestionsInternal() : No keyboard for locale: " + mLocale);
278 // If there is no keyboard for this locale, don't do any spell-checking.
338 private static Result getResult(final int capitalizeType, final Locale locale, argument
349 suggestion = suggestedWordInfo.mWord.toUpperCase(locale);
352 suggestedWordInfo.mWord, locale);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionaryAddWordContents.java51 public static final String EXTRA_LOCALE = "locale";
113 // locale may be null, this means default locale
115 /* package */ void updateLocale(final String locale) { argument
116 mLocale = null == locale ? Locale.getDefault().toString() : locale;
248 final ArrayList<LocaleRenderer> list, final String locale) {
249 if (null != locale) {
250 list.add(new LocaleRenderer(context, locale));
257 // Remove our locale i
247 addLocaleDisplayNameToList(final Context context, final ArrayList<LocaleRenderer> list, final String locale) argument
[all...]
H A DUserDictionarySettings.java87 // Either the locale is empty (means the word is applicable to all locales)
88 // or the word equals our current locale
127 null == intent ? null : intent.getStringExtra("locale");
131 null == arguments ? null : arguments.getString("locale");
133 final String locale;
135 locale = localeFromArguments;
137 locale = localeFromIntent;
139 locale = null;
142 mLocale = locale;
148 mCursor = createCursor(locale);
177 createCursor(final String locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DRecapitalizeStatus.java90 final Locale locale, final int[] sortedSeparators) {
100 mLocale = locale;
89 start(final int cursorStart, final int cursorEnd, final String string, final Locale locale, final int[] sortedSeparators) argument
H A DDictionaryInfoUtils.java67 private static final String LOCALE_COLUMN = "locale";
83 public DictionaryInfo(@Nonnull String id, @Nonnull Locale locale, argument
87 mLocale = locale;
200 * Helper method to the list of cache directories, one for each distinct locale.
232 // An id is supposed to be in format category:locale, so splitting on the separator
241 * Find out the cache directory associated with a specific locale.
243 public static String getCacheDirectoryForLocale(final String locale, final Context context) { argument
244 final String relativeDirectoryName = replaceFileNameDangerousCharacters(locale);
250 Log.e(TAG, "Could not create the directory for locale" + locale);
271 getCacheFileName(String id, String locale, Context context) argument
276 getStagingFileName(String id, String locale, Context context) argument
341 isDictionaryAvailable(final Context context, final Locale locale) argument
352 getMainDictionaryResourceIdIfAvailableForLocale(final Resources res, final Locale locale) argument
381 getMainDictionaryResourceId(final Resources res, final Locale locale) argument
398 getMainDictId(@onnull final Locale locale) argument
426 createDictionaryInfoFromFileAddress( @onnull final AssetFileAddress fileAddress, final Locale locale) argument
446 createDictionaryInfoForUnCachedFile( @onnull final AssetFileAddress fileAddress, final Locale locale) argument
470 createDictionaryInfoFromLocale(Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
H A Dheader_policy.h61 const std::vector<int> &locale,
65 attributeMap)), mSize(0), mAttributeMap(*attributeMap), mLocale(locale),
60 HeaderPolicy(const FormatUtils::FORMAT_VERSION dictFormatVersion, const std::vector<int> &locale, const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state.cpp45 const int *const pointerIds, const bool isGeometric, const std::vector<int> *locale) {
69 inputSize, mInputProximities, locale);
42 initInputParams(const int pointerId, const float maxPointToKeyLength, const ProximityInfo *proximityInfo, const int *const inputCodes, const int inputSize, const int *const xCoordinates, const int *const yCoordinates, const int *const times, const int *const pointerIds, const bool isGeometric, const std::vector<int> *locale) argument
H A Dproximity_info_utils.h55 const std::vector<int> *locale,
68 keyCount, x, y, primaryKey, locale, codeToKeyMap, proximities);
147 const int x, const int y, const int primaryKey, const std::vector<int> *locale,
181 AdditionalProximityChars::getAdditionalCharsSize(locale, primaryKey);
192 AdditionalProximityChars::getAdditionalChars(locale, primaryKey);
49 initializeProximities(const int *const inputCodes, const int *const inputXCoordinates, const int *const inputYCoordinates, const int inputSize, const int *const keyXCoordinates, const int *const keyYCoordinates, const int *const keyWidths, const int *keyHeights, const int *const proximityCharsArray, const int cellHeight, const int cellWidth, const int gridWidth, const int mostCommonKeyWidth, const int keyCount, const std::vector<int> *locale, const std::unordered_map<int, int> *const codeToKeyMap, int *inputProximities) argument
143 calculateProximities(const int *const keyXCoordinates, const int *const keyYCoordinates, const int *const keyWidths, const int *keyHeights, const int *const proximityCharsArray, const int cellHeight, const int cellWidth, const int gridWidth, const int mostCommonKeyWidth, const int keyCount, const int x, const int y, const int primaryKey, const std::vector<int> *locale, const std::unordered_map<int, int> *const codeToKeyMap, int *proximities) argument
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DExpectedKey.java147 public ExpectedKey toUpperCase(Locale locale) { argument
148 return newInstance(mVisual.toUpperCase(locale), mOutput.toUpperCase(locale));
222 public ExpectedAdditionalMoreKey toUpperCase(final Locale locale) { argument
223 final ExpectedKey upperCaseKey = super.toUpperCase(locale);
242 public ExpectedKey toUpperCase(final Locale locale) { argument
245 upperCaseMoreKeys[i] = mMoreKeys[i].toUpperCase(locale);
247 return newInstance(getVisual().toUpperCase(locale), getOutput().toUpperCase(locale),
347 public ExpectedKey toUpperCase(final Locale locale) { argument
[all...]
H A DExpectedKeyboardBuilder.java309 * @param locale the locale used to convert cases.
312 public ExpectedKeyboardBuilder toUpperCase(final Locale locale) { argument
318 upperCaseKeys[columnIndex] = lowerCaseKeys[columnIndex].toUpperCase(locale);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
H A DStringUtilsTests.java31 private static void assert_toTitleCaseOfKeyLabel(final Locale locale, argument
33 assertEquals(lowerCase + " in " + locale, expected,
34 StringUtils.toTitleCaseOfKeyLabel(lowerCase, locale));
113 private static void assert_toTitleCaseOfKeyCode(final Locale locale, final int lowerCase, argument
115 assertEquals(lowerCase + " in " + locale, expected,
116 StringUtils.toTitleCaseOfKeyCode(lowerCase, locale));
145 private static void assert_capitalizeFirstCodePoint(final Locale locale, final String text, argument
147 assertEquals(text + " in " + locale, expected,
148 StringUtils.capitalizeFirstCodePoint(text, locale));
164 private static void assert_capitalizeFirstAndDowncaseRest(final Locale locale, argument
327 checkCapitalize(final String src, final String dst, final int[] sortedSeparators, final Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
H A DSpacingAndPunctuationsTests.java95 private SpacingAndPunctuations getSpacingAndPunctuations(final Locale locale) { argument
102 return job.runInLocale(getContext().getResources(), locale);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DNameSplitterTest.java48 private void createNameSplitter(Locale locale) { argument
50 "&, AND", locale);
/packages/services/Mms/src/com/android/mms/service/
H A DMmsHttpClient.java292 * Return the Accept-Language header. Use the current locale plus
293 * US if we are in a different locale than US.
298 public static String getCurrentAcceptLanguage(Locale locale) { argument
300 addLocaleToHttpAcceptLanguage(buffer, locale);
302 if (!Locale.US.equals(locale)) {
333 private static void addLocaleToHttpAcceptLanguage(StringBuilder builder, Locale locale) { argument
334 final String language = convertObsoleteLanguageCodeToNew(locale.getLanguage());
337 final String country = locale.getCountry();
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DDatabaseWrapper.java419 public void setLocale(final Locale locale) { argument
420 mDatabase.setLocale(locale);
/packages/apps/Settings/src/com/android/settings/search/
H A DIndexDatabaseHelper.java44 String LOCALE = "locale";
252 public static void setLocaleIndexed(Context context, String locale) { argument
253 context.getSharedPreferences(INDEX, 0).edit().putBoolean(locale, true).commit();
256 public static boolean isLocaleAlreadyIndexed(Context context, String locale) { argument
257 return context.getSharedPreferences(INDEX, 0).getBoolean(locale, false);
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DStringUtils.java202 @Nonnull final Locale locale) {
204 return s.toUpperCase(getLocaleUsedForToTitleCase(locale));
209 return s.substring(0, cutoff).toUpperCase(getLocaleUsedForToTitleCase(locale))
215 @Nonnull final Locale locale) {
217 return s.toUpperCase(getLocaleUsedForToTitleCase(locale));
227 return s.substring(0, cutoff).toUpperCase(getLocaleUsedForToTitleCase(locale))
228 + s.substring(cutoff).toLowerCase(locale);
269 * to locale while doing so.
285 // TODO: stop using this, as it's not aware of the locale and does not always do
405 @Nonnull final int[] sortedSeparators, @Nonnull final Locale locale) {
201 capitalizeFirstCodePoint(@onnull final String s, @Nonnull final Locale locale) argument
214 capitalizeFirstAndDowncaseRest(@onnull final String s, @Nonnull final Locale locale) argument
404 capitalizeEachWord(@onnull final String text, @Nonnull final int[] sortedSeparators, @Nonnull final Locale locale) argument
591 getLocaleUsedForToTitleCase(@onnull final Locale locale) argument
601 toTitleCaseOfKeyLabel(@ullable final String label, @Nonnull final Locale locale) argument
609 toTitleCaseOfKeyCode(final int code, @Nonnull final Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDictionaryProvider.java95 public WordListInfo(final String id, final String locale, final String rawChecksum, argument
98 mLocale = locale;
245 final String locale = uri.getLastPathSegment();
247 getDictionaryWordListsForLocale(clientId, locale);
330 * Reads the metadata and returns the collection of dictionaries for a given locale.
334 * locale matching the locale specified in the URI. The manual id serves only to
339 * @param locale the locale for which we want the list, as a String
343 final String locale) {
342 getDictionaryWordListsForLocale(final String clientId, final String locale) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DInputTestsBase.java366 protected void changeLanguage(final String locale) { argument
367 changeLanguage(locale, null);
370 protected void changeLanguage(final String locale, final String combiningSpec) { argument
371 changeLanguageWithoutWait(locale, combiningSpec);
375 protected void changeLanguageWithoutWait(final String locale, final String combiningSpec) { argument
376 mEditText.mCurrentLocale = LocaleUtils.constructLocaleFromString(locale);
379 // should actually use the default keyboard for this locale.
391 locale,
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
H A DProvisioningParams.java113 public final Locale locale; field in class:ProvisioningParams
209 locale = builder.mLocale;
254 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale));
439 public Builder setLocale(Locale locale) { argument
440 mLocale = locale;

Completed in 593 milliseconds

123456789