Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 126) sorted by relevance

123456

/tools/test/connectivity/acts/tests/google/wifi/aware/performance/
DLatencyTest.py62 def run_synchronization_latency(self, results, do_unsolicited_passive, argument
84 results[key] = {}
85 results[key]["num_iterations"] = num_iterations
146 results=results[key],
151 results[key]["num_failed_discovery"] = failed_discoveries
153 def run_discovery_latency(self, results, do_unsolicited_passive, dw_24ghz, argument
167 results[key] = {}
168 results[key]["num_iterations"] = num_iterations
229 results=results[key],
234 results[key]["num_failed_discovery"] = failed_discoveries
[all …]
DThroughputTest.py49 def run_iperf_single_ndp_aware_only(self, use_ib, results): argument
97 results["tx_rate"] = data_json["end"]["sum_sent"]["bits_per_second"]
98 results["rx_rate"] = data_json["end"]["sum_received"][
101 results["tx_rate"], results["rx_rate"])
122 def run_iperf_max_ndp_aware_only(self, results): argument
202 results[i] = {}
212 results[i]["tx_rate"] = data_json["end"]["sum_sent"][
214 results[i]["rx_rate"] = data_json["end"]["sum_received"][
217 results[i]["tx_rate"], results[i]["rx_rate"])
224 results = {}
[all …]
/tools/test/connectivity/acts/tests/google/wifi/aware/stress/
DMessagesStressTest.py150 def analyze_results(self, results, messages_by_msg): argument
158 results["raw_data"] = messages_by_msg
159 results["tx_count_success"] = 0
160 results["tx_count_duplicate_success"] = 0
161 results["tx_count_fail"] = 0
162 results["tx_count_duplicate_fail"] = 0
163 results["tx_count_neither"] = 0
164 results["tx_count_tx_ok_but_no_rx"] = 0
165 results["rx_count"] = 0
166 results["rx_count_duplicate"] = 0
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_base_class_test.py74 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 …]
Daudio_analysis_integrationtest.py83 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 …]
Dacts_test_decorators_test.py213 results = self.test_runner.results
214 self.assertGreaterEqual(len(results.executed), 1,
216 record = results.executed[0]
223 self._validate_results_has_extra(self.test_runner.results, UUID_KEY,
228 self._validate_results_has_extra(self.test_runner.results, UUID_KEY,
234 def result_selector(results): argument
235 self.assertIsInstance(results[0], AssertionError)
236 self.assertIsInstance(results[1], signals.TestFailure)
237 self.assertIsInstance(results[2], signals.TestError)
238 self.assertIsInstance(results[3], IndexError)
[all …]
Dacts_test_runner_test.py76 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)
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGoogleBenchmarkResultParserTest.java104 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/tests/google/wifi/
DWifiScannerScanTest.py245 results = []
249 results.append(event["data"]["Results"])
251 self.log.debug("Number of Full scan results %s", len(results))
252 return results
272 results = []
287 results = event["data"]["Results"]
290 results, scan_rt, event["data"][KEY_RET], scan_setting)
292 len(results), 1,
294 len(results))
298 len(results), bssids)
[all …]
DWifiRttManagerTest.py144 results = event[0]["data"]["Results"]
145 result_len = len(results)
152 for i, r in enumerate(results):
263 results = e["data"]["Results"]
264 for r in results:
366 results = self.get_rtt_results(rtt_params)
367 if results:
368 self.log.debug(results)
369 all_results += results
512 results = self.get_rtt_results([p])
[all …]
DWifiScannerBssidTest.py111 results = event["data"]["Results"]
112 if len(results) > 0 and "ScanResults" in results[0]:
113 return results[0]["ScanResults"]
133 results = self.fetch_scan_result(self.scan_idx, scan_setting)
134 self.log.debug("scan result %s.", results)
135 asserts.assert_true(results,
137 for result in results:
199 results = self.fetch_scan_result(self.scan_idx,
201 self.log.debug("scan result %s", results)
247 results = self.fetch_scan_result(self.scan_idx,
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTest.java421 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/
DCollectingTestListener.java203 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 …]
DConsoleResultReporter.java126 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/acts/controllers/buds_lib/
Dapollo_lib.py243 results = []
246 results.append(result)
247 return results
794 results = self.cmd('Ota {}'.format(image_size), wait=3)
795 logging.debug('Result of Ota command' + str(results))
796 if any(OTA_VERIFICATION_FAILED in result for result in results[0]):
800 results[0] if
802 any('OTA erasd ptns' in result for result in results[0])):
1090 results = self.cmd(cmd)
1095 results = results[0]
[all …]
/tools/test/connectivity/acts/framework/acts/
Dbase_test.py65 test_instance.results.error.append(
87 test_instance.results.error.append(
352 event_bus.post(TestClassEndEvent(self, self.results))
586 self.results.add_record(tr_record)
677 self.results.requested.append(test_name)
682 previous_success_cnt = len(self.results.passed)
695 if len(self.results.passed) - previous_success_cnt != 1:
738 self.results.add_record(record)
764 return self.results
785 self.results.requested = matches
[all …]
Dtest_runner.py87 return tr.results.is_all_pass
125 self.results = records.TestResult()
239 self.results.add_record(record)
250 self.results += cls_result
252 self.results += e.results
293 self.results.error.append(ExceptionRecord(e))
308 self.id, self.results.summary_str())
320 f.write(self.results.json_str())
322 self.summary_writer.dump(self.results.summary_dict(),
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DHprofAllocSiteParserTest.java70 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/suite/
DSuiteResultReporter.java104 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 …]
/tools/test/connectivity/acts_tests/tests/google/power/wifi/
DPowerWiFiroamingTest.py88 results = []
92 results.append(self.monsoon_data_collect_save())
95 results.append(self.monsoon_data_collect_save())
96 plot_utils.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 plot_utils.monsoon_data_plot(self.mon_info, results)
[all …]
/tools/repohooks/rh/
Dhooks.py33 import rh.results
286 return [rh.results.HookCommandResult(hook_name, project, commit,
318 ret.append(rh.results.HookResult(
382 return [rh.results.HookResult('commit msg: "%s:" check' % (field,),
409 return [rh.results.HookResult('commit msg: "%s:" check' % (field,),
466 return [rh.results.HookResult('commit msg: "prebuilt apk:" check',
518 return [rh.results.HookResult('commit msg: "%s:" check' % (field,),
587 rh.results.HookResult(('commit msg: "%s:" '
612 rh.results.HookResult(('commit msg: "%s:" '
644 rh.results.HookResult(('commit msg: "%s:" '
[all …]
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/
DRangeAwareTest.py205 def verify_results(self, results, results_reverse_direction=None, accuracy_evaluation=False): argument
216 stats = rutils.extract_stats(results, self.rtt_reference_distance_mm,
428 results = []
434 results.append(result)
442 num_no_responses, 0, "No RTT response?", extras={"data": results})
447 extras={"data": results})
448 asserts.explicit_pass("RTT Aware test done", extras={"data": results})
479 results = []
485 results.append(result)
493 num_no_responses, 0, "No RTT response?", extras={"data": results})
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Daudio_analysis.py151 results = []
153 results.append((x_f[int(index)], value))
154 return results
249 results = []
264 results.append((mid, array[int(mid)]))
270 return sorted(results, key=lambda x: x[1], reverse=True)
310 results = []
317 results.append(start)
319 results = [float(x) / rate for x in results]
321 return results
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Devent_dispatcher.py310 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/asuite/atest/
Dcli_translator.py163 results = mod_finder.get_fuzzy_searching_results(test)
164 if len(results) == 1 and self._confirm_running(results):
165 found_test_infos = mod_finder.find_test_by_module_name(results[0])
169 elif len(results) > 1:
170 self._print_fuzzy_searching_results(results)
203 def _confirm_running(self, results): argument
213 atest_utils.colorize(results[0], constants.GREEN)))
216 def _print_fuzzy_searching_results(self, results): argument
228 for mod in results[:10]:

123456