Home
last modified time | relevance | path

Searched refs:commandOutput (Results 1 – 15 of 15) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java390 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() local
391 CLog.d("Output for command %s: %s", command, commandOutput); in executeShellCommand()
392 return commandOutput; in executeShellCommand()
448 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags() local
449 CLog.i("Output for command " + command + ": " + commandOutput); in getUserFlags()
451 String[] lines = commandOutput.split("\\r?\\n"); in getUserFlags()
452 assertTrue(commandOutput + " should contain at least one line", lines.length >= 1); in getUserFlags()
692 String commandOutput = getDevice().executeShellCommand(command); in createUser() local
693 CLog.d("Output for command %s: %s", command, commandOutput); in createUser()
696 String[] tokens = commandOutput.split("\\s+"); in createUser()
[all …]
DBaseDeviceAdminServiceTest.java193 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()
DManagedProfileCrossProfileTest.java246 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()
554 String commandOutput = getDevice().executeShellCommand(adbCommand); in changeCrossProfileWidgetForUser() local
555 LogUtil.CLog.d("Output for command " + adbCommand + ": " + commandOutput); in changeCrossProfileWidgetForUser()
556 return commandOutput; in changeCrossProfileWidgetForUser()
DEphemeralUserTest.java89 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in getGuestUsersEphemeral() local
90 String[] outputLines = commandOutput.split("\n"); in getGuestUsersEphemeral()
DManagedProfileTest.java598 String commandOutput = in assertActivityInForeground() local
600 assertThat(commandOutput).contains("u" + userId + " " + fullActivityName); in assertActivityInForeground()
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/
DPackageManagerMultiUserTestBase.java97 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/
DActivePasswordSufficientForDeviceTest.java109 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/
DPrivacyDeviceOwnerTest.java232 String commandOutput = getDevice().executeShellCommand(command); in setDeviceOwner() local
233 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " + commandOutput); in setDeviceOwner()
235 commandOutput + " expected to start with \"Success:\" " + commandOutput, in setDeviceOwner()
236 commandOutput.startsWith("Success:")); in setDeviceOwner()
241 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature() local
242 CLog.i("Output for command " + command + ": " + commandOutput); in hasDeviceFeature()
245 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMediaHostSideTest.java91 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/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java581 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/
DRequiredServiceRule.java81 String commandOutput = SystemUtil.runShellCommand(
83 return !commandOutput.contains("not found");
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerHostTest.java134 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/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java244 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in getUserSerialNumber() local
245 String[] tokens = commandOutput.split("\\n"); in getUserSerialNumber()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java202 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in waitForUserRemove() local
203 Matcher matcher = pattern.matcher(commandOutput); in waitForUserRemove()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java207 String commandOutput = Poll.forValue(() -> { in uninstall() local
237 if (commandOutput.toUpperCase().startsWith("SUCCESS")) { in uninstall()