/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvPipMenuTests.kt | 74 uiDevice.findTvPipMenuControls()?.visibleBounds?.run { in <lambda>() 81 centerX() == uiDevice.displayWidth / 2 in <lambda>() 85 left >= 0 && right <= uiDevice.displayWidth && bottom <= uiDevice.displayHeight in <lambda>() 98 uiDevice.pressBack() in <lambda>() 99 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose()) in <lambda>() 109 uiDevice.pressHome() in <lambda>() 110 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose()) in <lambda>() 120 uiDevice.findTvPipMenuCloseButton() in <lambda>() 124 uiDevice.clickTvPipMenuCloseButton() in <lambda>() 133 uiDevice.findTvPipMenuFullscreenButton() in <lambda>() [all …]
|
D | PipAppHelperTv.kt | 32 get() = uiDevice.findObject(appSelector) 39 uiDevice.findObject(selector)?.apply { if (isFocusedOrHasFocusedChild) return true } in focusOnObject() 42 uiDevice.pressDPadDown() in focusOnObject() 43 uiDevice.waitForIdle() in focusOnObject() 51 uiDevice.pressDPadCenter() in clickObject() 59 uiDevice.closeTvPipWindow() in closePipWindow() 64 uiDevice.closeTvPipWindow() in closePipWindow() 72 return uiDevice.wait(Until.gone(appSelector), APP_CLOSE_WAIT_TIME_MS) in waitUntilClosed()
|
D | TvPipBasicTest.kt | 50 uiDevice.pressWindowKey() in <lambda>() 51 uiDevice.waitForTvPipMenu() ?: fail("Pip menu should have been shown") in <lambda>() 54 uiDevice.pressBack() in <lambda>() 55 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose()) in <lambda>()
|
D | TvUtils.kt | 157 fun UiObject2.isFullscreen(uiDevice: UiDevice): Boolean = in UiDevice() 158 visibleBounds.run { height() == uiDevice.displayHeight && width() == uiDevice.displayWidth } in UiDevice()
|
/frameworks/base/tests/TrustTests/src/android/trust/test/ |
D | TemporaryAndRenewableTrustTest.kt | 46 private val uiDevice = UiDevice.getInstance(getInstrumentation()) constant 67 uiDevice.sleep() in sleepingDeviceWithoutGrantLocksDevice() 74 uiDevice.sleep() in grantTrustLockedDevice_deviceStaysLocked() 77 uiDevice.wakeUp() in grantTrustLockedDevice_deviceStaysLocked() 88 uiDevice.sleep() in grantTrustUnlockedDevice_deviceLocksOnScreenOff() 97 uiDevice.sleep() in grantTrustLockedDevice_grantTrustOnLockedDeviceUnlocksDevice() 101 uiDevice.wakeUp() in grantTrustLockedDevice_grantTrustOnLockedDeviceUnlocksDevice() 116 uiDevice.sleep() in grantTrustLockedDevice_callsBackWhenUnlocked() 119 uiDevice.wakeUp() in grantTrustLockedDevice_callsBackWhenUnlocked() 137 uiDevice.sleep() in grantTrustLockedDevice_revokeTrustPreventsSubsequentUnlock() [all …]
|
D | GrantAndRevokeTrustTest.kt | 49 private val uiDevice = UiDevice.getInstance(getInstrumentation()) constant 72 uiDevice.sleep() in sleepingDeviceWithoutGrantLocksDevice() 80 uiDevice.sleep() in grantKeepsDeviceUnlocked() 89 uiDevice.sleep() in grantKeepsDeviceUnlocked_untilRevoked() 102 uiDevice.sleep() in grantCannotActivelyUnlockDevice() 116 uiDevice.wakeUp() in grantCannotActivelyUnlockDevice() 117 uiDevice.sleep() in grantCannotActivelyUnlockDevice() 131 uiDevice.sleep() in grantCouldCauseWrongDeviceLockedStateDueToBug() 134 uiDevice.wakeUp() in grantCouldCauseWrongDeviceLockedStateDueToBug() 135 uiDevice.sleep() in grantCouldCauseWrongDeviceLockedStateDueToBug()
|
D | IsActiveUnlockRunningTest.kt | 48 private val uiDevice = UiDevice.getInstance(getInstrumentation()) constant 91 uiDevice.sleep() in grantTrustLockedDevice_isActiveUnlockRunningIsFalse() 94 uiDevice.wakeUp() in grantTrustLockedDevice_isActiveUnlockRunningIsFalse() 106 uiDevice.sleep() in grantTrustUnlockedDevice_isActiveUnlockRunningIsTrueWhileLocked()
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | PipAppHelper.kt | 59 val obj = uiDevice.findObject(selector) ?: error("Could not find `$resId` object") in <lambda>() 124 uiDevice.drag(startX, y, endX, y, steps) in <lambda>() 285 uiDevice.wait(Until.gone(By.res(SYSTEMUI_PACKAGE, "dismiss")), FIND_TIMEOUT) in <lambda>() 305 uiDevice in <lambda>() 335 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in <lambda>() 338 uiDevice.wait(Until.hasObject(dismissSelector), FIND_TIMEOUT) in <lambda>() 340 uiDevice.findObject(dismissSelector) ?: error("PIP window dismiss button not found") in <lambda>() 342 uiDevice.click(dismissButtonBounds.centerX(), dismissButtonBounds.centerY()) in <lambda>() 350 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in <lambda>() 353 uiDevice.wait(Until.hasObject(dismissSelector), FIND_TIMEOUT) in <lambda>() [all …]
|
D | ActivityEmbeddingAppHelper.kt | 67 uiDevice.wait( in launchThirdActivity() 87 uiDevice.wait( in launchTrampolineActivity() 106 uiDevice.wait( in finishSecondaryActivity() 121 uiDevice.wait( in changeSecondaryActivityRatio() 138 uiDevice.wait( in secondaryActivityEnterPip() 153 uiDevice.wait( in launchAlwaysExpandActivity() 177 uiDevice.wait(Until.findObject(By.res(packageName, buttonName)), FIND_TIMEOUT) in launchSecondaryActivityFromButton() 195 uiDevice.wait( in launchPlaceholderSplit() 214 uiDevice.wait( in launchPlaceholderSplitRTL()
|
D | GameAppHelper.kt | 44 uiDevice.wait(Until.findObject(By.res(packageName, GAME_APP_VIEW_RES)), WAIT_TIME_MS) in swipeDown() 48 return uiDevice.swipe(bound.centerX(), 0, bound.centerX(), bound.centerY(), SWIPE_STEPS) in swipeDown() 77 return uiDevice.swipe( in switchToPreviousAppByQuickSwitchGesture() 100 uiDevice.waitForIdle(timeout) in isTargetObjVisible() 101 return uiDevice.hasObject(By.res(packageName, identifier)) in isTargetObjVisible()
|
D | AssistantAppHelper.kt | 35 private val uiDevice: UiDevice = UiDevice.getInstance(instr) constant in com.android.server.wm.flicker.helpers.AssistantAppHelper 79 uiDevice.executeShellCommand("input keyevent --longpress KEYCODE_POWER") in openUI() 81 uiDevice.executeShellCommand("cmd voiceinteraction show") in openUI() 84 uiDevice.wait( in openUI()
|
D | MailAppHelper.kt | 43 row = uiDevice.wait(Until.findObject(rowSel), SHORT_WAIT_TIME_MS) in openMail() 49 uiDevice.wait(Until.gone(By.res(packageName, MAIL_LIST_RES_ID)), FIND_TIMEOUT) in openMail() 59 val ret = uiDevice.wait(Until.findObject(sel), FIND_TIMEOUT) in waitForMailList()
|
D | ImeShownOnAppStartHelper.kt | 78 val dialog = uiDevice.wait(Until.findObject(By.text("Dialog for test")), FIND_TIMEOUT) in dismissDialog() 82 uiDevice.pressBack() in dismissDialog() 89 uiDevice.wait(Until.findObject(By.res("android:id/text1")), FIND_TIMEOUT) in getInsetsVisibleFromDialog()
|
D | NotificationAppHelper.kt | 38 uiDevice.wait(Until.findObject(By.res(packageName, "post_notification")), FIND_TIMEOUT) in postNotification() 46 uiDevice.wait(Until.findObject(By.text("Flicker Test Notification")), FIND_TIMEOUT) in postNotification()
|
D | ImeAppHelper.kt | 43 uiDevice.wait(Until.findObject(By.res(packageName, "plain_text_input")), FIND_TIMEOUT) in openIME() 63 uiDevice.pressBack() in closeIME()
|
D | ImeEditorPopupDialogAppHelper.kt | 37 val editText = uiDevice.wait(Until.findObject(By.text("focused editText")), FIND_TIMEOUT) in openIME() 48 val dismissButton = uiDevice.wait(Until.findObject(By.text("Dismiss")), FIND_TIMEOUT) in dismissDialog()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | CommonUtils.java | 55 final UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in getIgnoreOrientationRequest() local 58 result = uiDevice.executeShellCommand("cmd window get-ignore-orientation-request -d " in getIgnoreOrientationRequest() 101 final UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in waitUntilActivityRemoved() local 108 windowTokenDump = uiDevice.executeShellCommand("dumpsys window tokens"); in waitUntilActivityRemoved()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | AnrTest.kt | 116 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in clickCloseAppOnAnrDialog() constant 118 uiDevice.wait(Until.findObject(By.res("android:id/aerr_close")), 20000) in clickCloseAppOnAnrDialog() 136 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in clickWaitOnAnrDialog() constant 138 uiDevice.wait(Until.findObject(By.res("android:id/aerr_wait")), 20000) in clickWaitOnAnrDialog() 179 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in triggerAnr() constant 180 val obj: UiObject2? = uiDevice.wait(Until.findObject(By.pkg(PACKAGE_NAME)), 10000) in triggerAnr()
|
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | ImeOpenCloseStressTest.java | 454 UiDevice uiDevice = UiDevice.getInstance(mInstrumentation); in testScreenOffOn() local 456 if (uiDevice.isScreenOn()) { in testScreenOffOn() 457 uiDevice.sleep(); in testScreenOffOn() 460 if (!uiDevice.isScreenOn()) { in testScreenOffOn() 461 uiDevice.wakeUp(); in testScreenOffOn() 481 UiDevice uiDevice = UiDevice.getInstance(mInstrumentation); in testRotateScreenWithKeyboardOn() local 483 uiDevice.setOrientationRight(); in testRotateScreenWithKeyboardOn() 484 uiDevice.waitForIdle(); in testRotateScreenWithKeyboardOn() 487 assertThat(uiDevice.isNaturalOrientation()).isFalse(); in testRotateScreenWithKeyboardOn() 490 uiDevice.setOrientationLeft(); in testRotateScreenWithKeyboardOn() [all …]
|
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/ |
D | ScreenLockRule.kt | 44 private val uiDevice = UiDevice.getInstance(getInstrumentation()) in <lambda>() constant 93 if (!uiDevice.isScreenOn) { in <lambda>() 95 uiDevice.wakeUp() in <lambda>() 101 uiDevice.pressKeyCode(KeyEvent.KEYCODE_BACK) in <lambda>()
|
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/ |
D | SurfaceControlTest.java | 54 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() local 56 uiDevice.wakeUp(); in setUp() 57 uiDevice.executeShellCommand("wm dismiss-keyguard"); in setUp()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/appcompat/src/com/android/wm/shell/flicker/appcompat/ |
D | RotateImmersiveAppInFullscreenTest.kt | 78 protected val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in <lambda>() constant 99 uiDevice.wait(Until.hasObject(rotationButtonSelector), FIND_TIMEOUT) in <lambda>() 100 uiDevice.findObject(rotationButtonSelector) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tracing/ |
D | TraceUtilsTest.kt | 51 uiDevice.executeShellCommand("atrace --async_start -a com.android.*") in setUp() 56 uiDevice.executeShellCommand("atrace --async_stop") in tearDown()
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerNativeTest.java | 88 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup() local 89 uiDevice.wakeUp(); in setup() 90 uiDevice.executeShellCommand("wm dismiss-keyguard"); in setup()
|
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/ |
D | CompanionDeviceManagerSnippet.kt | 63 private val uiDevice by lazy { UiDevice.getInstance(instrumentation) } in <lambda>() constant in android.companion.multidevices.CompanionDeviceManagerSnippet 64 private val confirmationUi by lazy { CompanionDeviceManagerUi(uiDevice) } in <lambda>() 65 private val btController by lazy { BluetoothController(context, btAdapter, uiDevice) } in <lambda>()
|