Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java384 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 …]
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()
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()
DEphemeralUserTest.java89 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in getGuestUsersEphemeral() local
90 String[] outputLines = commandOutput.split("\n"); in getGuestUsersEphemeral()
DManagedProfileTest.java616 String commandOutput = in assertActivityInForeground() local
618 assertThat(commandOutput).contains("u" + userId + " " + fullActivityName); in assertActivityInForeground()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java145 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()
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/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.java231 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/
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/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAudioRestrictionTest.java195 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/
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.java198 String commandOutput = getDevice().executeShellCommand("dumpsys user"); in waitForUserRemove() local
199 Matcher matcher = pattern.matcher(commandOutput); in waitForUserRemove()