Home
last modified time | relevance | path

Searched refs:getUiDevice (Results 1 – 25 of 31) sorted by relevance

12

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DUnlockScreenRuleTest.java49 verify(rule.getUiDevice(), times(1)).wakeUp(); in testScreenOff()
50 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenOff()
65 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenLocked()
66 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenLocked()
81 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenOn()
82 verify(rule.getUiDevice(), times(0)).pressMenu(); in testScreenOn()
100 protected UiDevice getUiDevice() { in getUiDevice() method in UnlockScreenRuleTest.TestableUnlockScreenRule
DPressHomeRuleTest.java52 verify(rule.getUiDevice(), never()).pressHome(); in testPressHomeEnabled()
57 verify(rule.getUiDevice(), times(1)).pressHome(); in testPressHomeEnabled()
74 verify(rule.getUiDevice(), never()).pressHome(); in testPressHomeDisabled()
79 verify(rule.getUiDevice(), times(0)).pressHome(); in testPressHomeDisabled()
97 protected UiDevice getUiDevice() { in getUiDevice() method in PressHomeRuleTest.TestablePressHomeRule
DKillAppsOnFailureRuleTest.java59 verify(rule.getUiDevice(), never()).executeShellCommand(any()); in testDefaultDoesNothing()
68 verify(rule.getUiDevice(), times(1)) in testKillsSpecifiedApp()
79 InOrder order = inOrder(rule.getUiDevice()); in testKillsSpecifiedApps()
81 order.verify(rule.getUiDevice()) in testKillsSpecifiedApps()
104 protected UiDevice getUiDevice() { in getUiDevice() method in KillAppsOnFailureRuleTest.TestableKillAppsOnFailureRule
DSetBatteryPercentageVisibleRuleTest.java68 verify(rule.getUiDevice(), times(1)).executeShellCommand(shellCommand); in batteryVisibleTest()
91 protected UiDevice getUiDevice() { in getUiDevice() method in SetBatteryPercentageVisibleRuleTest.TestableSetBatteryPercentageVisibleRule
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/features/common/
DHomeLockscreenPage.java19 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
73 getUiDevice().sleep(); in open()
77 getUiDevice().wakeUp(); in open()
96 return getUiDevice().findObject(PAGE_TITLE_SELECTOR) != null; in isVisible()
104 UiObject2 swipeableArea = getUiDevice().wait(Until.findObject(SWIPEABLE_AREA), in swipeUp()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/features/quicksettings/
DUserSelection.java22 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
104 getUiDevice().findObject(userSelector).click(); in selectUserItem()
116 clickTopLeftCorner(getUiDevice().findObject(SETTINGS_SELECTOR)); in openUserSettings()
127 clickTopLeftCorner(getUiDevice().findObject(CLOSE_SELECTOR)); in close()
133 getUiDevice().click(r.left, r.top); in clickTopLeftCorner()
143 getUiDevice().findObject(MULTI_USER_SWITCH_SELECTOR).click(); in clickMultiUserSwitch()
DGuestUserExitConfirmationDialog.java21 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
60 getUiDevice().findObject(sExitSelector).click(); in confirmExitGuest()
68 getUiDevice().findObject(sCancelSelector).click(); in cancelExitGuest()
DEditCurrentUserDialog.java22 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
68 UiObject2 inputTextField = getUiDevice().findObject(EDIT_TEXT_SELECTOR); in setUserNameText()
80 getUiDevice().findObject(OK_SELECTOR).click(); in clickOK()
90 getUiDevice().findObject(CANCEL_SELECTOR).click(); in clickCancel()
DNewUserSetupPage.java21 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
62 getUiDevice().findObject(CONTINUE_SELECTOR).click(); in clickContinue()
72 getUiDevice().findObject(CANCEL_SELECTOR).click(); in clickCancel()
DRemoveUserDialog.java21 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
61 getUiDevice().findObject(REMOVE_USER_SELECTOR).click(); in removeUser()
71 getUiDevice().findObject(KEEP_USER_SELECTOR).click(); in keepUser()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/
DSidedBouncerRule.kt19 import android.platform.helpers.ui.UiAutomatorUtils.getUiDevice
32 getUiDevice().executeShellCommand("settings delete global $ONE_HANDED_KEYGUARD_SIDE") in finished()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/codelab/answers/
DOpenCalculator.java45 getUiDevice().executeShellCommand("am start com.google.android.calculator"); in testOpenCalculator()
53 getUiDevice().pressHome(); in closeApp()
56 private static UiDevice getUiDevice() { in getUiDevice() method in OpenCalculator
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiSearch.java19 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
133 if (getUiDevice().wait(hasObject(selector), in search()
141 return getUiDevice().wait(hasObject(selector), in search()
157 if (getUiDevice().hasObject(selector)) { in search()
189 if (getUiDevice().findObject(selector).exists()) { in search()
DUiSearch2.java46 private static UiDevice getUiDevice() { in getUiDevice() method in UiSearch2
137 if (getUiDevice().wait(hasObject(selector), in search()
145 return getUiDevice().wait(hasObject(selector), in search()
161 if (getUiDevice().hasObject(selector)) { in search()
193 if (getUiDevice().findObject(selector).exists()) { in search()
DUiAutomatorUtils.java43 public static UiDevice getUiDevice() { in getUiDevice() method in UiAutomatorUtils
62 UiAutomatorUtils.getUiDevice().dumpWindowHierarchy(stream); in dumpViewHierarchy()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DCommonUtils.java20 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
97 String out = getUiDevice().executeShellCommand(command); in executeShellCommand()
153 .that(getUiDevice().isScreenOn()) in assertScreenOn()
170 final int displayHeight = getUiDevice().getDisplayHeight() - DEFAULT_MARGIN; in swipe()
171 final int displayWidth = getUiDevice().getDisplayWidth() - DEFAULT_MARGIN; in swipe()
178 getUiDevice().swipe( in swipe()
187 getUiDevice().swipe( in swipe()
196 getUiDevice().swipe( in swipe()
205 getUiDevice().swipe( in swipe()
380 Point sizeDp = getUiDevice().getDisplaySizeDp(); in isLargeScreen()
DLockscreenUtils.java23 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice;
183 getUiDevice().sleep(); in goToLockScreen()
185 getUiDevice().wakeUp(); in goToLockScreen()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DHelperTestUtility.java51 public static UiDevice getUiDevice() { in getUiDevice() method in HelperTestUtility
63 return getUiDevice().executeShellCommand(cmd); in executeShellCommand()
129 getUiDevice().setOrientationNatural(); in setOrientationNatural()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DQuickstepPressureRule.java54 getUiDevice().pressHome(); in starting()
62 if (!getUiDevice().wait(Until.hasObject(By.pkg(pkg).depth(0)), UI_RESPONSE_TIMEOUT_MSECS)) { in startActivity()
DCoolDownRule.java97 final boolean screenOnOriginal = getUiDevice().isScreenOn(); in starting()
99 getUiDevice().sleep(); in starting()
105 if (screenOnOriginal && !getUiDevice().isScreenOn()) { in starting()
106 getUiDevice().wakeUp(); in starting()
DPressHomeRule.java38 getUiDevice().pressHome(); in finished()
DArtifactSaver.java75 final UiDevice device = getUiDevice(); in onError()
133 private static UiDevice getUiDevice() { in getUiDevice() method in ArtifactSaver
146 File screenshotFile = takeDebugScreenshot(description, getUiDevice(), prefix); in takeDebugScreenshot()
DTestWatcher.java97 protected UiDevice getUiDevice() {
112 return getUiDevice().executeShellCommand(cmd);
DDeviceTypeRule.kt109 val sizeDp = getUiDevice().displaySizeDp in isLargeScreen()
144 private fun getUiDevice(): UiDevice = UiDevice.getInstance(getInstrumentation()) method
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/
DPowerPerfTest.java49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()

12