Home
last modified time | relevance | path

Searched refs:voltage (Results 1 – 14 of 14) sorted by relevance

/external/autotest/server/site_tests/firmware_ECCharging/
Dfirmware_ECCharging.py33 voltage = int(self.ec.send_command_get_output("battery",
35 logging.info("Battery desired voltage = %d mV", voltage)
36 return voltage
49 voltage = int(self.ec.send_command_get_output("battery",
51 logging.info("Battery actual voltage = %d mV", voltage)
52 return voltage
73 voltage = int(self.ec.send_command_get_output("charger",
75 logging.info("Charger target voltage = %d mV", voltage)
76 return voltage
Dcontrol21 - Charger target voltage should be less than 105% of battery desired voltage.
23 - Charger actual voltage should be less than 105% of charger target voltage.
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/
Dandroid_power_monitor_base.py22 voltage = 4.0
23 logging.warning('Unable to get device voltage. Using %s.', voltage)
25 voltage = float(millivolts) / 1000
26 logging.info('Device voltage at %s', voltage)
27 return voltage
Dandroid_dumpsys_power_monitor.py49 voltage = self._ParseVoltage(self._battery.GetBatteryInfo().get('voltage'))
51 power_results = self.ProcessPowerData(power_data, voltage, package)
56 def ProcessPowerData(power_data, voltage, package): argument
66 'energy_consumption_mwh': power_data['system_total'] * voltage,
67 'application_energy_consumption_mwh': package_power * voltage}
Dandroid_fuelgauge_power_monitor.py36 voltage = self._ParseVoltage(self._battery.GetBatteryInfo().get('voltage'))
37 return self.ProcessPowerData(voltage, fuel_gauge_delta)
40 def ProcessPowerData(voltage, fuel_gauge_delta): argument
42 'fuel_gauge_energy_consumption_mwh': fuel_gauge_delta * voltage}
Dandroid_dumpsys_power_monitor_unittest.py51 battery = pm_mock.MockBattery(_TYPICAL_POWER_DATA_MULTISAMPLE, voltage=5.0)
63 battery = pm_mock.MockBattery(_TYPICAL_POWER_DATA_MULTISAMPLE, voltage=5.0)
73 battery = pm_mock.MockBattery(_TYPICAL_POWER_DATA_MULTISAMPLE, voltage=5.0)
82 battery = pm_mock.MockBattery(_TYPICAL_POWER_DATA_MULTISAMPLE, voltage=5.0)
Dandroid_fuelgauge_power_monitor_unittest.py24 battery = pm_mock.MockBattery(None, voltage=5.0, fuelgauge=[5.e6, 3.e6])
32 battery = pm_mock.MockBattery(None, voltage=5.0, fuelgauge=[5.e6, 3.e6])
40 battery = pm_mock.MockBattery(None, voltage=5.0, fuelgauge=[5.e6, 3.e6])
Dpm_mock.py17 voltage=4.0, argument
22 self._voltage = voltage
/external/autotest/server/cros/servo/
Dplankton.py115 def charge(self, voltage): argument
120 if voltage not in self.USBC_CHARGING_VOLTAGES:
121 raise PlanktonError('Invalid charging voltage: %s' % voltage)
123 self.set(self.USBC_ROLE, self.USBC_CHARGING_VOLTAGES[voltage])
/external/autotest/server/site_tests/firmware_PDVbusRequest/
Dfirmware_PDVbusRequest.py121 for voltage in self.plankton.get_charging_voltages():
122 logging.info('********* %r *********', voltage)
124 self.plankton.charge(voltage)
Dcontrol9 PURPOSE = "Servo based PD VBUS voltage level test"
10 CRITERIA = "This test will fail if actual voltage does not meet expected"
/external/autotest/server/site_tests/firmware_TypeCCharging/
Dcontrol10 CRITERIA = "This test will fail if Plankton type C VBUS voltage not in range."
20 doesn't accept positive charging voltage.
/external/autotest/client/profilers/powertop/src/
Dpowertop.c501 double voltage = 0.0; in print_battery_proc_acpi() local
530 voltage = strtoull(c, NULL, 10) / 1000.0; in print_battery_proc_acpi()
548 rate += watts_drawn + voltage * amperes_drawn; in print_battery_proc_acpi()
550 cap += watts_left + voltage * amperes_left; in print_battery_proc_acpi()
668 double voltage = 0.0; in print_battery_sysfs() local
705 voltage = strtoull(line, NULL, 10) / 1000000.0; in print_battery_sysfs()
719 watts_left = voltage; in print_battery_sysfs()
737 rate += watts_drawn + voltage * amperes_drawn; in print_battery_sysfs()
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dmonsoon.py213 for main, usb, _, voltage in data:
214 main_voltage_v = self._voltage_multiplier * (voltage & ~3)