Home
last modified time | relevance | path

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

1234567

/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/google/wifi/
DWifiRssiTest.py126 float('{:.2f}'.format(x))
127 for x in postprocessed_results['signal_poll_rssi']['stdev']
129 float('{:.2f}'.format(x))
130 for x in postprocessed_results['chain_0_rssi']['stdev']
132 float('{:.2f}'.format(x))
133 for x in postprocessed_results['chain_1_rssi']['stdev']
168 filtered_error = [x for x in val['error'] if not math.isnan(x)]
173 [abs(x) for x in filtered_error])
176 [abs(x - avg_shift) for x in filtered_error])
238 x for data_point in rssi_result['rssi_result'] for x in
[all …]
DWifiPingTest.py150 sorted(x['rtt'][round(ignored_fraction * len(x['rtt'])):])
151 for x in result['ping_results']
153 disconnected = any([len(x) == 0 for x in sorted_rtt])
158 x[int((1 - self.testclass_params['rtt_test_percentile'] / 100) *
159 len(x))] for x in sorted_rtt
220 x['packet_loss_percentage']
221 for x in ping_range_result['ping_results']
224 x > self.testclass_params['range_ping_loss_threshold']
225 for x in ping_loss_over_att
487 start_atten + x * self.testclass_params['range_atten_step']
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dsocket_test_utils.py107 recv_list = [x.rstrip('\x00') if x else x for x in recv_list]
169 recv_list = [x.rstrip('\x00') if x else x for x in recv_list]
283 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,
238 x, y = _find_point_in_bounds(button_node.attributes['bounds'].value)
241 args = 'input tap %s %s' % (str(x), str(y))
245 (str(x), str(y), str(x), str(y), str(duration_ms))
/tools/test/connectivity/acts/framework/tests/
Dacts_relay_controller_test.py412 'SainSmartBoard': lambda x: MockBoard(x),
413 'FuguMockBoard': lambda x: FuguMockBoard(x)
498 self.change_state(RelayState.NO, lambda x: x.press('r0'),
502 self.change_state(RelayState.NC, lambda x: x.press('r0'),
506 self.change_state(RelayState.NO, lambda x: x.hold_down('r0'),
510 self.change_state(RelayState.NC, lambda x: x.hold_down('r0'),
514 self.change_state(RelayState.NC, lambda x: x.release('r0'),
Daudio_analysis_integrationtest.py91 return sorted(results, key=lambda x: x[1], reverse=True)
118 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples)
119 y = (coeff_1 * numpy.sin(freq_1 * 2.0 * numpy.pi * x) + coeff_2 *
120 numpy.sin(freq_2 * 2.0 * numpy.pi * x)) + noise
188 x = numpy.linspace(0.0, (self.samples - 1) * 1.0 / self.rate,
190 self.y = numpy.sin(self.freq * 2.0 * numpy.pi * x)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py208 return [_serialize_value(x) for x in value]
305 for x, y, hover in itertools.zip_longest(x_data, y_data, hover_text):
307 x_data_filtered.append(x)
419 data=dict(x=line['x_data'],
423 self.plot.line(x='x',
444 marker_func(x='x',
789 filtered_rssi_values = [x for x in val['data'] if not math.isnan(x)]
847 filtered_rssi_values = [x for x in val['data'] if not math.isnan(x)]
Dwifi_test_utils.py599 lambda x: x["data"]["enabled"] == state,
649 lambda x: x["data"]["enabled"] == new_state,
937 lambda x: x["data"]["ACTIVE_TETHER"], 30)
968 lambda x: x["data"]["ACTIVE_TETHER"], 30)
986 lambda x: not x["data"]["ACTIVE_TETHER"], 30)
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Daudio_quality_measurement.py148 def hilbert(x): argument
162 x = numpy.asarray(x)
163 if numpy.iscomplexobj(x):
166 N = x.shape[axis]
170 Xf = numpy.fft.fft(x, N, axis=axis)
179 if len(x.shape) > 1:
180 ind = [newaxis] * x.ndim
183 x = numpy.fft.ifft(Xf * h, axis=axis)
184 return x
/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/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/test/connectivity/acts/framework/acts/test_utils/wifi/aware/
Daware_test_utils.py362 for x, y in zip(cdf[0], cdf[1]):
364 decades.append(x)
379 x = []
382 return (x, cdf)
386 if not x:
387 x.append(val)
390 if x[-1] == val:
393 x.append(val)
400 return (x, cdf)
/tools/dexter/testdata/expected/
Dentry_hooks.rewrite25 .local v1, "x", int
78 .local v1, "x", int
201 .local v1, "x", int
218 .local v1, "x", int
237 .local v1, "x", int
282 .local v1, "x", int
303 .local v1, "x", int
322 .local v1, "x", int
396 .local v1, "x", int
471 .local v1, "x", int
Dentry_hooks.compact_cfg28 .local v1, "x", int
85 .local v1, "x", int
216 .local v1, "x", int
235 .local v1, "x", int
256 .local v1, "x", int
309 .local v1, "x", int
332 .local v1, "x", int
353 .local v1, "x", int
435 .local v1, "x", int
514 .local v1, "x", int
Dentry_hooks.entry_hook27 .local v1, "x", int
82 .local v1, "x", int
209 .local v1, "x", int
227 .local v1, "x", int
247 .local v1, "x", int
293 .local v1, "x", int
315 .local v1, "x", int
335 .local v1, "x", int
413 .local v1, "x", int
490 .local v1, "x", int
Dentry_hooks.verbose_cfg30 .local v1, "x", int
103 .local v1, "x", int
290 .local v1, "x", int
309 .local v1, "x", int
330 .local v1, "x", int
387 .local v1, "x", int
410 .local v1, "x", int
431 .local v1, "x", int
537 .local v1, "x", int
644 .local v1, "x", int
Dentry_hooks.scratch_regs37 .local v2, "x", int
102 .local v2, "x", int
237 .local v10, "x", int
263 .local v8, "x", int
291 .local v3, "x", int
348 .local v6, "x", int
378 .local v8, "x", int
406 .local v8, "x", int
498 .local v2, "x", int
585 .local v2, "x", int
Dentry_hooks.code_coverage129 .local v2, "x", int
202 .local v2, "x", int
389 .local v2, "x", int
408 .local v2, "x", int
429 .local v2, "x", int
486 .local v2, "x", int
509 .local v2, "x", int
530 .local v2, "x", int
636 .local v2, "x", int
743 .local v2, "x", int
/tools/test/openhst/
Dstress_test.py406 events = [x for x in config.event if x.source == file_to_watch.source]
433 events = [x for x in config.event if x.source == daemon_process.name]
798 self.devices.sort(key=lambda x: x.name)
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceSelectionOptions.java601 private static boolean isLessAndNotNull(Integer x, Integer y) { in isLessAndNotNull() argument
602 if ((x == null) || (y == null)) { in isLessAndNotNull()
605 return x < y; in isLessAndNotNull()
609 private static boolean isLessEqAndNotNull(Integer x, Integer y) { in isLessEqAndNotNull() argument
610 if ((x == null) || (y == null)) { in isLessEqAndNotNull()
613 return x <= y; in isLessEqAndNotNull()
/tools/repohooks/rh/
Dhooks_unittest.py101 [rh.git.RawDiffEntry(file=x)
102 for x in ['path1/file1', 'path2/file2']])
274 diff = [rh.git.RawDiffEntry(file=x) for x in files]
300 diff = [rh.git.RawDiffEntry(file=x) for x in files]
/tools/tradefederation/core/atest/test_runners/
Datest_tf_test_runner.py515 key = lambda x: x.test_name argument
573 key = lambda x: x.class_name argument
663 % x for x in extra_args.get(constants.TF_TEMPLATE, [])])
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/
DConnectionStressTest.py98 for x in range(0, self.num_of_iterations):
104 'Attempt %d. Did not associate as expected.' % x)
107 'associated. Fail.' % x)
112 self.log.info('Attempt %d. Successfully associated' % x)
114 self.log.error('Attempt %d. Failed to associate.' % x)

1234567