/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 384 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() local 385 CLog.d("Output for command " + command + ": " + commandOutput); in executeShellCommand() 438 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags() local 439 CLog.i("Output for command " + command + ": " + commandOutput); in getUserFlags() 441 String[] lines = commandOutput.split("\\r?\\n"); in getUserFlags() 442 assertTrue(commandOutput + " should contain at least one line", lines.length >= 1); in getUserFlags() 682 String commandOutput = getDevice().executeShellCommand(command); in createUser() local 683 CLog.d("Output for command %s: %s", command, commandOutput); in createUser() 686 String[] tokens = commandOutput.split("\\s+"); in createUser() 688 assertEquals("Command '" + command + "' failed: " + commandOutput, "Success:", tokens[0]); in createUser() [all …]
|
D | BaseDeviceAdminServiceTest.java | 193 final String commandOutput = getDevice().executeShellCommand(command); in rumpDumpSysService() local 194 CLog.d("Output for command %s: \n%s", command, commandOutput); in rumpDumpSysService() 195 return commandOutput; in rumpDumpSysService() 199 final String commandOutput = rumpDumpSysService(component); in assertServiceBound() local 200 for (String line : commandOutput.split("\r*\n")) { in assertServiceBound() 205 fail("Service " + OWNER_SERVICE + " not bound. Output was:\n" + commandOutput); in assertServiceBound() 209 final String commandOutput = rumpDumpSysService(component); in assertServiceNotBound() local 210 for (String line : commandOutput.split("\r*\n")) { in assertServiceNotBound() 212 fail("Service " + OWNER_SERVICE + " is bound. Output was:\n" + commandOutput); in assertServiceNotBound()
|
D | ManagedProfileCrossProfileTest.java | 246 String commandOutput = changeCrossProfileWidgetForUser(WIDGET_PROVIDER_PKG, in testCrossProfileWidgets() local 248 assertTrue("Command was expected to succeed " + commandOutput, in testCrossProfileWidgets() 249 commandOutput.contains("Status: ok")); in testCrossProfileWidgets() 260 commandOutput = changeCrossProfileWidgetForUser(WIDGET_PROVIDER_PKG, in testCrossProfileWidgets() 262 assertTrue("Command was expected to succeed " + commandOutput, in testCrossProfileWidgets() 263 commandOutput.contains("Status: ok")); in testCrossProfileWidgets() 587 String commandOutput = getDevice().executeShellCommand(adbCommand); in changeCrossProfileWidgetForUser() local 588 LogUtil.CLog.d("Output for command " + adbCommand + ": " + commandOutput); in changeCrossProfileWidgetForUser() 589 return commandOutput; in changeCrossProfileWidgetForUser()
|
D | EphemeralUserTest.java | 89 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in getGuestUsersEphemeral() local 90 String[] outputLines = commandOutput.split("\n"); in getGuestUsersEphemeral()
|
D | ManagedProfileTest.java | 616 String commandOutput = in assertActivityInForeground() local 618 assertThat(commandOutput).contains("u" + userId + " " + fullActivityName); in assertActivityInForeground()
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 145 String commandOutput = executeShellCommand(command); in createAndStartUser() local 147 String[] tokens = commandOutput.split("\\s+"); in createAndStartUser() 244 String commandOutput = executeShellCommand( in getSettings() local 246 if (commandOutput == null || commandOutput.isEmpty() || commandOutput.equals("null")) { in getSettings() 247 commandOutput = ""; in getSettings() 249 return commandOutput; in getSettings() 280 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature() local 281 CLog.i("Output for command " + command + ": " + commandOutput); in hasDeviceFeature() 285 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/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/ |
D | PackageManagerMultiUserTestBase.java | 97 String commandOutput = getDevice().executeShellCommand(command); in createUser() local 98 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in createUser() 101 String[] tokens = commandOutput.split("\\s+"); in createUser() 118 String commandOutput = getDevice().executeShellCommand(command); in removeUser() local 119 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in removeUser() 125 String commandOutput = getDevice().executeShellCommand(command); in installExistingPackageForUser() local 126 LogUtil.CLog.d("Output for command " + command + ": " + commandOutput); in installExistingPackageForUser()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ActivePasswordSufficientForDeviceTest.java | 109 String commandOutput = SystemUtil.runShellCommand(String.format( in changeUserCredential() local 112 if (!commandOutput.startsWith("Password set to")) { in changeUserCredential() 113 fail("Failed to set user credential: " + commandOutput); in changeUserCredential() 116 String commandOutput = SystemUtil.runShellCommand(String.format( in changeUserCredential() local 118 if (!commandOutput.startsWith("Lock credential cleared")) { in changeUserCredential() 119 fail("Failed to clear user credential: " + commandOutput); in changeUserCredential()
|
/cts/hostsidetests/settings/src/com/google/android/cts/settings/ |
D | PrivacyDeviceOwnerTest.java | 231 String commandOutput = getDevice().executeShellCommand(command); in setDeviceOwner() local 232 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " + commandOutput); in setDeviceOwner() 234 commandOutput + " expected to start with \"Success:\" " + commandOutput, in setDeviceOwner() 235 commandOutput.startsWith("Success:")); in setDeviceOwner() 240 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature() local 241 CLog.i("Output for command " + command + ": " + commandOutput); in hasDeviceFeature() 244 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ResumeOnRebootHostTest.java | 581 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile() local 582 return getUserIdFromCreateUserCommandOutput(commandOutput); in createManagedProfile() 585 private int getUserIdFromCreateUserCommandOutput(String commandOutput) { in getUserIdFromCreateUserCommandOutput() argument 587 String[] tokens = commandOutput.split("\\s+"); in getUserIdFromCreateUserCommandOutput() 588 assertThat(commandOutput + " expected to have format \"Success: {USER_ID}\"", in getUserIdFromCreateUserCommandOutput() 590 assertThat("Command output should start with \"Success\"" + commandOutput, tokens[0], in getUserIdFromCreateUserCommandOutput() 600 String commandOutput = getDevice().executeShellCommand(command); in getCreateManagedProfileCommandOutput() local 601 CLog.d("Output for command " + command + ": " + commandOutput); in getCreateManagedProfileCommandOutput() 602 return commandOutput; in getCreateManagedProfileCommandOutput()
|
/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/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/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AudioRestrictionTest.java | 195 String commandOutput = runShellCommand("dumpsys audio"); in isFullVolumeDevice() local 197 for (String line : commandOutput.split("\\r?\\n")) { in isFullVolumeDevice()
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 244 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in getUserSerialNumber() local 245 String[] tokens = commandOutput.split("\\n"); in getUserSerialNumber()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 198 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in waitForUserRemove() local 199 Matcher matcher = pattern.matcher(commandOutput); in waitForUserRemove()
|