Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/power/
Dpower_metrics.py95 return self.value == other.to_unit(self._unit).value
98 return self.value < other.to_unit(self._unit).value
109 return Measurement(self.value + other.to_unit(self._unit).value,
116 return Measurement(self.value - other.to_unit(self._unit).value,
135 def to_unit(self, new_unit): member in Measurement
228 .to_unit(SECOND).value - self._start_time
236 .to_unit(SECOND).value - self._start_time
259 return Measurement.amps(0).to_unit(MILLIAMP)
261 .to_unit(MILLIAMP))
266 return Measurement.amps(self._max_current or 0).to_unit(MILLIAMP)
[all …]
Dinstrumentation_power_test.py474 'actual': str(actual_result.to_unit(unit))
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/power/
Dpower_metrics_test.py56 current_milliamps = current_amps.to_unit(MILLIAMP)
65 power_watts = current_amps.to_unit(WATT)