Home
last modified time | relevance | path

Searched refs:mLocale (Results 1 – 25 of 39) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordContents.java65 private String mLocale; field in UserDictionaryAddWordContents
108 updateLocale(mLocale); in UserDictionaryAddWordContents()
114 mLocale = null == locale ? Locale.getDefault().toString() : locale; in updateLocale()
126 outState.putString(EXTRA_LOCALE, mLocale); in saveStateIntoBundle()
184 FREQUENCY_FOR_USER_DICTIONARY_ADDS, newShortcut, TextUtils.isEmpty(mLocale) ? in apply()
185 null : LocaleUtils.constructLocaleFromString(mLocale)); in apply()
199 if ("".equals(mLocale)) { in hasWord()
206 new String[] { word, mLocale }, null /* sort order */); in hasWord()
254 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
262 addLocaleDisplayNameToList(activity, localesList, mLocale); in getLocalesList()
[all …]
DUserDictionarySettings.java106 protected String mLocale; field in UserDictionarySettings
142 mLocale = locale; in onActivityCreated()
155 UserDictionarySettingsUtils.getLocaleDisplayName(getActivity(), mLocale)); in onActivityCreated() local
201 if (!TextUtils.isEmpty(mLocale) && !mLocale.equals(systemLocale.toString())) { in onCreateOptionsMenu()
236 args.putString(UserDictionaryAddWordContents.EXTRA_LOCALE, mLocale); in showAddOrEditDialog()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java57 private String mLocale; field in UserDictionaryAddWordContents
90 updateLocale(mLocale); in UserDictionaryAddWordContents()
96 mLocale = null == locale ? Locale.getDefault().toString() : locale; in updateLocale()
108 outState.putString(EXTRA_LOCALE, mLocale); in saveStateIntoBundle()
164 TextUtils.isEmpty(mLocale) ? null : Utils.createLocaleFromString(mLocale)); in apply()
178 if ("".equals(mLocale)) { in hasWord()
185 new String[] { word, mLocale }, null /* sort order */); in hasWord()
233 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
241 addLocaleDisplayNameToList(activity, localesList, mLocale); in getLocalesList()
242 if (!systemLocale.equals(mLocale)) { in getLocalesList()
[all …]
DUserDictionaryList.java43 private String mLocale; field in UserDictionaryList
72 mLocale = locale; in onActivityCreated()
133 if (mLocale != null) { in createUserDictSettings()
136 localeSet.add(mLocale); in createUserDictSettings()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java399 private final Locale mLocale; field in ContactLocaleUtils
405 mLocale = Locale.getDefault(); in ContactLocaleUtils()
407 mLocale = locale; in ContactLocaleUtils()
409 mLanguage = mLocale.getLanguage().toLowerCase(); in ContactLocaleUtils()
411 mUtils = new JapaneseContactUtils(mLocale); in ContactLocaleUtils()
412 } else if (mLocale.equals(Locale.CHINA)) { in ContactLocaleUtils()
413 mUtils = new SimplifiedChineseContactUtils(mLocale); in ContactLocaleUtils()
415 mUtils = new ContactLocaleUtilsBase(mLocale); in ContactLocaleUtils()
417 Log.i(TAG, "AddressBook Labels [" + mLocale.toString() + "]: " in ContactLocaleUtils()
422 return mLocale.equals(locale); in isLocale()
DPostalSplitter.java30 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()
DDefaultCallLogInsertionHelper.java49 private final Locale mLocale; field in DefaultCallLogInsertionHelper
60 mLocale = context.getResources().getConfiguration().locale; in DefaultCallLogInsertionHelper()
110 structuredPhoneNumber, mLocale); in getGeocodedLocationFor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DDecayingExpandableBinaryDictionaryBase.java58 private final String mLocale; field in DecayingExpandableBinaryDictionaryBase
74 mLocale = locale; in DecayingExpandableBinaryDictionaryBase()
77 if (mLocale != null && mLocale.length() > 1) { in DecayingExpandableBinaryDictionaryBase()
91 Settings.writeLastUserHistoryWriteTime(mPrefs, mLocale); in close()
102 attributeMap.put(FormatSpec.FileHeader.DICTIONARY_LOCALE_ATTRIBUTE, mLocale); in getHeaderAttributeMap()
211 return mLocale; in getLocale()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java75 final private String mLocale; field in UserBinaryDictionary
89 mLocale = USER_DICTIONARY_ALL_LANGUAGES; in UserBinaryDictionary()
91 mLocale = locale; in UserBinaryDictionary()
135 TextUtils.isEmpty(mLocale) ? new String[] {} : mLocale.split("_", 3); in loadDictionaryAsync()
213 if (USER_DICTIONARY_ALL_LANGUAGES == mLocale) { in addWordToUserDictionary()
216 locale = LocaleUtils.constructLocaleFromString(mLocale); in addWordToUserDictionary()
DSuggest.java82 public final Locale mLocale; field in Suggest
87 mLocale = locale; in Suggest()
101 mLocale = locale; in Suggest()
317 wordInfo, mLocale, isAllUpperCase, isFirstCharCapitalized, in getSuggestedWordsForTypingInput()
387 wordInfo, mLocale, isAllUpperCase, isFirstCharCapitalized, in getSuggestedWordsForBatchInput()
DBinaryDictionary.java61 private final Locale mLocale; field in BinaryDictionary
85 traverseSession = new DicTraverseSession(mLocale, mNativeDict, mDictSize); in getTraverseSession()
107 mLocale = locale; in BinaryDictionary()
DWordListInfo.java24 public final String mLocale; field in WordListInfo
27 mLocale = locale; in WordListInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java57 public final Locale mLocale; field in DictionaryInfoUtils.DictionaryInfo
64 mLocale = locale; in DictionaryInfo()
72 values.put(LOCALE_COLUMN, mLocale.toString()); in toContentValues()
301 if (thisDictInfo.mLocale.equals(newElement.mLocale)) { in addOrUpdateDictInfo()
331 if (!dictionaryInfo.mLocale.equals(locale)) continue; in getCurrentDictionaryFileNameAndVersionInfo()
352 if (!dictionaryInfo.mLocale.equals(locale)) continue; in getCurrentDictionaryFileNameAndVersionInfo()
DRecapitalizeStatus.java62 private Locale mLocale; field in RecapitalizeStatus
81 mLocale = locale; in initialize()
131 mStringAfter = mStringBefore.toLowerCase(mLocale); in rotate()
135 mLocale); in rotate()
138 mStringAfter = mStringBefore.toUpperCase(mLocale); in rotate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java49 private Locale mLocale; field in AndroidWordLevelSpellCheckerSession
116 mLocale = LocaleUtils.constructLocaleFromString(localeString); in onCreate()
117 mScript = AndroidSpellCheckerService.getScriptFromLocale(mLocale); in onCreate()
238 final String lowerCaseText = text.toLowerCase(mLocale); in isInDictForAnyCapitalization()
245 return dict.isValidWord(StringUtils.capitalizeFirstAndDowncaseRest(lowerCaseText, mLocale)); in isInDictForAnyCapitalization()
342 capitalizeType, mLocale); in onGetSuggestionsInternal()
DDictionaryPool.java46 private final Locale mLocale; field in DictionaryPool
76 mLocale = locale; in DictionaryPool()
95 return mService.createDictAndKeyboard(mLocale); in poll()
101 return mService.createDictAndKeyboard(mLocale); in poll()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DActionBatch.java339 mWordList.mId, mWordList.mLocale, mWordList.mDescription, in execute()
344 + " and locale " + mWordList.mLocale); in execute()
389 mWordList.mId, mWordList.mLocale, mWordList.mDescription, in execute()
394 + " and locale " + mWordList.mLocale); in execute()
430 mWordList.mId, mWordList.mLocale, mWordList.mDescription, in execute()
435 + " and locale " + mWordList.mLocale); in execute()
DWordListMetadata.java42 public final String mLocale; field in WordListMetadata
66 mLocale = locale; in WordListMetadata()
119 sb.append("\nLocale : ").append(mLocale); in toString()
DDictionaryProvider.java91 public final String mLocale; field in DictionaryProvider.WordListInfo
95 mLocale = locale; in WordListInfo()
143 case 1: return mWordLists[mPos].mLocale; in getString()
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionPropertiesFragment.java71 private LocalePreference mLocale; field in CaptionPropertiesFragment
204 mLocale = (LocalePreference) findPreference(PREF_LOCALE); in initializeAllPreferences()
264 mLocale.setOnPreferenceChangeListener(this); in installUpdateListeners()
286 mLocale.setValue(rawLocale == null ? "" : rawLocale); in updateAllPreferences()
359 } else if (mLocale == preference) { in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/
DUserDictionarySettings.java72 protected String mLocale; field in UserDictionarySettings
108 mLocale = locale; in onActivityCreated()
121 UserDictionarySettingsUtils.getLocaleDisplayName(getActivity(), mLocale)); in onActivityCreated() local
194 args.putString(UserDictionaryAddWordContents.EXTRA_LOCALE, mLocale); in showAddOrEditDialog()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardId.java66 public final Locale mLocale; field in KeyboardId
83 mLocale = SubtypeLocaleUtils.getSubtypeLocale(mSubtype); in KeyboardId()
191 mLocale, mSubtype.getExtraValueOf(KEYBOARD_LAYOUT_SET), in toString()
DKeyboardSwitcher.java197 || !keyboard.mId.mLocale.equals(oldKeyboard.mId.mLocale); in setKeyboard()
199 keyboard.mId.mLocale); in setKeyboard()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java279 final String language = params.mId.mLocale.getLanguage(); in parseKeyboardAttributes()
291 ? null : params.mId.mLocale; in parseKeyboardAttributes()
666 R.styleable.Keyboard_Case_localeCode, id.mLocale.toString()); in parseCaseCondition()
668 R.styleable.Keyboard_Case_languageCode, id.mLocale.getLanguage()); in parseCaseCondition()
670 R.styleable.Keyboard_Case_countryCode, id.mLocale.getCountry()); in parseCaseCondition()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettingsValues.java84 public final Locale mLocale; field in SettingsValues
109 mLocale = locale; in SettingsValues()
185 mLocale = locale; in SettingsValues()

12