Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 20 of 20) sorted by relevance

/tools/netsim/rust/daemon/src/
Dranging.rs62 fn azimuth(delta: Vec3) -> f32 { in azimuth()
63 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()
75 fn elevation(delta: Vec3) -> f32 { in elevation()
76 checked_div(delta.y, f32::sqrt(delta.x.powi(2) + delta.z.powi(2))) in elevation()
77 .map_or(delta.y.signum() * std::f32::consts::FRAC_PI_2, f32::atan) in elevation()
112 let delta = b.position - a.position; in compute_range_azimuth_elevation() localVariable
113 let distance = delta.length().clamp(0.0, u16::MAX as f32); in compute_range_azimuth_elevation()
[all …]
/tools/test/connectivity/acts/framework/acts/
Dasserts.py36 delta=None, argument
51 if delta:
53 first, second, msg=msg, delta=delta)
Dlogger.py139 def _get_timestamp(time_format, delta=None): argument
141 if delta:
142 t = t + datetime.timedelta(seconds=delta)
162 def get_log_line_timestamp(delta=None): argument
174 return _get_timestamp("%Y-%m-%d %H:%M:%S.%f", delta)
177 def get_log_file_timestamp(delta=None): argument
189 return _get_timestamp("%Y-%m-%d_%H-%M-%S-%f", delta)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/
Daudio_quality_measurement_integrationtest.py190 delta = abs(result['artifacts']['delay_during_playback'][i][0] -
192 self.assertTrue(delta < 0.001)
194 delta = abs(result['artifacts']['delay_during_playback'][i][1] -
196 self.assertTrue(delta < 0.001)
204 delta = abs(result['artifacts']['noise_before_playback'][0][0] - 0.1)
205 self.assertTrue(delta < 0.01)
206 delta = abs(result['artifacts']['noise_before_playback'][0][1] - 0.005)
207 self.assertTrue(delta < 0.004)
221 delta = abs(result['artifacts']['noise_after_playback'][0][0] - 1.95)
222 self.assertTrue(delta < 0.01)
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/audio_lab/
DBtFunhausMetricsTest.py73 a2dp_session_log.session_duration_sec, bt_duration, delta=10)
77 delta=10000)
126 a2dp_session_log.session_duration_sec, bt_duration, delta=10)
130 delta=20000)
171 a2dp_session_log.session_duration_sec, bt_duration, delta=10)
175 delta=5000)
/tools/repohooks/rh/
Dutils_unittest.py41 delta = datetime.timedelta(0)
42 self.assertEqual('0.000s', rh.utils.timedelta_str(delta))
46 delta = datetime.timedelta(seconds=0.123456)
47 self.assertEqual('0.123s', rh.utils.timedelta_str(delta))
51 delta = datetime.timedelta(seconds=12.3)
52 self.assertEqual('12.300s', rh.utils.timedelta_str(delta))
56 delta = datetime.timedelta(seconds=72.3)
57 self.assertEqual('1m12.300s', rh.utils.timedelta_str(delta))
61 delta = datetime.timedelta(seconds=4000.3)
62 self.assertEqual('1h6m40.300s', rh.utils.timedelta_str(delta))
Dutils.py36 def timedelta_str(delta): argument
42 total = delta.total_seconds()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DComparisonVisitor.kt474 var delta = item1.name().compareTo((item2 as MethodItem).name()) in pop() variable
475 if (delta == 0) { in pop()
481 delta = parameterCount1 - parameterCount2 in pop()
482 if (delta == 0) { in pop()
490 delta = type1.compareTo(type2) in pop()
491 if (delta != 0) { in pop()
502 delta = simpleType1.compareTo(simpleType2) in pop()
503 if (delta != 0) { in pop()
523 delta = t1.compareTo(t2) in pop()
524 if (delta != 0) { in pop()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DByteTracker.java96 private synchronized void updateUsage(long delta) {
97 bytesUsed += delta;
/tools/dexter/slicer/
Ddebuginfo_encoder.cc59 int delta = line - last_line_; in Visit() local
60 int adj_opcode = delta - dex::DBG_LINE_BASE; in Visit()
64 dbginfo_.PushSLeb128(delta); in Visit()
Dinstrumentation.cc658 int delta = std::min(left_to_allocate_, in RegsRenumbering() local
660 if (delta < 1) { in RegsRenumbering()
664 assert(delta <= 16); in RegsRenumbering()
667 RegsRenumberVisitor visitor(delta); in RegsRenumbering()
673 Allocate(code_ir, 0, delta); in RegsRenumbering()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_atten_utils.py66 delta = target_atten - current_atten
68 number_of_steps = int(abs(delta) / step_size)
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiScannerMultiScanTest.py71 delta = abs(actual_interval - expected_interval)
74 delta < margin, "The difference in time between scan %s and "
76 scan_result, scan_result_next, delta / 1000,
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DMethodItem.kt223 val delta = o1.sortingRank - o2.sortingRank in <lambda>() constant
224 if (delta == 0) { in <lambda>()
230 delta in <lambda>()
DClassItem.kt265 val delta = o1.fullName().compareTo(o2.fullName()) in <lambda>() constant
266 if (delta == 0) { in <lambda>()
269 delta in <lambda>()
/tools/asuite/atest/test_runners/
Devent_handler.py327 delta = timedelta(milliseconds=duration)
328 timestamp = str(delta).split(':') # hh:mm:microsec
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dcellular_power_preset_base_test.py456 delta = float(delta_str[:-2].strip())
462 power = delta / elapsed_time_s
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DArtRunTest.java668 for (String delta : unifiedDiff) { in computeDiff()
669 diffOutput.append(delta).append('\n'); in computeDiff()
/tools/test/connectivity/acts_tests/tests/google/tel/lab/
DTelLabNeighborCellTest.py568 delta = []
577 delta.append(cell['rsrp'] - init_rsrp)
581 delta.append(-99)
583 self.log.info("delta = {}".format(delta))
/tools/dexter/testdata/expected/
Dmedium.compact_cfg41812 .params "delta", "width", "velocity"
41863 63| const-string/jumbo v8, " delta:"
151507 .local v0, "delta", long