/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | ZipUtil.java | 134 InputStream inputStream = null; in writeToStream() local 136 inputStream = new BufferedInputStream(new FileInputStream(file)); in writeToStream() 137 StreamUtil.copyStreams(inputStream, out); in writeToStream() 139 inputStream.close(); in writeToStream()
|
D | StreamUtil.java | 56 public static String readInputStream(InputStream inputStream) throws IOException { in readInputStream() argument 60 while ((length = inputStream.read(buffer)) != -1) { in readInputStream()
|
D | BackupUtils.java | 74 InputStream inputStream = executeShellCommand(command); in getShellCommandOutput() local 75 String result = StreamUtil.readInputStream(inputStream); in getShellCommandOutput() 76 Closeables.closeQuietly(inputStream); in getShellCommandOutput() 325 private String getLineString(InputStream inputStream) throws IOException { in getLineString() argument 327 new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8)); in getLineString() 337 private String getAllLinesString(InputStream inputStream) { in getAllLinesString() argument 339 new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8)); in getAllLinesString()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/ |
D | Utils.kt | 52 ParcelFileDescriptor.AutoCloseInputStream(fileDescriptor).use { inputStream -> in executeShellCommand() method 53 return inputStream.readBytes() in executeShellCommand() 76 ParcelFileDescriptor.AutoCloseInputStream(source).use { inputStream -> in doBinderDump() method 77 return inputStream.readBytes() in doBinderDump()
|
/platform_testing/libraries/flicker/collector/src/android/tools/collectors/ |
D | DefaultUITraceListener.java | 74 try (InputStream inputStream = context.getAssets().open(DEFAULT_TEXT_CONFIG_FILE)) { in readDefaultConfig() argument 76 return new String(inputStream.readAllBytes()); in readDefaultConfig()
|
/platform_testing/libraries/power-helper/src/com/android/helper/ |
D | PowerTestHelper.java | 113 FileInputStream inputStream = new FileInputStream(mParams.getString(PARAM_CONFIG, in getProperty() local 115 prop.load(inputStream); in getProperty() 117 inputStream.close(); in getProperty()
|
/platform_testing/libraries/collectors-helper/adservices/src/com/android/helpers/ |
D | SelectAdsLatencyHelper.java | 53 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument 54 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
|
D | MeasurementLatencyHelper.java | 53 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument 54 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
|
D | TopicsLatencyHelper.java | 60 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument 61 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
|
D | JSScriptEngineLatencyHelper.java | 66 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument 67 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
|
D | LatencyHelper.java | 93 Map<String, Long> processInput(InputStream inputStream) throws IOException; in processInput() argument
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/view/ |
D | ViewTraceMonitor.kt | 67 zipFile.getInputStream(entry).use { inputStream -> in <lambda>() method 69 unzippedFile.writeBytes(inputStream.readAllBytes()) in <lambda>()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | InputDeviceRule.kt | 58 private lateinit var inputStream: ParcelFileDescriptor.AutoCloseInputStream in <lambda>() variable 84 inputStream = ParcelFileDescriptor.AutoCloseInputStream(stdOut) in <lambda>() 94 inputStream.close() in <lambda>() 213 val reader = JsonReader(InputStreamReader(inputStream, Charsets.UTF_8)) in <lambda>()
|
D | ScreenRecordRule.kt | 236 AutoCloseInputStream(this).use { inputStream -> in <lambda>() method 237 inputStream.bufferedReader().use { it.readText() } in <lambda>()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
D | LayoutPullParser.java | 73 private LayoutPullParser(@NonNull InputStream inputStream) { in LayoutPullParser() argument 76 setInput(inputStream, null); in LayoutPullParser()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/ |
D | Utils.kt | 178 val inputStream = context.resources.assets.open("testdata/$relativePath") in readAsset() constant 179 return ByteStreams.toByteArray(inputStream) in readAsset() 188 context.assets.open("testdata/$relativePath").use { inputStream -> in readAssetAsFile() method 189 inputStream.copyTo(cache) in readAssetAsFile()
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ghidra/ |
D | GhidraFunctionOffsets.java | 95 ObjectInputStream inputStream = in getFunctionOffsets() 99 callingClass, (List<BigInteger>) inputStream.readObject()); in getFunctionOffsets()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/ |
D | ArtifactBuilder.kt | 112 val inputStream = BufferedInputStream(fi, BUFFER_SIZE) in <lambda>() constant 113 inputStream.use { in <lambda>()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ |
D | CommonUtils.java | 297 FileInputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream( in executeShellCommandWithDetailedOutput() local 300 while ((bytesRead = inputStream.read(buf)) != -1) { in executeShellCommandWithDetailedOutput() 303 inputStream.close(); in executeShellCommandWithDetailedOutput()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/ |
D | ScreenRecordingRunnable.kt | 232 val inputStream = FileOutputStream(outputFile) in createMuxer() constant 233 return MediaMuxer(inputStream.fd, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4) in createMuxer()
|
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/ |
D | AppLaunchTests.java | 338 InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(pfDescriptor); in writeDataToByteStream() local 342 while ((length = inputStream.read(buffer)) >= 0) { in writeDataToByteStream() 346 inputStream.close(); in writeDataToByteStream()
|
/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/grpc/ |
D | GrpcAudioCaptureStream.java | 80 PipedInputStream inputStream, in GrpcAudioCaptureStream() argument 83 mInputStream = inputStream; in GrpcAudioCaptureStream()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | FreeMemHelper.java | 188 InputStream inputStream = new ByteArrayInputStream(dumpsysMemInfoBytes); in getCachedProcesses() local 190 try (BufferedReader bfReader = new BufferedReader(new InputStreamReader(inputStream))) { in getCachedProcesses()
|
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/ |
D | AppTransitionTests.java | 507 InputStream inputStream = new FileInputStream(parcelDesc.getFileDescriptor()); in parseLaunchTime() local 527 inputStream)); in parseLaunchTime() 555 inputStream.close(); in parseLaunchTime()
|
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/ |
D | PerfettoHelper.java | 172 try (ParcelFileDescriptor.AutoCloseInputStream inputStream = in startCollectingFromConfig() argument 174 startOutput = new String(inputStream.readAllBytes()); in startCollectingFromConfig()
|