Home
last modified time | relevance | path

Searched refs:Measurement (Results 1 – 3 of 3) sorted by relevance

/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/power/
Dpower_metrics.py58 class Measurement(object): class
80 return Measurement(amps, CURRENT, AMP)
85 return Measurement(watts, POWER, WATT)
90 return Measurement(seconds, TIME, SECOND)
109 return Measurement(self.value + other.to_unit(self._unit).value,
116 return Measurement(self.value - other.to_unit(self._unit).value,
151 return Measurement(new_value, self._unit_type, new_unit)
226 test_starts[test_name] = Measurement(
234 test_ends[test_name] = Measurement(
259 return Measurement.amps(0).to_unit(MILLIAMP)
[all …]
Dinstrumentation_power_test.py47 from acts.test_utils.instrumentation.power.power_metrics import Measurement
470 lower_bound = Measurement(lower_value, unit_type, unit)
471 upper_bound = Measurement(upper_value, unit_type, unit)
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/power/
Dpower_metrics_test.py27 from acts.test_utils.instrumentation.power.power_metrics import Measurement
43 measurement = Measurement(2, CURRENT, MILLIAMP)
50 measurement = Measurement(2, FAKE_UNIT_TYPE, FAKE_UNIT)
55 current_amps = Measurement.amps(15)
63 current_amps = Measurement.amps(3.4)
70 time_a = Measurement.seconds(120)
71 time_b = Measurement(2, TIME, MINUTE)
72 time_c = Measurement(0.1, TIME, HOUR)
88 time_a = Measurement(3, TIME, HOUR)
89 time_b = Measurement(90, TIME, MINUTE)