Home
last modified time | relevance | path

Searched refs:mLocaleInfo (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/language/
DLanguageBasePreferenceControllerTest.java77 private LocaleStore.LocaleInfo mLocaleInfo; field in LanguageBasePreferenceControllerTest
132 when(LocaleUtil.getLocaleArgument(any())).thenReturn(mLocaleInfo); in testOnPreferenceClick_hasMultipleChildLocales_returnsTrue()
134 mController.getExclusionSet(), mLocaleInfo, true)) in testOnPreferenceClick_hasMultipleChildLocales_returnsTrue()
145 when(LocaleUtil.getLocaleArgument(any())).thenReturn(mLocaleInfo); in testOnPreferenceClick_hasMultipleChildLocales_localeNotUpdated()
147 mController.getExclusionSet(), mLocaleInfo, true)) in testOnPreferenceClick_hasMultipleChildLocales_localeNotUpdated()
159 when(LocaleUtil.getLocaleArgument(any())).thenReturn(mLocaleInfo); in testOnPreferenceClick_hasMultipleChildLocales_neverCallsGoBack()
161 mController.getExclusionSet(), mLocaleInfo, true)) in testOnPreferenceClick_hasMultipleChildLocales_neverCallsGoBack()
173 when(LocaleUtil.getLocaleArgument(any())).thenReturn(mLocaleInfo); in testOnPreferenceClick_hasSingleChildLocale_returnsTrue()
175 mController.getExclusionSet(), mLocaleInfo, true)) in testOnPreferenceClick_hasSingleChildLocale_returnsTrue()
184 when(LocaleUtil.getLocaleArgument(any())).thenReturn(mLocaleInfo); in testOnPreferenceClick_hasSingleChildLocale_localeUpdated()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DAppLocalePickerActivityTest.java103 LocaleStore.LocaleInfo mLocaleInfo; field in AppLocalePickerActivityTest
210 when(mLocaleInfo.getLocale()).thenReturn(locale); in onLocaleSelected_getLocaleNotNull_getLanguageTag()
211 when(mLocaleInfo.isSystemLocale()).thenReturn(false); in onLocaleSelected_getLocaleNotNull_getLanguageTag()
215 mActivity.onLocaleSelected(mLocaleInfo); in onLocaleSelected_getLocaleNotNull_getLanguageTag()
220 verify(mLocaleInfo, times(3)).getLocale(); in onLocaleSelected_getLocaleNotNull_getLanguageTag()
221 assertThat(mLocaleInfo.getLocale().toLanguageTag()).isEqualTo("en-US"); in onLocaleSelected_getLocaleNotNull_getLanguageTag()
229 when(mLocaleInfo.getLocale()).thenReturn(null); in onLocaleSelected_getLocaleNull_getEmptyLanguageTag()
230 when(mLocaleInfo.isSystemLocale()).thenReturn(false); in onLocaleSelected_getLocaleNull_getEmptyLanguageTag()
234 mActivity.onLocaleSelected(mLocaleInfo); in onLocaleSelected_getLocaleNull_getEmptyLanguageTag()
236 verify(mLocaleInfo, times(1)).getLocale(); in onLocaleSelected_getLocaleNull_getEmptyLanguageTag()
[all …]
DLocaleListEditorTest.java121 private LocaleStore.LocaleInfo mLocaleInfo; field in LocaleListEditorTest
331 verify(mAdapter).notifyListChanged(mLocaleInfo); in onActivityResult_ResultCodeIsCancel_notifyAdapterListChanged()
465 mLocaleList.add(mLocaleInfo); in onBindViewHolder_shouldSetCheckedBoxText()
466 when(mLocaleInfo.getFullNameNative()).thenReturn("English"); in onBindViewHolder_shouldSetCheckedBoxText()
467 when(mLocaleInfo.getLocale()).thenReturn(LocaleList.forLanguageTags("en-US").get(0)); in onBindViewHolder_shouldSetCheckedBoxText()
492 mLocaleList.add(mLocaleInfo); in setUpLocaleConditions()
493 when(mLocaleInfo.getFullNameNative()).thenReturn("English"); in setUpLocaleConditions()
494 when(mLocaleInfo.getLocale()).thenReturn(LocaleList.forLanguageTags("en-US").get(0)); in setUpLocaleConditions()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DLocalePickerCompat.java31 private final LocalePicker.LocaleInfo mLocaleInfo; field in LocalePickerCompat.LocaleInfoCompat
34 mLocaleInfo = localeInfo; in LocaleInfoCompat()
38 return mLocaleInfo.getLocale(); in getLocale()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDialogFragment.java178 private final LocaleStore.LocaleInfo mLocaleInfo; field in LocaleDialogFragment.LocaleDialogController
189 mLocaleInfo = (LocaleStore.LocaleInfo) arguments.getSerializable(ARG_TARGET_LOCALE); in LocaleDialogController()
208 bundle.putSerializable(LocaleDialogFragment.ARG_TARGET_LOCALE, mLocaleInfo); in onClick()
223 R.string.title_change_system_locale), mLocaleInfo.getFullNameNative()); in getDialogContent()
232 R.string.title_unavailable_locale), mLocaleInfo.getFullNameNative()); in getDialogContent()
239 mLocaleInfo.getFullNameNative()); in getDialogContent()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/
DLocalePreferenceProviderTest.java59 LocaleStore.LocaleInfo mLocaleInfo; field in LocalePreferenceProviderTest.Pair
63 mLocaleInfo = localeInfo; in Pair()
174 LocaleStore.LocaleInfo localeInfo = entry.mLocaleInfo; in prepareSuggestedLocaleAdapterMock()