Home
last modified time | relevance | path

Searched refs:FakePreferenceController (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java158 final FakePreferenceController controller = spy( in getDynamicSummary_allowDynamicSummary_returnsControllerSummary()
159 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary()
171 final FakePreferenceController controller = spy( in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull()
172 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull()
184 final FakePreferenceController controller = spy( in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary()
185 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary()
197 final FakePreferenceController controller = spy( in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary()
198 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary()
210 final FakePreferenceController controller = new FakePreferenceController(mContext, KEY); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString()
220 final FakePreferenceController controller = spy( in getDynamicSummary_screenTitleAndControllerPlaceholder_returnsSliceEmptyString()
[all …]
DFakePreferenceController.java23 public class FakePreferenceController extends BasePreferenceController { class
25 public FakePreferenceController(Context context, String preferenceKey) { in FakePreferenceController() method in FakePreferenceController
DSliceDataConverterTest.java61 private static final String FAKE_CONTROLLER_NAME = FakePreferenceController.class.getName();
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DSettingsFragmentTestCase.java83 assertThat(mFragment.use(FakePreferenceController.class, in use_returnsController()
89 AtomicReference<FakePreferenceController> controller = new AtomicReference<>(); in onAttach_registersLifecycleObservers()
92 controller.set(mFragment.use(FakePreferenceController.class, in onAttach_registersLifecycleObservers()
106 FakePreferenceController controller = mFragment.use(FakePreferenceController.class, in onUxRestrictionsChanged_propagatesToControllers()
124 FakePreferenceController controller = mFragment.use(FakePreferenceController.class, in onUxRestrictedPreferenceTapped_showToast()
DPreferenceControllerTest.java69 private FakePreferenceController mPreferenceController;
82 mPreferenceController = new FakePreferenceController(mContext, /* preferenceKey= */ "key", in setUp()
245 private static class FakePreferenceController extends class in PreferenceControllerTest
252 FakePreferenceController(Context context, String preferenceKey, in FakePreferenceController() method in PreferenceControllerTest.FakePreferenceController
DFakePreferenceController.java30 public class FakePreferenceController extends PreferenceController<Preference> { class
51 public FakePreferenceController(Context context, String preferenceKey, in FakePreferenceController() method in FakePreferenceController
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTest.java62 private PreferenceControllerTestHelper<FakePreferenceController> mControllerHelper;
63 private FakePreferenceController mController;
74 FakePreferenceController.class, mPreference); in setUp()
162 FakePreferenceController.class, mPreference); in onUxRestrictionsChanged_restricted_allPreferencesIgnore_preferenceEnabled()
179 FakePreferenceController.class, mPreference); in onUxRestrictionsChanged_restricted_thisPreferenceIgnores_preferenceEnabled()
197 FakePreferenceController.class, mPreference); in onUxRestrictionsChanged_restricted_uxRestrictionsNotIgnored_preferenceDisabled()
DFakePreferenceController.java30 public class FakePreferenceController extends PreferenceController<Preference> { class
51 public FakePreferenceController(Context context, String preferenceKey, in FakePreferenceController() method in FakePreferenceController
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DPreferenceControllerListHelperTest.java24 import com.android.settings.slices.FakePreferenceController;
56 assertThat(controller).isInstanceOf(FakePreferenceController.class); in getControllers_shouldReturnAList()
68 assertThat(controllers.get(0)).isInstanceOf(FakePreferenceController.class); in getControllers_partialFailure_shouldReturnTheRest()
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DFakePreferenceController.java23 public class FakePreferenceController extends BasePreferenceController { class
25 public FakePreferenceController(Context context, String preferenceKey) { in FakePreferenceController() method in FakePreferenceController