Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTest.java251 InputStream inputStream = null; in processTestResults() local
253 inputStream = new FileInputStream(yamlSummaryFile); in processTestResults()
254 processYamlTestResults(inputStream, parser); in processTestResults()
259 StreamUtil.close(inputStream); in processTestResults()
264 protected void processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser) { in processYamlTestResults() argument
266 parser.parse(inputStream); in processYamlTestResults()
276 InputStream inputStream = null; in updateConfigFile() local
281 inputStream = new FileInputStream(mConfigFile); in updateConfigFile()
283 updateConfigFile(inputStream, fileWriter, getDevice().getSerialNumber()); in updateConfigFile()
289 StreamUtil.close(inputStream); in updateConfigFile()
DMoblyYamlResultParser.java55 public void parse(InputStream inputStream) in parse() argument
58 for (Object doc : yaml.loadAll(inputStream)) { in parse()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java325 InputStream inputStream = null; in writeToStream() local
327 inputStream = new BufferedInputStream(new FileInputStream(file)); in writeToStream()
328 StreamUtil.copyStreams(inputStream, out); in writeToStream()
330 StreamUtil.close(inputStream); in writeToStream()
598 try (FileInputStream inputStream = new FileInputStream(zipFile); in unzipRawZip() argument
602 while (inputStream.read(data) > 0) { in unzipRawZip()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extras/
DStreamAdapter.kt26 class InputStreamAdapter(val inputStream: InputStream, constant in trebuchet.extras.InputStreamAdapter
30 : this(file.inputStream(), file.length(), progressCallback)
38 val read = inputStream.read(buffer) in next()
50 inputStream.close() in close()
/tools/tradefederation/core/src/com/android/tradefed/result/
DXmlResultReporter.java100 InputStream inputStream = null; in generateSummary() local
113 inputStream = new ByteArrayInputStream(outputStream.toByteArray()); in generateSummary()
115 inputStream); in generateSummary()
125 StreamUtil.close(inputStream); in generateSummary()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTarUtil.java221 InputStreamSource inputStream = null; in extractAndLog() local
223 inputStream = new FileInputStreamSource(targzFile); in extractAndLog()
224 listener.testLog(baseName, LogDataType.TAR_GZ, inputStream); in extractAndLog()
226 StreamUtil.cancel(inputStream); in extractAndLog()
/tools/tradefederation/core/clearcut_client/com/android/tradefed/clearcut/
DClearcutClient.java261 InputStream inputStream = null; in sendToClearcut() local
274 inputStream = connection.getInputStream(); in sendToClearcut()
275 LogResponse response = LogResponse.parseFrom(inputStream); in sendToClearcut()
286 StreamUtil.close(inputStream); in sendToClearcut()
/tools/tradefederation/core/common_util/com/android/tradefed/util/net/
DHttpHelper.java361 InputStream inputStream = null; in run() local
372 inputStream = getConnectionInputStream(conn); in run()
377 while ((bytesRead = inputStream.read(bufResult, currBufPos, in run()
400 StreamUtil.close(inputStream); in run()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/io/
DStringStreamTest.kt70 val inputStream = file.inputStream() in readFile() constant
74 val read = inputStream.read(buffer) in readFile()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/task/
DImportTaskTest.kt88 val inputStream = file.inputStream() in <lambda>() constant
92 val read = inputStream.read(buffer) in <lambda>()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/testtype/
DGameQualificationHostsideController.java313 try(InputStream inputStream = ApkInfo.class.getResourceAsStream(resource)) { in initApkList() argument
314 if (inputStream == null) { in initApkList()
319 ByteStreams.copy(inputStream, ostream); in initApkList()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java156 InputStream inputStream = in testDownloadFile_streamOutput() local
158 String content = StreamUtil.getStringFromStream(inputStream); in testDownloadFile_streamOutput()
160 inputStream.reset(); in testDownloadFile_streamOutput()
DZipUtil2Test.java123 final InputStream inputStream = in getTestDataFile() local
126 FileUtil.writeToFile(inputStream, zipFile); in getTestDataFile()
DRemoteZipTest.java53 final InputStream inputStream = in saveTestDataFile() local
55 FileUtil.writeToFile(inputStream, destFile, false, startOffset, size); in saveTestDataFile()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DXml.kt59 val inputStream = InputSource(xml) in parseDocument() constant
74 return builder.parse(inputStream) in parseDocument()
/tools/tradefederation/core/src/com/android/tradefed/log/
DFileLogger.java112 void dumpToLog(InputStream inputStream) throws IOException { in dumpToLog() argument
114 StreamUtil.copyStreams(inputStream, mOutputStream); in dumpToLog()
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java89 public GameCoreConfiguration parse(InputStream inputStream) in parse() argument
93 Document doc = db.parse(inputStream); in parse()
/tools/loganalysis/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java168 try (InputStream inputStream = logcatData.createInputStream(); in parse() argument
169 InputStreamReader logcatReader = new InputStreamReader(inputStream); in parse()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DDelegatedInvocationExecution.java226 try (FileInputStreamSource inputStream = new FileInputStreamSource(fileToExport, true)) { in logAndCleanFile() argument
227 listener.testLog(fileToExport.getName(), type, inputStream); in logAndCleanFile() local
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java206 try (InputStream inputStream = logcatData.createInputStream(); in parse() argument
207 InputStreamReader logcatReader = new InputStreamReader(inputStream); in parse()
DPerfettoPullerMetricCollector.java402 InputStream inputStream = largeStreamSrc.createInputStream()) { in retrieveFile()
409 while ((bytesRead = inputStream.read(buffer)) > -1) { in retrieveFile()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/
DPerformanceTest.java252 try (InputStream inputStream = new FileInputStream(resultFile)) { in retrieveResultData() argument
253 return ResultDataProto.Result.parseFrom(inputStream); in retrieveResultData()
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DTimingsLogParserTest.java350 InputStream inputStream = new ByteArrayInputStream(input.getBytes()); in createBufferedReader() local
351 InputStreamReader reader = new InputStreamReader(inputStream); in createBufferedReader()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTestTest.java294 InputStream inputStream = new ByteArrayInputStream(configString.getBytes()); in testUpdateConfigFile() local
296 mSpyTest.updateConfigFile(inputStream, writer, DEVICE_SERIAL); in testUpdateConfigFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java457 try (FileInputStreamSource inputStream = new FileInputStreamSource(fileToExport)) { in logAndCleanFile() argument
458 listener.testLog(fileToExport.getName(), LogDataType.TEXT, inputStream); in logAndCleanFile() local

12