/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | PipAppHelper.kt | 65 fun dragPipWindowAwayFromEdgeWithoutRelease(wmHelper: WindowManagerStateHelper, steps: Int) { in <lambda>() 66 val initWindowRect = Rect(getWindowRect(wmHelper)) in <lambda>() 82 initWindowRect.centerX() + offset * (if (isCloserToRightEdge(wmHelper)) -1 else 1) in <lambda>() 104 fun dragPipWindowAwayFromEdge(wmHelper: WindowManagerStateHelper, steps: Int) { in <lambda>() 105 val initWindowRect = Rect(getWindowRect(wmHelper)) in <lambda>() 112 wmHelper.currentState.wmState.getDefaultDisplay()?.displayRect in <lambda>() 121 val endX = displayRect.centerX() + offset * (if (isCloserToRightEdge(wmHelper)) 1 else -1) in <lambda>() 132 fun isCloserToRightEdge(wmHelper: WindowManagerStateHelper): Boolean { in <lambda>() 133 val windowRect = getWindowRect(wmHelper) in <lambda>() 136 wmHelper.currentState.wmState.getDefaultDisplay()?.displayRect in <lambda>() [all …]
|
D | DesktopModeAppHelper.kt | 55 private fun waitForAppToMoveToDesktop(wmHelper: WindowManagerStateHelper) { in <lambda>() 56 wmHelper in <lambda>() 66 wmHelper: WindowManagerStateHelper, in <lambda>() 69 innerHelper.launchViaIntent(wmHelper) in <lambda>() 70 dragToDesktop(wmHelper, device) in <lambda>() 71 waitForAppToMoveToDesktop(wmHelper) in <lambda>() 74 private fun dragToDesktop(wmHelper: WindowManagerStateHelper, device: UiDevice) { in <lambda>() 75 val windowRect = wmHelper.getWindowRegion(innerHelper).bounds in <lambda>() 82 wmHelper.currentState.wmState.getDefaultDisplay()?.displayRect in <lambda>() 93 fun maximiseDesktopApp(wmHelper: WindowManagerStateHelper, device: UiDevice) { in <lambda>() [all …]
|
D | ActivityEmbeddingAppHelper.kt | 47 fun launchSecondaryActivity(wmHelper: WindowManagerStateHelper) { in launchSecondaryActivity() 48 launchSecondaryActivityFromButton(wmHelper, "launch_secondary_activity_button") in launchSecondaryActivity() 55 fun launchSecondaryActivityRTL(wmHelper: WindowManagerStateHelper) { in launchSecondaryActivityRTL() 56 launchSecondaryActivityFromButton(wmHelper, "launch_secondary_activity_rtl_button") in launchSecondaryActivityRTL() 60 fun launchSecondaryActivityHorizontally(wmHelper: WindowManagerStateHelper) { in launchSecondaryActivityHorizontally() 61 launchSecondaryActivityFromButton(wmHelper, "launch_secondary_activity_horizontally_button") in launchSecondaryActivityHorizontally() 65 fun launchThirdActivity(wmHelper: WindowManagerStateHelper) { in launchThirdActivity() 73 wmHelper in launchThirdActivity() 85 fun launchTrampolineActivity(wmHelper: WindowManagerStateHelper) { in launchTrampolineActivity() 93 wmHelper in launchTrampolineActivity() [all …]
|
D | LetterboxAppHelper.kt | 43 fun clickRestart(wmHelper: WindowManagerStateHelper) { in clickRestart() 61 wmHelper.StateSyncBuilder().withAppTransitionIdle().waitForAndVerify() in clickRestart() 80 wmHelper: WindowManagerStateHelper, in waitForAppToMoveHorizontallyTo() 84 wmHelper in waitForAppToMoveHorizontallyTo() 87 val letterboxAppWindow = getWindowRegion(wmHelper) in waitForAppToMoveHorizontallyTo() 101 wmHelper: WindowManagerStateHelper, in waitForAppToMoveVerticallyTo() 106 wmHelper in waitForAppToMoveVerticallyTo() 109 val letterboxAppWindow = getWindowRegion(wmHelper) in waitForAppToMoveVerticallyTo() 122 private fun getWindowRegion(wmHelper: WindowManagerStateHelper): Region { in getWindowRegion() 123 val windowRegion = wmHelper.getWindowRegion(this) in getWindowRegion()
|
D | ImeAppHelper.kt | 41 open fun openIME(wmHelper: WindowManagerStateHelper) { in openIME() 50 waitIMEShown(wmHelper) in openIME() 53 fun waitIMEShown(wmHelper: WindowManagerStateHelper) { in waitIMEShown() 54 wmHelper.StateSyncBuilder().withImeShown().waitForAndVerify() in waitIMEShown() 62 open fun closeIME(wmHelper: WindowManagerStateHelper) { in closeIME() 64 wmHelper.StateSyncBuilder().withImeGone().waitForAndVerify() in closeIME()
|
D | ImeShownOnAppStartHelper.kt | 45 override fun openIME(wmHelper: WindowManagerStateHelper) { in openIME() 47 waitIMEShown(wmHelper) in openIME() 51 wmHelper: WindowManagerStateHelper, in launchViaIntent() 58 wmHelper, in launchViaIntent() 64 waitIMEShown(wmHelper) in launchViaIntent() 77 fun dismissDialog(wmHelper: WindowManagerStateHelper) { in dismissDialog() 83 wmHelper.StateSyncBuilder().withAppTransitionIdle().waitForAndVerify() in dismissDialog()
|
/frameworks/base/tests/FlickerTests/FlickerService/src/com/android/server/wm/flicker/service/notification/scenarios/ |
D | OpenAppFromLockscreenNotificationWithOverlayApp.kt | 41 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 55 testApp.launchViaIntent(wmHelper) in setup() 56 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in setup() 57 testApp.postNotification(wmHelper) in setup() 59 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in setup() 69 wmHelper.StateSyncBuilder().withoutTopVisibleAppWindows().waitForAndVerify() in setup() 74 showWhenLockedApp.launchViaIntent(wmHelper) in setup() 75 wmHelper.StateSyncBuilder().withFullScreenApp(showWhenLockedApp).waitForAndVerify() in setup() 78 wmHelper.StateSyncBuilder().withoutTopVisibleAppWindows().waitForAndVerify() in setup() 86 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in openAppFromLockscreenNotificationWithOverlayApp() [all …]
|
D | OpenAppFromLockscreenNotificationWarm.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 51 testApp.launchViaIntent(wmHelper) in setup() 52 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in setup() 53 testApp.postNotification(wmHelper) in setup() 55 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in setup() 58 wmHelper.StateSyncBuilder().withoutTopVisibleAppWindows().waitForAndVerify() in setup() 67 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in openAppFromLockscreenNotificationWarm() 72 testApp.exit(wmHelper) in teardown()
|
D | OpenAppFromLockscreenNotificationCold.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant in com.android.server.wm.flicker.service.notification.scenarios.OpenAppFromLockscreenNotificationCold 51 testApp.launchViaIntent(wmHelper) in setup() 52 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in setup() 53 testApp.postNotification(wmHelper) in setup() 55 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in setup() 65 wmHelper.StateSyncBuilder().withoutTopVisibleAppWindows().waitForAndVerify() in setup() 74 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in openAppFromLockscreenNotificationCold() 79 testApp.exit(wmHelper) in teardown()
|
D | OpenAppFromNotificationWarm.kt | 41 private val wmHelper = WindowManagerStateHelper(instrumentation) constant in com.android.server.wm.flicker.service.notification.scenarios.OpenAppFromNotificationWarm 51 testApp.launchViaIntent(wmHelper) in setup() 52 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in setup() 53 testApp.postNotification(wmHelper) in setup() 55 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in setup() 62 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in openAppFromNotificationWarm() 67 testApp.exit(wmHelper) in teardown()
|
D | OpenAppFromNotificationCold.kt | 41 private val wmHelper = WindowManagerStateHelper(instrumentation) constant in com.android.server.wm.flicker.service.notification.scenarios.OpenAppFromNotificationCold 51 testApp.launchViaIntent(wmHelper) in setup() 52 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in setup() 53 testApp.postNotification(wmHelper) in setup() 55 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in setup() 69 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in openAppFromNotificationCold() 74 testApp.exit(wmHelper) in teardown()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/ |
D | SwitchBetweenSplitPairs.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant in com.android.wm.shell.flicker.service.splitscreen.scenarios.SwitchBetweenSplitPairs 54 SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp, rotation) in setup() 55 SplitScreenUtils.enterSplit(wmHelper, tapl, device, thirdApp, fourthApp, rotation) in setup() 56 SplitScreenUtils.waitForSplitComplete(wmHelper, thirdApp, fourthApp) in setup() 62 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, secondaryApp) in switchBetweenSplitPairs() 67 primaryApp.exit(wmHelper) in teardown() 68 secondaryApp.exit(wmHelper) in teardown() 69 thirdApp.exit(wmHelper) in teardown() 70 fourthApp.exit(wmHelper) in teardown()
|
D | EnterSplitScreenByDragFromNotification.kt | 43 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 60 sendNotificationApp.launchViaIntent(wmHelper) in setup() 61 sendNotificationApp.postNotification(wmHelper) in setup() 67 primaryApp.launchViaIntent(wmHelper) in setup() 73 SplitScreenUtils.dragFromNotificationToSplit(instrumentation, device, wmHelper) in enterSplitScreenByDragFromNotification() 74 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, sendNotificationApp) in enterSplitScreenByDragFromNotification() 79 primaryApp.exit(wmHelper) in teardown() 80 secondaryApp.exit(wmHelper) in teardown() 81 sendNotificationApp.exit(wmHelper) in teardown()
|
D | SwitchAppByDoubleTapDivider.kt | 42 private val wmHelper = WindowManagerStateHelper(instrumentation) in <lambda>() constant in com.android.wm.shell.flicker.service.splitscreen.scenarios.SwitchAppByDoubleTapDivider 56 SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp, rotation) in <lambda>() 62 wmHelper.StateSyncBuilder().withAppTransitionIdle().waitForAndVerify() in <lambda>() 64 waitForLayersToSwitch(wmHelper) in <lambda>() 65 waitForWindowsToSwitch(wmHelper) in <lambda>() 70 primaryApp.exit(wmHelper) in <lambda>() 71 secondaryApp.exit(wmHelper) in <lambda>() 74 private fun waitForWindowsToSwitch(wmHelper: WindowManagerStateHelper) { in <lambda>() 75 wmHelper in <lambda>() 106 private fun waitForLayersToSwitch(wmHelper: WindowManagerStateHelper) { in <lambda>() [all …]
|
D | EnterSplitScreenFromOverview.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant in com.android.wm.shell.flicker.service.splitscreen.scenarios.EnterSplitScreenFromOverview 49 primaryApp.launchViaIntent(wmHelper) in setup() 50 secondaryApp.launchViaIntent(wmHelper) in setup() 52 wmHelper in setup() 65 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, secondaryApp) in enterSplitScreenFromOverview() 70 primaryApp.exit(wmHelper) in teardown() 71 secondaryApp.exit(wmHelper) in teardown()
|
D | DismissSplitScreenByDivider.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 52 SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp, rotation) in setup() 60 wmHelper, in dismissSplitScreenByDivider() 67 wmHelper, in dismissSplitScreenByDivider() 72 wmHelper.StateSyncBuilder().withFullScreenApp(secondaryApp).waitForAndVerify() in dismissSplitScreenByDivider() 77 primaryApp.exit(wmHelper) in teardown() 78 secondaryApp.exit(wmHelper) in teardown()
|
D | SwitchBackToSplitFromAnotherApp.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 53 SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp, rotation) in setup() 55 thirdApp.launchViaIntent(wmHelper) in setup() 56 wmHelper.StateSyncBuilder().withWindowSurfaceAppeared(thirdApp).waitForAndVerify() in setup() 62 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, secondaryApp) in switchBackToSplitFromAnotherApp() 67 primaryApp.exit(wmHelper) in teardown() 68 secondaryApp.exit(wmHelper) in teardown()
|
D | UnlockKeyguardToSplitScreen.kt | 38 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 52 SplitScreenUtils.enterSplitViaIntent(wmHelper, primaryApp, secondaryApp) in setup() 58 wmHelper.StateSyncBuilder().withAppTransitionIdle().waitForAndVerify() in unlockKeyguardToSplitScreen() 61 wmHelper.StateSyncBuilder().withAppTransitionIdle().waitForAndVerify() in unlockKeyguardToSplitScreen() 66 primaryApp.exit(wmHelper) in teardown() 67 secondaryApp.exit(wmHelper) in teardown()
|
D | SwitchBackToSplitFromHome.kt | 40 private val wmHelper = WindowManagerStateHelper(instrumentation) constant in com.android.wm.shell.flicker.service.splitscreen.scenarios.SwitchBackToSplitFromHome 52 SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp, rotation) in setup() 55 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in setup() 61 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, secondaryApp) in switchBackToSplitFromHome() 66 primaryApp.exit(wmHelper) in teardown() 67 secondaryApp.exit(wmHelper) in teardown()
|
/frameworks/base/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ |
D | ShowImeOnAppStartWhenLaunchingAppFromQuickSwitchTest.kt | 57 testApp.launchViaIntent(wmHelper) in <lambda>() 58 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in <lambda>() 60 imeTestApp.launchViaIntent(wmHelper) in <lambda>() 61 wmHelper.StateSyncBuilder().withFullScreenApp(imeTestApp).waitForAndVerify() in <lambda>() 63 imeTestApp.openIME(wmHelper) in <lambda>() 67 wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify() in <lambda>() 68 testApp.exit(wmHelper) in <lambda>() 69 imeTestApp.exit(wmHelper) in <lambda>() 76 wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify() in <lambda>() 83 wmHelper.StateSyncBuilder().withFullScreenApp(imeTestApp).waitForAndVerify() in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/desktopmode/scenarios/ |
D | CloseAllAppsWithAppHeaderExit.kt | 46 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 61 testApp.enterDesktopWithDrag(wmHelper, device) in setup() 62 mailApp.launchViaIntent(wmHelper) in setup() 63 nonResizeableApp.launchViaIntent(wmHelper) in setup() 68 nonResizeableApp.closeDesktopApp(wmHelper, device) in closeAllAppsInDesktop() 69 mailApp.closeDesktopApp(wmHelper, device) in closeAllAppsInDesktop() 70 testApp.closeDesktopApp(wmHelper, device) in closeAllAppsInDesktop() 75 testApp.exit(wmHelper) in teardown()
|
/frameworks/base/tests/FlickerTests/FlickerService/src/com/android/server/wm/flicker/service/quickswitch/scenarios/ |
D | QuickSwitchBetweenTwoAppsForward.kt | 39 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 49 testApp1.launchViaIntent(wmHelper) in setup() 51 testApp2.launchViaIntent(wmHelper) in setup() 54 wmHelper in setup() 65 wmHelper in quickSwitchBetweenTwoAppsForward() 75 testApp1.exit(wmHelper) in teardown() 76 testApp2.exit(wmHelper) in teardown()
|
D | QuickSwitchBetweenTwoAppsBack.kt | 39 private val wmHelper = WindowManagerStateHelper(instrumentation) constant 49 testApp1.launchViaIntent(wmHelper) in setup() 51 testApp2.launchViaIntent(wmHelper) in setup() 58 wmHelper in quickSwitchBetweenTwoAppsBack() 68 testApp1.exit(wmHelper) in teardown() 69 testApp2.exit(wmHelper) in teardown()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/splitscreen/src/com/android/wm/shell/flicker/splitscreen/benchmark/ |
D | EnterSplitScreenByDragFromNotificationBenchmark.kt | 45 sendNotificationApp.launchViaIntent(wmHelper) in <lambda>() 46 sendNotificationApp.postNotification(wmHelper) in <lambda>() 48 primaryApp.launchViaIntent(wmHelper) in <lambda>() 51 SplitScreenUtils.dragFromNotificationToSplit(instrumentation, device, wmHelper) in <lambda>() 52 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, sendNotificationApp) in <lambda>() 54 teardown { sendNotificationApp.exit(wmHelper) } in <lambda>()
|
D | SwitchBetweenSplitPairsBenchmark.kt | 43 wmHelper, in <lambda>() 51 wmHelper, in <lambda>() 58 SplitScreenUtils.waitForSplitComplete(wmHelper, thirdApp, fourthApp) in <lambda>() 62 SplitScreenUtils.waitForSplitComplete(wmHelper, primaryApp, secondaryApp) in <lambda>() 65 thirdApp.exit(wmHelper) in <lambda>() 66 fourthApp.exit(wmHelper) in <lambda>()
|