Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvPipMenuTests.kt70 uiDevice.findTvPipMenuControls()?.visibleBounds?.run { in <lambda>()
74 centerX() == uiDevice.displayWidth / 2) in <lambda>()
76 left >= 0 && right <= uiDevice.displayWidth && bottom <= uiDevice.displayHeight) in <lambda>()
87 uiDevice.pressBack() in <lambda>()
88 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose()) in <lambda>()
98 uiDevice.pressHome() in <lambda>()
99 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose()) in <lambda>()
109 uiDevice.findTvPipMenuCloseButton() in <lambda>()
113 uiDevice.clickTvPipMenuCloseButton() in <lambda>()
122 uiDevice.findTvPipMenuFullscreenButton() in <lambda>()
[all …]
DTvPipBasicTest.kt55 uiDevice.pressWindowKey() in <lambda>()
56 uiDevice.waitForTvPipMenu() ?: fail("Pip menu should have been shown") in <lambda>()
59 uiDevice.pressBack() in <lambda>()
60 assertTrue("Pip menu should have closed", uiDevice.waitForTvPipMenuToClose()) in <lambda>()
DTvUtils.kt158 fun UiObject2.isFullscreen(uiDevice: UiDevice): Boolean = visibleBounds.run { in UiDevice()
159 height() == uiDevice.displayHeight && width() == uiDevice.displayWidth in UiDevice()
DTvPipNotificationTests.kt101 uiDevice.waitForTvPipMenu()) in pipNotification_menuIntent()
103 uiDevice.pressBack() in pipNotification_menuIntent()
DTvPipTestBase.kt44 uiDevice.wakeUpAndGoToHomeScreen() in televisionSetUp()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/
DPipAppHelper.kt51 val obj = uiDevice.findObject(selector) ?: error("Could not find `$resId` object") in clickObject()
57 uiDevice.pressDPadCenter() in clickObject()
89 uiDevice.findObject(selector)?.apply { if (isFocusedOrHasFocusedChild) return true } in exitPipToFullScreenViaIntent()
92 uiDevice.pressDPadDown() in exitPipToFullScreenViaIntent()
93 uiDevice.waitForIdle() in exitPipToFullScreenViaIntent()
107 uiDevice.wait(Until.gone(By.res(SYSTEMUI_PACKAGE, "dismiss")), FIND_TIMEOUT) in clickEnterPipButton()
122 fun checkWithCustomActionsCheckbox() = uiDevice in checkWithCustomActionsCheckbox()
140 uiDevice.closeTvPipWindow() in pauseMedia()
159 uiDevice.closeTvPipWindow() in closePipWindow()
162 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in closePipWindow()
[all …]
DImeAppHelper.kt41 val editText = uiDevice.wait( in openIME()
50 waitAndAssertIMEShown(uiDevice, wmHelper) in openIME()
77 uiDevice.pressBack() in closeIME()
80 uiDevice.waitForIdle() in closeIME()
DBaseAppHelper.kt54 get() = uiDevice.findObject(appSelector)
57 return uiDevice.wait(Until.gone(appSelector), APP_CLOSE_WAIT_TIME_MS) in waitUntilClosed()
/frameworks/base/tests/TrustTests/src/android/trust/test/
DTemporaryAndRenewableTrustTest.kt46 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 …]
DGrantAndRevokeTrustTest.kt44 private val uiDevice = UiDevice.getInstance(getInstrumentation()) constant in android.trust.test.GrantAndRevokeTrustTest
65 uiDevice.sleep() in sleepingDeviceWithoutGrantLocksDevice()
73 uiDevice.sleep() in grantKeepsDeviceUnlocked()
82 uiDevice.sleep() in grantKeepsDeviceUnlocked_untilRevoked()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
DImeAppAutoFocusHelper.kt57 waitIMEShown(uiDevice, wmHelper) in launchViaIntent()
70 val button = uiDevice.wait(Until.findObject(By.res(getPackage(), in startDialogThemedActivity()
84 val dialog = uiDevice.wait( in dismissDialog()
89 uiDevice.pressBack() in dismissDialog()
94 var insetsVisibilityTextView = uiDevice.wait( in getInsetsVisibleFromDialog()
118 val button = uiDevice.wait(Until.findObject(By.res(getPackage(), in toggleFixPortraitOrientation()
DGameAppHelper.kt45 val gameView = uiDevice.wait( in swipeDown()
50 return uiDevice.swipe( in swipeDown()
80 return uiDevice.swipe( in switchToPreviousAppByQuickSwitchGesture()
99 uiDevice.waitForIdle(timeout) in isTargetObjVisible()
100 return uiDevice.hasObject(By.res(packageName, identifier)) in isTargetObjVisible()
DAssistantAppHelper.kt32 protected val uiDevice: UiDevice = UiDevice.getInstance(instr) constant in com.android.server.wm.flicker.helpers.AssistantAppHelper
71 uiDevice.executeShellCommand("input keyevent --longpress KEYCODE_POWER") in openUI()
73 uiDevice.executeShellCommand("cmd voiceinteraction show") in openUI()
75 val ui = uiDevice.wait( in openUI()
DMailAppHelper.kt45 row = uiDevice.wait(Until.findObject(rowSel), SHORT_WAIT_TIME_MS) in openMail()
51 uiDevice.wait(Until.gone(By.res(getPackage(), MAIL_LIST_RES_ID)), FIND_TIMEOUT) in openMail()
61 val ret = uiDevice.wait(Until.findObject(sel), FIND_TIMEOUT) in waitForMailList()
DImeEditorPopupDialogAppHelper.kt51 val dismissButton = uiDevice.wait( in dismissDialog()
/frameworks/base/tests/Input/src/com/android/test/input/
DAnrTest.kt102 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in clickCloseAppOnAnrDialog() constant
104 uiDevice.wait(Until.findObject(By.res("android:id/aerr_close")), 20000) in clickCloseAppOnAnrDialog()
123 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in clickWaitOnAnrDialog() constant
125 uiDevice.wait(Until.findObject(By.res("android:id/aerr_wait")), 20000) in clickWaitOnAnrDialog()
153 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in triggerAnr() constant
154 val obj: UiObject2? = uiDevice.wait(Until.findObject( in triggerAnr()
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DScreenLockRule.kt38 private val uiDevice = UiDevice.getInstance(getInstrumentation()) in <lambda>() constant
68 if (!uiDevice.isScreenOn) { in <lambda>()
70 uiDevice.wakeUp() in <lambda>()
76 uiDevice.pressKeyCode(KeyEvent.KEYCODE_BACK) in <lambda>()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java106 void setUiDevice(UiDevice uiDevice) { in setUiDevice() argument
107 mUiDevice = uiDevice; in setUiDevice()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/
DFlickerTestBase.kt44 val uiDevice = UiDevice.getInstance(instrumentation) constant
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DUtils.java190 final UiDevice uiDevice = UiDevice.getInstance( in runShellCmd() local
192 final String result = uiDevice.executeShellCommand(cmd).trim(); in runShellCmd()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserSystemPackageInstallerTest.java517 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUserTypePackageWhitelistMode() local
519 String result = uiDevice.executeShellCommand(String.format("setprop %s %d", in setUserTypePackageWhitelistMode()