/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 377 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() local 378 CLog.d("Output for command %s: %s", command, commandOutput); in executeShellCommand() 379 return commandOutput; in executeShellCommand() 436 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags() local 437 CLog.i("Output for command " + command + ": " + commandOutput); in getUserFlags() 439 String[] lines = commandOutput.split("\\r?\\n"); in getUserFlags() 440 assertTrue(commandOutput + " should contain at least one line", lines.length >= 1); in getUserFlags() 677 String commandOutput = getDevice().executeShellCommand(command); in createUser() local 678 CLog.d("Output for command %s: %s", command, commandOutput); in createUser() 681 String[] tokens = commandOutput.split("\\s+"); in createUser() [all …]
|
D | BaseDeviceAdminServiceTest.java | 194 final String commandOutput = getDevice().executeShellCommand(command); in rumpDumpSysService() local 195 CLog.d("Output for command %s: \n%s", command, commandOutput); in rumpDumpSysService() 196 return commandOutput; in rumpDumpSysService() 200 final String commandOutput = rumpDumpSysService(component); in assertServiceBound() local 201 for (String line : commandOutput.split("\r*\n")) { in assertServiceBound() 206 fail("Service " + OWNER_SERVICE + " not bound. Output was:\n" + commandOutput); in assertServiceBound() 210 final String commandOutput = rumpDumpSysService(component); in assertServiceNotBound() local 211 for (String line : commandOutput.split("\r*\n")) { in assertServiceNotBound() 213 fail("Service " + OWNER_SERVICE + " is bound. Output was:\n" + commandOutput); in assertServiceNotBound()
|
D | ManagedProfileCrossProfileTest.java | 219 String commandOutput = changeCrossProfileWidgetForUser(WIDGET_PROVIDER_PKG, in testCrossProfileWidgets() local 221 assertTrue("Command was expected to succeed " + commandOutput, in testCrossProfileWidgets() 222 commandOutput.contains("Status: ok")); in testCrossProfileWidgets() 233 commandOutput = changeCrossProfileWidgetForUser(WIDGET_PROVIDER_PKG, in testCrossProfileWidgets() 235 assertTrue("Command was expected to succeed " + commandOutput, in testCrossProfileWidgets() 236 commandOutput.contains("Status: ok")); in testCrossProfileWidgets() 511 String commandOutput = getDevice().executeShellCommand(adbCommand); in changeCrossProfileWidgetForUser() local 512 LogUtil.CLog.d("Output for command " + adbCommand + ": " + commandOutput); in changeCrossProfileWidgetForUser() 513 return commandOutput; in changeCrossProfileWidgetForUser()
|
D | ManagedProfileTest.java | 492 String commandOutput = getDevice().executeShellCommand( in assertActivityInForeground() local 494 if (commandOutput.contains("u" + userId + " " + fullActivityName)) { in assertActivityInForeground()
|
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/ |
D | PackageManagerMultiUserTestBase.java | 102 String commandOutput = getDevice().executeShellCommand(command); in createUser() local 103 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in createUser() 106 String[] tokens = commandOutput.split("\\s+"); in createUser() 107 assertTrue(commandOutput, tokens.length > 0); in createUser() 108 assertEquals(commandOutput, "Success:", tokens[0]); in createUser() 127 String commandOutput = getDevice().executeShellCommand(command); in removeUser() local 128 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in removeUser() 134 String commandOutput = getDevice().executeShellCommand(command); in installExistingPackageForUser() local 135 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in installExistingPackageForUser()
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 167 String commandOutput = executeShellCommand(command); in createAndStartUser() local 169 String[] tokens = commandOutput.split("\\s+"); in createAndStartUser() 266 String commandOutput = executeShellCommand( in getSettings() local 268 if (commandOutput == null || commandOutput.isEmpty() || commandOutput.equals("null")) { in getSettings() 269 commandOutput = ""; in getSettings() 271 return commandOutput; in getSettings() 302 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature() local 303 CLog.i("Output for command " + command + ": " + commandOutput); in hasDeviceFeature() 307 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
|
D | BaseMediaHostSideTest.java | 91 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() local 92 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in executeShellCommand() 93 return commandOutput != null ? commandOutput.trim() : ""; in executeShellCommand()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/ |
D | ManagedProfileContactsAccessTest.java | 137 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile() local 138 return getUserIdFromCreateUserCommandOutput(commandOutput); in createManagedProfile() 141 private static int getUserIdFromCreateUserCommandOutput(String commandOutput) { in getUserIdFromCreateUserCommandOutput() argument 143 String[] tokens = commandOutput.split("\\s+"); in getUserIdFromCreateUserCommandOutput() 144 assertWithMessage(commandOutput + " expected to have format \"Success: {USER_ID}\"") in getUserIdFromCreateUserCommandOutput() 146 assertWithMessage(commandOutput + " expected to have format \"Success: {USER_ID}\"") in getUserIdFromCreateUserCommandOutput() 155 String commandOutput = sDevice.executeShellCommand(command); in getCreateManagedProfileCommandOutput() local 156 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in getCreateManagedProfileCommandOutput() 157 return commandOutput; in getCreateManagedProfileCommandOutput() 163 String commandOutput = getDevice().executeShellCommand(command); in setProfileOwner() local [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ActivePasswordSufficientForDeviceTest.java | 121 String commandOutput = SystemUtil.runShellCommand(String.format( in changeUserCredential() local 124 if (!commandOutput.startsWith("Password set to")) { in changeUserCredential() 125 fail("Failed to set user credential: " + commandOutput); in changeUserCredential() 128 String commandOutput = SystemUtil.runShellCommand(String.format( in changeUserCredential() local 130 if (!commandOutput.startsWith("Lock credential cleared")) { in changeUserCredential() 131 fail("Failed to clear user credential: " + commandOutput); in changeUserCredential()
|
/cts/hostsidetests/settings/src/com/google/android/cts/settings/ |
D | PrivacyDeviceOwnerTest.java | 234 String commandOutput = getDevice().executeShellCommand(command); in setDeviceOwner() local 235 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " + commandOutput); in setDeviceOwner() 237 commandOutput + " expected to start with \"Success:\" " + commandOutput, in setDeviceOwner() 238 commandOutput.startsWith("Success:")); in setDeviceOwner() 243 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature() local 244 CLog.i("Output for command " + command + ": " + commandOutput); in hasDeviceFeature() 247 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2021_39707.java | 47 String commandOutput = AdbUtils.runCommandLine( in testPocCVE_2021_39707() local 51 String[] tokens = commandOutput.split("\\s+"); in testPocCVE_2021_39707()
|
D | CVE_2022_20223.java | 47 String commandOutput = AdbUtils.runCommandLine( in testPocCVE_2022_20223() local 51 String[] tokens = commandOutput.split("\\s+"); in testPocCVE_2022_20223()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RequiredServiceRule.java | 81 String commandOutput = SystemUtil.runShellCommand( 83 return !commandOutput.contains("not found");
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/broadcasts/ |
D | ActivityIntents.kt | 55 .validate { commandOutput -> in <lambda>() method 56 val intents = parser.parseDumpsysActivities(commandOutput) in <lambda>()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ResumeOnRebootHostTest.java | 533 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile() local 534 return getUserIdFromCreateUserCommandOutput(commandOutput); in createManagedProfile() 537 private int getUserIdFromCreateUserCommandOutput(String commandOutput) { in getUserIdFromCreateUserCommandOutput() argument 539 String[] tokens = commandOutput.split("\\s+"); in getUserIdFromCreateUserCommandOutput() 540 assertThat(commandOutput + " expected to have format \"Success: {USER_ID}\"", in getUserIdFromCreateUserCommandOutput() 542 assertThat("Command output should start with \"Success\"" + commandOutput, tokens[0], in getUserIdFromCreateUserCommandOutput() 552 String commandOutput = getDevice().executeShellCommand(command); in getCreateManagedProfileCommandOutput() local 553 CLog.d("Output for command " + command + ": " + commandOutput); in getCreateManagedProfileCommandOutput() 554 return commandOutput; in getCreateManagedProfileCommandOutput()
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerHostTest.java | 134 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature() local 135 CLog.i("Output for command " + command + ": " + commandOutput); in hasDeviceFeature() 139 for (String feature: commandOutput.split("\\s+")) { in hasDeviceFeature()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 186 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in waitForUserRemove() local 187 Matcher matcher = pattern.matcher(commandOutput); in waitForUserRemove()
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 242 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in getUserSerialNumber() local 243 String[] tokens = commandOutput.split("\\n"); in getUserSerialNumber()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Package.java | 253 String commandOutput = Poll.forValue(() -> { in uninstall() local 283 if (commandOutput.toUpperCase().startsWith("SUCCESS")) { in uninstall()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 2460 String commandOutput = mUiDevice.executeShellCommand("dumpsys activity activities"); in hasResolverActivity() local 2461 final String[] lines = commandOutput.split("\\n", -1); in hasResolverActivity()
|