/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidWordLevelSpellCheckerSession.java | 54 private Locale mLocale; field in AndroidWordLevelSpellCheckerSession 117 mLocale = (null == localeString) ? null in onCreate() 119 mScript = ScriptUtils.getScriptFromSpellCheckerLocale(mLocale); in onCreate() 195 if (mService.isValidWord(mLocale, text)) return true; in isInDictForAnyCapitalization() 201 final String lowerCaseText = text.toLowerCase(mLocale); in isInDictForAnyCapitalization() 202 if (mService.isValidWord(mLocale, lowerCaseText)) return true; in isInDictForAnyCapitalization() 208 return mService.isValidWord(mLocale, in isInDictForAnyCapitalization() 209 StringUtils.capitalizeFirstAndDowncaseRest(lowerCaseText, mLocale)); in isInDictForAnyCapitalization() 232 if (!mService.hasMainDictionaryForLocale(mLocale)) { in onGetSuggestionsInternal() 244 if (!mService.isValidWord(mLocale, word)) { in onGetSuggestionsInternal() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionaryAddWordContents.java | 67 private String mLocale; field in UserDictionaryAddWordContents 110 updateLocale(mLocale); in UserDictionaryAddWordContents() 116 mLocale = null == locale ? Locale.getDefault().toString() : locale; in updateLocale() 128 outState.putString(EXTRA_LOCALE, mLocale); in saveStateIntoBundle() 188 FREQUENCY_FOR_USER_DICTIONARY_ADDS, newShortcut, TextUtils.isEmpty(mLocale) ? in apply() 189 null : LocaleUtils.constructLocaleFromString(mLocale)); in apply() 203 if ("".equals(mLocale)) { in hasWord() 210 new String[] { word, mLocale }, null /* sort order */); in hasWord() 258 locales.remove(mLocale); // mLocale may not be null in getLocalesList() 266 addLocaleDisplayNameToList(activity, localesList, mLocale); in getLocalesList() [all …]
|
D | UserDictionarySettings.java | 106 protected String mLocale; field in UserDictionarySettings 142 mLocale = locale; in onActivityCreated() 160 UserDictionarySettingsUtils.getLocaleDisplayName(getActivity(), mLocale)); in onActivityCreated() local 218 if (!TextUtils.isEmpty(mLocale) && !mLocale.equals(systemLocale.toString())) { in onCreateOptionsMenu() 253 args.putString(UserDictionaryAddWordContents.EXTRA_LOCALE, mLocale); in showAddOrEditDialog()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | UserDictionaryAddWordContents.java | 56 private String mLocale; field in UserDictionaryAddWordContents 95 mLocale = null == locale ? Locale.getDefault().toString() : locale; in updateLocale() 107 outState.putString(EXTRA_LOCALE, mLocale); in saveStateIntoBundle() 165 TextUtils.isEmpty(mLocale) ? null : Utils.createLocaleFromString(mLocale)); in apply() 180 if ("".equals(mLocale)) { in hasWord() 187 new String[] {word, mLocale}, null /* sort order */); in hasWord() 240 locales.remove(mLocale); // mLocale may not be null in getLocalesList() 248 addLocaleDisplayNameToList(activity, localesList, mLocale); in getLocalesList() 249 if (!systemLocale.equals(mLocale)) { in getLocalesList() 256 if (!"".equals(mLocale)) { in getLocalesList() [all …]
|
D | UserDictionaryCursorLoader.java | 62 private final String mLocale; field in UserDictionaryCursorLoader 66 mLocale = locale; in UserDictionaryCursorLoader() 73 if ("".equals(mLocale)) { in loadInBackground() 80 final String queryLocale = null != mLocale ? mLocale : Locale.getDefault().toString(); in loadInBackground()
|
D | UserDictionaryListPreferenceController.java | 49 private String mLocale; field in UserDictionaryListPreferenceController 57 mLocale = locale; in setLocale() 147 if (mLocale != null) { in createUserDictSettings() 150 localeSet.add(mLocale); in createUserDictSettings()
|
D | UserDictionarySettings.java | 67 private String mLocale; field in UserDictionarySettings 98 mLocale = locale; in onCreate() 112 UserDictionarySettingsUtils.getLocaleDisplayName(getActivity(), mLocale)); in onCreateView() local 190 args.putString(UserDictionaryAddWordContents.EXTRA_LOCALE, mLocale); in showAddOrEditDialog() 236 return new UserDictionaryCursorLoader(getContext(), mLocale); in onCreateLoader()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionaryAddWordContents.java | 56 private String mLocale; field in UserDictionaryAddWordContents 95 mLocale = null == locale ? Locale.getDefault().toString() : locale; in updateLocale() 107 outState.putString(EXTRA_LOCALE, mLocale); in saveStateIntoBundle() 165 TextUtils.isEmpty(mLocale) ? null : Utils.createLocaleFromString(mLocale)); in apply() 180 if ("".equals(mLocale)) { in hasWord() 187 new String[] {word, mLocale}, null /* sort order */); in hasWord() 240 locales.remove(mLocale); // mLocale may not be null in getLocalesList() 248 addLocaleDisplayNameToList(activity, localesList, mLocale); in getLocalesList() 249 if (!systemLocale.equals(mLocale)) { in getLocalesList() 256 if (!"".equals(mLocale)) { in getLocalesList() [all …]
|
D | UserDictionaryCursorLoader.java | 62 private final String mLocale; field in UserDictionaryCursorLoader 66 mLocale = locale; in UserDictionaryCursorLoader() 73 if ("".equals(mLocale)) { in loadInBackground() 80 final String queryLocale = null != mLocale ? mLocale : Locale.getDefault().toString(); in loadInBackground()
|
D | UserDictionaryListPreferenceController.java | 49 private String mLocale; field in UserDictionaryListPreferenceController 57 mLocale = locale; in setLocale() 147 if (mLocale != null) { in createUserDictSettings() 150 localeSet.add(mLocale); in createUserDictSettings()
|
D | UserDictionarySettings.java | 67 private String mLocale; field in UserDictionarySettings 98 mLocale = locale; in onCreate() 112 UserDictionarySettingsUtils.getLocaleDisplayName(getActivity(), mLocale)); in onCreateView() local 190 args.putString(UserDictionaryAddWordContents.EXTRA_LOCALE, mLocale); in showAddOrEditDialog() 236 return new UserDictionaryCursorLoader(getContext(), mLocale); in onCreateLoader()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodSubtype.java | 60 private final Locale mLocale; field in RichInputMethodSubtype 68 mLocale = mappedLocale != null ? mappedLocale : mOriginalLocale; in RichInputMethodSubtype() 131 return mSubtype.equals(other.mSubtype) && mLocale.equals(other.mLocale); in equals() 136 return mSubtype.hashCode() + mLocale.hashCode(); in hashCode() 141 return "Multi-lingual subtype: " + mSubtype + ", " + mLocale; in toString() 146 return mLocale; in getLocale() 156 return LocaleUtils.isRtlLanguage(mLocale); in isRtlSubtype()
|
D | DictionaryFacilitatorImpl.java | 104 return locale != null && locale.equals(mDictionaryGroup.mLocale); in isForLocale() 130 @Nullable public final Locale mLocale; field in DictionaryFacilitatorImpl.DictionaryGroup 157 mLocale = locale; in DictionaryGroup() 232 return mDictionaryGroup.mLocale != null; in isActive() 237 return mDictionaryGroup.mLocale; in getLocale() 275 return locale.equals(dictionaryGroup.mLocale) ? dictionaryGroup : null; in findDictionaryGroupWithLocale() 407 if (locale.equals(dictionaryGroup.mLocale)) { in doReloadUninitializedMainDictionaries() 547 if (userHistoryDictionary == null || !isForLocale(userHistoryDictionary.mLocale)) { in addWordToUserHistory() 554 final String lowerCasedWord = word.toLowerCase(dictionaryGroup.mLocale); in addWordToUserHistory() 664 if (mDictionaryGroup.mLocale == null) { in isValidWord()
|
D | DictionaryFacilitatorLruCache.java | 39 private Locale mLocale; field in DictionaryFacilitatorLruCache 69 if (mLocale != null) { in resetDictionariesForLocaleLocked() 71 mDictionaryFacilitator.resetDictionaries(mContext, mLocale, in resetDictionariesForLocaleLocked() 93 mLocale = locale; in get()
|
D | DictionaryStats.java | 29 public final Locale mLocale; field in DictionaryStats 42 mLocale = locale; in DictionaryStats() 54 mLocale = locale; in DictionaryStats()
|
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/ |
D | CarLatinIME.java | 81 private Locale mLocale; field in CarLatinIME 203 if (mLocale == null) { in getLocale() 204 mLocale = this.getResources().getConfiguration().locale; in getLocale() 206 return mLocale; in getLocale() 222 mLocale = configuration.locale; in createKeyboard() 344 txt = txt.toUpperCase(mLocale); 358 commitText = commitText.toUpperCase(mLocale); 411 commitText = commitText.toUpperCase(mLocale); 450 return String.valueOf(current).toLowerCase(mLocale).charAt(0); in cycleCharacter() 452 return String.valueOf(current).toUpperCase(mLocale).charAt(0); in cycleCharacter()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_policy.h | 40 mLocale(readLocale()), in HeaderPolicy() 65 attributeMap)), mSize(0), mAttributeMap(*attributeMap), mLocale(locale), in HeaderPolicy() 87 mAttributeMap(headerPolicy->mAttributeMap), mLocale(headerPolicy->mLocale), in HeaderPolicy() 103 mAttributeMap(), mLocale(CharUtils::EMPTY_STRING), mMultiWordCostMultiplier(0.0f), in HeaderPolicy() 210 return &mLocale; in getLocale() 246 const std::vector<int> mLocale; variable
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | RecapitalizeStatus.java | 75 private Locale mLocale; field in RecapitalizeStatus 100 mLocale = locale; in start() 162 mStringAfter = mStringBefore.toLowerCase(mLocale); in rotate() 166 mLocale); in rotate() 169 mStringAfter = mStringBefore.toUpperCase(mLocale); in rotate()
|
D | DictionaryInfoUtils.java | 76 @Nonnull public final Locale mLocale; field in DictionaryInfoUtils.DictionaryInfo 87 mLocale = locale; in DictionaryInfo() 98 values.put(LOCALE_COLUMN, mLocale.toString()); in toContentValues() 110 + "' : Locale=" + mLocale in toString() 483 if (thisDictInfo.mLocale.equals(newElement.mLocale)) { 516 if (dictionaryInfo == null || !dictionaryInfo.mLocale.equals(locale)) { 562 if (dictionaryInfo == null || !dictionaryInfo.mLocale.equals(locale)) {
|
/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZoneAdapter.java | 53 private final Locale mLocale; field in BaseTimeZoneAdapter 69 mLocale = locale; in BaseTimeZoneAdapter() 235 private BreakIterator mBreakIterator = BreakIterator.getWordInstance(mLocale); 244 final String prefixString = prefix.toString().toLowerCase(mLocale); in performFiltering() 250 searchKey = searchKey.toLowerCase(mLocale); in performFiltering()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/ |
D | BaseTimeZoneAdapter.java | 53 private final Locale mLocale; field in BaseTimeZoneAdapter 69 mLocale = locale; in BaseTimeZoneAdapter() 235 private BreakIterator mBreakIterator = BreakIterator.getWordInstance(mLocale); 244 final String prefixString = prefix.toString().toLowerCase(mLocale); in performFiltering() 250 searchKey = searchKey.toLowerCase(mLocale); in performFiltering()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | CaptionSettingsFragment.java | 84 private Locale mLocale; field in CaptionSettingsFragment 145 mLocale = mCaptioningManager.getLocale(); in loadCaptionSettings() 156 if (mLocale != null) { in refreshPreviewText() 158 activity, mLocale, R.string.captioning_preview_text); in refreshPreviewText()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | CaptionPropertiesFragment.java | 78 private LocalePreference mLocale; field in CaptionPropertiesFragment 216 mLocale = (LocalePreference) findPreference(PREF_LOCALE); in initializeAllPreferences() 220 mPreferenceList.add(mLocale); in initializeAllPreferences() 287 mLocale.setOnPreferenceChangeListener(this); in installUpdateListeners() 318 mLocale.setValue(rawLocale == null ? "" : rawLocale); in updateAllPreferences() 420 } else if (mLocale == preference) { in onPreferenceChange()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PostalSplitter.java | 30 private final Locale mLocale; field in PostalSplitter 63 mLocale = locale; in PostalSplitter() 90 if (mLocale != null && in join() 91 JAPANESE_LANGUAGE.equals(mLocale.getLanguage()) && in join()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/ |
D | LayoutCustomizer.java | 31 private final Locale mLocale; field in LayoutCustomizer 36 public LayoutCustomizer(final Locale locale) { mLocale = locale; } in LayoutCustomizer() 38 public final Locale getLocale() { return mLocale; } in getLocale()
|