/tools/test/connectivity/acts_tests/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 | 211 results = {} 212 results['ndp_init_setup_success'] = ndp_init_setup_success 213 results['ndp_init_setup_failures'] = ndp_init_setup_failures 214 results['ndp_resp_setup_success'] = ndp_resp_setup_success 215 results['ndp_resp_setup_failures'] = ndp_resp_setup_failures 216 results['ndp_full_socket_success'] = ndp_full_socket_success 227 extras=results) 228 asserts.explicit_pass("test_oob_ndp_stress* done", extras=results)
|
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/performance/ |
D | LatencyTest.py | 66 def run_synchronization_latency(self, results, do_unsolicited_passive, argument 89 results[key] = {} 90 results[key]["num_iterations"] = num_iterations 151 results=results[key], 156 results[key]["num_failed_discovery"] = failed_discoveries 158 def run_discovery_latency(self, results, do_unsolicited_passive, dw_24ghz, argument 173 results[key] = {} 174 results[key]["num_iterations"] = num_iterations 235 results=results[key], 240 results[key]["num_failed_discovery"] = failed_discoveries [all …]
|
D | ThroughputTest.py | 50 def run_iperf_single_ndp_aware_only(self, use_ib, results): argument 98 results["tx_rate"] = data_json["end"]["sum_sent"]["bits_per_second"] 99 results["rx_rate"] = data_json["end"]["sum_received"][ 102 results["tx_rate"], results["rx_rate"]) 123 def run_iperf_max_ndp_aware_only(self, results): argument 203 results[i] = {} 213 results[i]["tx_rate"] = data_json["end"]["sum_sent"][ 215 results[i]["rx_rate"] = data_json["end"]["sum_received"][ 218 results[i]["tx_rate"], results[i]["rx_rate"]) 225 results = {} [all …]
|
/tools/tradefederation/core/javatests/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 | 41 int[] results = new int[TestStatus.values().length]; in getResultCounts() local 44 results[status.ordinal()]++; in getResultCounts() 46 return results; in getResultCounts() 59 int[] results = getResultCounts(); in hasFailedTests() local 60 return results[TestStatus.INCOMPLETE.ordinal()] > 0 in hasFailedTests() 61 || results[TestStatus.ASSUMPTION_FAILURE.ordinal()] > 0 in hasFailedTests() 62 || results[TestStatus.FAILURE.ordinal()] > 0 in hasFailedTests() 63 || results[TestStatus.SKIPPED.ordinal()] > 0; in hasFailedTests()
|
D | CollectingTestListener.java | 205 List<TestRunResult> results = mTestRunResultMap.get(name); in testRunStarted() local 208 if (attemptNumber < results.size()) { in testRunStarted() 209 if (results.get(attemptNumber) == null) { in testRunStarted() 213 } else if (attemptNumber == results.size()) { in testRunStarted() 216 results.add(result); in testRunStarted() 218 int size = results.size(); in testRunStarted() 229 results.add(result); in testRunStarted() 233 results.add(newResult); in testRunStarted() 235 mCurrentTestRunResult = results.get(attemptNumber); in testRunStarted() 478 for (Entry<String, List<TestRunResult>> results : mTestRunResultMap.entrySet()) { in computeMergedResults() [all …]
|
D | ConsoleResultReporter.java | 139 int[] results = mResultCountListener.getResultCounts(); in invocationEnded() local 145 sb.append(results[TestStatus.PASSED.ordinal()]); in invocationEnded() 147 if (results[TestStatus.FAILURE.ordinal()] > 0) { in invocationEnded() 149 sb.append(results[TestStatus.FAILURE.ordinal()]); in invocationEnded() 152 if (results[TestStatus.IGNORED.ordinal()] > 0) { in invocationEnded() 154 sb.append(results[TestStatus.IGNORED.ordinal()]); in invocationEnded() 157 if (results[TestStatus.SKIPPED.ordinal()] > 0) { in invocationEnded() 159 sb.append(results[TestStatus.SKIPPED.ordinal()]); in invocationEnded() 162 if (results[TestStatus.ASSUMPTION_FAILURE.ordinal()] > 0) { in invocationEnded() 164 sb.append(results[TestStatus.ASSUMPTION_FAILURE.ordinal()]); in invocationEnded() [all …]
|
/tools/repohooks/rh/ |
D | results_unittest.py | 31 import rh.results 46 result = rh.results.HookResult('hook', 'project', 'HEAD', False) 51 result = rh.results.HookResult('hook', 'project', 'HEAD', True) 62 result = rh.results.HookCommandResult( 68 result = rh.results.HookCommandResult( 74 result = rh.results.HookCommandResult( 86 result = rh.results.ProjectResults('project', 'workdir') 91 rh.results.HookResult('hook', 'project', 'HEAD', False), 92 rh.results.HookCommandResult( 99 rh.results.HookResult('hook', 'project', 'HEAD', True),
|
D | results.py | 87 results: List[HookResult] = [] variable in ProjectResults 93 def add_results(self, results: Optional[List[HookResult]]) -> None: 95 if results: 96 self.results.extend(results) 101 yield from (x for x in self.results if x and x.fixup_cmd) 105 return self.internal_failure or any(self.results)
|
/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) 126 results = tr.results.summary_dict() 127 self.assertEqual(results['Requested'], 2) 128 self.assertEqual(results['Executed'], 2) 129 self.assertEqual(results['Passed'], 2)
|
D | acts_base_class_test.py | 74 actual_record = bt_cls.results.passed[0] 94 actual_record = bt_cls.results.passed[0] 126 passed_names = [p.test_name for p in bt_cls.results.passed] 146 actual_record = bt_cls.results.passed[0] 165 actual_record = bt_cls.results.error[0] 175 self.assertEqual(bt_cls.results.summary_dict(), expected_summary) 189 actual_record = bt_cls.results.error[0] 201 self.assertEqual(bt_cls.results.summary_dict(), expected_summary) 214 actual_record = bt_cls.results.failed[0] 226 self.assertEqual(bt_cls.results.summary_dict(), expected_summary) [all …]
|
D | acts_test_decorators_test.py | 322 results = self.test_runner.results 323 self.assertGreaterEqual(len(results.executed), 1, 325 record = results.executed[0] 332 self._validate_results_has_extra(self.test_runner.results, UUID_KEY, 337 self._validate_results_has_extra(self.test_runner.results, UUID_KEY, 343 def result_selector(results, _): argument 344 self.assertIsInstance(results[0], AssertionError) 345 self.assertIsInstance(results[1], signals.TestFailure) 346 self.assertIsInstance(results[2], signals.TestError) 347 self.assertIsInstance(results[3], IndexError) [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/utils/ |
D | multithread.py | 70 results = list(executor.map(task_wrapper, tasks)) 77 [task[0].__name__ for task in tasks], results) 78 return results 92 results = run_multithread_func(log, tasks) 93 for r in results: 112 results = run_multithread_func(log, tasks) 113 log.info("multithread_func result: %s, expecting %s", results, 115 for task, result, expected_result in zip(tasks, results, expected_results):
|
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/javatests/com/android/tradefed/build/content/ |
D | ContentAnalysisResultsTest.java | 31 ContentAnalysisResults results = in testNoModification() local 34 assertFalse(results.hasAnyTestsChange()); in testNoModification() 39 ContentAnalysisResults results = new ContentAnalysisResults().addModifiedFile(); in testModifiedFiles() local 41 assertTrue(results.hasAnyTestsChange()); in testModifiedFiles() 46 ContentAnalysisResults results = new ContentAnalysisResults().addModifiedModule(); in testModifiedModules() local 48 assertTrue(results.hasAnyTestsChange()); in testModifiedModules()
|
D | TestContentAnalyzerTest.java | 82 ContentAnalysisResults results = analyzer.evaluate(); in testAnalyzeTestsDir_withChange() local 83 assertNotNull(results); in testAnalyzeTestsDir_withChange() 84 assertTrue(results.hasAnyTestsChange()); in testAnalyzeTestsDir_withChange() 112 ContentAnalysisResults results = analyzer.evaluate(); in testAnalyzeTestsDir_noChange() local 113 assertNotNull(results); in testAnalyzeTestsDir_noChange() 114 assertFalse(results.hasAnyTestsChange()); in testAnalyzeTestsDir_noChange() 148 ContentAnalysisResults results = analyzer.evaluate(); in testAnalyzeXtsSuite_withChange() local 149 assertNotNull(results); in testAnalyzeXtsSuite_withChange() 150 assertTrue(results.hasAnyTestsChange()); in testAnalyzeXtsSuite_withChange() 184 ContentAnalysisResults results = analyzer.evaluate(); in testAnalyzeXtsSuite_withDiscovery() local [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 103 Map<String, String> results = resultParser.parse(cmd_result); in testParseSimpleFile() local 112 assertEquals(expectedRes, results); in testParseSimpleFile() 164 HashMap<String, Metric> results = capture.getAllValues().get(0); in testParseSimpleFile_twoTests() local 165 assertEquals(4, results.size()); in testParseSimpleFile_twoTests() 166 assertEquals("5", results.get("cpu_time").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 167 assertEquals("5", results.get("real_time").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 168 assertEquals("BM_one", results.get("name").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 169 assertEquals("109451958", results.get("iterations").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 236 Map<String, String> results = resultParser.parseJsonToMap(test); in testJsonParse() local 237 assertEquals(results.get("key1"), "value1"); in testJsonParse() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/content/ |
D | TestContentAnalyzer.java | 121 ContentAnalysisResults results; in evaluate() local 125 results = xtsAnalysis(information.getBuildInfo(), ac); in evaluate() 128 results = fileAnalysis(information.getBuildInfo(), ac); in evaluate() 131 results = workdirAnalysis(information.getBuildInfo(), ac); in evaluate() 137 if (results == null) { in evaluate() 142 CLog.d("content analysis results for %s: %s", ac.contentEntry(), results); in evaluate() 143 allResults.add(results); in evaluate() 169 ContentAnalysisResults results = new ContentAnalysisResults(); in mapDiffsToModule() local 181 results.addModifiedSharedFolder(commonDiff.size()); in mapDiffsToModule() 197 results.addModifiedFile(); in mapDiffsToModule() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | WifiCommandUtilTest.java | 44 List<WifiCommandUtil.ScanResult> results = WifiCommandUtil.parseScanResults(output); in testParseScanResults() local 45 assertEquals(6, results.size()); in testParseScanResults() 46 assertEquals("f4:2e:7f:22:e2:30", results.get(0).getInfo("BSSID")); in testParseScanResults() 47 assertEquals("5600", results.get(0).getInfo("Frequency")); in testParseScanResults() 48 assertEquals("-60(0:-62/1:-65)", results.get(0).getInfo("RSSI")); in testParseScanResults() 49 assertEquals("2.872", results.get(0).getInfo("Age(sec)")); in testParseScanResults() 50 assertEquals("wl-uhd-atc1-atc123-5", results.get(0).getInfo("SSID")); in testParseScanResults() 51 assertEquals("[WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS]", results.get(0).getInfo("Flags")); in testParseScanResults()
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/ |
D | audio_analysis_integrationtest.py | 78 results = [] 83 results.append((mid, array[int(mid)])) 86 return sorted(results, key=lambda x: x[1], reverse=True) 116 results = audio_analysis.spectral_analysis(y, rate) 122 logging.debug('Results: %s', results) 123 self.assertTrue(abs(results[0][0] - freq_1) < 1) 124 self.assertTrue(abs(results[1][0] - freq_2) < 1) 126 abs(results[0][1] / results[1][1] - coeff_1 / coeff_2) < 0.01) 154 results = audio_analysis.spectral_analysis(noise, rate) 155 self.assertEqual([(0, 0)], results) [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/executor/ |
D | ParallelDeviceExecutorTest.java | 70 List<Boolean> results = mExecutor.invokeAll(callableTasks, 1, TimeUnit.SECONDS); in testSimpleExecution() local 71 assertEquals(2, results.size()); in testSimpleExecution() 72 assertTrue(results.get(0)); in testSimpleExecution() 73 assertFalse(results.get(1)); in testSimpleExecution() 90 List<Boolean> results = mExecutor.invokeAll(callableTasks, 1, TimeUnit.SECONDS); in testExecution_errors() local 91 assertEquals(0, results.size()); in testExecution_errors() 109 List<Boolean> results = mExecutor.invokeAll(callableTasks, 1L, TimeUnit.MILLISECONDS); in testExecution_timeout() local 110 assertEquals(0, results.size()); in testExecution_timeout()
|
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/ |
D | Nsa5gSmsTest.py | 657 results = run_multithread_func(self.log, [download_task, message_task]) 659 if ((results[0]) & (results[1])): 662 elif ((results[0] == False) & (results[1] == True)): 664 elif ((results[0] == True) & (results[1] == False)): 669 return results 709 results = run_multithread_func(self.log, [download_task, message_task]) 711 if ((results[0]) & (results[1])): 714 elif ((results[0] == False) & (results[1] == True)): 716 elif ((results[0] == True) & (results[1] == False)): 721 return results
|
/tools/test/connectivity/acts_tests/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/ |
D | test_runner.py | 86 return tr.results.is_all_pass 125 self.results = records.TestResult() 216 self.results.add_record(record) 227 self.results += cls_result 229 self.results += e.results 270 self.results.error.append(ExceptionRecord(e)) 285 self.id, self.results.summary_str()) 297 f.write(self.results.json_str()) 299 self.summary_writer.dump(self.results.summary_dict(),
|