Home
last modified time | relevance | path

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

123

/test/vts/utils/python/coverage/
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 …]
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 …]
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/catbox/report/src/com/android/catbox/util/
DTestMetricsUtil.java43 import java.util.stream.Collectors;
128 List<Measurements> measures = metrics.stream().map(Metric::getMeasurements) in getAggregatedStoredTestMetrics()
131 List<String> rawValues = measures.stream() in getAggregatedStoredTestMetrics()
143 .flatMap(Collection::stream) in getAggregatedStoredTestMetrics()
182 .stream() in isAllDoubleValues()
200 double sum = values.stream().mapToDouble(Double::doubleValue).sum();
203 double mean = values.stream()
207 double variance = values.stream().reduce(0.0, (a, b) -> a + Math.pow(b - mean, 2) / count);
225 .stream()
245 List<Double> doubleValues = values.stream().map(Double::parseDouble)
/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()
DDeviceInfoEntity.java34 import java.util.stream.Collectors;
157 .stream() in getAllBranches()
169 .stream() in getAllBranches()
188 .stream() in getAllBuildFlavors()
200 .stream() in getAllBuildFlavors()
DBranchEntity.java30 import java.util.stream.Collectors;
66 .stream() in getByBranch()
85 .stream() in getByBranch()
DBuildTargetEntity.java30 import java.util.stream.Collectors;
71 .stream() in getByBuildTarget()
91 .stream() in getByBuildTarget()
/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()
DShowGreenReleaseServlet.java52 import java.util.stream.Collectors;
310 .stream() in getTestPlanDispatcher()
327 .stream() in getTestPlanDispatcher()
347 .stream() in getTestPlanDispatcher()
385 .stream() in getTestPlanDispatcher()
465 .stream() in getTestSuiteDispatcher()
DShowProfilingListServlet.java33 import java.util.stream.Collectors;
60 .filter(TestEntity.HAS_PROFILING_DATA, true).list().stream() in doGetHandler()
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DAcceleratorSpecificTestSupport.java39 import java.util.stream.Collectors;
86 accelerators.addAll(NNTestBase.availableAcceleratorNames().stream().filter( in getTargetAcceleratorNames()
97 return testConfig.stream() in perAcceleratorTestConfig()
98 .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()
DDatastoreRestServlet.java50 import java.util.stream.Collectors;
303 .stream() in insertTestReport()
309 .stream() in insertTestReport()
395 .stream() in insertTestReport()
516 .stream() in insertTestPlanReport()
522 .stream() in insertTestPlanReport()
/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DNNInferenceStressTest.java32 import java.util.stream.Collectors;
52 return TestModels.modelsList().stream() in modelsList()
DNNModelLoadingStressTest.java26 import java.util.stream.Collectors;
51 return TestModels.modelsList().stream() in modelsList()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/testtype/
DAppLaunchTest.java304 InputStreamSource stream = null; in postLogcat() local
316 stream = new ByteArrayInputStreamSource(baos.toByteArray()); in postLogcat()
321 stream = logcatData; in postLogcat()
323 listener.testLog("logcat_" + result.packageName, LogDataType.LOGCAT, stream); in postLogcat()
325 StreamUtil.cancel(stream); in postLogcat()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DPerformanceDegradationTest.java43 import java.util.stream.Stream;
183 Future<?>[] compilerFutures = Arrays.stream(compilers).map(testExecutor::submit).toArray( in testDegradationForModels()
188 Arrays.stream(compilers).forEach(ModelCompiler::stop); in testDegradationForModels()
189 Arrays.stream(compilerFutures).forEach(future -> { in testDegradationForModels()

123