Home
last modified time | relevance | path

Searched refs:mLocaleConfig (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppLocaleUtilTest.java60 private LocaleConfig mLocaleConfig; field in AppLocaleUtilTest
79 mLocaleConfig = mock(LocaleConfig.class); in setUp()
89 when(mLocaleConfig.getStatus()).thenReturn(LocaleConfig.STATUS_SUCCESS); in canDisplayLocaleUi_showUI()
90 when(mLocaleConfig.getSupportedLocales()).thenReturn(LocaleList.forLanguageTags("en-US")); in canDisplayLocaleUi_showUI()
91 AppLocaleUtil.sLocaleConfig = mLocaleConfig; in canDisplayLocaleUi_showUI()
125 when(mLocaleConfig.getStatus()).thenReturn(LocaleConfig.STATUS_SUCCESS); in getPackageLocales_getLocales_success()
126 when(mLocaleConfig.getSupportedLocales()).thenReturn(LocaleList.forLanguageTags("en-US")); in getPackageLocales_getLocales_success()
128 LocaleList result = AppLocaleUtil.getPackageLocales(mLocaleConfig); in getPackageLocales_getLocales_success()
135 when(mLocaleConfig.getStatus()).thenReturn(LocaleConfig.STATUS_PARSING_FAILED); in getPackageLocales_getLocales_failed()
137 LocaleList result = AppLocaleUtil.getPackageLocales(mLocaleConfig); in getPackageLocales_getLocales_failed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DAppLocalePickerActivityTest.java105 private LocaleConfig mLocaleConfig; field in AppLocalePickerActivityTest
120 mLocaleConfig = mock(LocaleConfig.class); in setUp()
121 when(mLocaleConfig.getStatus()).thenReturn(LocaleConfig.STATUS_SUCCESS); in setUp()
122 when(mLocaleConfig.getSupportedLocales()).thenReturn(LocaleList.forLanguageTags("en-US")); in setUp()
123 ReflectionHelpers.setStaticField(AppLocaleUtil.class, "sLocaleConfig", mLocaleConfig); in setUp()
147 when(mLocaleConfig.getStatus()).thenReturn(LocaleConfig.STATUS_NOT_SPECIFIED); in launchAppLocalePickerActivity_appNoLocaleConfig_failed()