Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java377 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 …]
DBaseDeviceAdminServiceTest.java194 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()
DManagedProfileCrossProfileTest.java219 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()
DManagedProfileTest.java492 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/
DPackageManagerMultiUserTestBase.java102 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/
DBaseMultiUserTest.java167 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()
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/appcloning/hostside/src/com/android/cts/appcloning/contacts/
DManagedProfileContactsAccessTest.java137 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/
DActivePasswordSufficientForDeviceTest.java121 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/
DPrivacyDeviceOwnerTest.java234 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/
DCVE_2021_39707.java47 String commandOutput = AdbUtils.runCommandLine( in testPocCVE_2021_39707() local
51 String[] tokens = commandOutput.split("\\s+"); in testPocCVE_2021_39707()
DCVE_2022_20223.java47 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/
DRequiredServiceRule.java81 String commandOutput = SystemUtil.runShellCommand(
83 return !commandOutput.contains("not found");
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/broadcasts/
DActivityIntents.kt55 .validate { commandOutput -> in <lambda>() method
56 val intents = parser.parseDumpsysActivities(commandOutput) in <lambda>()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java533 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/
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/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java186 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/
DNumberBlockingTest.java242 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/
DPackage.java253 String commandOutput = Poll.forValue(() -> { in uninstall() local
283 if (commandOutput.toUpperCase().startsWith("SUCCESS")) { in uninstall()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java2460 String commandOutput = mUiDevice.executeShellCommand("dumpsys activity activities"); in hasResolverActivity() local
2461 final String[] lines = commandOutput.split("\\n", -1); in hasResolverActivity()