Home
last modified time | relevance | path

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

/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DUnlockScreenRule.java35 if (!getUiDevice().isScreenOn()) { in starting()
36 getUiDevice().wakeUp(); in starting()
38 if (getUiDevice().hasObject(SCREEN_LOCK)) { in starting()
39 getUiDevice().pressMenu(); in starting()
40 getUiDevice().waitForIdle(); in starting()
DLandscapeOrientationRule.java36 getUiDevice().setOrientationNatural(); in starting()
39 getUiDevice().setOrientationLeft(); in starting()
62 if (!getUiDevice().isNaturalOrientation()) { in finished()
63 getUiDevice().setOrientationNatural(); in finished()
65 getUiDevice().unfreezeRotation(); in finished()
DNaturalOrientationRule.java29 getUiDevice().setOrientationNatural(); in starting()
38 getUiDevice().unfreezeRotation(); in finished()
DQuickstepPressureRule.java49 getUiDevice().pressHome(); in starting()
57 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()
DTestWatcher.java83 protected UiDevice getUiDevice() {
98 return getUiDevice().executeShellCommand(cmd);
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DUnlockScreenRuleTest.java46 verify(rule.getUiDevice(), times(1)).wakeUp(); in testScreenOff()
47 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenOff()
62 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenLocked()
63 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenLocked()
78 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenOn()
79 verify(rule.getUiDevice(), times(0)).pressMenu(); in testScreenOn()
97 protected UiDevice getUiDevice() { in getUiDevice() method in UnlockScreenRuleTest.TestableUnlockScreenRule
DNaturalOrientationRuleTest.java46 verify(rule.getUiDevice(), times(1)).setOrientationNatural(); in testNaturalOrientationSetAndUnset()
47 verify(rule.getUiDevice(), never()).unfreezeRotation(); in testNaturalOrientationSetAndUnset()
52 verify(rule.getUiDevice(), times(1)).unfreezeRotation(); in testNaturalOrientationSetAndUnset()
63 protected UiDevice getUiDevice() { in getUiDevice() method in NaturalOrientationRuleTest.TestableNaturalOrientationRule
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
DCoolDownRuleTest.java285 protected UiDevice getUiDevice() { in getUiDevice() method in CoolDownRuleTest.TestableRule
/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/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()
DCrashHelperTest.java201 UiObject2 behaviorButton = HelperTestUtility.getUiDevice().findObject( in invokeBehavior()
208 UiObject2 closeButton = HelperTestUtility.getUiDevice().findObject( in invokeBehavior()
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/
DPowerPerfTest.java49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java105 protected UiDevice getUiDevice() { in getUiDevice() method in AuptTestCase