/tools/test/connectivity/acts/tests/google/wifi/aware/stress/ |
D | MessagesStressTest.py | 146 def analyze_results(self, results, messages_by_msg): argument 154 results["raw_data"] = messages_by_msg 155 results["tx_count_success"] = 0 156 results["tx_count_duplicate_success"] = 0 157 results["tx_count_fail"] = 0 158 results["tx_count_duplicate_fail"] = 0 159 results["tx_count_neither"] = 0 160 results["tx_count_tx_ok_but_no_rx"] = 0 161 results["rx_count"] = 0 162 results["rx_count_duplicate"] = 0 [all …]
|
D | DataPathStressTest.py | 173 results = {} 174 results['ndp_init_setup_success'] = ndp_init_setup_success 175 results['ndp_init_setup_failures'] = ndp_init_setup_failures 176 results['ndp_resp_setup_success'] = ndp_resp_setup_success 177 results['ndp_resp_setup_failures'] = ndp_resp_setup_failures 186 'NDP setup failure rate exceeds threshold', extras=results) 187 asserts.explicit_pass("test_oob_ndp_stress* done", extras=results)
|
D | DiscoveryStressTest.py | 102 results = {} 103 results['discovery_setup_success'] = discovery_setup_success 104 results['discovery_setup_fail'] = discovery_setup_fail 106 'Discovery setup failures', extras=results) 107 asserts.explicit_pass('test_discovery_stress done', extras=results)
|
/tools/test/connectivity/acts/tests/google/wifi/aware/performance/ |
D | LatencyTest.py | 65 def run_synchronization_latency(self, results, do_unsolicited_passive, argument 86 results[key] = {} 87 results[key]["num_iterations"] = num_iterations 147 results=results[key], 152 results[key]["num_failed_discovery"] = failed_discoveries 154 def run_discovery_latency(self, results, do_unsolicited_passive, dw_24ghz, argument 168 results[key] = {} 169 results[key]["num_iterations"] = num_iterations 229 results=results[key], 234 results[key]["num_failed_discovery"] = failed_discoveries [all …]
|
D | ThroughputTest.py | 52 def run_iperf_single_ndp_aware_only(self, use_ib, results): argument 100 results["tx_rate"] = data_json["end"]["sum_sent"]["bits_per_second"] 101 results["rx_rate"] = data_json["end"]["sum_received"]["bits_per_second"] 102 self.log.info("iPerf3: Sent = %d bps Received = %d bps", results["tx_rate"], 103 results["rx_rate"]) 124 def run_iperf_max_ndp_aware_only(self, results): argument 200 results[i] = {} 209 results[i]["tx_rate"] = data_json["end"]["sum_sent"]["bits_per_second"] 210 results[i]["rx_rate"] = data_json["end"]["sum_received"][ 213 results[i]["tx_rate"], results[i]["rx_rate"]) [all …]
|
/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/test/connectivity/acts/framework/tests/ |
D | acts_base_class_test.py | 63 actual_record = bt_cls.results.passed[0] 83 actual_record = bt_cls.results.passed[0] 120 actual_record = bt_cls.results.passed[0] 154 actual_record = bt_cls.results.passed[0] 163 self.assertFalse(bt_cls.results.executed) 164 self.assertTrue(bt_cls.results.skipped) 182 actual_record = bt_cls.results.blocked[0] 187 self.assertEqual(bt_cls.results.summary_str(), expected_summary) 201 actual_record = bt_cls.results.unknown[0] 208 self.assertEqual(bt_cls.results.summary_str(), expected_summary) [all …]
|
D | audio_analysis_unittest.py | 76 results = [] 81 results.append((mid, array[int(mid)])) 84 return sorted(results, key=lambda x: x[1], reverse=True) 114 results = audio_analysis.spectral_analysis(y, rate) 120 logging.debug('Results: %s', results) 121 self.assertTrue(abs(results[0][0] - freq_1) < 1) 122 self.assertTrue(abs(results[1][0] - freq_2) < 1) 124 abs(results[0][1] / results[1][1] - coeff_1 / coeff_2) < 0.01) 152 results = audio_analysis.spectral_analysis(noise, rate) 153 self.assertEqual([(0, 0)], results) [all …]
|
D | acts_test_runner_test.py | 142 self.assertEqual(tr.results.controller_info, {}) 181 results = tr.results.summary_dict() 182 self.assertEqual(results["Requested"], 2) 183 self.assertEqual(results["Executed"], 2) 184 self.assertEqual(results["Passed"], 2) 196 self.assertEqual(tr.results.controller_info, expected_info) 245 results = tr.results.summary_dict() 246 self.assertEqual(results["Requested"], 2) 247 self.assertEqual(results["Executed"], 2) 248 self.assertEqual(results["Passed"], 2)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 102 Map<String, String> results = resultParser.parse(contents); in testParseSimpleFile() local 111 assertEquals(expectedRes, results); in testParseSimpleFile() 163 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_twoTests() local 164 assertEquals(4, results.size()); in testParseSimpleFile_twoTests() 165 assertEquals("5", results.get("cpu_time").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 166 assertEquals("5", results.get("real_time").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 167 assertEquals("BM_one", results.get("name").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 168 assertEquals("109451958", results.get("iterations").getMeasurements().getSingleString()); in testParseSimpleFile_twoTests() 211 Map<String, String> results = resultParser.parseJsonToMap(test); in testJsonParse() local 212 assertEquals(results.get("key1"), "value1"); in testJsonParse() [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/ |
D | audio_analysis.py | 144 results = [] 146 results.append((x_f[int(index)], value)) 147 return results 242 results = [] 257 results.append((mid, array[int(mid)])) 263 return sorted(results, key=lambda x: x[1], reverse=True) 302 results = [] 309 results.append(start) 311 results = [float(x) / rate for x in results] 313 return results
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
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/prod-tests/src/com/android/performance/tests/ |
D | VellamoBenchmark.java | 126 String[] results = line.split(" b: ")[1].split(","); in run() local 127 errorCode = Integer.parseInt(results[INDEX_CODE]); in run() 130 errorCode, results[INDEX_NAME]); in run() 132 sumScore += Double.parseDouble(results[INDEX_SCORE]); in run() 134 metrics.put(results[INDEX_NAME], results[INDEX_SCORE]); in run() 135 CLog.i("%s :: %s", results[INDEX_NAME], results[INDEX_SCORE]); in run()
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiScannerScanTest.py | 252 results = [] 256 results.append(event["data"]["Results"]) 258 self.log.debug("Number of Full scan results %s", len(results)) 259 return results 279 results = [] 294 results = event["data"]["Results"] 297 results, scan_rt, event["data"][KEY_RET], scan_setting) 299 len(results), 1, 301 len(results)) 305 len(results), bssids) [all …]
|
D | WifiRttManagerTest.py | 144 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 …]
|
D | WifiScannerBssidTest.py | 111 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/core/src/com/android/tradefed/result/suite/ |
D | SuiteResultReporter.java | 106 private List<TestRunResult> extractModuleCheckers(Collection<TestRunResult> results) { in extractModuleCheckers() argument 108 for (TestRunResult t : results) { in extractModuleCheckers() 114 results.removeAll(moduleCheckers); in extractModuleCheckers() 124 Collection<TestRunResult> results = getRunResults(); in invocationEnded() local 125 List<TestRunResult> moduleCheckers = extractModuleCheckers(results); in invocationEnded() 127 mTotalModules = results.size(); in invocationEnded() 129 for (TestRunResult moduleResult : results) { in invocationEnded() 153 printModuleTestTime(results); in invocationEnded() 154 printTopSlowModules(results); in invocationEnded() 195 private void printModuleTestTime(Collection<TestRunResult> results) { in printModuleTestTime() argument [all …]
|
/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/rtt/functional/ |
D | RangeApSupporting11McTest.py | 101 results = [] 112 results.append( 116 results.append([]) 120 results.append([]) 129 extras={"data":results}) 132 extras={"data":results}) 136 for result_group in results: 142 extras = [results, {"num_results": num_results, "num_errors": num_errors}]
|
D | RangeAwareTest.py | 202 def verify_results(self, results, results_reverse_direction=None): argument 210 stats = rutils.extract_stats(results, self.rtt_reference_distance_mm, 344 results = [] 350 results.append(result) 358 extras={"data":results}) 360 extras={"data":results}) 361 asserts.explicit_pass("RTT Aware test done", extras={"data":results}) 392 results = [] 398 results.append(result) 406 extras={"data":results}) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | event_dispatcher.py | 300 results = self._match_and_pop(regex_pattern) 301 if len(results) != 0 or time.time() > deadline: 304 if len(results) == 0: 308 return sorted(results, key=lambda event: event['time']) 314 results = [] 321 results.append(q.get(False)) 325 return results 420 results = [] 425 results.append(e) 427 return results
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | SandboxConfigurationFactoryTest.java | 109 CommandResult results = new CommandResult(); in testCreateConfigurationFromArgs() local 110 results.setStatus(CommandStatus.SUCCESS); in testCreateConfigurationFromArgs() 111 expectDumpCmd(results); in testCreateConfigurationFromArgs() 130 CommandResult results = new CommandResult(); in testCreateConfigurationFromArgs_fail() local 131 results.setStatus(CommandStatus.FAILED); in testCreateConfigurationFromArgs_fail() 132 results.setStderr("I failed"); in testCreateConfigurationFromArgs_fail() 133 expectDumpCmd(results); in testCreateConfigurationFromArgs_fail()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | HprofAllocSiteParser.java | 52 Map<String, String> results = new HashMap<>(); in parse() local 54 return results; in parse() 56 internalParse(hprofReport, results); in parse() 57 return results; in parse()
|
/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 …]
|
D | AdbScreenrecordTest.java | 161 private Map<String, String> runTest(Map<String, String> results, final long timeout) in runTest() argument 179 extractVideoDataFromAdbOutput(adbOutput, results); in runTest() 183 extractDurationAndBitrateFromVideoFileUsingAvprobe(deviceFileName, results); in runTest() 188 return results; in runTest() 252 String deviceFileName, Map<String, String> results) in extractDurationAndBitrateFromVideoFileUsingAvprobe() argument 297 results.put(RESULT_KEY_VERIFIED_DURATION, Long.toString(durationInMilliseconds / 1000)); in extractDurationAndBitrateFromVideoFileUsingAvprobe() 298 results.put(RESULT_KEY_VERIFIED_BITRATE, Long.toString(bitrateInKilobits)); in extractDurationAndBitrateFromVideoFileUsingAvprobe() 303 private boolean extractVideoDataFromAdbOutput(String adbOutput, Map<String, String> results) in extractVideoDataFromAdbOutput() argument 321 results.put(RESULT_KEY_RECORDED_FRAMES, Integer.toString(recordedFrames)); in extractVideoDataFromAdbOutput() 322 results.put(RESULT_KEY_RECORDED_LENGTH, Integer.toString(recordedLength)); in extractVideoDataFromAdbOutput()
|