/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | UnlockScreenRuleTest.java | 49 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
|
D | PressHomeRuleTest.java | 52 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
|
D | KillAppsOnFailureRuleTest.java | 59 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
|
D | SetBatteryPercentageVisibleRuleTest.java | 68 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/ |
D | HomeLockscreenPage.java | 19 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/ |
D | UserSelection.java | 22 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()
|
D | GuestUserExitConfirmationDialog.java | 21 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice; 60 getUiDevice().findObject(sExitSelector).click(); in confirmExitGuest() 68 getUiDevice().findObject(sCancelSelector).click(); in cancelExitGuest()
|
D | EditCurrentUserDialog.java | 22 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()
|
D | NewUserSetupPage.java | 21 import static android.platform.helpers.ui.UiAutomatorUtils.getUiDevice; 62 getUiDevice().findObject(CONTINUE_SELECTOR).click(); in clickContinue() 72 getUiDevice().findObject(CANCEL_SELECTOR).click(); in clickCancel()
|
D | RemoveUserDialog.java | 21 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/ |
D | SidedBouncerRule.kt | 19 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/ |
D | OpenCalculator.java | 45 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/ |
D | UiSearch.java | 19 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()
|
D | UiSearch2.java | 46 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()
|
D | UiAutomatorUtils.java | 43 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/ |
D | CommonUtils.java | 20 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()
|
D | LockscreenUtils.java | 23 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/ |
D | HelperTestUtility.java | 51 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/ |
D | QuickstepPressureRule.java | 54 getUiDevice().pressHome(); in starting() 62 if (!getUiDevice().wait(Until.hasObject(By.pkg(pkg).depth(0)), UI_RESPONSE_TIMEOUT_MSECS)) { in startActivity()
|
D | CoolDownRule.java | 97 final boolean screenOnOriginal = getUiDevice().isScreenOn(); in starting() 99 getUiDevice().sleep(); in starting() 105 if (screenOnOriginal && !getUiDevice().isScreenOn()) { in starting() 106 getUiDevice().wakeUp(); in starting()
|
D | PressHomeRule.java | 38 getUiDevice().pressHome(); in finished()
|
D | ArtifactSaver.java | 75 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()
|
D | TestWatcher.java | 97 protected UiDevice getUiDevice() { 112 return getUiDevice().executeShellCommand(cmd);
|
D | DeviceTypeRule.kt | 109 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/ |
D | PowerPerfTest.java | 49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()
|