Home
last modified time | relevance | path

Searched refs:runCommand (Results 1 – 25 of 31) sorted by relevance

12

/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesPreInstallOverrideTest.java39 runCommand("am compat reset-all " + TEST_PACKAGE); in setUp()
40 runCommand("settings put global force_non_debuggable_final_build_for_compat 1"); in setUp()
45 runCommand("am compat reset-all " + TEST_PACKAGE); in tearDown()
46 runCommand("settings put global force_non_debuggable_final_build_for_compat 0"); in tearDown()
50 runCommand("am compat enable " + CTS_CHANGE_ID + " " + TEST_PACKAGE); in testDeferEnablingChangeIdAppNotInstalled()
60 runCommand("am compat reset " + CTS_CHANGE_ID + " " + TEST_PACKAGE); in testDeferEnablingChangeIdAppNotInstalled()
65 runCommand("am compat enable " + CTS_CHANGE_ID + " " + TEST_PACKAGE); in testDeferredOverrideBecomesRegularOverridePostInstall()
77 runCommand("am compat reset " + CTS_CHANGE_ID + " " + TEST_PACKAGE); in testDeferredOverrideBecomesRegularOverridePostInstall()
82 runCommand("am compat enable " + CTS_CHANGE_ID + " " + TEST_PACKAGE); in testDeferredOverrideRemainsDeferredPostInstall()
94 runCommand("am compat reset " + CTS_CHANGE_ID + " " + TEST_PACKAGE); in testDeferredOverrideRemainsDeferredPostInstall()
[all …]
DCompatChangesOverrideOnReleaseBuildTest.java40 runCommand("am compat reset-all " + OVERRIDE_PKG); in setUp()
41 runCommand("am compat reset-all " + OVERRIDE_PKG2); in setUp()
42 runCommand("settings put global force_non_debuggable_final_build_for_compat 1"); in setUp()
47 runCommand("am compat reset-all " + OVERRIDE_PKG); in tearDown()
48 runCommand("am compat reset-all " + OVERRIDE_PKG2); in tearDown()
52 runCommand("settings put global force_non_debuggable_final_build_for_compat 0"); in tearDown()
DAppCompatOverridesServiceTest.java66 runCommand("am compat reset-all " + OVERRIDE_PKG); in setUp()
67 runCommand("settings put global force_non_debuggable_final_build_for_compat 1"); in setUp()
78 runCommand("am compat reset-all " + OVERRIDE_PKG); in tearDown()
81 runCommand("settings put global force_non_debuggable_final_build_for_compat 0"); in tearDown()
337 return runCommand(String.format(DEVICE_CONFIG_ADB_COMMAND_FORMAT, "get", flagName)); in getFlagValue()
341 runCommand(String.format(DEVICE_CONFIG_ADB_COMMAND_FORMAT, "delete", flagName)); in deleteFlagValue()
345 runCommand(String.format(DEVICE_CONFIG_ADB_COMMAND_FORMAT, "put", flagName + " " + value)); in putFlagValue()
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java93 runCommand("am wait-for-broadcast-idle"); in waitForBroadcastIdle()
97 private String runCommand(String command) throws Exception { in runCommand() method in AppBindingHostTest
98 return runCommand(command, "", true); in runCommand()
101 private String runCommand(String command, String expectedOutputPattern) throws Exception { in runCommand() method in AppBindingHostTest
102 return runCommand(command, expectedOutputPattern, true); in runCommand()
107 return runCommand(command, expectedOutputPattern, false); in runCommandAndNotMatch()
110 private String runCommand(String command, String expectedOutputPattern, in runCommand() method in AppBindingHostTest
133 final String[] output = runCommand(command).split("\\n"); in runCommandAndExtract()
167 runCommand("settings put global " + APP_BINDING_SETTING + " '" + settings + "'"); in updateConstants()
171 String output = runCommand("dumpsys phone"); in isSmsCapable()
[all …]
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt47 return runCommand("appops reset $packageName") in reset()
62 return runCommand(command) in setOpMode()
121 return runCommand("appops get $packageName $opStr") in getOpState()
131 fun runCommand(command: String): String { in runCommand() method
184 runCommand("settings put global force_non_debuggable_final_build_for_compat 1") in withEnabledCompatChange()
185 runCommand("am compat enable $changeId $packageName") in withEnabledCompatChange()
189 runCommand("am compat reset $changeId $packageName") in withEnabledCompatChange()
190 runCommand("settings put global force_non_debuggable_final_build_for_compat 0") in withEnabledCompatChange()
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/
DProcStatsTest.java46 runCommand("dumpsys procstats --stop-pretend-screen", "^$"); in tearDown()
68 runCommand("dumpsys procstats --pretend-screen-off", "^$"); in testLaunchApp()
81 runCommand("dumpsys meminfo " + HELPER_PACKAGE, in testLaunchApp()
83 runCommand("dumpsys meminfo " + HELPER_PACKAGE + ":proc2", in testLaunchApp()
117 private void runCommand(String command, String expectedOutputRegex) { in runCommand() method in ProcStatsTest
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppOpsUtils.java52 return runCommand(appops("reset") + packageName); in reset()
78 return runCommand(command); in setOpMode()
140 return runCommand(appops("get") + packageName + " " + opStr); in getOpState()
143 private static String runCommand(String command) throws IOException { in runCommand() method in AppOpsUtils
/cts/tests/tests/appop/src/android/app/appops/cts/
DRuntimeMessageCollectionTest.kt42 val result = runCommand("pm install -r -g --force-queryable $APK_PATH$apk") in installApk()
49 runCommand("pm uninstall $APP_PKG") in resetTestApp()
55 runCommand("pm uninstall $APP_PKG") in uninstallTestApp()
DAttributionTest.kt57 val result = runCommand("pm install -r --force-queryable $APK_PATH$apk") in installApk()
63 runCommand("pm uninstall $APP_PKG") in resetTestApp()
116 runCommand("pm uninstall $PKG") in manifestReceiverTagging()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java259 runCommand("am wait-for-broadcast-idle"); in waitForBroadcastIdle()
262 private String runCommand(String command) throws Exception { in runCommand() method in BaseShortcutManagerHostTest
263 return runCommand(command, "", true); in runCommand()
266 private String runCommand(String command, String expectedOutputPattern) throws Exception { in runCommand() method in BaseShortcutManagerHostTest
267 return runCommand(command, expectedOutputPattern, true); in runCommand()
272 return runCommand(command, expectedOutputPattern, false); in runCommandAndNotMatch()
275 private String runCommand(String command, String expectedOutputPattern, in runCommand() method in BaseShortcutManagerHostTest
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBaseBlobStoreHostTest.java163 runCommand(cmd); in addAssistRoleHolder()
178 final String output = runCommand(cmd).trim(); in getAssistRoleHolders()
185 runCommand(cmd); in removeAssistRoleHolder()
192 runCommand(cmd); in revokePermission()
195 protected String runCommand(String command) throws Exception { in runCommand() method in BaseBlobStoreHostTest
/cts/hostsidetests/systemui/src/android/host/systemui/
DActiveTileServiceCompatChangeTest.java103 runCommand("am compat enable --no-kill " + enabledChange + " " + packageName); in setCompatConfig()
106 runCommand("am compat disable --no-kill" + disabledChange + " " + packageName); in setCompatConfig()
114 runCommand("am compat reset --no-kill" + change + " " + packageName); in resetCompatChanges()
/cts/hostsidetests/videoencodingminimum/src/android/videoqualityfloor/cts/
DCtsVideoQualityFloorHostTest.java158 runCommand("rm -rf " + tmpDir, cwd); in setupTestEnv()
170 runCommand("rm -rf " + "output_*", sHostWorkDir); in setupTestEnv()
177 int result = runCommand("tar xvzf " + fileName, sHostWorkDir); in setupTestEnv()
258 int result = runCommand(cmd, sHostWorkDir); in testEncoding()
284 private int runCommand(String command, File dir) throws IOException, InterruptedException { in runCommand() method in CtsVideoQualityFloorHostTest
318 result = runCommand(cmd, destDir); in downloadFile()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerFakingPublisherTest.java20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.runCommand;
164 for (String s : runCommand(InstrumentationRegistry.getInstrumentation(), in assertInvalidShortcutNotCreated()
DShortcutManagerNegativeTest.java120 private String runCommand(String command) throws IOException, InterruptedException { in runCommand() method in ShortcutManagerNegativeTest
145 MoreAsserts.assertNotContainsRegex("Success", runCommand("cmd shortcut clear-shortcuts " + in testCommand()
/cts/hostsidetests/mediapc/videoencodingquality/src/
DCtsVideoEncodingQualityHostTest.java307 runCommand("rm -rf " + tmpDir, cwd); in setupTestEnv()
319 runCommand("rm -rf " + "output_*", sHostWorkDir); in setupTestEnv()
326 int result = runCommand("tar xvzf " + fileName, sHostWorkDir); in setupTestEnv()
436 int result = runCommand(cmd, sHostWorkDir); in testEncoding()
482 int result = runCommand(jarCmd, sHostWorkDir); in testEncoding()
488 private int runCommand(String command, File dir) throws IOException, InterruptedException { in runCommand() method in CtsVideoEncodingQualityHostTest
522 result = runCommand(cmd, destDir); in downloadFile()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java302 runCommand("am compat enable " + enabledChange + " " + packageName); in setCompatConfig()
305 runCommand("am compat disable " + disabledChange + " " + packageName); in setCompatConfig()
315 runCommand("am compat reset " + change + " " + packageName); in resetCompatChanges()
395 protected String runCommand(String command) throws DeviceNotAvailableException {
405 String config = runCommand("dumpsys platform_compat");
/cts/hostsidetests/webkit/src/com/android/cts/webkit/
DWebViewHostSideURLUtilTest.java40 runCommand("device_config get build android.os.android_os_build_vanilla_ice_cream"); in isVanillaIceCreamBuildFlagEnabled()
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DTaggingBaseTest.java71 deviceIsArm64 && !runCommand("grep 'Features.* mte' /proc/cpuinfo").isEmpty(); in setUp()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHelper.java193 runCommand(command, InstrumentationRegistry.getInstrumentation()); in enableListener()
206 runCommand(command, InstrumentationRegistry.getInstrumentation()); in disableListener()
263 public void runCommand(String command, Instrumentation instrumentation) in runCommand() method in NotificationHelper
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java212 mNotificationHelper.runCommand(command, InstrumentationRegistry.getInstrumentation()); in toggleExternalListenerAccess()
357 mNotificationHelper.runCommand(command, InstrumentationRegistry.getInstrumentation()); in setEnableServiceNotificationRateLimit()
366 mNotificationHelper.runCommand(command, instrumentation); in suspendPackage()
375 mNotificationHelper.runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java364 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
379 runCommand(command, instrumentation); in suspendPackage()
390 runCommand(command, instrumentation); in toggleSecondaryListenerAccess()
398 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in LegacyNotificationManagerTest
DConditionProviderServiceTest.java293 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
302 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in ConditionProviderServiceTest
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java107 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
115 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in NotificationManager29Test
/cts/hostsidetests/library/src/android/appmanifest/cts/
DUsesNativeLibraryTestCase.java255 private void runCommand(String cmd) {
283 runCommand(String.format("%s link --manifest %s -I %s -A %s -o %s",
292 runCommand(String.format("%s %s %s %s",
300 runCommand(String.format("java -Djava.library.path=%s -jar %s %s %s %s %s",

12