/cts/hostsidetests/edi/src/android/edi/cts/ |
D | NativeDeviceInfo.java | 33 CommandResult commandResult = device.executeShellV2Command("grep memory /proc/cgroups"); in collectMemCG() local 36 if (commandResult.getExitCode() == 0) { in collectMemCG() 37 String[] tokens = commandResult.getStdout().split("\\s+"); in collectMemCG() 41 } else if (commandResult.getExitCode() == 1) { // "memory" not found by grep in collectMemCG() 43 } else if (commandResult.getStderr().contains("No such file")) { in collectMemCG() 45 } else if (commandResult.getStderr().contains("Permission denied")) { in collectMemCG() 52 CommandResult commandResult = device.executeShellV2Command( in collectMGLRU() local 55 if (commandResult.getExitCode() == 0) { in collectMGLRU() 56 store.addResult("mglru_enabled", Integer.decode(commandResult.getStdout().trim())); in collectMGLRU() 57 } else if (commandResult.getStderr().contains("No such file")) { in collectMGLRU() [all …]
|
D | DynamicPartitionsDeviceInfo.java | 51 CommandResult commandResult = device.executeShellV2Command( in collectDeviceInfo() local 53 if (commandResult.getExitCode() == null) { in collectDeviceInfo() 57 if (commandResult.getExitCode() != 0) { in collectDeviceInfo() 58 CLog.e("lpdump returns %d: %s", commandResult.getExitCode(), in collectDeviceInfo() 59 commandResult.getStderr()); in collectDeviceInfo() 63 if (commandResult.getExitCode() == 0 && !commandResult.getStderr().isEmpty()) { in collectDeviceInfo() 65 commandResult.getStderr()); in collectDeviceInfo() 68 String output = commandResult.getStdout(); in collectDeviceInfo()
|
D | PropertyDeviceInfo.java | 38 CommandResult commandResult = device.executeShellV2Command("getprop"); in collectDeviceInfo() local 39 if (commandResult.getExitCode() == null) { in collectDeviceInfo() 42 if (commandResult.getExitCode() != 0) { in collectDeviceInfo() 44 String.format("getprop returns %d: %s", commandResult.getExitCode(), in collectDeviceInfo() 45 commandResult.getStderr())); in collectDeviceInfo() 47 if (commandResult.getExitCode() == 0 && !commandResult.getStderr().isEmpty()) { in collectDeviceInfo() 49 commandResult.getStderr()); in collectDeviceInfo() 52 parseProps(commandResult.getStdout(), store); in collectDeviceInfo()
|
/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/ |
D | GpuWorkDumpsysTest.java | 48 CommandResult commandResult = getDevice().executeShellV2Command(command); in assertShellCommand() local 54 commandResult.getStatus()); in assertShellCommand() 56 return commandResult; in assertShellCommand() 61 CommandResult commandResult = in getTestAppUid() local 64 String[] parts = commandResult.getStdout().split(":"); in getTestAppUid() 68 String.format("Unexpected output getting package uid:\n%s", commandResult.getStdout()), in getTestAppUid() 79 CommandResult commandResult = in testOutputFormat() local 90 commandResult.getStatus().equals(CommandStatus.SUCCESS)); in testOutputFormat() 108 commandResult = assertShellCommand(DUMPSYS_COMMAND); in testOutputFormat() 113 DUMPSYS_COMMAND, commandResult.getStdout()), in testOutputFormat() [all …]
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/ |
D | AppCloningBaseHostTest.java | 162 CommandResult commandResult = testDevice.executeShellV2Command(String.format( in isAppCloningBuildingBlockConfigEnabled() local 164 assertTrue(isSuccessful(commandResult)); in isAppCloningBuildingBlockConfigEnabled() 165 return Boolean.parseBoolean(commandResult.getStdout().trim()); in isAppCloningBuildingBlockConfigEnabled()
|
/cts/hostsidetests/packagemanager/extractnativelibs/src/android/extractnativelibs/cts/ |
D | CtsExtractNativeLibsHostTestAbiOverride.java | 142 String commandResult = getDevice().executeShellCommand("pm dump " + testPackageName); in getPackageAbi() local 143 Optional<String> maybePrimaryCpuAbiStr = Arrays.stream(commandResult.split("\\r?\\n")) in getPackageAbi()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerShellCommandInstallTest.java | 401 String commandResult = executeShellCommand(command); in testAppInstallErr() local 402 assertEquals("Failure [failed to add file(s)]\n", commandResult); in testAppInstallErr() 415 String commandResult = executeShellCommand("pm " + mInstall + " -t -g -S " + file.length(), in testAppInstallStdInErr() local 418 assertTrue(commandResult, commandResult.startsWith("Failure [")); in testAppInstallStdInErr() 420 assertTrue(commandResult, in testAppInstallStdInErr() 421 commandResult.startsWith("Failure [INSTALL_PARSE_FAILED_NOT_APK")); in testAppInstallStdInErr() 438 String commandResult = in testGetPackageStorageStats() local 440 String[] lines = commandResult.split("\n"); in testGetPackageStorageStats() 755 String commandResult = executeShellCommand( in testAppInstallErrDuplicate() local 757 assertEquals("Failure [failed to add file(s)]\n", commandResult); in testAppInstallErrDuplicate() [all …]
|
D | PackageManagerShellCommandIncrementalTest.java | 1176 final String commandResult = executeShellCommand(command); in isAppInstalledForUser() 1177 return Arrays.stream(commandResult.split("\\r?\\n")) in isAppInstalledForUser() 1198 final String commandResult = executeShellCommand("pm dump-package " + packageName); in parsePackageDump() local 1200 Optional<String> maybeSplits = Arrays.stream(commandResult.split("\\r?\\n")) in parsePackageDump()
|
D | PackageManagerShellCommandMultiUserTest.kt | 601 var commandResult = PackageManagerShellCommandInstallTest.executeShellCommand( in testGrantPermissionToSecondaryUser() variable 604 assertTrue(commandResult.isEmpty()) in testGrantPermissionToSecondaryUser() 605 commandResult = PackageManagerShellCommandInstallTest.executeShellCommand( in testGrantPermissionToSecondaryUser() 608 assertEquals(commandResult, "Failure [package not found]") in testGrantPermissionToSecondaryUser()
|
D | ChecksumsTest.java | 1631 final String commandResult = in isPackagePresent() local 1634 return Arrays.stream(commandResult.split("\\r?\\n")) in isPackagePresent() 1639 final String commandResult = executeShellCommand("pm dump " + packageName); in getAppCodePath() local 1642 return Arrays.stream(commandResult.split("\\r?\\n")) in getAppCodePath()
|
D | PackageManagerTest.java | 2026 final String commandResult = in isPackagePresent() local 2029 return Arrays.stream(commandResult.split("\\r?\\n")).anyMatch( in isPackagePresent() 3850 final String commandResult = SystemUtil.runShellCommand("pm dump " + packageName); in getInstalledState() local 3851 final String userStatesLine = Arrays.stream(commandResult.split("\\r?\\n")) in getInstalledState()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSession2Test.java | 302 Session2Command.Result commandResult = new Session2Command.Result(resultCode, null); in testBroadcastSessionCommand() local 318 return commandResult; in testBroadcastSessionCommand() 336 return commandResult; in testBroadcastSessionCommand() 489 Session2Command.Result commandResult = new Session2Command.Result(resultCode, resultData); in testCallback_onCommandResult() local 498 return commandResult; in testCallback_onCommandResult() 729 Session2Command.Result commandResult = in onSessionCommand() local 731 return commandResult; in onSessionCommand()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceAndProfileOwnerTest.java | 1070 final String commandResult = in getEnabledSystemPackageNames() local 1073 return new ArrayList<>(Arrays.asList(commandResult.split("\n"))) in getEnabledSystemPackageNames()
|