/tools/test/connectivity/acts/tests/google/wifi/aware/stress/ |
D | MessagesStressTest.py | 158 def analyze_results(self, results, messages_by_msg): argument 166 results["raw_data"] = messages_by_msg 167 results["tx_count_success"] = 0 168 results["tx_count_duplicate_success"] = 0 169 results["tx_count_fail"] = 0 170 results["tx_count_duplicate_fail"] = 0 171 results["tx_count_neither"] = 0 172 results["tx_count_tx_ok_but_no_rx"] = 0 173 results["rx_count"] = 0 174 results["rx_count_duplicate"] = 0 [all …]
|
D | DataPathStressTest.py | 209 results = {} 210 results['ndp_init_setup_success'] = ndp_init_setup_success 211 results['ndp_init_setup_failures'] = ndp_init_setup_failures 212 results['ndp_resp_setup_success'] = ndp_resp_setup_success 213 results['ndp_resp_setup_failures'] = ndp_resp_setup_failures 214 results['ndp_full_socket_success'] = ndp_full_socket_success 225 extras=results) 226 asserts.explicit_pass("test_oob_ndp_stress* done", extras=results)
|
D | DiscoveryStressTest.py | 105 results = {} 106 results['discovery_setup_success'] = discovery_setup_success 107 results['discovery_setup_fail'] = discovery_setup_fail 112 extras=results) 113 asserts.explicit_pass('test_discovery_stress done', extras=results)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | HprofAllocSiteParserTest.java | 70 Map<String, String> results = mParser.parse(f); in testParse() local 71 assertFalse(results.isEmpty()); in testParse() 72 assertEquals(15, results.size()); in testParse() 73 assertEquals("2294880", results.get("Rank8")); in testParse() 85 Map<String, String> results = mParser.parse(f); in testParse_invalidContent() local 86 assertTrue(results.isEmpty()); in testParse_invalidContent() 95 Map<String, String> results = mParser.parse(null); in testParse_noFile() local 96 assertNotNull(results); in testParse_noFile() 97 assertTrue(results.isEmpty()); in testParse_noFile() 103 Map<String, String> results = mParser.parse(new File("thisdoesnotexistsatall")); in testParse_fileDoesNotExists() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | CountingTestResultListener.java | 43 int[] results = new int[TestStatus.values().length]; in getResultCounts() local 46 results[status.ordinal()]++; in getResultCounts() 48 return results; in getResultCounts() 61 int[] results = getResultCounts(); in hasFailedTests() local 62 return results[TestStatus.INCOMPLETE.ordinal()] > 0 in hasFailedTests() 63 || results[TestStatus.ASSUMPTION_FAILURE.ordinal()] > 0 in hasFailedTests() 64 || results[TestStatus.FAILURE.ordinal()] > 0; in hasFailedTests()
|
D | CollectingTestListener.java | 203 List<TestRunResult> results = mTestRunResultMap.get(name); in testRunStarted() local 206 if (attemptNumber < results.size()) { in testRunStarted() 207 if (results.get(attemptNumber) == null) { in testRunStarted() 211 } else if (attemptNumber == results.size()) { in testRunStarted() 214 results.add(result); in testRunStarted() 216 int size = results.size(); in testRunStarted() 227 results.add(result); in testRunStarted() 231 results.add(newResult); in testRunStarted() 233 mCurrentTestRunResult = results.get(attemptNumber); in testRunStarted() 445 for (Entry<String, List<TestRunResult>> results : mTestRunResultMap.entrySet()) { in computeMergedResults() [all …]
|
D | ConsoleResultReporter.java | 126 int[] results = mResultCountListener.getResultCounts(); in invocationEnded() local 132 sb.append(results[TestStatus.PASSED.ordinal()]); in invocationEnded() 134 if (results[TestStatus.FAILURE.ordinal()] > 0) { in invocationEnded() 136 sb.append(results[TestStatus.FAILURE.ordinal()]); in invocationEnded() 139 if (results[TestStatus.IGNORED.ordinal()] > 0) { in invocationEnded() 141 sb.append(results[TestStatus.IGNORED.ordinal()]); in invocationEnded() 144 if (results[TestStatus.ASSUMPTION_FAILURE.ordinal()] > 0) { in invocationEnded() 146 sb.append(results[TestStatus.ASSUMPTION_FAILURE.ordinal()]); in invocationEnded() 149 if (results[TestStatus.INCOMPLETE.ordinal()] > 0) { in invocationEnded() 151 sb.append(results[TestStatus.INCOMPLETE.ordinal()]); in invocationEnded()
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_test_runner_test.py | 76 results = tr.results.summary_dict() 77 self.assertEqual(results['Requested'], 2) 78 self.assertEqual(results['Executed'], 2) 79 self.assertEqual(results['Passed'], 2) 125 results = tr.results.summary_dict() 126 self.assertEqual(results['Requested'], 2) 127 self.assertEqual(results['Executed'], 2) 128 self.assertEqual(results['Passed'], 2)
|
D | acts_base_class_test.py | 75 actual_record = bt_cls.results.passed[0] 95 actual_record = bt_cls.results.passed[0] 146 passed_names = [p.test_name for p in bt_cls.results.passed] 166 actual_record = bt_cls.results.passed[0] 177 self.assertFalse(bt_cls.results.executed) 178 self.assertTrue(bt_cls.results.skipped) 196 actual_record = bt_cls.results.error[0] 206 self.assertEqual(bt_cls.results.summary_dict(), expected_summary) 220 actual_record = bt_cls.results.error[0] 232 self.assertEqual(bt_cls.results.summary_dict(), expected_summary) [all …]
|
D | audio_analysis_integrationtest.py | 83 results = [] 88 results.append((mid, array[int(mid)])) 91 return sorted(results, key=lambda x: x[1], reverse=True) 121 results = audio_analysis.spectral_analysis(y, rate) 127 logging.debug('Results: %s', results) 128 self.assertTrue(abs(results[0][0] - freq_1) < 1) 129 self.assertTrue(abs(results[1][0] - freq_2) < 1) 131 abs(results[0][1] / results[1][1] - coeff_1 / coeff_2) < 0.01) 159 results = audio_analysis.spectral_analysis(noise, rate) 160 self.assertEqual([(0, 0)], results) [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 104 Map<String, String> results = resultParser.parse(contents); in testParseSimpleFile() local 113 assertEquals(expectedRes, results); in testParseSimpleFile() 165 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_twoTests() local 166 assertEquals(4, results.size()); in testParseSimpleFile_twoTests() 167 assertEquals("5", results.get("cpu_time").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 168 assertEquals("5", results.get("real_time").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 169 assertEquals("BM_one", results.get("name").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 170 assertEquals("109451958", results.get("iterations").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 240 Map<String, String> results = resultParser.parseJsonToMap(test); in testJsonParse() local 241 assertEquals(results.get("key1"), "value1"); in testJsonParse() [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/utils/ |
D | timer.py | 106 results = dict() 111 results[rec] = self.recorder[rec][1] - self.recorder[rec][0] 113 results[rec] = curr_time - self.recorder[rec][0] 114 if not results: # no valid record found 118 return results[record_ids[0]] 120 return results # multiple records, return a dict.
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | TemperatureCollectorTest.java | 77 HashMap<String, Metric> results = new HashMap<>(); in testCollector() local 78 data.addToMetrics(results); in testCollector() 79 assertEquals(32D, results.get("max_temperature").getMeasurements().getSingleDouble(), 0); in testCollector() 80 assertEquals(22D, results.get("min_temperature").getMeasurements().getSingleDouble(), 0); in testCollector() 96 HashMap<String, Metric> results = new HashMap<>(); in testCollectorNoData() local 97 data.addToMetrics(results); in testCollectorNoData() 98 assertTrue(results.isEmpty()); in testCollectorNoData()
|
D | ProcessMaxMemoryCollectorTest.java | 86 HashMap<String, Metric> results = new HashMap<>(); in testCollector() local 87 data.addToMetrics(results); in testCollector() 88 assertEquals(218228, results.get("MAX_PSS#system_server").getMeasurements().getSingleInt()); in testCollector() 89 assertEquals(53456, results.get("MAX_USS#system_server").getMeasurements().getSingleInt()); in testCollector() 104 HashMap<String, Metric> results = new HashMap<>(); in testCollectorNoProcess() local 105 data.addToMetrics(results); in testCollectorNoProcess() 106 assertTrue(results.isEmpty()); in testCollectorNoProcess()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/executor/ |
D | ParallelDeviceExecutorTest.java | 69 List<Boolean> results = mExecutor.invokeAll(callableTasks, 1, TimeUnit.SECONDS); in testSimpleExecution() local 70 assertEquals(2, results.size()); in testSimpleExecution() 71 assertTrue(results.get(0)); in testSimpleExecution() 72 assertFalse(results.get(1)); in testSimpleExecution() 89 List<Boolean> results = mExecutor.invokeAll(callableTasks, 1, TimeUnit.SECONDS); in testExecution_errors() local 90 assertEquals(0, results.size()); in testExecution_errors()
|
/tools/external_updater/ |
D | external_updater.py | 134 results = {} 137 results[relative_path] = _process_update_result(path) 139 return results 143 results = {} 150 results[relative_path] = _process_update_result(path) 152 return results 158 results = _check_all(args.delay) 160 results = _check_some(args.paths, args.delay) 164 json.dump(results, f, sort_keys=True, indent=4)
|
/tools/test/connectivity/acts/tests/google/power/wifi/ |
D | PowerWiFiroamingTest.py | 88 results = [] 92 results.append(self.monsoon_data_collect_save()) 95 results.append(self.monsoon_data_collect_save()) 96 wputils.monsoon_data_plot(self.mon_info, results) 100 for result in results: 106 result.total_power for result in results 135 results = [] 139 results.append(self.monsoon_data_collect_save()) 142 results.append(self.monsoon_data_collect_save()) 143 wputils.monsoon_data_plot(self.mon_info, results) [all …]
|
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/data/ |
D | sample_timestamp_proto.txt | 3 results { 31 results { 53 results { 75 results { 104 results {
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleListenerTest.java | 182 List<TestRunResult> results = mListener.getMergedTestRunResults(); in testRetryInvalid() local 183 assertEquals(2, results.size()); in testRetryInvalid() 184 assertEquals("apexservice_test", results.get(0).getName()); in testRetryInvalid() 185 assertFalse(results.get(0).isRunFailure()); in testRetryInvalid() 187 assertEquals("apex.test", results.get(1).getName()); in testRetryInvalid() 188 assertTrue(results.get(1).isRunFailure()); in testRetryInvalid() 193 results.get(1).getRunFailureMessage()); in testRetryInvalid() 196 private boolean hasRunCrashed(List<TestRunResult> results) { in hasRunCrashed() argument 197 for (TestRunResult run : results) { in hasRunCrashed()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/proto/ |
D | TfMetricProtoUtilTest.java | 74 Map<String, String> results = TfMetricProtoUtil.compatibleConvert(metrics); in testCompatibleConvert() local 76 assertEquals("5.5", results.get("key1")); in testCompatibleConvert() 77 assertEquals("10", results.get("key2")); in testCompatibleConvert() 78 assertEquals("value", results.get("key3")); in testCompatibleConvert() 79 assertEquals(3, results.size()); in testCompatibleConvert()
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiScannerScanTest.py | 242 results = [] 246 results.append(event["data"]["Results"]) 248 self.log.debug("Number of Full scan results %s", len(results)) 249 return results 269 results = [] 284 results = event["data"]["Results"] 287 results, scan_rt, event["data"][KEY_RET], scan_setting) 289 len(results), 1, 291 len(results)) 295 len(results), bssids) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | event_dispatcher.py | 310 results = self._match_and_pop(regex_pattern) 311 if len(results) != 0 or time.time() > deadline: 314 if len(results) == 0: 318 return sorted(results, key=lambda event: event['time']) 324 results = [] 331 results.append(q.get(False)) 335 return results 430 results = [] 435 results.append(e) 437 return results
|
/tools/test/connectivity/acts/framework/acts/ |
D | test_runner.py | 86 return tr.results.is_all_pass 124 self.results = records.TestResult() 236 self.results.add_record(record) 247 self.results += cls_result 249 self.results += e.results 290 self.results.error.append(ExceptionRecord(e)) 305 self.id, self.results.summary_str()) 316 f.write(self.results.json_str()) 318 self.summary_writer.dump(self.results.summary_dict(),
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackTest.java | 421 List<ResultData> results = tempTestHelper.getAllTestData(); in runGlitchesTest() local 422 for (ResultData rd : results) { in runGlitchesTest() 606 List<ResultData> results = null; in uploadLogsReturnMetrics() local 613 results = mLoopbackTestHelper.getAllTestData(); in uploadLogsReturnMetrics() 626 results = mLoopbackTestHelper.getAllTestData(); in uploadLogsReturnMetrics() 638 results = mLoopbackTestHelper.getWorstResults(MAX_NR_OF_LOG_UPLOADS); in uploadLogsReturnMetrics() 653 for (final ResultData d : results) { in uploadLogsReturnMetrics() 719 private void populateResultData(final Map<String, String> results, ResultData data) { in populateResultData() argument 720 if (results == null || results.isEmpty()) { in populateResultData() 725 if (results.containsKey(key)) { in populateResultData() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | SuiteResultReporter.java | 104 private List<TestRunResult> extractModuleCheckers(Collection<TestRunResult> results) { in extractModuleCheckers() argument 106 for (TestRunResult t : results) { in extractModuleCheckers() 112 results.removeAll(moduleCheckers); in extractModuleCheckers() 122 Collection<TestRunResult> results = getMergedTestRunResults(); in invocationEnded() local 123 List<TestRunResult> moduleCheckers = extractModuleCheckers(results); in invocationEnded() 125 mTotalModules = results.size(); in invocationEnded() 127 for (TestRunResult moduleResult : results) { in invocationEnded() 170 printModuleTestTime(results); in invocationEnded() 171 printTopSlowModules(results); in invocationEnded() 215 private void printModuleTestTime(Collection<TestRunResult> results) { in printModuleTestTime() argument [all …]
|