Searched refs:sUiDevice (Results 1 – 9 of 9) sorted by relevance
41 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in TestAppHelper116 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 …]
30 private static UiDevice sUiDevice; field in DownloadHelper201 if (sUiDevice == null) { in getUiDevice()202 sUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in getUiDevice()204 return sUiDevice; in getUiDevice()
40 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in LoadAdWithRotation49 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()
39 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in InitializeSdk49 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setupArguments()56 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDown()62 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
40 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in LoadAdWithResize49 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setUpClass()56 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDownClass()62 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
40 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in LoadAd49 sClientAppUtils = new ClientAppUtils(sUiDevice, sArgsBundle); in setupArguments()56 sUiDevice.executeShellCommand(sClientAppUtils.getStopAppCommand()); in tearDown()62 sUiDevice.executeShellCommand(sClientAppUtils.getStartAppCommand()); in setup()
36 private static UiDevice sUiDevice; field in TestHelper141 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()
124 private static final UiDevice sUiDevice = UiDevice.getInstance(getInstrumentation()); field in SdkSandboxManagerTest169 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 …]
39 private static final UiDevice sUiDevice = field in OpenApp54 sUiDevice.executeShellCommand("am force-stop " + sPackageName); in tearDown()68 sUiDevice.executeShellCommand("am start " + sPackageName + "/" + sActivityName); in testOpenApp()