/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/ |
D | UiObjectUtils.kt | 21 import android.platform.uiautomator_helpers.DeviceHelpers.uiDevice in <lambda>() 32 .isIn(uiDevice.displayHeight / 2 - 1..uiDevice.displayHeight / 2 + 1) in <lambda>() 39 .isIn(uiDevice.displayWidth / 2 - 1..uiDevice.displayWidth / 2 + 1) in assertInHorizontalCentre() 48 .that(this.stableBounds.centerY() > uiDevice.displayHeight / 2) in assertCentreOnBottomSide() 58 .that(this.stableBounds.centerY() < uiDevice.displayHeight / 2) in assertCentreOnTopSide() 68 .that(this.stableBounds.top > uiDevice.displayHeight / 2) in assertTopOnBottomSide() 78 .that(this.stableBounds.top < uiDevice.displayHeight / 2) in assertTopOnTopSide() 85 .that(this.stableBounds.centerX() > uiDevice.displayWidth / 2) in assertCenterOnTheRightSide() 92 .that(this.stableBounds.centerX() < uiDevice.displayWidth / 2) in assertCenterOnTheLeftSide() 102 .that(this.stableBounds.left >= uiDevice.displayWidth / 2) in assertOnTheRightSide() [all …]
|
D | DeviceHelpers.kt | 49 val uiDevice: UiDevice constant 83 waitFor("$selector object", timeout, errorProvider) { uiDevice.findObject(selector) } in <lambda>() 115 waitForNullable("nullable $selector objects", timeout) { uiDevice.findObject(selector) } in waitForNullableObj() 149 waitForPossibleEmpty("$selector objects", timeout) { uiDevice.findObjects(selector) } in waitForNullableObjects() 167 ): Boolean = trace("Checking if device has $selector") { uiDevice.hasObject(selector) } in waitForNullableObjects() 210 uiDevice.hasObject(selector) == visible in assertVisibility() 244 uiDevice.assertVisibility( in BySelector() 259 uiDevice.assertVisibility( in BySelector() 290 uiDevice.executeShellCommand(command) in shell()
|
D | BetterScroll.kt | 4 import android.platform.uiautomator_helpers.DeviceHelpers.uiDevice 37 uiDevice.performActionAndWait( in scroll()
|
D | BetterFling.kt | 21 import android.platform.uiautomator_helpers.DeviceHelpers.uiDevice 61 uiDevice.performActionAndWait( in fling()
|
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/ |
D | MapsAppHelper.kt | 62 uiDevice.waitForIdle() in getDirections() 68 uiDevice.waitForIdle() in getDirections() 71 uiDevice.waitForIdle() in getDirections() 86 uiDevice.waitForIdle() in startNavigation() 113 uiDevice.pressBack() in inputSearch() 114 uiDevice.waitForIdle() in inputSearch() 122 uiDevice.waitForIdle() in inputSearch() 129 uiDevice.waitForIdle() in inputSearch() 139 uiDevice.wait( in startSearch() 145 uiDevice.waitForIdle() in startSearch() [all …]
|
D | YouTubeAppHelper.kt | 64 val player: UiObject2 = uiDevice.findObject(By.res(PACKAGE_NAME, UI_WATCH_PLAYER_ID)) in displayControls() 69 uiDevice.click(playerRect.centerX(), playerRect.centerY()) in displayControls() 72 uiDevice.wait(Until.findObject(By.res(PACKAGE_NAME, UI_CONTROL_ID)), WAIT_DELAY) in displayControls() 79 uiDevice.click(playerRect.centerX(), playerRect.centerY()) in displayControls() 83 return uiDevice.wait(Until.findObject(By.desc(UI_PAUSE_BUTTON_DESC)), WAIT_DELAY) in getPauseButton() 87 return uiDevice.wait(Until.findObject(By.desc(UI_FULLSCREEN_BUTTON_DESC)), WAIT_DELAY) in getFullscreenButton()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | UnlockScreenRule.java | 52 public static void unlockScreen(@NonNull UiDevice uiDevice) { in unlockScreen() argument 55 if (!uiDevice.isScreenOn()) { in unlockScreen() 56 uiDevice.wakeUp(); in unlockScreen() 66 if (uiDevice.hasObject(screenLock)) { in unlockScreen() 67 uiDevice.pressMenu(); in unlockScreen() 68 uiDevice.waitForIdle(); in unlockScreen()
|
D | DisableAutofillRule.java | 38 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in starting() local 39 String result = uiDevice.executeShellCommand("settings get secure autofill_service"); in starting() 43 uiDevice.executeShellCommand("settings put secure autofill_service null"); in starting()
|
/platform_testing/libraries/collectors-helper/simpleperf/test/src/com/android/helpers/tests/ |
D | SimpleperfHelperTest.java | 57 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in teardown() local 58 uiDevice.executeShellCommand(String.format(REMOVE_CMD, "/data/local/tmp/perf.data")); in teardown() 89 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testSimpleperfSuccess() local 91 uiDevice.executeShellCommand( in testSimpleperfSuccess()
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/ |
D | LauncherStrategyFactory.java | 41 private LauncherStrategyFactory(UiDevice uiDevice) { in LauncherStrategyFactory() argument 42 mUiDevice = uiDevice; in LauncherStrategyFactory() 72 public static LauncherStrategyFactory getInstance(UiDevice uiDevice) { in getInstance() argument 74 sInstance = new LauncherStrategyFactory(uiDevice); in getInstance()
|
D | CommonLauncherHelper.java | 55 private CommonLauncherHelper(UiDevice uiDevice) { in CommonLauncherHelper() argument 56 mDevice = uiDevice; in CommonLauncherHelper() 65 public static CommonLauncherHelper getInstance(UiDevice uiDevice) { in getInstance() argument 67 sInstance = new CommonLauncherHelper(uiDevice); in getInstance()
|
D | NexusLauncherStrategy.java | 42 public void setUiDevice(UiDevice uiDevice) { in setUiDevice() argument 43 super.setUiDevice(uiDevice); in setUiDevice() 45 uiDevice.executeShellCommand( in setUiDevice()
|
D | ILauncherStrategy.java | 45 void setUiDevice(UiDevice uiDevice); in setUiDevice() argument
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | LauncherStrategyFactory.java | 40 private LauncherStrategyFactory(UiDevice uiDevice) { in LauncherStrategyFactory() argument 41 mUiDevice = uiDevice; in LauncherStrategyFactory() 70 public static LauncherStrategyFactory getInstance(UiDevice uiDevice) { in getInstance() argument 72 sInstance = new LauncherStrategyFactory(uiDevice); in getInstance()
|
D | CommonLauncherHelper.java | 55 private CommonLauncherHelper(UiDevice uiDevice) { in CommonLauncherHelper() argument 56 mDevice = uiDevice; in CommonLauncherHelper() 64 public static CommonLauncherHelper getInstance(UiDevice uiDevice) { in getInstance() argument 66 sInstance = new CommonLauncherHelper(uiDevice); in getInstance()
|
D | NexusLauncherStrategy.java | 44 public void setUiDevice(UiDevice uiDevice) { in setUiDevice() argument 45 super.setUiDevice(uiDevice); in setUiDevice() 47 uiDevice.executeShellCommand( in setUiDevice()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | MemhogHelper.java | 54 UiDevice uiDevice = in startMemhog() local 58 uiDevice.executeShellCommand(String.format(CHMOD_CMD, MEMHOG_FILE_PATH)); in startMemhog() 59 uiDevice.executeShellCommand( in startMemhog()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/features/common/ |
D | SystemPowerMenu.java | 51 public SystemPowerMenu(UiDevice uiDevice) { in SystemPowerMenu() argument 52 mUiDevice = uiDevice; in SystemPowerMenu()
|
/platform_testing/libraries/collectors-helper/perfetto/test/src/com/android/helpers/tests/ |
D | PerfettoHelperTest.java | 91 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in teardown() local 93 uiDevice.executeShellCommand( in teardown() 252 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testPerfettoSuccess() local 254 uiDevice.executeShellCommand( in testPerfettoSuccess() 271 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testPerfettoConfigSuccess() local 273 uiDevice.executeShellCommand( in testPerfettoConfigSuccess()
|
/platform_testing/utils/dpad/src/android/platform/test/utils/ |
D | DPadUtil2.java | 42 public DPadUtil2(UiDevice uiDevice) { in DPadUtil2() argument 43 mDevice = uiDevice; in DPadUtil2() 46 public void setUiDevice(UiDevice uiDevice) { in setUiDevice() argument 47 mDevice = uiDevice; in setUiDevice()
|
D | DPadUtil.java | 43 public DPadUtil(UiDevice uiDevice) { in DPadUtil() argument 44 mDevice = uiDevice; in DPadUtil() 47 public void setUiDevice(UiDevice uiDevice) { in setUiDevice() argument 48 mDevice = uiDevice; in setUiDevice()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ |
D | SysuiRestarter.kt | 23 import android.platform.uiautomator_helpers.DeviceHelpers.uiDevice 74 uiDevice.assertVisibility( in assertLockscreenVisibility()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/ |
D | FoldableRule.kt | 77 uiDevice.sleep() in fold() 200 get() = uiDevice.isScreenOn 203 get() = uiDevice.displayWidth * uiDevice.displayHeight
|
D | FoldableDeviceController.kt | 25 import android.platform.uiautomator_helpers.DeviceHelpers.uiDevice in <lambda>() 93 if (!uiDevice.isScreenOnSettled) { in <lambda>() 94 uiDevice.wakeUp() in <lambda>() 95 ensureThat("screen is on after cancelling base state override.") { uiDevice.isScreenOn } in <lambda>()
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | PinnerHelperTest.java | 61 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in tearDown() local 62 uiDevice.executeShellCommand(String.format("rm -rf %s", VALID_OUTPUT_DIR)); in tearDown()
|