/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | AutofillTestWatcher.java | 19 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()
|
D | AbstractAutofillPerfTestCase.java | 19 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/ |
D | AbstractContentCapturePerfTestCase.java | 23 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/ |
D | BackgroundDexOptServiceIntegrationTests.java | 149 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/ |
D | ActivityManagerTest.java | 228 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/ |
D | Dumpsys_test.cpp | 26 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/ |
D | OomAdjPerfTest.java | 87 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()
|
D | ServiceStartPerfTest.java | 45 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/ |
D | PackageManagerServiceTest.java | 19 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/ |
D | PermissionManagerPerfTest.kt | 27 import com.android.compatibility.common.util.SystemUtil.runShellCommand 54 runShellCommand("pm install -tg $apkPath") in setup() 59 runShellCommand("pm uninstall $PKG_NAME") in cleanup()
|
D | PermissionServicePerfTest.kt | 29 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/ |
D | NotificationListener.kt | 22 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/ |
D | SettingsHelper.java | 45 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/ |
D | AtraceUtils.java | 69 runShellCommand(String.format( in startTrace() 78 runShellCommand(ATRACE_STOP); in stopTrace() 82 private String runShellCommand(String cmd) { in runShellCommand() method in AtraceUtils
|
D | BlobStorePerfTests.java | 101 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/ |
D | PackageMonitorVisibilityTest.java | 19 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/ |
D | Utils.java | 33 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/ |
D | ServiceCrashTest.java | 56 SystemUtil.runShellCommand(getInstrumentation(), in setAMConstants() 59 SystemUtil.runShellCommand(getInstrumentation(), "settings put global " in setAMConstants()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | BenchmarkRunner.java | 83 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/ |
D | AtraceUtils.java | 66 Utils.runShellCommand(String.format( in startTrace() 75 Utils.runShellCommand(ATRACE_STOP); in stopTrace()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryInputSuspendTest.java | 71 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/ |
D | AppEnumerationInternalTests.java | 21 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/ |
D | ConnectivitySetupRule.java | 88 SystemUtil.runShellCommand("svc wifi enable"); 93 SystemUtil.runShellCommand("svc wifi disable");
|
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/ |
D | UpdatableSystemFontTest.java | 148 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/ |
D | VintfObject.java | 124 private static @Nullable String runShellCommand(@NonNull String command) throws IOException { in runShellCommand() method in VintfObject
|