/test/vts/utils/python/coverage/ |
D | gcno_parser_test.py | 42 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 …]
|
D | parser_test.py | 49 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 …]
|
D | sancov_parser_test.py | 46 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 …]
|
D | gcda_parser_test.py | 39 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)
|
D | parser.py | 43 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(
|
D | gcda_parser.py | 52 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)
|
D | gcno_parser.py | 63 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()
|
D | sancov_parser.py | 102 with open(file_name, 'rb') as stream: 103 p = SancovParser(stream)
|
/test/catbox/report/src/com/android/catbox/util/ |
D | TestMetricsUtil.java | 43 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/ |
D | DashboardEntity.java | 25 import java.util.stream.Collectors; 45 .stream() in saveAll() 49 .flatMap(m -> m.entrySet().stream()) in saveAll()
|
D | TestCoverageStatusEntity.java | 33 import java.util.stream.Collectors; 112 testCoverageStatusEntityList.stream() in getTestCoverageStatusMap() 121 .stream() in getDeviceInfoEntityKeyList() 157 .stream() in getBranchSet() 174 .stream() in getDeviceSet()
|
D | DeviceInfoEntity.java | 34 import java.util.stream.Collectors; 157 .stream() in getAllBranches() 169 .stream() in getAllBranches() 188 .stream() in getAllBuildFlavors() 200 .stream() in getAllBuildFlavors()
|
D | BranchEntity.java | 30 import java.util.stream.Collectors; 66 .stream() in getByBranch() 85 .stream() in getByBranch()
|
D | BuildTargetEntity.java | 30 import java.util.stream.Collectors; 71 .stream() in getByBuildTarget() 91 .stream() in getByBuildTarget()
|
/test/vti/dashboard/src/main/java/com/android/vts/servlet/ |
D | ShowCoverageOverviewServlet.java | 64 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()
|
D | ShowReleaseServlet.java | 38 import java.util.stream.Collectors; 85 List<String> plans = testPlanEntityList.stream() in getTestPlanDispatcher() 103 .stream() in getTestSuiteDispatcher()
|
D | ShowGreenReleaseServlet.java | 52 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()
|
D | ShowProfilingListServlet.java | 33 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/ |
D | AcceleratorSpecificTestSupport.java | 39 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/ |
D | CoverageRestServlet.java | 119 long totalHalApiNum = allHalApiList.stream().flatMap(Collection::stream).distinct().count(); in postCoverageDataSum() 121 allCoveredHalApiList.stream().flatMap(Collection::stream).distinct().count(); in postCoverageDataSum()
|
D | DatastoreRestServlet.java | 50 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/ |
D | NNInferenceStressTest.java | 32 import java.util.stream.Collectors; 52 return TestModels.modelsList().stream() in modelsList()
|
D | NNModelLoadingStressTest.java | 26 import java.util.stream.Collectors; 51 return TestModels.modelsList().stream() in modelsList()
|
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/testtype/ |
D | AppLaunchTest.java | 304 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/ |
D | PerformanceDegradationTest.java | 43 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()
|