Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 61) sorted by relevance

123

/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/lvpm_stock/
Dmonsoon_proxy.py266 for k in status.keys():
267 if k.endswith('VoltageSetting'):
268 status[k] = 2.0 + status[k] * 0.01
269 elif k.endswith('FineCurrent'):
271 elif k.endswith('CoarseCurrent'):
273 elif k.startswith('voltage') or k.endswith('Voltage'):
274 status[k] = status[k] * 0.000125
275 elif k.endswith('Resistor'):
276 status[k] = 0.05 + status[k] * 0.0001
277 if k.startswith('aux') or k.startswith('defAux'):
[all …]
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py189 for k, v in gathered_extras.items():
190 if k not in new_signal.extras:
191 new_signal.extras[k] = v
193 if not isinstance(new_signal.extras[k], list):
194 new_signal.extras[k] = [new_signal.extras[k]]
196 new_signal.extras[k].insert(0, v)
230 for k, v in self.keyed_info.items():
231 if v and k not in extras:
232 extras[k] = v
233 elif v and k in extras:
[all …]
Drecords.py231 l = ["%s %s" % (k, v) for k, v in self.summary_dict().items()]
247 l.append({k: record.to_dict()[k] for k in keys})
Dconfig_parser.py45 for k in keys.Config.reserved_keys.value:
48 if (k == keys.Config.key_test_paths.value
49 or k == keys.Config.key_log_path.value):
52 if k not in test_config:
54 k)
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dgattc_lib.py345 for k in range(len(descriptor_uuids)):
348 j, k)
352 self.discovered_services_index, i, j, k,
357 self.discovered_services_index, i, j, k)
378 for k in range(len(descriptor_uuids)):
381 j, k)
385 self.discovered_services_index, i, j, k,
390 self.discovered_services_index, i, j, k)
461 for k in range(len(descriptor_uuids)):
465 descriptor_uuids[k]))
[all …]
Dbt_gatt_utils.py408 for k in range(len(descriptor_uuids)):
410 bluetooth_gatt, discovered_services_index, i, j, k)
412 hex(desc_inst_id), descriptor_uuids[k]))
416 for k in range(len(descriptor_uuids)):
418 descriptor_uuids[k]))
/tools/test/connectivity/acts/tests/google/wifi/
DWifiRttManagerTest.py182 for k, v in target_params.items():
183 if k not in network_info:
185 if type(network_info[k]) is str:
186 network_info[k] = network_info[k].lower()
188 if network_info[k] != v:
473 for k, v in expected_caps.items():
474 asserts.assert_true(k in caps, "%s missing in capabilities." % k)
475 asserts.assert_true(v == caps[k], "Expected %s for %s, got %s." %
476 (v, k, caps[k]))
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dui_utils.py30 return ' '.join(['%s="%s"' % (k, v) for k, v in kv_pairs.items()])
91 for k, v in matcher.items():
92 if k == 'class_name':
93 key = k.replace('class_name', 'class')
94 elif k == 'text_contains':
95 key = k.replace('text_contains', 'text')
97 key = k.replace('_', '-')
99 if k == 'text_contains':
Dipsec_test_utils.py238 for k in auth_method_key.keys():
239 auth_key = auth_method_key[k]
240 lst = auth_method_trunc[k]
244 combo.append(k)
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DStatsdEventMetricPostProcessorTest.java280 parsedMetrics.keySet().stream().noneMatch(k -> k.contains("should_be_ignored"))); in testIgnoresRepeatedFieldInBothKeyAndValue()
305 parsedMetrics.keySet().stream().noneMatch(k -> k.contains("should_be_ignored"))); in testIgnoresMultipleRepeatedFieldInKeyOrValue()
325 parsedMetrics.keySet().stream().noneMatch(k -> k.contains("should_be_ignored"))); in testIgnoresInvalidFieldReference()
341 parsedMetrics.keySet().stream().noneMatch(k -> k.contains("should_be_ignored"))); in testIgnoresInvalidAtomReference()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py552 for k, v in target_params.items():
553 if k not in n:
556 if n[k] != v:
1816 for k, expected_v in expected_con.items():
1818 if k == "password":
1821 k, current_con)
1822 if k not in current_con:
1824 actual_v = current_con[k]
1825 if k in case_insensitive:
1828 msg = "Expected %s to be %s, actual %s is %s." % (k, expected_v, k,
/tools/test/connectivity/acts/framework/acts/controllers/
Dpower_monitor.py35 for k, v in registry.items():
36 if k in _REGISTRY:
37 if v == _REGISTRY[k]:
42 'with %s.' % (k, _REGISTRY[k], v))
43 _REGISTRY[k] = v
Dandroid_device.py300 for k, v in kwargs.items():
301 if not hasattr(ad, k):
303 elif getattr(ad, k) != v:
598 for k, v in config.items():
600 if hasattr(self, k) and k != "skip_sl4a":
603 (k, self.serial),
605 setattr(self, k, v)
Daccess_point.py303 for k, v in self._dhcp_bss.items():
305 '%s/%s' % (self._dhcp_bss[k].router,
306 self._dhcp_bss[k].network.netmask))
307 self._ip_cmd.set_ipv4_address(str(k), bss_interface_ip)
312 for k, v in self._dhcp_bss.items():
/tools/repohooks/rh/
Dshell_unittest.py97 self._testData(aux, {k: k for k in tests_quote.values()}, False)
98 self._testData(aux, {k: k for k in tests_quote}, False)
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dhostapd_constants.py137 FREQUENCY_MAP = {v: k for k, v in CHANNEL_MAP.items()}
192 v: k
193 for k, v in N_CAPABILITIES_MAPPING.items()
272 v: k
273 for k, v in AC_CAPABILITIES_MAPPING.items()
Dhostapd.py186 pairs = ('%s=%s' % (k, v) for k, v in interface_configs.items())
192 config_pairs = ('%s=%s' % (k, v)
193 for k, v in packaged_config.items()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java142 for (int k = 0; k < repeat; ++k) { in decodeRle()
180 for (int k = 0; k < repeat; ++k) { in decode()
/tools/asuite/aidegen/project/
Dsource_splitter.py153 projects = sorted(self._projects, key=lambda k: len(
154 k.project_relative_path), reverse=True)
175 projects = sorted(self._projects, key=lambda k: len(
176 k.project_relative_path))
186 dep_projects = sorted(self._projects, key=lambda k: len(
187 k.project_relative_path))
/tools/treble/build/sandbox/
Drbe.py83 for k,v in os.environ.items():
84 if k.startswith('RBE_'):
85 prepared_env[k] = v
98 return ['%s=%s' % (k,v) for k,v in prepared_env.items()]
/tools/tradefederation/core/atest/
Datest.py198 not_match = [k for k in arg_maps if k not in vars(args)]
202 extra_args.update({arg_maps.get(k): v for k, v in vars(args).items()
203 if arg_maps.get(k) and v})
/tools/asuite/atest/
Datest.py199 not_match = [k for k in arg_maps if k not in vars(args)]
203 extra_args.update({arg_maps.get(k): v for k, v in vars(args).items()
204 if arg_maps.get(k) and v})
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/
DTestMapping.java136 for (int k = 0; k < optionObject.names().length(); k++) { in TestMapping()
137 String name = optionObject.names().getString(k); in TestMapping()
433 allTests.computeIfAbsent(group, k -> new HashSet<>()).addAll(testCollection.get(group)); in getAllTests()
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DMetricsTest.java55 data.forEach((k, v) -> v.forEach(e -> mMetrics.addRunMetric(k, e))); in testAddRunMetrics()
84 data.forEach((k, v) -> v.forEach(e -> mMetrics.addRunMetric(k, e))); in testValidate()
DDetectRegressionTest.java60 (k, v) -> { in testCalcMean() argument
61 assertTrue(equal(k, DetectRegression.calcMean(Doubles.asList(v)))); in testCalcMean()
71 (k, v) -> { in testCalcStdDev() argument
72 assertTrue(equal(k, DetectRegression.calcStdDev(Doubles.asList(v)))); in testCalcStdDev()

123