/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/ |
D | CaptureChunkStreamObserverOutputStreamTests.java | 83 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/ |
D | UiAutomatorUtils.java | 60 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/ |
D | IterateBase.java | 22 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/ |
D | IterateTestBase.java | 24 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()
|
D | ShuffleTestBase.java | 23 import java.util.stream.Collectors; 24 import java.util.stream.IntStream;
|
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | DynamicConfigTest.java | 119 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()
|
D | BusinessLogicTest.java | 246 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/ |
D | lib.rs | 54 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/ |
D | DumpsysUtils.java | 25 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/ |
D | Functional.java | 40 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/ |
D | Dex2oatPressureRule.java | 18 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/ |
D | TombstoneUtils.java | 44 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/ |
D | Profile.java | 18 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/ |
D | MappedMultiException.java | 23 import java.util.stream.Collectors; 65 .stream() in getMessage()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | ProcessStatusTracker.java | 190 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/ |
D | ValidateWorkflowTaskConfig.java | 33 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/ |
D | DumpsysUtils.java | 27 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/ |
D | MaterialYouColorsSimulationUtils.kt | 19 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/ |
D | BaseBootTimeTestLogPostProcessor.java | 36 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/ |
D | GenericExecutableCollectorHelper.java | 33 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/ |
D | BatteryUsageStatsHelper.java | 39 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/ |
D | ScreenshotsMetadataHandler.java | 52 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/ |
D | MetricUtility.java | 151 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/ |
D | UiInteractionFrameInfoListener.java | 31 import java.util.stream.Collectors; 72 Arrays.stream(annotation.value()) in getFilter()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/ |
D | DevicelessDevMachineExportStrategy.kt | 122 path.outputStream().use { stream -> in <lambda>() method 123 this@writeTo.compress(Bitmap.CompressFormat.PNG, 0, stream) in <lambda>()
|