Home
last modified time | relevance | path

Searched refs:protoFile (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/
DInstrumentationResultProtoParserTest.java652 File protoFile = File.createTempFile("tmp", ".pb"); in buildNoTestResultsProtoFile() local
653 sessionProto.writeTo(new FileOutputStream(protoFile)); in buildNoTestResultsProtoFile()
654 return protoFile; in buildNoTestResultsProtoFile()
667 File protoFile = File.createTempFile("tmp", ".pb"); in buildSingleTestMetricSuccessProtoFile() local
668 sessionProto.writeTo(new FileOutputStream(protoFile)); in buildSingleTestMetricSuccessProtoFile()
669 return protoFile; in buildSingleTestMetricSuccessProtoFile()
683 File protoFile = File.createTempFile("tmp", ".pb"); in buildRunMetricSuccessProtoFile() local
684 sessionProto.writeTo(new FileOutputStream(protoFile)); in buildRunMetricSuccessProtoFile()
685 return protoFile; in buildRunMetricSuccessProtoFile()
699 File protoFile = File.createTempFile("tmp", ".pb"); in buildTestAndRunMetricSuccessProtoFile() local
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/proto/
DTestRecordProtoUtilTest.java40 File protoFile = null; in testRead() local
42 protoFile = dumpTestRecord(); in testRead()
43 TestRecord record = TestRecordProtoUtil.readFromFile(protoFile); in testRead()
47 FileUtil.deleteFile(protoFile); in testRead()
55 File protoFile = FileUtil.createTempFile("test-proto", "." + LogDataType.PB.getFileExt()); in dumpTestRecord() local
57 try (OutputStream stream = new FileOutputStream(protoFile)) { in dumpTestRecord()
59 return protoFile; in dumpTestRecord()
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/
DInstrumentationResultProtoParser.java76 public void processProtoFile(File protoFile) throws IOException { in processProtoFile() argument
79 if (protoFile == null) { in processProtoFile()
83 if (protoFile.length() == 0) { in processProtoFile()
89 byte[] bytesArray = new byte[(int) protoFile.length()]; in processProtoFile()
90 FileInputStream fis = new FileInputStream(protoFile); in processProtoFile()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/util/proto/
DTestRecordProtoUtil.java44 public static TestRecord readFromFile(File protoFile) throws IOException { in readFromFile() argument
45 return readFromFile(protoFile, true); in readFromFile()
56 public static TestRecord readFromFile(File protoFile, boolean readDelimited) in readFromFile() argument
59 try (InputStream stream = new FileInputStream(protoFile)) { in readFromFile()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandbox.java448 File protoFile = in prepareContext() local
452 contextProto.writeDelimitedTo(new FileOutputStream(protoFile)); in prepareContext()
453 return protoFile; in prepareContext()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java177 public void processFileProto(File protoFile) throws IOException { in processFileProto() argument
180 record = TestRecordProtoUtil.readFromFile(protoFile); in processFileProto()
183 try (FileInputStreamSource protoFail = new FileInputStreamSource(protoFile, true)) { in processFileProto()