Searched refs:localeInfo (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/ |
D | LanguageBasePreferenceControllerTest.java | 133 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(HAS_MULTIPLE_CHILD_LOCALE); in testOnPreferenceClick_hasMultipleChildLocales_returnsTrue() local 135 LocaleUtil.setLocaleArgument(preference, localeInfo); in testOnPreferenceClick_hasMultipleChildLocales_returnsTrue() 141 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(HAS_MULTIPLE_CHILD_LOCALE); in testOnPreferenceClick_hasMultipleChildLocales_localeNotUpdated() local 143 LocaleUtil.setLocaleArgument(preference, localeInfo); in testOnPreferenceClick_hasMultipleChildLocales_localeNotUpdated() 150 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(HAS_MULTIPLE_CHILD_LOCALE); in testOnPreferenceClick_hasMultipleChildLocales_neverCallsGoBack() local 152 LocaleUtil.setLocaleArgument(preference, localeInfo); in testOnPreferenceClick_hasMultipleChildLocales_neverCallsGoBack() 159 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(HAS_CHILD_LOCALE); in testOnPreferenceClick_hasSingleChildLocale_returnsTrue() local 161 LocaleUtil.setLocaleArgument(preference, localeInfo); in testOnPreferenceClick_hasSingleChildLocale_returnsTrue() 167 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(HAS_CHILD_LOCALE); in testOnPreferenceClick_hasSingleChildLocale_localeUpdated() local 169 LocaleUtil.setLocaleArgument(preference, localeInfo); in testOnPreferenceClick_hasSingleChildLocale_localeUpdated() [all …]
|
D | LocalePreferenceProviderTest.java | 61 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/Car/Settings/src/com/android/car/settings/language/ |
D | LanguageBasePreferenceController.java | 42 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()
|
D | LocaleUtil.java | 36 public static void setLocaleArgument(Preference preference, LocaleStore.LocaleInfo localeInfo) { in setLocaleArgument() argument 37 preference.getExtras().putSerializable(LOCALE_BUNDLE_KEY, localeInfo.getLocale()); in setLocaleArgument()
|
D | LanguagePickerPreferenceController.java | 55 localeInfo -> getFragmentController().goBack()); in handleLocaleWithChildren()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | LanguageFragment.java | 92 for (final LocalePicker.LocaleInfo localeInfo : localeInfoList) { in onCreatePreferences() 93 final String languageTag = localeInfo.getLocale().toLanguageTag(); in onCreatePreferences() 97 mLocaleInfoMap.put(languageTag, localeInfo); in onCreatePreferences() 102 radioPreference.setTitle(localeInfo.getLabel()); in onCreatePreferences() 106 if (localeInfo.getLocale().equals(currentLocale)) { in onCreatePreferences()
|