Home
last modified time | relevance | path

Searched refs:sUiDevice (Results 1 – 9 of 9) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/ondevicepersonalization/test/scenario/ondevicepersonalization/
DTestAppHelper.java41 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in TestAppHelper
116 sUiDevice.executeShellCommand(cmd); in executeShellCommand()
124 sUiDevice.executeShellCommand( in openApp()
130 sUiDevice.pressHome(); in goToHomeScreen()
136 sUiDevice.unfreezeRotation(); in setOrientationLandscape()
137 sUiDevice.setOrientationLandscape(); in setOrientationLandscape()
144 sUiDevice.unfreezeRotation(); in setOrientationPortrait()
145 sUiDevice.setOrientationPortrait(); in setOrientationPortrait()
177 if (sUiDevice.getCurrentPackageName() == null in clickAd()
178 || !sUiDevice.getCurrentPackageName().contains("com.android.chrome")) { in clickAd()
[all …]
DDownloadHelper.java30 private static UiDevice sUiDevice; field in DownloadHelper
201 if (sUiDevice == null) { in getUiDevice()
202 sUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in getUiDevice()
204 return sUiDevice; in getUiDevice()
/packages/modules/AdServices/sdksandbox/tests/perf/scenarios/src/android/sdksandbox/test/scenario/testsdk/
DLoadAdWithRotation.java40 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in LoadAdWithRotation
49 sUiDevice.setOrientationNatural(); in setUpClass()
50 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setUpClass()
56 sUiDevice.setOrientationNatural(); in tearDownClass()
57 sUiDevice.unfreezeRotation(); in tearDownClass()
59 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDownClass()
65 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
73 sUiDevice.setOrientationLeft(); in testLoadAdWithRotation()
DInitializeSdk.java39 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in InitializeSdk
49 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setupArguments()
56 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDown()
62 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
DLoadAdWithResize.java40 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in LoadAdWithResize
49 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setUpClass()
56 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDownClass()
62 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
DLoadAd.java40 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in LoadAd
49 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setupArguments()
56 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDown()
62 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/federatedcompute/test/scenario/federatedcompute/
DTestHelper.java36 private static UiDevice sUiDevice; field in TestHelper
141 sUiDevice.executeShellCommand( in openTestApp()
337 if (sUiDevice == null) { in getUiDevice()
338 sUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in getUiDevice()
340 return sUiDevice; in getUiDevice()
344 return sUiDevice.wait( in getScheduleTrainingTextBox()
351 return sUiDevice.wait( in getScheduleIntervalTextBox()
358 return sUiDevice.wait( in getScheduleTrainingButton()
365 return sUiDevice.wait( in getCancelTrainingButton()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxManagerTest.java124 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in SdkSandboxManagerTest
169 sUiDevice.setOrientationNatural(); in setup()
860 sUiDevice.pressBack(); in testBackNavigationControl()
862 sUiDevice.wait(Until.hasObject(By.text("DEFAULT_SHOW_TEXT")), WAIT_FOR_TEXT_IN_MS)); in testBackNavigationControl()
867 sUiDevice.pressBack(); in testBackNavigationControl()
869 sUiDevice.wait(Until.hasObject(By.text("DEFAULT_SHOW_TEXT")), WAIT_FOR_TEXT_IN_MS)); in testBackNavigationControl()
891 sUiDevice.setOrientationPortrait(); in testSandboxActivityShouldRotateIfNotLocked()
894 sUiDevice.wait( in testSandboxActivityShouldRotateIfNotLocked()
898 sUiDevice.setOrientationLandscape(); in testSandboxActivityShouldRotateIfNotLocked()
900 sUiDevice.wait( in testSandboxActivityShouldRotateIfNotLocked()
[all …]
/packages/modules/AdServices/sdksandbox/tests/perf/scenarios/src/android/sdksandbox/test/scenario/testapp/
DOpenApp.java39 private static final UiDevice sUiDevice = field in OpenApp
54 sUiDevice.executeShellCommand("am force-stop " + sPackageName); in tearDown()
68 sUiDevice.executeShellCommand("am start " + sPackageName + "/" + sActivityName); in testOpenApp()