/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/ |
D | AppBindingHostTest.java | 77 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/ |
D | ProcStatsTest.java | 50 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/ |
D | AppOpsUtils.java | 47 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/ |
D | AppOpsUtils.java | 48 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/ |
D | AppOpsUtils.kt | 46 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/ |
D | HostsideRestrictBackgroundNetworkTests.java | 322 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()
|
D | HostsideNetworkTestCase.java | 99 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/ |
D | TileServiceTest.java | 180 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()
|
D | NotificationManagerTest.java | 500 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/ |
D | NetworkWatchlistTest.java | 89 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/ |
D | LegacyNotificationManager20Test.java | 158 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/ |
D | CompatChangeGatingTestCase.java | 259 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/ |
D | ShortcutManagerFakingPublisherTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.runCommand; 164 for (String s : runCommand(InstrumentationRegistry.getInstrumentation(), in assertInvalidShortcutNotCreated()
|
D | ShortcutManagerNegativeTest.java | 119 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/ |
D | LegacyNotificationManagerTest.java | 364 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
|
D | ConditionProviderServiceTest.java | 314 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/ |
D | TaggingBaseTest.java | 30 String kernelVersion = runCommand("uname -rm"); in supportsTaggedPointers()
|
D | TaggingDefaultTest.java | 36 supportsMemoryTagging = !runCommand("grep 'Features.* mte' /proc/cpuinfo").isEmpty(); in setUp()
|
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | CompatChangesValidConfigTest.java | 171 String config = runCommand("dumpsys platform_compat"); in getOnDeviceCompatConfig()
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 497 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/ |
D | CameraManagerTest.java | 756 runCommand(command, instrumentation); in toggleNotificationPolicyAccess() 764 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() method in CameraManagerTest
|