/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
H A D | AndroidWordLevelSpellCheckerSession.java | 277 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 D | UserDictionaryAddWordContents.java | 51 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 D | UserDictionarySettings.java | 87 // 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 D | RecapitalizeStatus.java | 90 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 D | DictionaryInfoUtils.java | 67 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 D | header_policy.h | 61 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 D | proximity_info_state.cpp | 45 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 D | proximity_info_utils.h | 55 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 D | ExpectedKey.java | 147 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 D | ExpectedKeyboardBuilder.java | 309 * @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 D | StringUtilsTests.java | 31 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 D | SpacingAndPunctuationsTests.java | 95 private SpacingAndPunctuations getSpacingAndPunctuations(final Locale locale) { argument 102 return job.runInLocale(getContext().getResources(), locale);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactLocaleUtils.java | 44 * This utility class provides specialized handling for locale specific 80 // we will show labels other than your primary locale. General rules 81 // of thumb for adding a locale: should be a supported locale; and 119 * used in a particular locale. This routine adds one additional bucket 149 * as a secondary locale so it is necessary to use the 151 * Chinese primary locale because it gives more accurate letter 207 * Japanese specific locale overrides. 350 * Simplified Chinese specific locale overrides. Uses ICU Transliterator 450 public static synchronized void setLocale(Locale locale) { argument [all...] |
H A D | LocaleSet.java | 39 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | NameSplitterTest.java | 48 private void createNameSplitter(Locale locale) { argument 50 "&, AND", locale);
|
/packages/services/Mms/src/com/android/mms/service/ |
H A D | MmsHttpClient.java | 236 * Return the Accept-Language header. Use the current locale plus 237 * US if we are in a different locale than US. 242 public static String getCurrentAcceptLanguage(Locale locale) { argument 244 addLocaleToHttpAcceptLanguage(buffer, locale); 246 if (!Locale.US.equals(locale)) { 277 private static void addLocaleToHttpAcceptLanguage(StringBuilder builder, Locale locale) { argument 278 final String language = convertObsoleteLanguageCodeToNew(locale.getLanguage()); 281 final String country = locale.getCountry();
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | DatabaseWrapper.java | 419 public void setLocale(final Locale locale) { argument 420 mDatabase.setLocale(locale);
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | StringUtils.java | 202 @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 D | DictionaryProvider.java | 95 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...] |
H A D | UpdateHandler.java | 572 // TODO: Also provide the locale of the updated dictionary so that the LatinIme 573 // does not have to reset if it is a different locale. 631 final String locale = 633 final String destinationFile = getTempFileName(context, locale); 719 * @param locale the locale for this dictionary, to make the file name more readable. 723 private static String getTempFileName(final Context context, final String locale) argument 727 final File f = File.createTempFile(locale + TEMP_DICT_FILE_SUB, DICT_FILE_SUFFIX, dir);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | DictionaryFacilitator.java | 71 * 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
|
H A D | DictionaryFacilitatorImpl.java | 103 public boolean isForLocale(final Locale locale) { argument 104 return locale != null && locale.equals(mDictionaryGroup.mLocale); 128 * The locale associated with the dictionary group. 149 this(null /* locale */, null /* mainDict */, null /* account */, 153 public DictionaryGroup(@Nullable final Locale locale, argument 157 mLocale = locale; 252 final Context context, final Locale locale, final File dictFile, 263 new Object[] { context, locale, dictFile, dictNamePrefix, account }); 274 final Locale locale) { 251 getSubDict(final String dictType, final Context context, final Locale locale, final File dictFile, final String dictNamePrefix, @Nullable final String account) argument 273 findDictionaryGroupWithLocale(final DictionaryGroup dictionaryGroup, final Locale locale) argument 381 asyncReloadUninitializedMainDictionaries(final Context context, final Locale locale, final DictionaryInitializationListener listener) argument 394 doReloadUninitializedMainDictionaries(final Context context, final Locale locale, final DictionaryInitializationListener listener, final CountDownLatch latchForWaitingLoadingMainDictionary) argument 421 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 [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputTestsBase.java | 366 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardBuilder.java | 675 final Locale locale = id.getLocale(); 676 final boolean localeCodeMatched = matchLocaleCodes(caseAttr, locale); 677 final boolean languageCodeMatched = matchLanguageCodes(caseAttr, locale); 678 final boolean countryCodeMatched = matchCountryCodes(caseAttr, locale); 734 private static boolean matchLocaleCodes(TypedArray caseAttr, final Locale locale) { argument 735 return matchString(caseAttr, R.styleable.Keyboard_Case_localeCode, locale.toString()); 738 private static boolean matchLanguageCodes(TypedArray caseAttr, Locale locale) { argument 739 return matchString(caseAttr, R.styleable.Keyboard_Case_languageCode, locale.getLanguage()); 742 private static boolean matchCountryCodes(TypedArray caseAttr, Locale locale) { argument 743 return matchString(caseAttr, R.styleable.Keyboard_Case_countryCode, locale [all...] |
H A D | KeyboardTextsTable.java | 32 * tools/make-keyboard-text/res/values-<locale>/donottranslate-more-keys.xml 49 // Texts table to locale maps. 55 throw new RuntimeException("Unknown text name=" + name + " locale=" 69 + " locale=" + sTextsTableToLocaleMap.get(textsTable)); 72 public static String[] getTextsTable(final Locale locale) { argument 73 final String localeKey = locale.toString(); 77 final String languageKey = locale.getLanguage(); 445 // popular web domains for the locale - most popular, displayed on the keyboard 4114 // "locale", TEXT_ARRAY, /* numberOfNonNullText/lengthOf_TEXT_ARRAY localeName */ 4192 final String locale [all...] |