Home
last modified time | relevance | path

Searched refs:underTest (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/logging/
DStartupLatencyLoggerTest.kt17 private val underTest = ColdRebootStartupLatencyLogger() constant
21 underTest.setIsInTest() in setup()
27 underTest.logStart( in logTotalDurationStart()
33 underTest.startTimeByEvent.get( in logTotalDurationStart()
37 assertThat(underTest.endTimeByEvent.isEmpty()).isTrue() in logTotalDurationStart()
43 underTest.logStart( in logTotalDurationEnd()
48 underTest.logEnd( in logTotalDurationEnd()
54 underTest.endTimeByEvent.get( in logTotalDurationEnd()
63 underTest in logStartOfOtherEvents_withoutLogStartOfTotalDuration_noOp()
78 assertThat(underTest.startTimeByEvent.isEmpty()).isTrue() in logStartOfOtherEvents_withoutLogStartOfTotalDuration_noOp()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DViewOnDrawExecutorTest.kt47 private lateinit var underTest: ViewOnDrawExecutor variable in com.android.launcher3.util.ViewOnDrawExecutorTest
55 underTest = ViewOnDrawExecutor(runnableList, consumer) in setup()
66 underTest.attachTo(launcher) in attachToLauncher_alreadyAttachedToWindow()
68 verify(workspace).addOnAttachStateChangeListener(same(underTest)) in attachToLauncher_alreadyAttachedToWindow()
69 verify(viewTreeObserver).addOnDrawListener(same(underTest)) in attachToLauncher_alreadyAttachedToWindow()
77 underTest.attachTo(launcher) in attachToLauncher_notAttachedToWindow()
79 verify(workspace).addOnAttachStateChangeListener(same(underTest)) in attachToLauncher_notAttachedToWindow()
87 underTest.attachTo(launcher) in onViewAttachedToWindow_registerObserver()
89 underTest.onViewAttachedToWindow(rootView) in onViewAttachedToWindow_registerObserver()
91 verify(viewTreeObserver).addOnDrawListener(same(underTest)) in onViewAttachedToWindow_registerObserver()
[all …]
DRunnableListTest.kt38 private val underTest = RunnableList() constant in com.android.launcher3.util.RunnableListTest
47 assertThat(underTest.isDestroyed).isFalse() in not_destroyedByDefault()
52 underTest.add(runnable1) in add_and_run()
53 underTest.add(runnable2) in add_and_run()
55 underTest.executeAllAndDestroy() in add_and_run()
59 assertThat(underTest.isDestroyed).isTrue() in add_and_run()
64 underTest.executeAllAndDestroy() in add_to_destroyed_runnableList_run_immediately()
66 underTest.add(runnable1) in add_to_destroyed_runnableList_run_immediately()
73 underTest.executeAllAndDestroy() in second_executeAllAndDestroy_noOp()
74 underTest.add(runnable1) in second_executeAllAndDestroy_noOp()
[all …]
DScreenOnTrackerTest.kt44 private lateinit var underTest: ScreenOnTracker variable in com.android.launcher3.util.ScreenOnTrackerTest
49 underTest = ScreenOnTracker(context, receiver, tracker) in setup()
55 assertThat(underTest.isScreenOn).isTrue() in test_default_state()
60 underTest.close() in close_unregister_receiver()
67 underTest.addListener(listener) in add_listener_then_receive_screen_on_intent_notify_listener()
69 underTest.onReceive(Intent(ACTION_SCREEN_ON)) in add_listener_then_receive_screen_on_intent_notify_listener()
72 assertThat(underTest.isScreenOn).isTrue() in add_listener_then_receive_screen_on_intent_notify_listener()
77 underTest.addListener(listener) in add_listener_then_receive_screen_off_intent_notify_listener()
79 underTest.onReceive(Intent(ACTION_SCREEN_OFF)) in add_listener_then_receive_screen_off_intent_notify_listener()
82 assertThat(underTest.isScreenOn).isFalse() in add_listener_then_receive_screen_off_intent_notify_listener()
[all …]
DSystemUiControllerTest.kt49 private lateinit var underTest: SystemUiController variable in com.android.launcher3.util.SystemUiControllerTest
55 underTest = SystemUiController(window.decorView) in setup()
60 assertThat(underTest.toString()).isEqualTo("mStates=[0, 0, 0, 0, 0]") in test_default_state()
65 underTest.updateUiState(UI_STATE_BASE_WINDOW, /* isLight= */ true) in update_state_base_window_light()
70 assertThat(underTest.baseSysuiVisibility).isEqualTo(visibility) in update_state_base_window_light()
72 assertThat(underTest.toString()).isEqualTo("mStates=[$flag, 0, 0, 0, 0]") in update_state_base_window_light()
77 underTest.updateUiState(UI_STATE_SCRIM_VIEW, /* isLight= */ true) in update_state_scrim_view_light()
81 assertThat(underTest.baseSysuiVisibility).isEqualTo(0) in update_state_scrim_view_light()
83 assertThat(underTest.toString()).isEqualTo("mStates=[0, $flag, 0, 0, 0]") in update_state_scrim_view_light()
88 underTest.updateUiState(UI_STATE_BASE_WINDOW, /* isLight= */ false) in update_state_base_window_dark()
[all …]
DSimpleBroadcastReceiverTest.kt45 private lateinit var underTest: SimpleBroadcastReceiver variable in com.android.launcher3.util.SimpleBroadcastReceiverTest
55 underTest = SimpleBroadcastReceiver(context, UI_HELPER_EXECUTOR, intentConsumer) in setUp()
63 underTest.register("test_action_1", "test_action_2") in async_register()
66 verify(context).registerReceiver(same(underTest), intentFilterCaptor.capture()) in async_register()
75 underTest.register(completionRunnable, "test_action_1", "test_action_2") in async_register_withCompletionRunnable()
78 verify(context).registerReceiver(same(underTest), intentFilterCaptor.capture()) in async_register_withCompletionRunnable()
88 underTest.register(completionRunnable, 1, "test_action_1", "test_action_2") in async_register_withCompletionRunnable_and_flag()
91 verify(context).registerReceiver(same(underTest), intentFilterCaptor.capture(), eq(1)) in async_register_withCompletionRunnable_and_flag()
101 underTest.registerPkgActions("pkg", "test_action_1", "test_action_2") in async_register_with_package()
104 verify(context).registerReceiver(same(underTest), intentFilterCaptor.capture()) in async_register_with_package()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/
DRecentsAnimationDeviceStateTest.kt54 private lateinit var underTest: RecentsAnimationDeviceState in <lambda>() variable in com.android.quickstep.RecentsAnimationDeviceStateTest
61 underTest = in <lambda>()
81 underTest.registerExclusionListener() in <lambda>()
83 verify(exclusionManager).addListener(underTest) in <lambda>()
88 underTest.registerExclusionListener() in <lambda>()
91 underTest.registerExclusionListener() in <lambda>()
98 underTest.registerExclusionListener() in <lambda>()
101 underTest.unregisterExclusionListener() in <lambda>()
103 verify(exclusionManager).removeListener(underTest) in <lambda>()
108 underTest.registerExclusionListener() in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/data/repository/
DImageEffectsRepositoryImplTest.kt96 val underTest = getImageEffectsRepositoryForTesting(areEffectsAvailable = true) in <lambda>() constant
98 assertThat(underTest.areEffectsAvailable()).isTrue() in <lambda>()
103 val underTest = getImageEffectsRepositoryForTesting(areEffectsAvailable = false) in <lambda>() constant
105 assertThat(underTest.areEffectsAvailable()).isFalse() in <lambda>()
111 val underTest = getImageEffectsRepositoryForTesting() in <lambda>() constant
112 val wallpaperEffect = collectLastValue(underTest.wallpaperEffect) in <lambda>()
114 underTest.initializeEffect( in <lambda>()
132 val underTest = getImageEffectsRepositoryForTesting(isEffectTriggered = true) in <lambda>() constant
133 val imageEffectsModel = collectLastValue(underTest.imageEffectsModel) in <lambda>()
135 underTest.initializeEffect( in <lambda>()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/wallpaper/customization/ui/viewmodel/
DClockPickerViewModelTest.kt77 private lateinit var underTest: ClockPickerViewModel in <lambda>() variable in com.android.wallpaper.customization.ui.viewmodel.ClockPickerViewModelTest
97 underTest = in <lambda>()
121 val tabs = collectLastValue(underTest.tabs) in <lambda>()
190 val tabs = collectLastValue(underTest.tabs) in <lambda>()
191 val selectedTab = collectLastValue(underTest.selectedTab) in <lambda>()
200 val tabs = collectLastValue(underTest.tabs) in <lambda>()
201 val selectedTab = collectLastValue(underTest.selectedTab) in <lambda>()
210 val tabs = collectLastValue(underTest.tabs) in <lambda>()
211 val selectedTab = collectLastValue(underTest.selectedTab) in <lambda>()
221 val selectedClock = collectLastValue(underTest.selectedClock) in <lambda>()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/ui/settings/
DFingerprintSettingsNavigationViewModelTest.kt54 private lateinit var underTest: FingerprintSettingsNavigationViewModel variable in com.android.settings.fingerprint2.ui.settings.FingerprintSettingsNavigationViewModelTest
67 underTest = in setup()
88 val job = launch { underTest.nextStep.collect { nextStep = it } } in testNoGateKeeper_launchesConfirmDeviceCredential()
99 val job = launch { underTest.nextStep.collect { nextStep = it } } in testConfirmDevice_fails()
101 underTest.onConfirmDevice(false, null) in testConfirmDevice_fails()
112 val job = launch { underTest.nextStep.collect { nextStep = it } } in confirmDeviceSuccess_noGateKeeper()
114 underTest.onConfirmDevice(true, null) in confirmDeviceSuccess_noGateKeeper()
127 val job = launch { underTest.nextStep.collect { nextStep = it } } in confirmDeviceSuccess_launchesEnrollment_ifNoPreviousEnrollments()
129 underTest.onConfirmDevice(true, 10L) in confirmDeviceSuccess_launchesEnrollment_ifNoPreviousEnrollments()
142 val job = launch { underTest.nextStep.collect { nextStep = it } } in firstEnrollment_failsWithReason()
[all …]
DFingerprintSettingsViewModelTest.kt59 private lateinit var underTest: FingerprintSettingsViewModel variable in com.android.settings.fingerprint2.ui.settings.FingerprintSettingsViewModelTest
84 underTest = in setup()
126 val job = launch { underTest.authFlow.take(5).collectLatest { authAttempt = it } } in authenticate_DoesNotRun_ifOptical()
128 underTest.shouldAuthenticate(true) in authenticate_DoesNotRun_ifOptical()
161 val job = launch { underTest.authFlow.take(5).collectLatest { authAttempt = it } } in authenticate_DoesNotRun_ifUltrasonic()
163 underTest.shouldAuthenticate(true) in authenticate_DoesNotRun_ifUltrasonic()
197 val job = launch { underTest.authFlow.take(5).collectLatest { authAttempt = it } } in authenticate_DoesRun_ifNotUdfps()
198 underTest.shouldAuthenticate(true) in authenticate_DoesRun_ifNotUdfps()
216 val dialogJob = launch { underTest.isShowingDialog.collect { dialog = it } } in <lambda>()
221 underTest.onDeleteClicked(fingerprintToDelete) in <lambda>()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/model/
DQuickstepModelDelegateTest.kt43 private lateinit var underTest: QuickstepModelDelegate variable in com.android.launcher3.model.QuickstepModelDelegateTest
56 underTest = in setUp()
63 underTest.mAllAppsState.predictor = allAppsPredictor in setUp()
64 underTest.mHotseatState.predictor = hotseatPredictor in setUp()
65 underTest.mWidgetsRecommendationState.predictor = widgetRecommendationPredictor in setUp()
66 underTest.mModel = modelHelper.model in setUp()
67 underTest.mDataModel = BgDataModel(WidgetsModel(modelHelper.sandboxContext)) in setUp()
77 underTest.onAppTargetEvent(mockedAppTargetEvent, CONTAINER_PREDICTION) in onAppTargetEvent_notifyTarget()
86 underTest.onAppTargetEvent(mockedAppTargetEvent, CONTAINER_WIDGETS_PREDICTION) in onWidgetPrediction_notifyWidgetRecommendationPredictor()
95 underTest.onAppTargetEvent(mockedAppTargetEvent, CONTAINER_HOTSEAT_PREDICTION) in onHotseatPrediction_notifyHotseatPredictor()
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/statehandlers/
DDepthControllerTest.kt41 private lateinit var underTest: DepthController variable in com.android.launcher3.statehandlers.DepthControllerTest
55 underTest = DepthController(launcher) in setUp()
60 underTest.setActivityStarted(true) in setActivityStarted_add_onDrawListener()
62 verify(viewTreeObserver).addOnDrawListener(same(underTest.mOnDrawListener)) in setActivityStarted_add_onDrawListener()
67 underTest.setActivityStarted(false) in setActivityStopped_not_remove_onDrawListener()
75 underTest.setActivityStarted(true) in setActivityStared_then_stopped_remove_onDrawListener()
78 underTest.setActivityStarted(false) in setActivityStared_then_stopped_remove_onDrawListener()
80 verify(viewTreeObserver).removeOnDrawListener(same(underTest.mOnDrawListener)) in setActivityStared_then_stopped_remove_onDrawListener()
85 underTest.setActivityStarted(true) in setActivityStared_then_stopped_multiple_times_remove_onDrawListener_once()
88 underTest.setActivityStarted(false) in setActivityStared_then_stopped_multiple_times_remove_onDrawListener_once()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/undo/data/repository/
DUndoRepositoryTest.kt36 private lateinit var underTest: UndoRepository variable in com.android.wallpaper.picker.undo.data.repository.UndoRepositoryTest
40 underTest = UndoRepository() in setUp()
48 underTest.putSnapshot(ownerId1, snapshot(ownerId1, 1)) in put and get initial snapshot()
49 underTest.putSnapshot(ownerId2, snapshot(ownerId2, 1)) in put and get initial snapshot()
51 assertThat(underTest.getSnapshot(ownerId1)).isEqualTo(snapshot(ownerId1, 1)) in put and get initial snapshot()
52 assertThat(underTest.getSnapshot(ownerId2)).isEqualTo(snapshot(ownerId2, 1)) in put and get initial snapshot()
59 val isUndoable = collectLastValue(underTest.isAnythingDirty) in dirty()
62 assertThat(underTest.getAllDirty()).isEmpty() in dirty()
64 underTest.putDirty(ownerId1, true) in dirty()
66 assertThat(underTest.getAllDirty()).isEqualTo(setOf(ownerId1)) in dirty()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/data/repository/
DWallpaperPreviewRepositoryTest.kt47 private lateinit var underTest: WallpaperPreviewRepository variable in com.android.wallpaper.picker.preview.data.repository.WallpaperPreviewRepositoryTest
60 underTest = WallpaperPreviewRepository(preferences = prefs) in setWallpaperModel()
67 assertThat(underTest.wallpaperModel.value).isNull() in setWallpaperModel()
69 underTest.setWallpaperModel(wallpaperModel) in setWallpaperModel()
71 assertThat(underTest.wallpaperModel.value).isEqualTo(wallpaperModel) in setWallpaperModel()
78 underTest = WallpaperPreviewRepository(preferences = prefs) in dismissSmallTooltip()
79 assertThat(underTest.hasSmallPreviewTooltipBeenShown.value).isFalse() in dismissSmallTooltip()
80 assertThat(underTest.hasFullPreviewTooltipBeenShown.value).isFalse() in dismissSmallTooltip()
82 underTest.hideSmallPreviewTooltip() in dismissSmallTooltip()
85 assertThat(underTest.hasSmallPreviewTooltipBeenShown.value).isTrue() in dismissSmallTooltip()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DGestureExclusionManagerTest.kt51 private lateinit var underTest: GestureExclusionManager variable in com.android.quickstep.util.GestureExclusionManagerTest
56 underTest = GestureExclusionManager(windowManager) in setup()
61 underTest.addListener(listener1) in addListener_registers()
65 .registerSystemGestureExclusionListener(underTest.exclusionListener, DEFAULT_DISPLAY) in addListener_registers()
70 underTest.addListener(listener1) in addListener_again_skips_register()
74 underTest.addListener(listener2) in addListener_again_skips_register()
82 underTest.addListener(listener1) in removeListener_unregisters()
86 underTest.removeListener(listener1) in removeListener_unregisters()
90 .unregisterSystemGestureExclusionListener(underTest.exclusionListener, DEFAULT_DISPLAY) in removeListener_unregisters()
95 underTest.addListener(listener1) in removeListener_again_skips_unregister()
[all …]
DCachedEventDispatcherTest.kt39 private lateinit var underTest: CachedEventDispatcher variable in com.android.quickstep.util.CachedEventDispatcherTest
58 underTest = CachedEventDispatcher() in setUp()
63 assertFalse(underTest.hasConsumer()) in testInitialState()
68 underTest.setConsumer(consumer) in dispatchMotionEvents()
70 underTest.dispatchEvent(motionEvent) in dispatchMotionEvents()
72 assertTrue(underTest.hasConsumer()) in dispatchMotionEvents()
79 underTest.dispatchEvent(motionEvent) in dispatchMotionEvents_after_settingConsumer()
81 underTest.setConsumer(consumer) in dispatchMotionEvents_after_settingConsumer()
89 underTest.setConsumer(consumer) in clearConsumer_notDispatchToConsumer()
90 underTest.dispatchEvent(motionEvent) in clearConsumer_notDispatchToConsumer()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/recyclerview/
DAllAppsRecyclerViewPoolTest.kt46 private lateinit var underTest: AllAppsRecyclerViewPool<T> variable in com.android.launcher3.recyclerview.AllAppsRecyclerViewPoolTest
56 underTest = spy(AllAppsRecyclerViewPool()) in setUp()
66 underTest.setMaxRecycledViews(VIEW_TYPE, 20) in setUp()
72 underTest.preInflateAllAppsViewHolders(adapter, VIEW_TYPE, parent, 10) { 10 } in preinflate_success()
75 assertThat(underTest.getRecycledViewCount(VIEW_TYPE)).isEqualTo(10) in preinflate_success()
80 underTest.preInflateAllAppsViewHolders(adapter, VIEW_TYPE, parent, 0) { 0 } in preinflate_not_triggered()
83 assertThat(underTest.getRecycledViewCount(VIEW_TYPE)).isEqualTo(0) in preinflate_not_triggered()
88 underTest.preInflateAllAppsViewHolders(adapter, VIEW_TYPE, parent, 10) { 10 } in preinflate_cancel_before_runOnMainThread()
89 assertThat(underTest.mCancellableTask!!.canceled).isFalse() in preinflate_cancel_before_runOnMainThread()
91 underTest.clear() in preinflate_cancel_before_runOnMainThread()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DColorUpdateViewModelTest.kt48 private lateinit var underTest: ColorUpdateViewModel variable in com.android.wallpaper.picker.customization.ui.viewmodel.ColorUpdateViewModelTest
58 underTest = ColorUpdateViewModel(context, RetainedLifecycleImpl(), darkModeStateRepository) in setUp()
68 val colorPrimary = collectLastValue(underTest.colorPrimary) in updateColors()
78 underTest.updateColors() in updateColors()
89 val isDarkMode = collectLastValue(underTest.isDarkMode) in updateTheme_darkMode()
94 underTest.updateDarkModeAndColors() in updateTheme_darkMode()
103 val colorPrimary = collectLastValue(underTest.colorPrimary) in previewColors_withPreviewEnabled()
111 underTest.updateColors() in previewColors_withPreviewEnabled()
113 underTest.setPreviewEnabled(true) in previewColors_withPreviewEnabled()
114 underTest.previewColors(54321, Style.VIBRANT, isDarkMode = false) in previewColors_withPreviewEnabled()
[all …]
DCustomizationPickerViewModelTest.kt46 private lateinit var underTest: CustomizationPickerViewModel variable in com.android.wallpaper.picker.customization.ui.viewmodel.CustomizationPickerViewModelTest
76 underTest = in setUp()
88 val homeScreenTab = collectLastValue(underTest.homeScreenTab) in initial tab is lock screen()
89 val lockScreenTab = collectLastValue(underTest.lockScreenTab) in initial tab is lock screen()
90 val isOnLockScreen = collectLastValue(underTest.isOnLockScreen) in initial tab is lock screen()
100 underTest.setInitialScreen(onLockScreen = false) in setInitialScreen - home screen()
102 val homeScreenTab = collectLastValue(underTest.homeScreenTab) in setInitialScreen - home screen()
103 val lockScreenTab = collectLastValue(underTest.lockScreenTab) in setInitialScreen - home screen()
104 val isOnLockScreen = collectLastValue(underTest.isOnLockScreen) in setInitialScreen - home screen()
115 underTest.setInitialScreen(onLockScreen = false) in setInitialScreen - home screen - but lock screen already selected from before()
[all …]
/packages/services/Car/tests/CustomizationTool/tests/src/com/android/car/customization/tool/domain/menu/
DMenuControllerTest.kt58 val underTest = MenuController(fakeRootProvider, mockContext, mapOf()) in build_menu_test() constant
59 val menu = underTest.buildMenu() in build_menu_test()
71 val underTest = MenuController(fakeRootProviderWithDuplicates, mockContext, mapOf()) in expect_exception_when_menu_has_duplicate_ids() constant
74 underTest.buildMenu() in expect_exception_when_menu_has_duplicate_ids()
81 val underTest = MenuController(fakeRootProvider, mockContext, mapOf()) in when_opening_submenu_the_currentParent_is_updated_correctly() constant
83 val menuAfterAction = underTest.handleAction( in when_opening_submenu_the_currentParent_is_updated_correctly()
93 val underTest = MenuController(fakeRootProvider, mockContext, mapOf()) in expect_exception_if_the_submenu_is_not_a_direct_child_of_the_current_parent() constant
96 underTest.handleAction( in expect_exception_if_the_submenu_is_not_a_direct_child_of_the_current_parent()
106 val underTest = MenuController(fakeRootProvider, mockContext, mapOf()) in when_navigating_up_then_the_currentParent_is_updated_correctly() constant
109 underTest.handleAction( in when_navigating_up_then_the_currentParent_is_updated_correctly()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperInteractorTest.kt44 private lateinit var underTest: WallpaperInteractor variable in com.android.wallpaper.picker.customization.domain.interactor.WallpaperInteractorTest
55 underTest = in setUp()
72 underTest.previews( in previews - limits to maximum results()
94 collectLastValue(underTest.wallpaperUpdateEvents(Screen.HOME_SCREEN)) in previews - handles empty recents list()
103 collectLastValue(underTest.wallpaperUpdateEvents(Screen.HOME_SCREEN)) in wallpaperUpdateEvents()
105 collectLastValue(underTest.wallpaperUpdateEvents(Screen.LOCK_SCREEN)) in wallpaperUpdateEvents()
111 underTest.setRecentWallpaper( in wallpaperUpdateEvents()
116 underTest.setRecentWallpaper( in wallpaperUpdateEvents()
128 underTest.setRecentWallpaper( in wallpaperUpdateEvents()
133 underTest.setRecentWallpaper( in wallpaperUpdateEvents()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/grid/domain/interactor/
DShapeGridInteractorTest.kt50 private lateinit var underTest: ShapeGridInteractor variable in com.android.customization.picker.grid.domain.interactor.ShapeGridInteractorTest
55 underTest = ShapeGridInteractor(repository) in setUp()
66 val shapeOptions = collectLastValue(underTest.shapeOptions) in shapeOptions_default()
74 val shapeOptions = collectLastValue(underTest.shapeOptions) in shapeOptions_shouldUpdateAfterApplyGridOption()
76 underTest.applySelectedOption("circle", "practical") in shapeOptions_shouldUpdateAfterApplyGridOption()
89 val selectedShapeOption = collectLastValue(underTest.selectedShapeOption) in selectedShapeOption_default()
98 val selectedShapeOption = collectLastValue(underTest.selectedShapeOption) in selectedShapeOption_shouldUpdateAfterApplyGridOption()
104 underTest.applySelectedOption(expectedShapeKey, "practical") in selectedShapeOption_shouldUpdateAfterApplyGridOption()
112 val gridOptions = collectLastValue(underTest.gridOptions) in gridOptions_default()
120 val gridOptions = collectLastValue(underTest.gridOptions) in gridOptions_shouldUpdateAfterApplyGridOption()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/themedicon/domain/interactor/
DThemedIconSnapshotRestorerTest.kt36 private lateinit var underTest: ThemedIconSnapshotRestorer variable in com.android.customization.model.themedicon.domain.interactor.ThemedIconSnapshotRestorerTest
42 underTest = in setUp()
58 store.store(underTest.setUpSnapshotRestorer(store = store)) in <lambda>()
61 underTest.restoreToSnapshot(snapshot = storedSnapshot) in <lambda>()
70 store.store(underTest.setUpSnapshotRestorer(store = store)) in <lambda>()
73 underTest.restoreToSnapshot(snapshot = storedSnapshot) in <lambda>()
81 store.store(underTest.setUpSnapshotRestorer(store = store)) in <lambda>()
84 underTest.store(isActivated = false) in <lambda>()
86 underTest.restoreToSnapshot(snapshot = initialSnapshot) in <lambda>()
94 store.store(underTest.setUpSnapshotRestorer(store = store)) in <lambda>()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/custom/
DCustomWidgetManagerTest.kt59 private lateinit var underTest: CustomWidgetManager variable in com.android.launcher3.widget.custom.CustomWidgetManagerTest
70 underTest = CustomWidgetManager(context, pluginManager, mockAppWidgetManager, tracker) in setUp()
76 .addPluginListener(same(underTest), same(CustomWidgetPlugin::class.java), eq(true)) in plugin_manager_added_after_initialization()
83 verify(pluginManager).removePluginListener(same(underTest)) in close_widget_manager_should_remove_plugin_listener()
92 underTest.onPluginConnected(mockPlugin, context) in on_plugin_connected_no_provider_info()
93 assertEquals(0, underTest.plugins.size) in on_plugin_connected_no_provider_info()
102 underTest.onPluginConnected(mockPlugin, context) in on_plugin_connected_exist_provider_info()
103 assertEquals(1, underTest.plugins.size) in on_plugin_connected_exist_provider_info()
112 underTest.onPluginConnected(mockPlugin, context) in on_plugin_disconnected()
113 underTest.onPluginDisconnected(mockPlugin) in on_plugin_disconnected()
[all …]

1234