Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 66) sorted by relevance

123

/test/vts/utils/python/coverage/
Dparser_test.py49 def concat_int(cls, stream, integer): argument
60 new_content = stream.content + struct.pack(stream.format + 'I',
62 s = MockStream(stream.magic, stream.format)
64 s.cursor = stream.cursor
68 def concat_int64(cls, stream, integer): argument
81 new_content = stream.content + struct.pack(stream.format + 'II', lo,
83 s = MockStream(stream.magic, stream.format)
85 s.cursor = stream.cursor
89 def concat_string(cls, stream, string): argument
108 new_content = stream.content + struct.pack(
[all …]
Dgcno_parser_test.py42 self.stream = MockStream()
51 self.stream = MockStream.concat_int(self.stream, ident)
52 self.stream = MockStream.concat_int(self.stream, 0)
53 self.stream = MockStream.concat_int(self.stream, 0)
57 self.stream = MockStream.concat_string(self.stream, name)
58 self.stream = MockStream.concat_string(self.stream, src_file_name)
59 self.stream = MockStream.concat_int(self.stream, first_line_number)
60 parser = gcno_parser.GCNOParser(self.stream)
75 self.stream = MockStream.concat_int(self.stream, 3 * i)
76 parser = gcno_parser.GCNOParser(self.stream)
[all …]
Dsancov_parser_test.py46 stream = io.BytesIO(struct.pack('L', 0xC0BFFFFFFFFFFF10))
47 p = sancov_parser.SancovParser(stream)
55 stream = io.BytesIO(struct.pack('L', sancov_parser.MAGIC32))
56 stream.seek(8)
58 stream.write(struct.pack('III', *values))
59 stream.seek(0)
60 p = sancov_parser.SancovParser(stream)
68 stream = io.BytesIO(struct.pack('L', sancov_parser.MAGIC64))
69 stream.seek(8)
71 stream.write(struct.pack('LLL', *values))
[all …]
Dgcda_parser_test.py39 self.stream = MockStream(gcda_parser.GCDAParser.MAGIC)
49 self.stream = MockStream.concat_int(self.stream, ident)
50 self.stream = MockStream.concat_int(self.stream, 0)
51 self.stream = MockStream.concat_int(self.stream, 0)
52 self.stream = MockStream.concat_string(self.stream, 'test')
54 parser = gcda_parser.GCDAParser(self.stream)
74 self.stream = MockStream.concat_int64(self.stream, i)
75 parser = gcda_parser.GCDAParser(self.stream)
109 self.stream = MockStream.concat_int64(self.stream, i)
111 parser = gcda_parser.GCDAParser(self.stream)
Dparser.py43 def __init__(self, stream, magic): argument
53 self.stream = stream
58 struct.unpack(self.format + 'ssss', self.stream.read(4)))
78 return struct.unpack(self.format + 'I', self.stream.read(4))[0]
112 struct.unpack(self.format + 's' * length, self.stream.read(
Dgcda_parser.py52 def __init__(self, stream): argument
62 super(GCDAParser, self).__init__(stream, self.MAGIC)
183 with open(file_name, 'rb') as stream:
184 return GCDAParser(stream).Parse(file_summary)
Dgcno_parser.py63 def __init__(self, stream): argument
72 super(GCNOParser, self).__init__(stream, self.MAGIC)
235 with open(file_name, 'rb') as stream:
236 return GCNOParser(stream).Parse()
Dsancov_parser.py102 with open(file_name, 'rb') as stream:
103 p = SancovParser(stream)
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DDynamicConfigHandlerTest.java127 FileOutputStream stream = null; in createFileFromStr() local
129 stream = new FileOutputStream(file); in createFileFromStr()
130 stream.write(configStr.getBytes()); in createFileFromStr()
131 stream.flush(); in createFileFromStr()
133 StreamUtil.close(stream); in createFileFromStr()
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DDynamicConfigTest.java119 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()
DBusinessLogicTest.java246 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()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DBusinessLogicPreparerTest.java272 FileOutputStream stream = new FileOutputStream(file); in createTestDeviceInfoJSONFile() local
273 stream.write(jsonStr.getBytes()); in createTestDeviceInfoJSONFile()
274 stream.flush(); in createTestDeviceInfoJSONFile()
275 stream.close(); in createTestDeviceInfoJSONFile()
287 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr() local
288 stream.write(configStr.getBytes()); in createFileFromStr()
289 stream.flush(); in createFileFromStr()
290 stream.close(); in createFileFromStr()
/test/vti/dashboard/src/main/java/com/android/vts/entity/
DDashboardEntity.java25 import java.util.stream.Collectors;
45 .stream() in saveAll()
49 .flatMap(m -> m.entrySet().stream()) in saveAll()
DTestCoverageStatusEntity.java33 import java.util.stream.Collectors;
112 testCoverageStatusEntityList.stream() in getTestCoverageStatusMap()
121 .stream() in getDeviceInfoEntityKeyList()
157 .stream() in getBranchSet()
174 .stream() in getDeviceSet()
DBuildTargetEntity.java30 import java.util.stream.Collectors;
71 .stream() in getByBuildTarget()
91 .stream() in getByBuildTarget()
DBranchEntity.java30 import java.util.stream.Collectors;
66 .stream() in getByBranch()
85 .stream() in getByBranch()
DDeviceInfoEntity.java34 import java.util.stream.Collectors;
157 .stream() in getAllBranches()
169 .stream() in getAllBranches()
188 .stream() in getAllBuildFlavors()
200 .stream() in getAllBuildFlavors()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationSuiteResultReporter.java69 import javax.xml.transform.stream.StreamResult;
70 import javax.xml.transform.stream.StreamSource;
204 public void testLog(String name, LogDataType type, InputStreamSource stream) { in testLog() argument
207 testLogDeviceInfo(name, stream); in testLog()
213 info, new SnapshotInputStreamSource(name, stream.createInputStream())); in testLog()
219 try (InputStream inputStream = stream.createInputStream()) { in testLog()
223 try (InputStream inputStream = stream.createInputStream()) { in testLog()
235 private void testLogDeviceInfo(String name, InputStreamSource stream) { in testLogDeviceInfo() argument
242 FileUtil.writeToFile(stream.createInputStream(), ediFile); in testLogDeviceInfo()
651 try (InputStream stream = source.createInputStream()) { in logReportFiles() argument
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowCoverageOverviewServlet.java64 import java.util.stream.Collectors;
65 import java.util.stream.Stream;
153 return testCoverageStatusEntityList.stream() in getTestRunEntityKeyList()
203 Arrays.stream(VtsReportMessage.TestCaseResult.values()) in getCoverageDispatcher()
229 deviceInfoEntityMap.stream().filter(isBranchAndDevice(branch, device)); in getCoverageDispatcher()
232 deviceInfoEntityStream = deviceInfoEntityMap.stream().filter(isBranch(branch)); in getCoverageDispatcher()
235 deviceInfoEntityStream = deviceInfoEntityMap.stream().filter(isDevice(device)); in getCoverageDispatcher()
391 .stream() in getCoverageDataTable()
403 entityList.stream().mapToLong(val -> val.getCoveredLineCount()).sum(); in getCoverageDataTable()
405 entityList.stream().mapToLong(val -> val.getTotalLineCount()).sum(); in getCoverageDataTable()
DShowReleaseServlet.java38 import java.util.stream.Collectors;
85 List<String> plans = testPlanEntityList.stream() in getTestPlanDispatcher()
103 .stream() in getTestSuiteDispatcher()
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DAcceleratorSpecificTestSupport.java38 import java.util.stream.Collectors;
85 accelerators.addAll(NNTestBase.availableAcceleratorNames().stream().filter( in getTargetAcceleratorNames()
96 return testConfig.stream() in perAcceleratorTestConfig()
97 .flatMap(currConfigurationParams -> getTargetAcceleratorNames().stream().map( in perAcceleratorTestConfig()
/test/vti/dashboard/src/main/java/com/android/vts/api/
DCoverageRestServlet.java119 long totalHalApiNum = allHalApiList.stream().flatMap(Collection::stream).distinct().count(); in postCoverageDataSum()
121 allCoveredHalApiList.stream().flatMap(Collection::stream).distinct().count(); in postCoverageDataSum()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DModuleListener.java179 public void testLog(String name, LogDataType type, InputStreamSource stream) { in testLog() argument
180 CLog.d("ModuleListener.testLog(%s, %s, %s)", name, type.toString(), stream.toString()); in testLog()
181 mListener.testLog(name, type, stream); in testLog()
/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DNNInferenceStressTest.java25 import java.util.stream.Collectors;
48 return TestModels.modelsList().stream() in modelsList()
DNNModelLoadingStressTest.java26 import java.util.stream.Collectors;
51 return TestModels.modelsList().stream() in modelsList()

123