Searched refs:to_unit (Results 1 – 2 of 2) sorted by relevance
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | power_metrics.py | 105 return self.value == other.to_unit(self.unit).value 108 return self.value < other.to_unit(self.unit).value 119 return Metric(self.value + other.to_unit(self.unit).value, 126 return Metric(self.value - other.to_unit(self.unit).value, 137 def to_unit(self, new_unit): member in Metric 189 times[START_TIMESTAMP], TIME, MILLISECOND).to_unit( 192 times[END_TIMESTAMP], TIME, MILLISECOND).to_unit( 215 Metric.amps(p[1], 'percentile_%s' % p[0]).to_unit(MILLIAMP) for p in 243 times[START_TIMESTAMP], TIME, MILLISECOND).to_unit( 246 times[END_TIMESTAMP], TIME, MILLISECOND).to_unit( [all …]
|
/tools/test/connectivity/acts/framework/tests/controllers/ |
D | power_metrics_test.py | 59 current_milliamps = current_amps.to_unit(MILLIAMP) 68 power_watts = current_amps.to_unit(WATT)
|