Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/framework/acts/controllers/
Dpower_metrics.py104 return self.value == other.to_unit(self.unit).value
107 return self.value < other.to_unit(self.unit).value
118 return Metric(self.value + other.to_unit(self.unit).value,
125 return Metric(self.value - other.to_unit(self.unit).value,
136 def to_unit(self, new_unit): member in Metric
191 times[START_TIMESTAMP], TIME, MILLISECOND).to_unit(
199 times[END_TIMESTAMP], TIME, MILLISECOND).to_unit(
265 return Metric.amps(0).to_unit(MILLIAMP)
268 .to_unit(MILLIAMP))
273 return Metric.amps(self._max_current or 0, 'max_current').to_unit(
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/
Dpower_metrics_test.py59 current_milliamps = current_amps.to_unit(MILLIAMP)
68 power_watts = current_amps.to_unit(WATT)