Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 223) sorted by relevance

123456789

/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/
Drelay_rig.py62 lambda x: SainSmartBoard(x),
64 lambda x: RdlRelayBoard(x),
66 lambda x: SainSmart8ChannelUsbRelayBoard(x),
71 'GenericRelayDevice': lambda x, rig: GenericRelayDevice(x, rig),
72 'FuguRemote': lambda x, rig: FuguRemote(x, rig),
73 'I6sHeadset': lambda x, rig: I6sHeadset(x, rig),
74 'JaybirdX3Earbuds': lambda x, rig: JaybirdX3Earbuds(x, rig),
75 "LogitechAudioReceiver" :lambda x, rig: LogitechAudioReceiver(x, rig),
76 'SonyXB2Speaker': lambda x, rig: SonyXB2Speaker(x, rig),
77 'SonyXB20Speaker': lambda x, rig: SonyXB20Speaker(x, rig),
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/lab/
DTelLabGFTDSDSTest.py73 for x in range(self.user_params.get("dsds_io_cycle", 1)):
75 (self.current_test_name, x + 1, loop))
103 for x in range(self.user_params.get("dsds_io_cycle", 1)):
105 (self.current_test_name, x + 1, loop))
133 for x in range(self.user_params.get("dsds_io_cycle", 1)):
135 (self.current_test_name, x + 1, loop))
165 for x in range(self.user_params.get("dsds_io_cycle", 1)):
167 (self.current_test_name, x + 1, loop))
195 for x in range(self.user_params.get("dsds_io_cycle", 1)):
197 (self.current_test_name, x + 1, loop))
[all …]
DTelLabGFTVoWifiTest.py119 for x in range(self.user_params.get("wfc_cycle", 1)):
120 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
249 for x in range(self.user_params.get("wfc_cycle", 1)):
250 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
251 self.my_error_msg += "cylce%s: " %(x+1)
316 for x in range(self.user_params.get("wfc_cycle", 1)):
317 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
318 self.my_error_msg += "cylce%s: " %(x+1)
423 for x in range(self.user_params.get("wfc_cycle", 1)):
424 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
[all …]
DTelLabGFTInOutServiceTest.py528 for x in range (loop):
529 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
530 self.my_error_msg += "cycle%s: " %(x+1)
584 for x in range (loop):
585 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
586 self.my_error_msg += "cycle%s: " %(x+1)
640 for x in range (loop):
641 self.log.info("%s loop: %s/%s" %(self.current_test_name, x+1, loop))
642 self.my_error_msg += "cycle%s: " %(x+1)
705 for x in range (loop):
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DKotlinInteropChecksTest.kt285 fun error_throwsCheckedExceptionWithWrongExceptionClassInThrows(x: Int) { in Methods annotated @JvmSynthetic with default parameters don't require @JvmOverloads()
286 if (x < 0) { in Methods annotated @JvmSynthetic with default parameters don't require @JvmOverloads()
292 fun ok_hasThrows1(x: Int) { in ok_hasThrows1()
293 if (x < 0) { in ok_hasThrows1()
299 fun ok_hasThrows2(x: Int) { in ok_hasThrows2()
300 if (x < 0) { in ok_hasThrows2()
305 fun error_throwsRuntimeExceptionDocsMissing(x: Int) { in error_throwsRuntimeExceptionDocsMissing()
306 if (x < 0) { in error_throwsRuntimeExceptionDocsMissing()
312 fun error_missingSpecificAnnotation(x: Int) { in error_missingSpecificAnnotation()
313 if (x < 0) { in error_missingSpecificAnnotation()
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiRssiTest.py135 float('{:.2f}'.format(x))
136 for x in postprocessed_results['signal_poll_rssi']['stdev']
138 float('{:.2f}'.format(x))
139 for x in postprocessed_results['chain_0_rssi']['stdev']
141 float('{:.2f}'.format(x))
142 for x in postprocessed_results['chain_1_rssi']['stdev']
177 filtered_error = [x for x in val['error'] if not math.isnan(x)]
182 [abs(x) for x in filtered_error])
185 [abs(x - avg_shift) for x in filtered_error])
249 x for data_point in rssi_result['rssi_result'] for x in
[all …]
DWifiPingTest.py161 sorted(x['rtt'][round(ignored_fraction * len(x['rtt'])):])
162 for x in result['ping_results']
164 disconnected = any([len(x) == 0 for x in sorted_rtt])
169 x[int((1 - self.testclass_params['rtt_test_percentile'] / 100) *
170 len(x))] for x in sorted_rtt
229 x['packet_loss_percentage']
230 for x in ping_range_result['ping_results']
233 x > self.testclass_params['range_ping_loss_threshold']
234 for x in ping_loss_over_att
601 start_atten + x * self.testclass_params['range_atten_step']
[all …]
/tools/security/remote_provisioning/hwtrust/src/cbor/rkp/
Ddevice_info.rs132 let values: Vec<(Value, Value)> = get_valid_values_filtered(|x| x != "os_version"); in device_info_from_cbor_values_optional_os_version()
139 let values: Vec<(Value, Value)> = get_valid_values_filtered(|x| x != "brand"); in device_info_from_cbor_values_missing_required_field()
170 let values: Vec<(Value, Value)> = get_valid_values_filtered(|x| x != "version"); in device_info_from_cbor_values_valid_v3()
202 let values: Vec<(Value, Value)> = get_valid_values_filtered(|x| x != "version"); in device_info_from_cbor_values_invalid_version_value()
210 let values: Vec<(Value, Value)> = get_valid_values_filtered(|x| x != "version"); in device_info_from_cbor_values_invalid_explicit_version()
218 let values: Vec<(Value, Value)> = get_valid_values_filtered(|x| x != "version"); in device_info_from_cbor_values_missing_version()
256 let mut values = get_valid_values_filtered(|x| x != "vb_state"); in device_info_from_cbor_values_non_avf_security_level_has_avf_vb_state()
265 let mut values = get_valid_values_filtered(|x| x != "bootloader_state"); in device_info_from_cbor_values_non_avf_security_level_has_avf_bootloader_state()
347 get_valid_values().into_iter().filter(|x| filter(x.0.as_text().unwrap())).collect() in get_valid_values_filtered()
/tools/security/remote_provisioning/hwtrust/src/cbor/
Dpublickey.rs46 let x = self.pkey().raw_public_key().context("Get ed25519 raw public key")?; in to_cose_key() localVariable
49 .param(label_x, Value::from(x)) in to_cose_key()
55 let mut x = BigNum::new().context("Failed to create x coord")?; in to_cose_key() localVariable
58 .affine_coordinates_gfp(group, &mut x, &mut y, &mut ctx) in to_cose_key()
65 let x = adjust_coord(x.to_vec(), coord_len)?; in to_cose_key() localVariable
67 CoseKeyBuilder::new_ec2_pub_key(crv, x, y) in to_cose_key()
119 let x = get_label_value_as_bytes(cose_key, Label::Int(iana::OkpKeyParameter::X.to_i64()))?; in pkey_from_okp_key() localVariable
127 PKey::public_key_from_raw_bytes(x, curve_id).context("Failed to instantiate key") in pkey_from_okp_key()
133 let x = get_label_value_as_bytes(cose_key, Label::Int(iana::Ec2KeyParameter::X.to_i64()))?; in pkey_from_ec2_key() localVariable
139 pkey_from_ec_coords(Nid::X9_62_PRIME256V1, x, y).context("Failed to instantiate key") in pkey_from_ec2_key()
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dsocket_test_utils.py102 recv_list = [x.rstrip('\x00') if x else x for x in recv_list]
163 recv_list = [x.rstrip('\x00') if x else x for x in recv_list]
292 recv_list = [x.rstrip('\x00') if x else x for x in recv_list]
Dui_utils.py16 return '{x},{y}'.format(x=self.x, y=self.y)
25 return Point((self.start.x + self.end.x) // 2,
245 x, y = _find_point_in_bounds(button_node.attributes['bounds'].value)
248 args = 'input tap %s %s' % (str(x), str(y))
252 (str(x), str(y), str(x), str(y), str(duration_ms))
/tools/external_updater/
Dreviewers.py85 reviewers = set(filter(lambda x: x in rust_reviewers, value))
91 for (x, n) in RUST_REVIEWERS.items():
92 if x in projects: # reduce x's quota by the number of assigned ones
93 n = n - projects[x]
95 result.extend([x] * math.ceil(n))
119 return ','.join(map(lambda x: 'r=' + x, sorted(reviewers)))
/tools/platform-compat/javatest/com/android/class2nonsdklist/
DUnsupportedAppUsageAnnotationHandlerTest.java97 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistMethod()
118 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistConstructor()
139 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistField()
160 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistImplicit()
181 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistImplicit_Invalid_MissingOnClass()
203 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistImplicit_Invalid_PresentOnMember()
224 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistMethodExpectedSignature()
245 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistMethodExpectedSignatureWrong()
265 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testGreylistInnerClassMethod()
284 ImmutableMap.of(ANNOTATION, createGreylistHandler(x -> true, NULL_SDK_MAP)) in testMethodNotGreylisted()
[all …]
/tools/repohooks/rh/
Dhooks.py129 return [x.file for x in self.diff if x.status != 'D']
398 include_dir_args = [x for x in options.args()
399 if x.startswith('--include-dirs=')]
400 include_dirs = [x[len('--include-dirs='):].split(',')
401 for x in include_dir_args]
403 for x in dir_list]
412 args = [x for x in options.args() if x not in include_dir_args]
425 files=[x.file for x in filtered],
432 include_dir_args = [x for x in options.args()
433 if x.startswith('--include-dirs=')]
[all …]
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSliceTrack.kt43 var x: Int in paintComponent() variable
51 x = ((it.startTime - panX) * scale).toInt() in paintComponent()
54 if (x + width > 0 && x < this.width) { in paintComponent()
61 g.fillRect(x, y, width, height) in paintComponent()
64 drawLabel(it, g, metrics, x, ty, width) in paintComponent()
70 open fun drawLabel(slice: T, g: Graphics, metrics: FontMetrics, x: Int, y: Int, width: Int) { in drawLabel()
80 g.drawString(slice.name.substring(0, strLimit), x, y) in drawLabel()
/tools/netsim/ui/ts/
Ddevice-observer.ts34 get position(): {x: number; y: number; z: number} {
35 const result = {x: 0, y: 0, z: 0};
39 typeof this.device.position.x === 'number') {
40 result.x = this.device.position.x;
54 set position(pos: {x: number; y: number; z: number}) {
125 dimension: {x: number; y: number; z: number};
141 dimension: {x: 10, y: 10, z: 0},
201 handleDrop(id: string, x: number, y: number) {
204 device.position = {x, y, z: device.position.z};
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DTargetFileUtilsTest.java47 for (int x = 0; x <= 7; x++) { in testHasPermission()
50 String permission = "" + x + y + z; in testHasPermission()
52 if (hasPermission(x, FilePermission.READ) in testHasPermission()
58 if (hasPermission(x, FilePermission.WRITE) in testHasPermission()
64 if (hasPermission(x, FilePermission.EXECUTE) in testHasPermission()
/tools/netsim/src/util/
Dstring_utils.cc66 std::string ToHexString(uint8_t x, uint8_t y) { in ToHexString() argument
69 hex_digits[x >> 4], in ToHexString()
70 hex_digits[x & 0x0f], in ToHexString()
75 std::string ToHexString(uint8_t x) { in ToHexString() argument
76 return {'0', 'x', hex_digits[x >> 4], hex_digits[x & 0x0f]}; in ToHexString()
/tools/repohooks/
Dpre-upload.py121 pending = ', '.join(x.name for x in self.hooks)
185 for result in (x for x in hook_results if x.fixup_cmd):
230 ret += '\n'.join(f' {x}' for x in lines)
272 fixups.extend((project_results.workdir, x)
273 for x in project_results.fixups)
382 hooks = [x for x in hooks if rel_proj_dir not in x.scope]
423 x.result() for x in concurrent.futures.as_completed(futures)
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DGcovKernelCodeCoverageCollectorTest.java268 assertTrue(logFileNames.removeIf(x -> x.startsWith(moduleName1))); in multipleModuleRun_returnMultipleModuleNamedTars()
269 assertTrue(logFileNames.removeIf(x -> x.startsWith(moduleName2))); in multipleModuleRun_returnMultipleModuleNamedTars()
270 assertTrue(logFileNames.removeIf(x -> x.startsWith(moduleName3))); in multipleModuleRun_returnMultipleModuleNamedTars()
384 assertTrue(logFileNames.removeIf(x -> x.startsWith(moduleName))); in singleModuleSingleTestRunWithReboot_returnTwoTars()
396 assertTrue(logFileNames.removeIf(x -> x.startsWith(moduleName1))); in multiModuleSingleTestRunWithReboot_returnFourTars()
398 assertTrue(logFileNames.removeIf(x -> x.startsWith(moduleName2))); in multiModuleSingleTestRunWithReboot_returnFourTars()
/tools/treble/split/
Dmanifest_diff.py117 key_fn=lambda x: x.get('dest'),
185 key_fn=lambda x: x.get('name'),
209 key_fn=lambda x: x.get('path', x.get('name')),
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java395 for (int x = 0; x < width; x++) { in projectPixelsToXAxis()
396 final int color = img.getRGB(x, y); in projectPixelsToXAxis()
399 horizontal[x]++; in projectPixelsToXAxis()
422 for (int x = min; x <= max; x++) { in projectPixelsToYAxis()
423 final int color = img.getRGB(x, y); in projectPixelsToYAxis()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DDetectRegression.java256 return list.stream().collect(Collectors.averagingDouble(x -> x)); in calcMean()
263 list.stream().collect(Collectors.averagingDouble(x -> Math.pow(x - mean, 2)))); in calcStdDev()
271 for (int x = 0; x < priorRuns; x++) { in probFalsePositive()
272 prior[x] = rand.nextGaussian(); in probFalsePositive()
/tools/netsim/rust/daemon/src/
Dranging.rs63 checked_div(delta.x, delta.z).map_or( in azimuth()
64 match delta.x == 0. { in azimuth()
66 false => delta.x.signum() * std::f32::consts::FRAC_2_PI, in azimuth()
69 ) + if delta.z >= 0. { 0. } else { delta.x.signum() * std::f32::consts::PI } in azimuth()
76 checked_div(delta.y, f32::sqrt(delta.x.powi(2) + delta.z.powi(2))) in elevation()
93 pub fn new(x: f32, y: f32, z: f32, yaw: f32, pitch: f32, roll: f32) -> Self { in new()
96 position: Vec3::new(x * 100., y * 100., z * 100.), in new()
/tools/netsim/ui/dist/js/
Ddevice-observer.js1x:0,y:0,z:0};return"position"in this.device&&this.device.position&&"object"==typeof this.device.po… property

123456789