Home
last modified time | relevance | path

Searched refs:executeShellCmd (Results 1 – 10 of 10) sorted by relevance

/cts/tests/app/shared/src/android/app/cts/
DCtsAppTestUtils.java33 public static String executeShellCmd(Instrumentation instrumentation, String cmd) in executeShellCmd() method in CtsAppTestUtils
54 executeShellCmd(instrumentation, "input keyevent KEYCODE_WAKEUP"); in turnScreenOn()
55 executeShellCmd(instrumentation, "wm dismiss-keyguard"); in turnScreenOn()
67 return executeShellCmd(instrumentation, cmd); in makeUidIdle()
73 executeShellCmd(instrumentation, cmd); in unstopApp()
80 executeShellCmd(instrumentation, cmd); in clearBadProcess()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsDelegateTest.java136 CtsAppTestUtils.executeShellCmd(mInstrumentation, in prepareProcess()
144 CtsAppTestUtils.executeShellCmd(mInstrumentation, in prepareProcess()
159 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegate()
167 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegate()
175 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegate()
183 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegate()
220 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegateNotAllowedWhenAppCanNotStartFGS()
229 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegateNotAllowedWhenAppCanNotStartFGS()
262 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegateAfterForceStopPackage()
271 dumpLines = CtsAppTestUtils.executeShellCmd( in testFgsDelegateAfterForceStopPackage()
[all …]
DActivityManagerFgsBgStartTest.java1303 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testFgsStartAllowList()
1320 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testFgsStartAllowList()
1441 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testVisibleActivityGracePeriod()
1479 CtsAppTestUtils.executeShellCmd(mInstrumentation, "input -d " in testVisibleActivityGracePeriodInternal()
1606 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testSecondStartForeground()
1613 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testSecondStartForeground()
1726 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testFgsStartVpnInternal()
1930 String[] dumpLines = CtsAppTestUtils.executeShellCmd( in testTempAllowListReasonCodeAlarmClock()
1941 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testTempAllowListReasonCodeAlarmClock()
2000 String[] dumpLines = CtsAppTestUtils.executeShellCmd( in testAlarmClockFgsNotStoppedByBackgroundRestrictedInternal()
[all …]
DBroadcastOptionsIntegrationTest.java52 CtsAppTestUtils.executeShellCmd(instrumentation, in setUp()
64 CtsAppTestUtils.executeShellCmd(instrumentation, in tearDown()
DActivityManagerProcessStateTest.java288 CtsAppTestUtils.executeShellCmd(mInstrumentation, in removeTestAppFromWhitelists()
290 CtsAppTestUtils.executeShellCmd(mInstrumentation, in removeTestAppFromWhitelists()
624 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testBackgroundCheckService()
1190 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testForegroundServiceAppOp()
2495 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testFgsStickyInternal()
2621 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testProcessDeathBindings()
2693 CtsAppTestUtils.executeShellCmd(mInstrumentation, in testProcessDeathBindings_anotherClient()
DServiceTest.java2294 String[] dumpLines = CtsAppTestUtils.executeShellCmd( in testBindServiceFlagsLongInternal()
/cts/tests/app/AppStartTest/src/android/app/cts/
DActivityManagerAppStartInfoTest.java122 executeShellCmd("pm install --user %d -r --force-queryable " + STUB_APK, in setUp()
130 executeShellCmd("am force-stop --user %d " + STUB_PACKAGE_NAME, mTestRunningUserId); in tearDown()
160 executeShellCmd("am start --user %d -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testActivityStart()
187 executeShellCmd("am start --user %d -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testWasForceStopped()
192 executeShellCmd("am force-stop --user %d " + STUB_PACKAGE_NAME, mTestRunningUserId); in testWasForceStopped()
198 executeShellCmd("am start --user %d -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testWasForceStopped()
213 executeShellCmd("am start --user %d -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testWasNotForceStopped()
218 executeShellCmd("am force-stop --user %d " + STUB_PACKAGE_NAME, mTestRunningUserId); in testWasNotForceStopped()
224 executeShellCmd("am start --user %d -n %s/%s%s --ei %s %d", in testWasNotForceStopped()
234 executeShellCmd("am start --user %d -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testWasNotForceStopped()
[all …]
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java210 executeShellCmd("cmd deviceidle whitelist +" + STUB_PACKAGE_NAME); in setUp()
211 executeShellCmd("cmd deviceidle whitelist +" + HEARTBEAT_PACKAGE); in setUp()
222 mFreezerTimeout = executeShellCmd( in setUp()
298 executeShellCmd( in tearDown()
301 executeShellCmd("cmd deviceidle whitelist -" + STUB_PACKAGE_NAME); in tearDown()
302 executeShellCmd("cmd deviceidle whitelist -" + HEARTBEAT_PACKAGE); in tearDown()
303 executeShellCmd("am force-stop " + STUB_PACKAGE_NAME); in tearDown()
304 executeShellCmd("am force-stop " + HEARTBEAT_PACKAGE); in tearDown()
318 final String output = executeShellCmd( in createUser()
329 final String output = executeShellCmd("pm remove-user %s", userId); in removeUser()
[all …]
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java313 executeShellCmd(MessageFormat.format(APPOPS_SET_SHELL_COMMAND, mTargetPackage, mode)); in setAppOpsMode()
317 executeShellCmd(MessageFormat.format(APPOPS_RESET_SHELL_COMMAND, mTargetPackage)); in resetAppOpsMode()
322 executeShellCmd(MessageFormat.format(PRUNE_PACKAGE_DATA_SHELL_COMMAND, mTargetPackage, in clearTestPackagesData()
325 executeShellCmd(MessageFormat.format(PRUNE_PACKAGE_DATA_SHELL_COMMAND, TEST_APP_PKG, in clearTestPackagesData()
327 executeShellCmd(MessageFormat.format(PRUNE_PACKAGE_DATA_SHELL_COMMAND, TEST_APP2_PKG, in clearTestPackagesData()
329 executeShellCmd(MessageFormat.format(PRUNE_PACKAGE_DATA_SHELL_COMMAND, TEST_APP_API_32_PKG, in clearTestPackagesData()
334 return executeShellCmd(GET_SHELL_COMMAND + name); in getSetting()
339 executeShellCmd(DELETE_SHELL_COMMAND + name); in setSetting()
341 executeShellCmd(SET_SHELL_COMMAND + name + " " + setting); in setSetting()
1073 executeShellCmd("cmd usagestats clear-last-used-timestamps " + pkg); in testNotificationSeen_verifyBucket()
[all …]
/cts/tests/app/src/android/app/cts/fgs/bootcompleted/
DBootCompletedFgsStartTest.java98 CtsAppTestUtils.executeShellCmd(mInstrumentation, "am compat " + action in enableFgsRestriction()
103 CtsAppTestUtils.executeShellCmd(mInstrumentation, in startFgsBootCompleted()