Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 26) sorted by relevance

12

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DZipUtil.java134 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()
DStreamUtil.java56 public static String readInputStream(InputStream inputStream) throws IOException { in readInputStream() argument
60 while ((length = inputStream.read(buffer)) != -1) { in readInputStream()
DBackupUtils.java74 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/
DUtils.kt52 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/
DDefaultUITraceListener.java74 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/
DPowerTestHelper.java113 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/
DSelectAdsLatencyHelper.java53 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument
54 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
DMeasurementLatencyHelper.java53 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument
54 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
DTopicsLatencyHelper.java60 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument
61 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
DJSScriptEngineLatencyHelper.java66 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() argument
67 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); in processInput()
DLatencyHelper.java93 Map<String, Long> processInput(InputStream inputStream) throws IOException; in processInput() argument
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/view/
DViewTraceMonitor.kt67 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/
DInputDeviceRule.kt58 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>()
DScreenRecordRule.kt236 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/
DLayoutPullParser.java73 private LayoutPullParser(@NonNull InputStream inputStream) { in LayoutPullParser() argument
76 setInput(inputStream, null); in LayoutPullParser()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DUtils.kt178 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/
DGhidraFunctionOffsets.java95 ObjectInputStream inputStream = in getFunctionOffsets()
99 callingClass, (List<BigInteger>) inputStream.readObject()); in getFunctionOffsets()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DArtifactBuilder.kt112 val inputStream = BufferedInputStream(fi, BUFFER_SIZE) in <lambda>() constant
113 inputStream.use { in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DCommonUtils.java297 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/
DScreenRecordingRunnable.kt232 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/
DAppLaunchTests.java338 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/
DGrpcAudioCaptureStream.java80 PipedInputStream inputStream, in GrpcAudioCaptureStream() argument
83 mInputStream = inputStream; in GrpcAudioCaptureStream()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DFreeMemHelper.java188 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/
DAppTransitionTests.java507 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/
DPerfettoHelper.java172 try (ParcelFileDescriptor.AutoCloseInputStream inputStream = in startCollectingFromConfig() argument
174 startOutput = new String(inputStream.readAllBytes()); in startCollectingFromConfig()

12