Home
last modified time | relevance | path

Searched refs:localeInfo (Results 1 – 17 of 17) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/locale/
DLanguagePickerFragment.java127 for (LocaleStore.LocaleInfo localeInfo : mLocaleInfos) { in loadLocales()
128 mLocaleDataViewModel.addLocaleInfoList(localeInfo, applicationContext); in loadLocales()
137 localeInfo -> !localeInfo.isSuggested()).collect(Collectors.toSet()); in createPreferences()
138 for (LocaleStore.LocaleInfo localeInfo : mLocaleInfos) { in createPreferences()
139 if (localeInfo.isSuggested() in createPreferences()
140 && containsSuggestedLocale(notSuggestedLocales, localeInfo)) { in createPreferences()
145 .getLocaleInfoList(localeInfo); in createPreferences()
148 preference.setTitle(localeInfo.getFullNameNative()); in createPreferences()
150 localeInfo = localeInfoWithCountryList.get(0); in createPreferences()
152 preference.setChecked(localeInfo.getLocale().equals(currentLocale)); in createPreferences()
[all …]
DCountryPickerFragment.java56 public static Bundle prepareArgs(LocaleStore.LocaleInfo localeInfo) { in prepareArgs() argument
58 b.putSerializable(EXTRA_PARENT_LOCALE, localeInfo); in prepareArgs()
82 for (LocaleStore.LocaleInfo localeInfo : localeInfoCountryList.stream() in onCreatePreferences()
85 preference.setTitle(localeInfo.getFullCountryNameNative()); in onCreatePreferences()
86 if (localeInfo.getLocale().equals(currentLocale)) { in onCreatePreferences()
93 preference.getExtras().putSerializable(KEY_LOCALE_INFO, localeInfo); in onCreatePreferences()
116 LocaleStore.LocaleInfo localeInfo = localePref.getExtras().getSerializable( in onPreferenceTreeClick() local
118 if (localeInfo != null) { in onPreferenceTreeClick()
120 new LocaleList(localeInfo.getLocale())); in onPreferenceTreeClick()
DLocaleDataViewModel.java74 public synchronized void addLocaleInfoList(LocaleStore.LocaleInfo localeInfo, Context context) { in addLocaleInfoList() argument
75 if (mLocaleMap.containsKey(localeInfo)) { in addLocaleInfoList()
87 context, Collections.emptySet(), localeInfo, TRANSLATED_ONLY)) { in addLocaleInfoList()
93 mLocaleMap.put(localeInfo, localeInfoWithCountryList); in addLocaleInfoList()
97 getLocaleInfoList(LocaleStore.LocaleInfo localeInfo) { in getLocaleInfoList() argument
98 return mLocaleMap.get(localeInfo); in getLocaleInfoList()
/packages/apps/Settings/src/com/android/settings/localepicker/
DAppLocalePickerActivity.java121 public void onLocaleSelected(LocaleStore.LocaleInfo localeInfo) { in onLocaleSelected() argument
122 if (localeInfo == null || localeInfo.getLocale() == null || localeInfo.isSystemLocale()) { in onLocaleSelected()
125 logLocaleSource(localeInfo); in onLocaleSelected()
126 setAppDefaultLocale(localeInfo.getLocale().toLanguageTag()); in onLocaleSelected()
127 broadcastAppLocaleChange(localeInfo); in onLocaleSelected()
159 private void broadcastAppLocaleChange(LocaleStore.LocaleInfo localeInfo) { in broadcastAppLocaleChange() argument
164 if (localeInfo.isAppCurrentLocale()) { in broadcastAppLocaleChange()
168 String localeTag = localeInfo.getLocale().toLanguageTag(); in broadcastAppLocaleChange()
177 localeInfo.getFullNameNative()), in broadcastAppLocaleChange()
285 private void logLocaleSource(LocaleStore.LocaleInfo localeInfo) { in logLocaleSource() argument
[all …]
DLocaleListEditor.java218 LocaleStore.LocaleInfo localeInfo; in onActivityResult() local
221 localeInfo = (LocaleStore.LocaleInfo) data.getSerializableExtra(INTENT_LOCALE_KEY); in onActivityResult()
224 localeInfo = mayAppendUnicodeTags(localeInfo, preferencesTags); in onActivityResult()
225 mAdapter.addLocale(localeInfo); in onActivityResult()
229 localeInfo = mAdapter.getFeedItemList().get(0); in onActivityResult()
232 if (!localeInfo.isTranslated()) { in onActivityResult()
236 args.putSerializable(LocaleDialogFragment.ARG_TARGET_LOCALE, localeInfo); in onActivityResult()
244 mAdapter.notifyListChanged(localeInfo); in onActivityResult()
250 localeInfo = (LocaleStore.LocaleInfo) data.getExtras().getSerializable( in onActivityResult()
255 mAdapter.addLocale(mayAppendUnicodeTags(localeInfo, preferencesTags)); in onActivityResult()
[all …]
DLocaleDragAndDropAdapter.java278 LocaleStore.LocaleInfo localeInfo; in removeChecked() local
281 localeInfo = mFeedItemList.get(i); in removeChecked()
282 if (localeInfo.getChecked()) { in removeChecked()
286 controller.removeNotificationInfo(localeInfo.getLocale().toLanguageTag()); in removeChecked()
359 public void notifyListChanged(LocaleStore.LocaleInfo localeInfo) { in notifyListChanged() argument
360 if (!localeInfo.getLocale().equals(mCacheItemList.get(0).getLocale())) { in notifyListChanged()
423 localeInfo -> TextUtils.equals(localeInfo.getId(), in restoreState()
DTermsOfAddressCategoryController.java75 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(defaultLocale); in getAvailabilityStatus() local
83 final Locale locale = localeInfo.getLocale().stripExtensions(); in getAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/language/
DLanguageBasePreferenceController.java42 void onLocaleSelected(LocaleStore.LocaleInfo localeInfo); in onLocaleSelected() argument
88 LocaleStore.LocaleInfo localeInfo = LocaleUtil.getLocaleArgument(preference); in onPreferenceClick() local
91 if (localeInfo == null) { in onPreferenceClick()
95 if (localeInfo.getParent() == null) { in onPreferenceClick()
101 /* parent= */ localeInfo, in onPreferenceClick()
105 handleLocaleWithChildren(localeInfo); in onPreferenceClick()
114 localeInfo = subLocales.iterator().next(); in onPreferenceClick()
117 LocalePicker.updateLocale(localeInfo.getLocale()); in onPreferenceClick()
119 mLocaleSelectedListener.onLocaleSelected(localeInfo); in onPreferenceClick()
DLocaleUtil.java36 public static void setLocaleArgument(Preference preference, LocaleStore.LocaleInfo localeInfo) { in setLocaleArgument() argument
37 preference.getExtras().putSerializable(LOCALE_BUNDLE_KEY, localeInfo.getLocale()); in setLocaleArgument()
DLanguagePickerPreferenceController.java55 localeInfo -> getFragmentController().goBack()); in handleLocaleWithChildren()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/
DLocalePreferenceProviderTest.java61 Pair(int itemType, LocaleStore.LocaleInfo localeInfo) { in Pair() argument
63 mLocaleInfo = localeInfo; in Pair()
174 LocaleStore.LocaleInfo localeInfo = entry.mLocaleInfo; in prepareSuggestedLocaleAdapterMock() local
177 when(mSuggestedLocaleAdapter.getItem(i)).thenReturn(localeInfo); in prepareSuggestedLocaleAdapterMock()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DLocalePickerCompat.java33 LocaleInfoCompat(LocalePicker.LocaleInfo localeInfo) { in LocaleInfoCompat() argument
34 mLocaleInfo = localeInfo; in LocaleInfoCompat()
/packages/apps/Settings/src/com/android/settings/regionalpreferences/
DNumberingSystemController.java63 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(locale); in getNumberingSystemLocale() local
64 if (localeInfo.hasNumberingSystems()) { in getNumberingSystemLocale()
DNumberingSystemItemController.java124 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(locale); in initLanguageOptionsUi() local
125 if (!localeInfo.hasNumberingSystems()) { in initLanguageOptionsUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java71 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(Locale.ENGLISH); in setUp() local
74 args.putSerializable(ARG_TARGET_LOCALE, localeInfo); in setUp()
DLocaleListEditorTest.java300 LocaleStore.LocaleInfo localeInfo = LocaleStore.fromLocale(Locale.forLanguageTag("en-US")); in mayAppendUnicodeTags_appendUnicodeTags_success() local
303 LocaleListEditor.mayAppendUnicodeTags(localeInfo, "und-u-fw-wed-mu-celsius"); in mayAppendUnicodeTags_appendUnicodeTags_success()
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java68 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(Locale.ENGLISH); in setArgument() local
71 args.putSerializable(ARG_TARGET_LOCALE, localeInfo); in setArgument()