Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 87) sorted by relevance

1234

/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DCaptureChunkStreamObserverOutputStreamTests.java83 OutputStream stream = in write_writesAsExpected_singleByte() local
87 stream.write(byteToWrite); in write_writesAsExpected_singleByte()
106 OutputStream stream = in write_throwsIllegalStateException_singleByte_afterClose() local
109 stream.close(); in write_throwsIllegalStateException_singleByte_afterClose()
111 stream.write(/* b= */ 42); in write_throwsIllegalStateException_singleByte_afterClose()
119 OutputStream stream = in write_writesAsExpected_multipleBytes() local
125 stream.write(bytes); in write_writesAsExpected_multipleBytes()
145 OutputStream stream = in write_throwsIllegalStateException_multipleBytes_afterClose() local
148 stream.close(); in write_throwsIllegalStateException_multipleBytes_afterClose()
150 stream.write(new byte[4]); in write_throwsIllegalStateException_multipleBytes_afterClose()
[all …]
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiAutomatorUtils.java60 final ByteArrayOutputStream stream = new ByteArrayOutputStream(); in dumpViewHierarchy() local
62 UiAutomatorUtils.getUiDevice().dumpWindowHierarchy(stream); in dumpViewHierarchy()
63 stream.flush(); in dumpViewHierarchy()
64 stream.close(); in dumpViewHierarchy()
65 for (String line : stream.toString().split("\\r?\\n")) { in dumpViewHierarchy()
/platform_testing/libraries/health/composers/host/src/android/host/test/composer/
DIterateBase.java22 import java.util.stream.Collectors;
54 .stream() in apply()
55 .flatMap(Collection::stream) in apply()
58 return input.stream() in apply()
60 .flatMap(Collection::stream) in apply()
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/
DIterateTestBase.java24 import java.util.stream.Collectors;
25 import java.util.stream.IntStream;
60 Map<Integer, Long> countMap = output.stream() in testIterationsRespected()
65 .stream() in testIterationsRespected()
83 boolean cyclesSameAsInput = cycles.stream().allMatch(SIMPLE_INPUT::equals); in testCyclicOrderRespected()
102 testRuns.stream().allMatch(l -> l.stream().distinct().count() == 1); in testSequentialOrderRespected()
105 testRuns.stream().map(l -> l.get(0)).collect(Collectors.toList())); in testSequentialOrderRespected()
124 output.stream() in testOverrideOptionName()
129 .stream() in testOverrideOptionName()
DShuffleTestBase.java23 import java.util.stream.Collectors;
24 import java.util.stream.IntStream;
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DDynamicConfigTest.java119 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr() local
120 stream.write(configStr.getBytes()); in createFileFromStr()
121 stream.flush(); in createFileFromStr()
122 stream.close(); in createFileFromStr()
DBusinessLogicTest.java246 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr() local
247 stream.write(blString.getBytes()); in createFileFromStr()
248 stream.flush(); in createFileFromStr()
249 stream.close(); in createFileFromStr()
/platform_testing/libraries/rdroidtest/macro/
Dlib.rs54 let mut stream = TokenStream2::new(); in rdroidtest() localVariable
55 stream.extend([invocation]); in rdroidtest()
56 stream.extend(item.into_token_stream()); in rdroidtest()
57 stream.into_token_stream().into() in rdroidtest()
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/
DDumpsysUtils.java25 import java.util.stream.Collectors;
65 : args.entrySet().stream() in getParsedDumpsys()
76 Arrays.stream(rawOutput.split("\n")) in getParsedDumpsys()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DFunctional.java40 import java.util.stream.Collectors;
41 import java.util.stream.Stream;
111 getChildren().stream()
158 artifactSaver(super.withBeforeClasses(s), getFilteredChildren().stream()));
167 artifactSaver(super.withAfterClasses(s), getFilteredChildren().stream()));
184 artifactSaver(parentStatement, getFilteredChildren().stream()));
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDex2oatPressureRule.java18 import static java.util.stream.Collectors.joining;
19 import static java.util.stream.Collectors.toSet;
87 if (!packagesToCompile.stream().allMatch(pkg -> installedPackages.contains(pkg))) { in starting()
93 .stream() in starting()
156 .stream() in getInstalledPackages()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/util/
DTombstoneUtils.java44 import java.util.stream.Collectors;
45 import java.util.stream.Stream;
96 pidCommandMap.keySet().stream() in withAssertNoSecurityCrashes()
113 if (tombstonesPath.getChildren(/* useCache */ false).stream() in withAssertNoSecurityCrashes()
147 excludeFiles.stream().collect(Collectors.toMap(IFileEntry::getName, f -> f));
149 tombstoneDirectory.getChildren(/* useCache */ false).stream()
162 deviceTombstoneFiles.stream()
219 return tombstones.stream()
296 if (!config.abortMessageIncludes.stream()
303 if (config.abortMessageExcludes.stream()
[all …]
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DProfile.java18 import static java.util.stream.Collectors.joining;
19 import static java.util.stream.Collectors.toList;
20 import static java.util.stream.Collectors.toMap;
155 input.stream() in getTestSequenceFromConfiguration()
164 nameToRunner.keySet().stream().collect(joining(", ")))); in getTestSequenceFromConfiguration()
167 .stream() in getTestSequenceFromConfiguration()
187 result.stream() in getTestSequenceFromConfiguration()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/exceptions/
DMappedMultiException.java23 import java.util.stream.Collectors;
65 .stream() in getMessage()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java190 BufferedReader stream = executeShellCommand("ps"); in getRunningAppProcesses() local
193 while ((line = stream.readLine()) != null) { in getRunningAppProcesses()
206 if (stream != null) { in getRunningAppProcesses()
207 stream.close(); in getRunningAppProcesses()
234 BufferedReader stream = new BufferedReader(new InputStreamReader( in executeShellCommand() local
236 return stream; in executeShellCommand()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/
DValidateWorkflowTaskConfig.java33 import java.util.stream.Collectors;
90 jsonObject.entrySet().stream() in validateProperties()
99 unknownProperties.stream().collect(Collectors.joining(", ")), in validateProperties()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DDumpsysUtils.java27 import java.util.stream.Collectors;
72 : args.entrySet().stream() in getParsedDumpsys()
79 Arrays.stream(rawOutput.split("\n")) in getParsedDumpsys()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DMaterialYouColorsSimulationUtils.kt19 import java.util.stream.IntStream
107 val stream = IntStream.range(0, originalBitmap.width * originalBitmap.height) in bitmapWithMaterialYouColorsSimulation() constant
108 stream in bitmapWithMaterialYouColorsSimulation()
/platform_testing/tests/automotive/health/boottime/src/android/boottime/postprocessor/
DBaseBootTimeTestLogPostProcessor.java36 import java.util.stream.Collectors;
87 entry.getValue().stream() in buildTfMetrics()
104 mFileRegex.stream().filter(regex -> entry.getKey().matches(regex)).findAny(); in filterFiles()
/platform_testing/libraries/collectors-helper/generic/src/com/android/helpers/
DGenericExecutableCollectorHelper.java33 import java.util.stream.Collectors;
34 import java.util.stream.Stream;
66 mExecutableFilePaths.stream() in setUp()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DBatteryUsageStatsHelper.java39 import java.util.stream.Collectors;
69 buckets.stream() in batteryUsageStatsFromBucket()
70 .flatMap(b -> Arrays.stream(b.atom)) in batteryUsageStatsFromBucket()
84 buckets.stream() in batteryUsageStatsFromBucket()
85 .flatMap(b -> Arrays.stream(b.atom)) in batteryUsageStatsFromBucket()
110 if (Arrays.stream(powerProfileOnlyAtom.componentModels) in batteryUsageStatsFromBucket()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DScreenshotsMetadataHandler.java52 OutputStream stream = new FileOutputStream(screenshotsMetadataFile); in writeResults() local
54 serializer.setOutput(stream, ENCODING); in writeResults()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java151 FileInputStream stream = new FileInputStream(processIdFile); in readStringFromFile() local
154 while (stream.read(buffer) != -1) { in readStringFromFile()
158 stream.close(); in readStringFromFile()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DUiInteractionFrameInfoListener.java31 import java.util.stream.Collectors;
72 Arrays.stream(annotation.value()) in getFilter()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DDevicelessDevMachineExportStrategy.kt122 path.outputStream().use { stream -> in <lambda>() method
123 this@writeTo.compress(Bitmap.CompressFormat.PNG, 0, stream) in <lambda>()

1234