Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 49) sorted by relevance

12

/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DBackupUtilsTest.java57 String output = ""; in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
59 output = "Backup Manager currently enabled"; in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
61 output = "Backup Manager now enabled"; in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
64 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
76 String output = ""; in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
78 output = "Backup Manager currently disabled"; in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
80 output = "Backup Manager now enabled"; in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
83 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
95 String output = ""; in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
97 output = "Backup Manager currently enabled"; in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
[all …]
/platform_testing/utils/shell-as/
Dgen-manifest.sh32 readonly output="$3"
37 sed -e '/PERMISSIONS/,$d' "$template" > "$output"
40 sed -r 's!(.*)! <uses-permission android:name="\1"/>!g' "$permissions" >> "$output"
43 sed -e '1,/PERMISSIONS/d' "$template" >> "$output"
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/
DIterateTestBase.java57 List<Integer> output = getIterate().apply( in testIterationsRespected() local
60 Map<Integer, Long> countMap = output.stream() in testIterationsRespected()
76 List<Integer> output = getIterate().apply( in testCyclicOrderRespected() local
82 List<List<Integer>> cycles = Lists.partition(output, NUM_TESTS); in testCyclicOrderRespected()
93 List<Integer> output = getIterate().apply( in testSequentialOrderRespected() local
100 List<List<Integer>> testRuns = Lists.partition(output, EXPECTED_ITERATIONS); in testSequentialOrderRespected()
115 List<Integer> output = in testOverrideOptionName() local
124 output.stream() in testOverrideOptionName()
147 List<Integer> output = getIterate().apply( in testInvalidOrderThrows() local
DShuffleTestBase.java43 List<Integer> output = getShuffle().apply(getArguments(true, seedValue), input); in testShuffleSeedRespected() local
46 assertThat(input).isEqualTo(output); in testShuffleSeedRespected()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java170 File output = new File(getFailureDir(), "delta-" + imageName); in assertImageSimilar() local
171 if (output.exists()) { in assertImageSimilar()
172 boolean deleted = output.delete(); in assertImageSimilar()
175 ImageIO.write(deltaImage, "PNG", output); in assertImageSimilar()
176 error += " - see details in file://" + output.getPath() + "\n"; in assertImageSimilar()
210 File output = new File(getFailureDir(), getName(relativePath)); in saveImageAndAppendMessage() local
211 if (output.exists()) { in saveImageAndAppendMessage()
212 boolean deleted = output.delete(); in saveImageAndAppendMessage()
215 ImageIO.write(image, "PNG", output); in saveImageAndAppendMessage()
216 initialMessage += "Golden image for current rendering stored at " + output.getPath(); in saveImageAndAppendMessage()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBackupUtils.java288 String output = getLineString(executeShellCommand("bmgr enabled")); in enableBackup() local
289 Matcher matcher = BACKUP_MANAGER_CURRENTLY_ENABLE_STATUS_PATTERN.matcher(output.trim()); in enableBackup()
293 throw new RuntimeException("non-parsable output setting bmgr enabled: " + output); in enableBackup()
348 String output = getLineString(executeShellCommand("dumpsys backup")); in waitForBackupInitialization() local
349 if (output.matches(MATCH_LINE_BACKUP_MANAGER_IS_NOT_PENDING_INIT)) { in waitForBackupInitialization()
370 String output = getAllLinesString(executeShellCommand("dumpsys backup")); in waitForNonGmsTransportInitialization() local
371 if (output.matches(MATCH_LINE_BACKUP_MANAGER_IS_NOT_PENDING_INIT)) { in waitForNonGmsTransportInitialization()
374 if (output.matches(MATCH_LINE_ONLY_GMS_BACKUP_TRANSPORT_PENDING_INIT)) { in waitForNonGmsTransportInitialization()
399 String output = getLineString(executeShellCommand("dumpsys backup users")); in waitUntilBackupServiceIsRunning()
400 return output.matches( in waitUntilBackupServiceIsRunning()
[all …]
DMultipartForm.java110 OutputStream output = connection.getOutputStream(); in submitForm() local
112 output.write(body); in submitForm()
114 output.close(); in submitForm()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java276 String output = getDevice().executeShellCommand(command); in clearGfxInfo() local
278 verifyMatches(output, getHeaderMatcher(""), "No package headers in output."); in clearGfxInfo()
282 String output = getDevice().executeShellCommand(command); in clearGfxInfo() local
284 verifyMatches(output, getHeaderMatcher(pkg), "No package header in output."); in clearGfxInfo()
303 String output = getDevice().executeShellCommand(command); in getGfxInfoMetrics() local
304 verifyMatches(output, getHeaderMatcher(pkg), "Missing package header."); in getGfxInfoMetrics()
307 String[] pkgMetricSections = output.split("\n\\*\\*"); in getGfxInfoMetrics()
320 private Map<String, Double> parseGfxInfoMetrics(String output) { in parseGfxInfoMetrics() argument
321 Matcher header = Pattern.compile(getHeaderMatcher("")).matcher(output); in parseGfxInfoMetrics()
334 Double value = metric.parse(output); in parseGfxInfoMetrics()
[all …]
/platform_testing/libraries/collectors-helper/adservices/src/com/android/helpers/
DTopicsLatencyHelper.java65 Map<String, Long> output = new HashMap<String, Long>(); in processInput() local
76 output.put(TOPICS_HOT_START_LATENCY_METRIC, latency); in processInput()
78 output.put(TOPICS_COLD_START_LATENCY_METRIC, latency); in processInput()
82 return output; in processInput()
DSelectAdsLatencyHelper.java61 Map<String, Long> output = new HashMap<String, Long>(); in processInput() local
73 output.put(metric, latency); in processInput()
76 return output; in processInput()
DMeasurementLatencyHelper.java59 Map<String, Long> output = new HashMap<String, Long>(); in processInput() local
65 output.put(metric, latency); in processInput()
68 return output; in processInput()
/platform_testing/libraries/sts-common-util/host-side/res/ghidra-scripts/
DFunctionOffsetPostScript.java33 List<BigInteger> output = new ArrayList<>(); in run() local
56 output.add(offset); in run()
64 outputStream.writeObject(output); in run()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DCommonUtils.java107 String output = executeShellCommand("pidof com.android.systemui"); in getSystemUiPids() local
108 if (output.isEmpty()) { in getSystemUiPids()
114 return output.split("\\s"); in getSystemUiPids()
299 ArrayList<String> output = new ArrayList<>(); in executeShellCommandWithDetailedOutput() local
301 output.add(new String(buf, 0, bytesRead)); in executeShellCommandWithDetailedOutput()
304 return output; in executeShellCommandWithDetailedOutput()
325 ArrayList<String> output = executeShellCommandWithDetailedOutput(LIST_ALL_USERS_COMMAND); in getCurrentUserId() local
327 for (String line : output) { in getCurrentUserId()
340 for (String line : output) { in getCurrentUserId()
355 ArrayList<String> output = executeShellCommandWithDetailedOutput(GET_MAIN_USER_COMMAND); in getMainUserId() local
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DIncidentReportListener.java83 byte[] output = executeCommandBlocking(fullReportCmd); in onTestRunEnd()
86 if (output == null) { in onTestRunEnd()
89 } if (output.length == 0) { in onTestRunEnd()
95 Files.write(FINAL_REPORT_PATH, output, StandardOpenOption.CREATE_NEW); in onTestRunEnd()
DScreenRecordCollector.java233 File output = getOutputFile(mDescription, i); in run() local
236 String.format("Recording screen to %s", output.getAbsolutePath())); in run()
237 mRecordings.add(output); in run()
249 dimensionsOpt, output.getAbsolutePath())); in run()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DDumpsysUtils.java41 CommandResult output = device.executeShellV2Command("dumpsys " + args); in getRawDumpsys() local
42 if (output.getStatus() != CommandStatus.SUCCESS) { in getRawDumpsys()
46 args, output.toString())); in getRawDumpsys()
48 return output.getStdout(); in getRawDumpsys()
DUserUtils.java211 final CommandResult output = mDevice.executeShellV2Command(command); in withUser() local
212 if (output.getStatus() != CommandStatus.SUCCESS) { in withUser()
214 String.format("Failed to create user, due to : %s", output.toString())); in withUser()
216 final String outputStdout = output.getStdout(); in withUser()
DHostsideMainlineModuleDetector.java42 String output = in getPlayManagedModules() local
48 Log.logAndDisplay(Log.LogLevel.INFO, LOG_TAG, "am output: " + output); in getPlayManagedModules()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DProfileTest.java151 List<Runner> output = in testProfileOrderingRespected() local
153 List<String> outputDescriptions = output.stream().map(r -> in testProfileOrderingRespected()
170 List<Runner> output = getProfile(getArguments(CONFIG_WITH_REPEATED_JOURNEY_KEY)) in testProfileRepeatRespected() local
172 List<String> outputDescriptions = output.stream().map(r -> in testProfileRepeatRespected()
186 List<Runner> output = getProfile(getArguments(CONFIG_WITH_REPEATED_TIMESTAMPED_JOURNEY_KEY)) in testTimestampedProfileWithRepeatThrows() local
201 List<Runner> output = in testProfileWithInvalidScenarioThrows() local
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DProcLoadHelper.java104 String output = getDevice().executeShellCommand(LOAD_CMD); in getProcLoadInLastMinute() local
105 Log.i(LOG_TAG, String.format("Output of proc_loadavg is : %s", output)); in getProcLoadInLastMinute()
111 if ((match = matches(LOAD_OUTPUT_PATTERN, output.trim())) != null) { in getProcLoadInLastMinute()
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/
DPwrStatsUtilHelper.java61 String output; in startCollecting() local
63 output = executeShellCommand("pwrstats_util -d " + mLogFile.getAbsolutePath()); in startCollecting()
68 Matcher m = pid_pattern.matcher(output); in startCollecting()
/platform_testing/libraries/collectors-helper/generic/src/com/android/helpers/
DGenericExecutableCollectorHelper.java136 String output = executeShellCommand(executable.toString()); in execAndGetResults() local
137 if (output.length() <= 0) { in execAndGetResults()
140 String[] lines = output.split(System.lineSeparator()); in execAndGetResults()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DHeapDumpHelper.java148 String output = ""; in getPid() local
150 output = mUiDevice.executeShellCommand(String.format(PIDOF_CMD, processName)); in getPid()
151 Log.i(TAG, String.format("The PID of %s is %s.", processName, output)); in getPid()
155 return output; in getPid()
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturer.java216 for (OutputStream output : mOutputs) { in run()
223 output.write(mAudioBuffer, 0, read); in run()
231 BUFFER_SIZE, output), in run()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DThermalHelper.java72 String[] output = getDevice().executeShellCommand(DUMP_THERMALSERVICE_CMD).split("\n"); in startCollecting() local
73 for (String line : output) { in startCollecting()
133 String output = getDevice().executeShellCommand(DUMP_THERMALSERVICE_CMD); in updateTemperatureMetrics() local
134 String[] lines = output.split("\n"); in updateTemperatureMetrics()

12