/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | UnlockScreenRule.java | 35 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()
|
D | LandscapeOrientationRule.java | 36 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()
|
D | NaturalOrientationRule.java | 29 getUiDevice().setOrientationNatural(); in starting() 38 getUiDevice().unfreezeRotation(); in finished()
|
D | QuickstepPressureRule.java | 49 getUiDevice().pressHome(); in starting() 57 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 | TestWatcher.java | 83 protected UiDevice getUiDevice() { 98 return getUiDevice().executeShellCommand(cmd);
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | UnlockScreenRuleTest.java | 46 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
|
D | NaturalOrientationRuleTest.java | 46 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
|
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 | CoolDownRuleTest.java | 285 protected UiDevice getUiDevice() { in getUiDevice() method in CoolDownRuleTest.TestableRule
|
/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/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()
|
D | CrashHelperTest.java | 201 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/ |
D | PowerPerfTest.java | 49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | AuptTestCase.java | 105 protected UiDevice getUiDevice() { in getUiDevice() method in AuptTestCase
|