/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsActivityTest.kt | 54 var activityRule = variable 73 activityRule.launchActivity(Intent()) in setup() 78 val currentConfig = activityRule.activity.resources.configuration in testOrientationChangeForwardsToUiController() 81 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testOrientationChangeForwardsToUiController() 88 val currentConfig = activityRule.activity.resources.configuration in testScreenChangeForwardsToUiController() 91 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testScreenChangeForwardsToUiController() 98 val currentConfig = activityRule.activity.resources.configuration in testChangeSmallestScreenSizeForwardsToUiController() 102 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testChangeSmallestScreenSizeForwardsToUiController() 109 val config = Configuration(activityRule.activity.resources.configuration) in testConfigurationChangeSupportsInPlaceChange() 112 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(config) } in testConfigurationChangeSupportsInPlaceChange() [all …]
|
D | DetailDialogTest.kt | 53 val activityRule: ActivityScenarioRule<EmptyTestActivity> = constant in com.android.systemui.controls.ui.DetailDialogTest 100 activityRule.scenario.onActivity { in testDismissRemovesTheTask()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/ |
D | BrightnessDialogTest.kt | 74 var activityRule = variable in com.android.systemui.settings.brightness.BrightnessDialogTest 101 activityRule.finishActivity() in tearDown() 106 activityRule.launchActivity(Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG)) in testGestureExclusion() 107 val frame = activityRule.activity.requireViewById<View>(R.id.brightness_mirror_container) in testGestureExclusion() 111 activityRule.activity.resources.getDimensionPixelSize( in testGestureExclusion() 134 activityRule.launchActivity(intent) in testTimeout() 136 assertThat(activityRule.activity.isFinishing()).isFalse() in testTimeout() 139 assertThat(activityRule.activity.isFinishing()).isTrue() in testTimeout() 153 activityRule.launchActivity(intent) in testRestartTimeout() 155 assertThat(activityRule.activity.isFinishing()).isFalse() in testRestartTimeout() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsProviderSelectorActivityTest.kt | 92 var activityRule = variable 116 activityRule.launchActivity(intent) in setUp() 127 activityRule.finishActivity() in testBackCallbackRegistrationAndUnregistration() 136 activityRule.activity.onAppSelected(info) in testOnAppSelectedForNonPanelStartsFavoritingActivity() 140 assertThat(activityRule.activity.lastStartedActivity?.component?.className) in testOnAppSelectedForNonPanelStartsFavoritingActivity() 143 assertThat(activityRule.activity.triedToFinish).isFalse() in testOnAppSelectedForNonPanelStartsFavoritingActivity() 159 activityRule.activity.onAppSelected(info) in testOnAppSelectedForPanelTriggersDialog() 163 assertThat(activityRule.activity.triedToFinish).isFalse() in testOnAppSelectedForPanelTriggersDialog() 179 activityRule.activity.onAppSelected(info) in dialogAcceptAddsPackage() 193 assertThat(activityRule.activity.triedToFinish).isTrue() in dialogAcceptAddsPackage() [all …]
|
D | ControlsRequestDialogTest.kt | 84 var activityRule = ActivityTestRule( variable in com.android.systemui.controls.management.ControlsRequestDialogTest 119 activityRule.launchActivity(intent) in setUp() 124 activityRule.finishActivity() in tearDown() 130 activityRule.getActivity().lifecycle.currentState) in testActivityNotFinished() 135 activityRule.activity.onClick(null, Dialog.BUTTON_POSITIVE) in testDialogAddsCorrectControl()
|
D | ControlsEditingActivityTest.kt | 61 var activityRule = variable in com.android.systemui.controls.management.ControlsEditingActivityTest 91 activityRule.finishActivity() in testBackCallbackRegistrationAndUnregistration() 127 activityRule.runOnUiThread { addControls.performClick() } in testNotFromFavoriting_addControlsPressed_launchesFavouriting() 152 activityRule.launchActivity( in launchActivity()
|
D | ControlsFavoritingActivityTest.kt | 84 var activityRule = variable 115 activityRule.finishActivity() in testBackCallbackRegistrationAndUnregistration() 138 activityRule.runOnUiThread { in testRearrangePressed_savesAndlaunchesActivity() 172 activityRule.launchActivity( in launchActivity()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | LaunchNotesRoleSettingsTrampolineActivityTest.kt | 49 val activityRule = constant 65 activityRule.finishActivity() in tearDown() 70 activityRule.launchActivity(/* startIntent= */ null) in startActivity_noAction_shouldLaunchNotesRoleSettingTaskWithNullEntryPoint() 77 activityRule.launchActivity(Intent(ACTION_MANAGE_NOTES_ROLE_FROM_QUICK_AFFORDANCE)) in startActivity_quickAffordanceAction_shouldLaunchNotesRoleSettingTaskWithQuickAffordanceEntryPoint()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/usb/ |
D | UsbPermissionActivityTest.kt | 56 var activityRule = ActivityTestRule( variable 91 activityRule.launchActivity(activityIntent) in setUp() 96 activityRule.finishActivity() in tearDown() 102 assertThat(activityRule.activity.window.attributes.privateFlags and in testHideNonSystemOverlay()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/shortcut/ |
D | LaunchNoteTaskActivityTest.kt | 47 val activityRule = constant in com.android.systemui.notetask.shortcut.LaunchNoteTaskActivityTest 63 activityRule.finishActivity() in tearDown() 68 activityRule.launchActivity(/* startIntent= */ null) in startActivityOnNonWorkProfileUser_shouldLaunchNoteTask()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/sensorprivacy/ |
D | SensorUseStartedActivityTest.kt | 26 @get:Rule val activityRule = ActivityScenarioRule(SensorUseStartedActivityTestable::class.java) in <lambda>() constant in com.android.systemui.sensorprivacy.SensorUseStartedActivityTest 30 activityRule.scenario.onActivity { activity -> in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ |
D | CreateUserActivityTest.kt | 43 @get:Rule val activityRule = ActivityScenarioRule(CreateUserActivityTestable::class.java) in <lambda>() constant in com.android.systemui.user.CreateUserActivityTest 47 activityRule.scenario.onActivity { activity -> in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | TransitionAnimatorTest.kt | 75 @get:Rule(order = 1) val activityRule = ActivityScenarioRule(EmptyTestActivity::class.java) in <lambda>() constant in com.android.systemui.animation.TransitionAnimatorTest 77 val motionRule = MotionTestRule(ViewToolkit { activityRule.scenario }, pathManager) in <lambda>() 127 activityRule.scenario.onActivity { activity -> in <lambda>()
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | ActivityEmbeddingMainActivity.java | 84 final ActivityRule activityRule = new ActivityRule.Builder(activityFilters) in launchAlwaysExpandActivity() local 90 rc.addRule(activityRule); in launchAlwaysExpandActivity()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | SplitController.java | 2589 ActivityRule activityRule = (ActivityRule) rule; in shouldExpand() local 2590 if (!activityRule.shouldAlwaysExpand()) { in shouldExpand() 2593 if (activity != null && activityRule.matchesActivity(activity)) { in shouldExpand() 2595 } else if (intent != null && activityRule.matchesIntent(intent)) { in shouldExpand()
|