/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | FbeHelper.java | 35 private UiDevice mUiDevice; field in FbeHelper 43 mUiDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 44 assertNotNull(mUiDevice); in setUp() 80 mUiDevice.wakeUp(); in enterPassword() 81 mUiDevice.waitForIdle(); in enterPassword() 82 mUiDevice.pressMenu(); in enterPassword() 83 mUiDevice.waitForIdle(); in enterPassword() 85 mUiDevice.waitForIdle(); in enterPassword() 86 mUiDevice.pressEnter(); in enterPassword() 87 mUiDevice.waitForIdle(); in enterPassword() [all …]
|
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/ |
D | UninstallTest.java | 59 private UiDevice mUiDevice; field in UninstallTest 66 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup() 67 if (!mUiDevice.isScreenOn()) { in setup() 68 mUiDevice.wakeUp(); in setup() 70 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in setup() 76 mUiDevice.dumpWindowHierarchy(outputStream); in dumpWindowHierarchy() 95 if (mUiDevice.wait(Until.findObject(By.text("Do you want to uninstall this app?")), in testUninstall() 100 mUiDevice.wait(Until.findObject(By.text("Do you want to uninstall this app?")), in testUninstall() 103 assertNotNull(mUiDevice.findObject(By.text("Empty Test App"))); in testUninstall() 106 mUiDevice.findObject(By.text("OK")).click(); in testUninstall()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskHostDrivenTest.java | 56 private UiDevice mUiDevice; field in LockTaskHostDrivenTest 88 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 105 mUiDevice.waitForIdle(); in startLockTask() 114 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted() 125 mUiDevice.pressBack(); in testLockTaskIsActiveAndCantBeInterrupted() 126 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted() 129 mUiDevice.pressHome(); in testLockTaskIsActiveAndCantBeInterrupted() 130 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted() 133 mUiDevice.pressRecentApps(); in testLockTaskIsActiveAndCantBeInterrupted() 134 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted() [all …]
|
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/ |
D | TapjackingTest.java | 62 private UiDevice mUiDevice; field in TapjackingTest 68 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 69 if (!mUiDevice.isScreenOn()) { in setUp() 70 mUiDevice.wakeUp(); in setUp() 72 mUiDevice.executeShellCommand(WM_DISMISS_KEYGUARD_COMMAND); in setUp() 85 mUiDevice.executeShellCommand(commandBuilder.toString()); in setAppOpsMode() 103 return mUiDevice.wait(Until.findObject(selector), WAIT_FOR_UI_TIMEOUT); in waitForView() 120 assertFalse("Tap on install button succeeded", mUiDevice.wait( in testTapsDroppedWhenObscured() 123 mUiDevice.pressBack(); in testTapsDroppedWhenObscured() 128 mUiDevice.pressHome(); in tearDown()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | DeviceStatesTest.java | 36 private UiDevice mUiDevice; field in DeviceStatesTest 42 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 75 mUiDevice.executeShellCommand("cmd jobscheduler trigger-dock-state " in toggleFakeDeviceDockState() 86 mUiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in toggleScreenOn() 88 mUiDevice.executeShellCommand("input keyevent KEYCODE_SLEEP"); in toggleScreenOn() 98 mUiDevice.executeShellCommand("cmd activity idle-maintenance"); in triggerIdleMaintenance()
|
D | JobThrottlingTest.java | 78 private UiDevice mUiDevice; field in JobThrottlingTest 117 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 129 mDeviceIdleEnabled = isDeviceIdleEnabled(mUiDevice); in setUp() 343 final String output = mUiDevice.executeShellCommand("cmd deviceidle tempwhitelist").trim(); in isTestAppTempWhitelisted() 357 mUiDevice.executeShellCommand("cmd deviceidle " + (idle ? "force-idle" : "unforce")); in toggleDeviceIdleState() 367 mUiDevice.executeShellCommand("cmd deviceidle tempwhitelist -d " + duration in tempWhitelistTestApp() 372 mUiDevice.executeShellCommand("am make-uid-idle --user current " + TEST_APP_PACKAGE); in makeTestPackageIdle() 396 mUiDevice.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE in setTestPackageStandbyBucket() 401 mUiDevice.executeShellCommand("cmd deviceidle tempwhitelist -r " + TEST_APP_PACKAGE); in removeTestAppFromTempWhitelist()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 115 private UiDevice mUiDevice; field in UsageStatsTest 122 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 152 mUiDevice.executeShellCommand(command); in setAppOpsMode() 157 return mUiDevice.executeShellCommand(USAGE_SOURCE_GET_SHELL_COMMAND); in getUsageSourceSetting() 162 mUiDevice.executeShellCommand(USAGE_SOURCE_DELETE_SHELL_COMMAND); in setUsageSourceSetting() 166 mUiDevice.executeShellCommand(command); in setUsageSourceSetting() 177 mUiDevice.wait(Until.hasObject(By.clazz(clazz)), TIMEOUT); in launchSubActivity() 195 mUiDevice.wakeUp(); in testOrderedActivityLaunchSequenceInEventLog() 243 testActivityOnButton(mUiDevice::pressBack); in testActivityOnBackButton() 249 testActivityOnButton(mUiDevice::pressHome); in testActivityOnHomeButton() [all …]
|
D | TaskRootActivity.java | 33 private UiDevice mUiDevice; field in TaskRootActivity 38 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in onCreate() 48 mUiDevice.wait(Until.hasObject(By.clazz(TEST_APP_PKG, TEST_APP_CLASS)), TIMEOUT); in onResume()
|
D | UsageReportingTest.java | 44 private UiDevice mUiDevice; field in UsageReportingTest 61 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 122 mUiDevice.sleep(); in testUsageReportingMissingStop() 206 mUiDevice.sleep(); in testMultipleTokenMissingStop() 315 mUiDevice.sleep(); in testSplitscreenSameTokenOneMissedStop() 348 mUiDevice.sleep(); in testSplitscreenSameTokenTwoMissedStop() 363 mUiDevice.executeShellCommand("dumpsys usagestats apptimelimit actives"); in assertAppOrTokenUsed()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ClipDescriptionTest.java | 49 private UiDevice mUiDevice; field in ClipDescriptionTest 55 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 56 mUiDevice.wakeUp(); in setUp() 101 mUiDevice.wait(Until.hasObject(By.clazz(clazz)), 5000); in launchActivity()
|
D | ClipboardManagerTest.java | 54 private UiDevice mUiDevice; field in ClipboardManagerTest 60 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 61 mUiDevice.wakeUp(); in setUp() 253 mUiDevice.pressHome(); in testPrimaryClipNotAvailableWithoutFocus() 254 mUiDevice.wait(Until.gone(By.clazz(MockActivity.class)), 5000); in testPrimaryClipNotAvailableWithoutFocus() 289 mUiDevice.wait(Until.hasObject(By.clazz(clazz)), 5000); in launchActivity()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | TestHelper.java | 59 private final UiDevice mUiDevice; field in TestHelper 94 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in TestHelper() 104 return mUiDevice.executeShellCommand(command).trim(); in shell() 123 mUiDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), TIMEOUT); in launchActivity() 132 return mUiDevice.findObject(By.res(resourceName)); in findUiObject()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 68 private UiDevice mUiDevice; field in BackgroundRestrictedAlarmsTest 85 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 166 mUiDevice.executeShellCommand(cmd); in updateAlarmManagerConstants() 170 mUiDevice.executeShellCommand("settings delete global alarm_manager_constants"); in deleteAlarmManagerConstants() 174 mUiDevice.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setAppStandbyBucket() 184 mUiDevice.executeShellCommand(commandBuilder.toString()); in setAppOpsMode()
|
D | AppStandbyTests.java | 138 private UiDevice mUiDevice; field in AppStandbyTests 166 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 491 final String output = mUiDevice.executeShellCommand(cmd).trim(); in executeAndLog()
|
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
D | QuietModeTest.java | 71 private UiDevice mUiDevice; field in QuietModeTest 91 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeupDeviceAndUnlock() 92 mUiDevice.wakeUp(); in wakeupDeviceAndUnlock() 93 mUiDevice.pressMenu(); in wakeupDeviceAndUnlock() 207 mUiDevice.executeShellCommand("am start -W -n " + activity); in startActivitySync()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | ClipboardManagerTest.java | 44 private UiDevice mUiDevice; field in ClipboardManagerTest 51 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup() 80 mUiDevice.wait(Until.hasObject(By.clazz(clazz)), 5000); in launchActivity()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAttributeTest.java | 56 private UiDevice mUiDevice; field in ViewAttributeTest 60 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 61 mUiDevice.executeShellCommand(ENABLE_SHELL_COMMAND); in setUp() 67 mUiDevice.executeShellCommand(DISABLE_SHELL_COMMAND); in tearDown()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionGroupChange.java | 55 private UiDevice mUiDevice; field in PermissionGroupChange 60 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setContextAndUiDevice() 103 mUiDevice.findObject(new UiSelector().resourceId( in clickAllowButton()
|
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/ |
D | PackageAccessTest.java | 41 private UiDevice mUiDevice; field in PackageAccessTest 45 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManager_ThermalTest.java | 46 private UiDevice mUiDevice; field in PowerManager_ThermalTest 59 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 74 private UiDevice mUiDevice; field in WifiManagerTest 173 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 956 mUiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOnNoDelay() 957 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in turnScreenOnNoDelay() 967 mUiDevice.executeShellCommand("input keyevent KEYCODE_SLEEP"); in turnScreenOff()
|