Home
last modified time | relevance | path

Searched refs:runShellCommand (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DAutofillTestWatcher.java19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
124 runShellCommand("input keyevent KEYCODE_WAKEUP"); in prepareDevice()
127 runShellCommand("wm dismiss-keyguard"); in prepareDevice()
130 runShellCommand("cmd statusbar collapse"); in prepareDevice()
146 mOriginalLogLevel = runShellCommand("cmd autofill get log_level"); in enableVerboseLog()
149 runShellCommand("cmd autofill set log_level verbose"); in enableVerboseLog()
156 runShellCommand("cmd autofill set log_level %s", mOriginalLogLevel); in restoreLogLevel()
DAbstractAutofillPerfTestCase.java19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
86 runShellCommand("cmd autofill set default-augmented-service-enabled 0 %s", in setDefaultAugmentedAutofillServiceEnabled()
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DAbstractContentCapturePerfTestCase.java23 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
109 runShellCommand("cmd content_capture set temporary-service %d %s 119000", userId, service); in setService()
118 runShellCommand("cmd content_capture set temporary-service %d", userId); in resetService()
151 runShellCommand(String.format("settings put global %s %d", in setStayOnWhilePluggedIn()
190 runShellCommand("cmd content_capture set default-service-enabled %d %s", userId, in setDefaultServiceEnabled()
199 runShellCommand("input keyevent KEYCODE_WAKEUP"); in prepareDevice()
202 runShellCommand("wm dismiss-keyguard"); in prepareDevice()
205 runShellCommand("cmd statusbar collapse"); in prepareDevice()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java149 private static String runShellCommand(String cmd) throws IOException { in runShellCommand() method in BackgroundDexOptServiceIntegrationTests
168 return runShellCommand(cmd).split("\n"); in runShellCommandSplitLines()
200 runShellCommand(cmd); in fillUpStorage()
215 String result = runShellCommand("cmd package bg-dexopt-job " + PACKAGE_NAME); in runBackgroundDexOpt()
247 runShellCommand("df -h /data"); in logSpaceRemaining()
252 runShellCommand(String.format("cmd package compile -f -m %s %s", filter, pkg)); in compilePackageWithFilter()
257 runShellCommand("cmd thermalservice override-status " + status); in overrideThermalStatus()
262 runShellCommand("cmd thermalservice reset"); in resetThermalStatus()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java228 final String result = runShellCommand( in targetPackageIsRunning()
233 private static String runShellCommand(String cmd) { in runShellCommand() method in ActivityManagerTest
303 runShellCommand("cmd deviceidle whitelist +" + TEST_APP1); in testFgsProcStatsTracker()
342 runShellCommand("cmd deviceidle whitelist -" + TEST_APP1); in testFgsProcStatsTracker()
391 runShellCommand("cmd deviceidle whitelist +" + TEST_APP1); in testAppFreezerWithAllowOomAdj()
392 runShellCommand("cmd deviceidle whitelist +" + TEST_APP2); in testAppFreezerWithAllowOomAdj()
471 runShellCommand("cmd deviceidle whitelist -" + TEST_APP1); in testAppFreezerWithAllowOomAdj()
472 runShellCommand("cmd deviceidle whitelist -" + TEST_APP2); in testAppFreezerWithAllowOomAdj()
490 final String output = runShellCommand("dumpsys activity settings"); in isFreezerEnabled()
500 final String output = runShellCommand("dumpsys activity p " + packageName); in isAppFrozen()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DDumpsys_test.cpp26 status_t runShellCommand(const std::string& cmd, std::string& result) { in runShellCommand() function
80 EXPECT_EQ(OK, runShellCommand("dumpsys SurfaceFlinger --list", layersAsString)); in TEST()
104 EXPECT_EQ(OK, runShellCommand("dumpsys SurfaceFlinger --latency " + layerName, stats)); in TEST()
106 EXPECT_EQ(OK, runShellCommand("dumpsys SurfaceFlinger --latency-clear " + layerName, stats)); in TEST()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DOomAdjPerfTest.java87 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE1_NAME); in setUp()
88 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE2_NAME); in setUp()
89 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE3_NAME); in setUp()
95 Utils.runShellCommand("wm dismiss-keyguard"); in setUp()
103 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE1_NAME); in tearDown()
104 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE2_NAME); in tearDown()
105 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE3_NAME); in tearDown()
DServiceStartPerfTest.java45 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE_NAME); in setUp()
50 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE_NAME); in tearDown()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerServiceTest.java19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
472 runShellCommand("pm install --install-reason 3 " + testApk); in testInstallReason_afterUpdate_keepUnchanged()
479 runShellCommand("pm install --install-reason 4 " + testApk); in testInstallReason_afterUpdate_keepUnchanged()
485 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_afterUpdate_keepUnchanged()
498 runShellCommand("pm install --install-reason 3 " + testApk); in testInstallReason_userRemainsUninstalled_keepUnknown()
506 runShellCommand("am start-user -w " + userId); in testInstallReason_userRemainsUninstalled_keepUnknown()
514 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_userRemainsUninstalled_keepUnknown()
531 runShellCommand("am start-user -w " + userId); in testInstallReason_installForAllUsers_sameReason()
534 runShellCommand("pm install --install-reason 3 " + testApk); in testInstallReason_installForAllUsers_sameReason()
540 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_installForAllUsers_sameReason()
[all …]
/frameworks/base/apct-tests/perftests/permission/src/android/perftests/permission/
DPermissionManagerPerfTest.kt27 import com.android.compatibility.common.util.SystemUtil.runShellCommand
54 runShellCommand("pm install -tg $apkPath") in setup()
59 runShellCommand("pm uninstall $PKG_NAME") in cleanup()
DPermissionServicePerfTest.kt29 import com.android.compatibility.common.util.SystemUtil.runShellCommand in <lambda>()
82 runShellCommand("pm install -t $apkPath") in <lambda>()
93 runShellCommand("pm uninstall $packageName") in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DNotificationListener.kt22 import com.android.compatibility.common.util.SystemUtil.runShellCommand
64 runShellCommand(CMD_NOTIFICATION_ALLOW_LISTENER.format(COMPONENT_NAME)) in startNotificationListener()
73 runShellCommand(CMD_NOTIFICATION_DISALLOW_LISTENER.format(COMPONENT_NAME)) in stopNotificationListener()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DSettingsHelper.java45 ShellHelper.runShellCommand("settings put %s %s %s default", namespace, key, value); in set()
76 ShellHelper.runShellCommand("settings delete %s %s", namespace, key); in delete()
103 return ShellHelper.runShellCommand("settings get %s %s", namespace, key); in get()
/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/
DAtraceUtils.java69 runShellCommand(String.format( in startTrace()
78 runShellCommand(ATRACE_STOP); in stopTrace()
82 private String runShellCommand(String cmd) { in runShellCommand() method in AtraceUtils
DBlobStorePerfTests.java101 runShellCommand("cmd blob_store idle-maintenance"); in tearDown()
257 runShellCommand(String.format( in deleteBlob()
266 private String runShellCommand(String cmd) { in runShellCommand() method in BlobStorePerfTests
/frameworks/base/core/tests/packagemonitortests/src/com/android/internal/content/
DPackageMonitorVisibilityTest.java19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
120 final String result = runShellCommand(cmd.toString()); in installTestPackage()
125 runShellCommand("pm uninstall " + TEAT_APK_PACKAGE_NAME); in uninstallTestPackage()
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DUtils.java33 runShellCommand("am wait-for-broadcast-idle"); in drainBroadcastQueue()
39 public static String runShellCommand(String cmd) { in runShellCommand() method in Utils
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DServiceCrashTest.java56 SystemUtil.runShellCommand(getInstrumentation(), in setAMConstants()
59 SystemUtil.runShellCommand(getInstrumentation(), "settings put global " in setAMConstants()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkRunner.java83 ShellHelper.runShellCommand("am wait-for-broadcast-idle --flush-broadcast-loopers"); in prepareForNextRun()
105 ShellHelper.runShellCommand("am wait-for-broadcast-idle --flush-broadcast-loopers"); in resumeTiming()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DAtraceUtils.java66 Utils.runShellCommand(String.format( in startTrace()
75 Utils.runShellCommand(ATRACE_STOP); in stopTrace()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryInputSuspendTest.java71 SystemUtil.runShellCommand("dumpsys battery suspend_input"); in testSuspendInput()
84 SystemUtil.runShellCommand("dumpsys battery reset"); in reenableCharging()
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DAppEnumerationInternalTests.java21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
199 final String result = runShellCommand(cmd.toString()); in installPackage()
204 runShellCommand("pm uninstall " + packageName); in uninstallPackage()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DConnectivitySetupRule.java88 SystemUtil.runShellCommand("svc wifi enable");
93 SystemUtil.runShellCommand("svc wifi disable");
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java148 runShellCommand("cmd font clear", null); in tearDown()
371 runShellCommand("cp " + certPath + " " + copiedCert, null); in insertCert()
372 runShellCommand("cmd font install-debug-cert " + copiedCert, null); in insertCert()
459 Pair<String, String> result = runShellCommand(cmd, null);
467 Pair<String, String> result = runShellCommand(cmd, null);
474 private static Pair<String, String> runShellCommand(String cmd, @Nullable InputStream input)
/frameworks/base/core/java/android/os/
DVintfObject.java124 private static @Nullable String runShellCommand(@NonNull String command) throws IOException { in runShellCommand() method in VintfObject

12