Home
last modified time | relevance | path

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

/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java77 runCommand("am wait-for-broadcast-idle"); in waitForBroadcastIdle()
81 private String runCommand(String command) throws Exception { in runCommand() method in AppBindingHostTest
82 return runCommand(command, "", true); in runCommand()
85 private String runCommand(String command, String expectedOutputPattern) throws Exception { in runCommand() method in AppBindingHostTest
86 return runCommand(command, expectedOutputPattern, true); in runCommand()
91 return runCommand(command, expectedOutputPattern, false); in runCommandAndNotMatch()
94 private String runCommand(String command, String expectedOutputPattern, in runCommand() method in AppBindingHostTest
117 final String[] output = runCommand(command).split("\\n"); in runCommandAndExtract()
151 runCommand("settings put global " + APP_BINDING_SETTING + " '" + settings + "'"); in updateConstants()
155 String output = runCommand("dumpsys phone"); in isSmsCapable()
[all …]
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/
DProcStatsTest.java50 runCommand("dumpsys procstats --stop-pretend-screen", "^$"); in tearDown()
72 runCommand("dumpsys procstats --pretend-screen-off", "^$"); in testLaunchApp()
85 runCommand("dumpsys meminfo " + HELPER_PACKAGE, in testLaunchApp()
87 runCommand("dumpsys meminfo " + HELPER_PACKAGE + ":proc2", in testLaunchApp()
121 private void runCommand(String command, String expectedOutputRegex) { in runCommand() method in ProcStatsTest
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DAppOpsUtils.java47 return runCommand("appops reset " + packageName); in reset()
73 return runCommand(command); in setOpMode()
126 return runCommand("appops get " + packageName + " " + opStr); in getOpState()
129 private static String runCommand(String command) throws IOException { in runCommand() method in AppOpsUtils
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppOpsUtils.java48 return runCommand("appops reset " + packageName); in reset()
74 return runCommand(command); in setOpMode()
127 return runCommand("appops get " + packageName + " " + opStr); in getOpState()
130 private static String runCommand(String command) throws IOException { in runCommand() method in AppOpsUtils
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsUtils.kt46 return runCommand("appops reset $packageName") in reset()
62 return runCommand(command) in setOpMode()
123 return runCommand("appops get $packageName $opStr") in getOpState()
126 private fun runCommand(command: String ) : String { in runCommand() method
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideRestrictBackgroundNetworkTests.java322 final String output = runCommand("cmd netpolicy list restrict-background-whitelist "); in assertRestrictBackgroundWhitelist()
350 final String result = runCommand(command).trim(); in assertDelayedCommand()
361 runCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist()
369 runCommand("dumpsys deviceidle whitelist +" + packageName); in addPowerSaveModeWhitelist()
374 final String result = runCommand("cmd deviceidle enabled deep").trim(); in isDozeModeEnabled()
DHostsideNetworkTestCase.java99 final String result = runCommand(command); in assertPackageUninstalled()
170 final String output = runCommand("dumpsys package " + packageName); in getUid()
180 protected String runCommand(String command) throws DeviceNotAvailableException { in runCommand() method in HostsideNetworkTestCase
/cts/tests/app/src/android/app/cts/
DTileServiceTest.java180 runCommand(command); in toggleServiceAccess()
184 runCommand(" cmd statusbar click-tile " + componentName); in clickTile()
187 private void runCommand(String command) throws IOException { in runCommand() method in TileServiceTest
257 runCommand(" cmd statusbar " + (expand ? "expand-settings" : "collapse")); in expandSettings()
DNotificationManagerTest.java500 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
514 runCommand(command, instrumentation); in suspendPackage()
523 runCommand(command, instrumentation); in toggleListenerAccess()
531 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in NotificationManagerTest
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java89 runCommand("rm " + TMP_CONFIG_PATH); in cleanup()
146 private static String runCommand(String command) throws IOException { in runCommand() method in NetworkWatchlistTest
158 final String cmdResult = runCommand( in setWatchlistConfig()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java158 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
171 runCommand(command, instrumentation); in suspendPackage()
180 runCommand(command, instrumentation); in toggleListenerAccess()
188 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in LegacyNotificationManager20Test
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java259 runCommand("am compat enable " + enabledChange + " " + packageName); in setCompatConfig()
262 runCommand("am compat disable " + disabledChange + " " + packageName); in setCompatConfig()
272 runCommand("am compat reset " + change + " " + packageName); in resetCompatChanges()
328 protected String runCommand(String command) throws DeviceNotAvailableException {
/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.java119 private String runCommand(String command) throws IOException, InterruptedException { in runCommand() method in ShortcutManagerNegativeTest
144 MoreAsserts.assertNotContainsRegex("Success", runCommand("cmd shortcut clear-shortcuts " + in testCommand()
/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 toggleListenerAccess()
398 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in LegacyNotificationManagerTest
DConditionProviderServiceTest.java314 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
322 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in ConditionProviderServiceTest
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DTaggingBaseTest.java30 String kernelVersion = runCommand("uname -rm"); in supportsTaggedPointers()
DTaggingDefaultTest.java36 supportsMemoryTagging = !runCommand("grep 'Features.* mte' /proc/cpuinfo").isEmpty(); in setUp()
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesValidConfigTest.java171 String config = runCommand("dumpsys platform_compat"); in getOnDeviceCompatConfig()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java497 runCommand(command, instrumentation); in toggleListenerAccess()
526 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in NotificationAssistantServiceTest
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java756 runCommand(command, instrumentation); in toggleNotificationPolicyAccess()
764 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in CameraManagerTest