Home
last modified time | relevance | path

Searched refs:uiDevice (Results 1 – 25 of 30) sorted by relevance

12

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvPipMenuTests.kt85 left >= 0 && right <= uiDevice.displayWidth && bottom <= uiDevice.displayHeight
98 uiDevice.pressBack()
109 uiDevice.pressHome()
120 uiDevice.findTvPipMenuCloseButton()
124 uiDevice.clickTvPipMenuCloseButton()
133 uiDevice.findTvPipMenuFullscreenButton()
138 uiDevice.clickTvPipMenuFullscreenButton()
145 uiDevice.pressBack()
211 uiDevice
275 uiDevice.pressWindowKey()
[all …]
H A DPipAppHelperTv.kt32 get() = uiDevice.findObject(appSelector)
39 uiDevice.findObject(selector)?.apply { if (isFocusedOrHasFocusedChild) return true }
42 uiDevice.pressDPadDown()
43 uiDevice.waitForIdle()
51 uiDevice.pressDPadCenter()
59 uiDevice.closeTvPipWindow()
64 uiDevice.closeTvPipWindow()
72 return uiDevice.wait(Until.gone(appSelector), APP_CLOSE_WAIT_TIME_MS)
H A DTvPipBasicTest.kt50 uiDevice.pressWindowKey()
51 uiDevice.waitForTvPipMenu() ?: fail("Pip menu should have been shown")
54 uiDevice.pressBack()
55 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose())
H A DTvUtils.kt157 fun UiObject2.isFullscreen(uiDevice: UiDevice): Boolean =
158 visibleBounds.run { height() == uiDevice.displayHeight && width() == uiDevice.displayWidth }
H A DTvPipNotificationTests.kt109 uiDevice.waitForTvPipMenu()
112 uiDevice.pressBack()
/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/
H A DTemporaryAndRenewableTrustTest.kt46 private val uiDevice = UiDevice.getInstance(getInstrumentation()) regex
67 uiDevice.sleep()
74 uiDevice.sleep()
77 uiDevice.wakeUp()
88 uiDevice.sleep()
97 uiDevice.sleep()
101 uiDevice.wakeUp()
116 uiDevice.sleep()
119 uiDevice.wakeUp()
137 uiDevice.sleep()
[all …]
H A DGrantAndRevokeTrustTest.kt44 private val uiDevice = UiDevice.getInstance(getInstrumentation()) regex
65 uiDevice.sleep()
73 uiDevice.sleep()
82 uiDevice.sleep()
H A DCanUnlockWithActiveUnlockTest.kt48 private val uiDevice = UiDevice.getInstance(getInstrumentation()) regex
91 uiDevice.sleep()
94 uiDevice.wakeUp()
106 uiDevice.sleep()
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
H A DPipAppHelper.kt120 uiDevice.drag(startX, y, endX, y, steps)
275 uiDevice.wait(Until.gone(By.res(SYSTEMUI_PACKAGE, "dismiss")), FIND_TIMEOUT)
291 uiDevice
321 uiDevice.click(windowRect.centerX(), windowRect.centerY())
324 uiDevice.wait(Until.hasObject(dismissSelector), FIND_TIMEOUT)
328 uiDevice.click(dismissButtonBounds.centerX(), dismissButtonBounds.centerY())
337 uiDevice.click(windowRect.centerX(), windowRect.centerY())
340 uiDevice.wait(Until.hasObject(expandSelector), FIND_TIMEOUT)
344 uiDevice.click(expandButtonBounds.centerX(), expandButtonBounds.centerY())
352 uiDevice.click(windowRect.centerX(), windowRect.centerY())
[all …]
H A DActivityEmbeddingAppHelper.kt69 uiDevice.wait(
89 uiDevice.wait(
108 uiDevice.wait(
125 uiDevice.wait(
144 uiDevice.wait(
163 uiDevice.wait(
181 uiDevice.wait(Until.findObject(By.res(getPackage(), buttonName)), FIND_TIMEOUT)
199 uiDevice.wait(
218 uiDevice.wait(
H A DGameAppHelper.kt44 uiDevice.wait(Until.findObject(By.res(getPackage(), GAME_APP_VIEW_RES)), WAIT_TIME_MS)
48 return uiDevice.swipe(
83 return uiDevice.swipe(
106 uiDevice.waitForIdle(timeout)
107 return uiDevice.hasObject(By.res(packageName, identifier))
H A DAssistantAppHelper.kt35 private val uiDevice: UiDevice = UiDevice.getInstance(instr)
79 uiDevice.executeShellCommand("input keyevent --longpress KEYCODE_POWER")
81 uiDevice.executeShellCommand("cmd voiceinteraction show")
84 uiDevice.wait(
H A DImeShownOnAppStartHelper.kt81 uiDevice.wait(
98 val dialog = uiDevice.wait(Until.findObject(By.text("Dialog for test")), FIND_TIMEOUT)
102 uiDevice.pressBack()
109 uiDevice.wait(Until.findObject(By.res("android:id/text1")), FIND_TIMEOUT)
134 uiDevice.wait(
H A DImeAppHelper.kt43 uiDevice.wait(Until.findObject(By.res(getPackage(), "plain_text_input")), FIND_TIMEOUT)
63 uiDevice.pressBack()
69 uiDevice.wait(
H A DMailAppHelper.kt43 row = uiDevice.wait(Until.findObject(rowSel), SHORT_WAIT_TIME_MS)
49 uiDevice.wait(Until.gone(By.res(getPackage(), MAIL_LIST_RES_ID)), FIND_TIMEOUT)
59 val ret = uiDevice.wait(Until.findObject(sel), FIND_TIMEOUT)
H A DImeEditorPopupDialogAppHelper.kt37 val editText = uiDevice.wait(Until.findObject(By.text("focused editText")), FIND_TIMEOUT)
48 val dismissButton = uiDevice.wait(Until.findObject(By.text("Dismiss")), FIND_TIMEOUT)
H A DNotificationAppHelper.kt38 uiDevice.wait(Until.findObject(By.res(getPackage(), "post_notification")), FIND_TIMEOUT)
46 uiDevice.wait(Until.findObject(By.text("Flicker Test Notification")), FIND_TIMEOUT)
H A DLetterboxAppHelper.kt45 uiDevice.wait(
53 uiDevice.wait(
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DAnrTest.kt103 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation)
105 uiDevice.wait(Until.findObject(By.res("android:id/aerr_close")), 20000)
124 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation)
126 uiDevice.wait(Until.findObject(By.res("android:id/aerr_wait")), 20000)
154 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation)
155 val obj: UiObject2? = uiDevice.wait(Until.findObject(
/aosp14/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
H A DImeOpenCloseStressTest.java456 if (uiDevice.isScreenOn()) { in testScreenOffOn()
457 uiDevice.sleep(); in testScreenOffOn()
460 if (!uiDevice.isScreenOn()) { in testScreenOffOn()
461 uiDevice.wakeUp(); in testScreenOffOn()
483 uiDevice.setOrientationRight(); in testRotateScreenWithKeyboardOn()
484 uiDevice.waitForIdle(); in testRotateScreenWithKeyboardOn()
487 assertThat(uiDevice.isNaturalOrientation()).isFalse(); in testRotateScreenWithKeyboardOn()
490 uiDevice.setOrientationLeft(); in testRotateScreenWithKeyboardOn()
491 uiDevice.waitForIdle(); in testRotateScreenWithKeyboardOn()
497 uiDevice.setOrientationNatural(); in testRotateScreenWithKeyboardOn()
[all …]
H A DDefaultImeVisibilityTest.java97 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in showHideDefaultIme() local
101 .that(uiDevice.getDisplayRotation()) in showHideDefaultIme()
/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
H A DScreenLockRule.kt38 private val uiDevice = UiDevice.getInstance(getInstrumentation()) regex
68 if (!uiDevice.isScreenOn) {
70 uiDevice.wakeUp()
76 uiDevice.pressKeyCode(KeyEvent.KEYCODE_BACK)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A DTraceUtilsTest.kt49 uiDevice.executeShellCommand("atrace --async_start -a com.android.*")
54 uiDevice.executeShellCommand("atrace --async_stop")
/aosp14/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
H A DAttachedChoreographerNativeTest.java88 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup() local
89 uiDevice.wakeUp(); in setup()
90 uiDevice.executeShellCommand("wm dismiss-keyguard"); in setup()
/aosp14/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestCase.java106 void setUiDevice(UiDevice uiDevice) { in setUiDevice() argument
107 mUiDevice = uiDevice; in setUiDevice()

12