Home
last modified time | relevance | path

Searched refs:battery (Results 1 – 25 of 174) sorted by relevance

1234567

/external/chromium-trace/catapult/devil/devil/android/
Dbattery_utils_test.py86 self.battery = battery_utils.BatteryUtils(
109 self.battery._cache['profile'] = self._NEXUS_5
114 (self.call.battery.GetCharging(), False),
115 (self.call.battery.GetCharging(), True)):
116 self.battery._HardwareSetCharging(True)
119 self.battery._cache['profile'] = self._NEXUS_5
124 (self.call.battery.GetCharging(), True)):
125 self.battery._HardwareSetCharging(True)
129 self.battery._cache['profile'] = self._NEXUS_5
134 (self.call.battery.GetCharging(), True),
[all …]
/external/cros/system_api/dbus/power_manager/
Dpower_supply_properties.proto14 // enough rate that the battery is discharging rather than charging; see
32 // The battery is full or close to full.
35 // The battery is being charged but is not yet full.
38 // The battery is discharging. Note that an external power source may be
40 // instantaneous power consumption. This state is also used if the battery
42 // state, which may indicate a battery defect.
45 // The system doesn't have a battery.
134 // Current state of the battery.
137 // Estimated battery charge as a percent of its total capacity, in the
138 // range [0.0, 100.0]. Unset if a battery isn't present.
[all …]
/external/autotest/client/site_tests/suite_HWQual/
Dcontrol.battery_charge_time13 This test measures the battery charging time and enforces constraints. Before
14 running this test, the battery charge should be less than 5% and the device
15 should be plugged into AC. Also, the battery capacity at test time must be
16 at least 80% of design capacity (battery wear can be 20% at most). Over the
17 course of 3 hours, the battery charge should increase by at least 94% of the
18 maximum battery charge.
25 # battery must be at least 80% of design capacity
DREADME.txt15 - AC: alternating current, implies device is not powered by battery.
178 - Run the DUT on battery. Probe the battery driver:
191 - Run the DUT on battery. Plug a power draw USB dongle in each USB
202 - Run the DUT on battery. Run the power settings test:
207 - Make sure the remaining battery charge is less than 5%. Note that the test
208 will check and fail quickly if the initial battery charge is more than 5%.
209 Run the DUT on AC. Run the battery charge test:
214 - Make sure that the battery is fully charged. Note that the test will not
215 check if the battery is fully charged before running. Run the DUT on
216 battery. Run the battery load test by first following the manual
/external/chromium-trace/catapult/devil/devil/android/tools/
Ddevice_monitor_test.py58 self.battery = mock.Mock()
59 self.battery.GetBatteryInfo = mock.MagicMock(
90 get_battery.return_value = self.battery
99 get_battery.return_value = self.battery
116 get_battery.return_value = self.battery
132 get_battery.return_value = self.battery
146 get_battery.return_value = self.battery
163 get_battery.return_value = self.battery
Ddevice_status.py42 battery = battery_utils.BatteryUtils(device)
43 battery_info = battery.GetBatteryInfo(timeout=5)
48 battery = battery_utils.BatteryUtils(device)
49 if not battery.GetCharging():
50 battery.SetCharging(True)
/external/autotest/client/cros/power/
Dpower_test.py126 if self.status.battery:
127 keyvals['ah_charge_full'] = self.status.battery[0].charge_full
129 self.status.battery[0].charge_full_design
130 keyvals['ah_charge_now'] = self.status.battery[0].charge_now
131 keyvals['a_current_now'] = self.status.battery[0].current_now
132 keyvals['wh_energy'] = self.status.battery[0].energy
133 keyvals['w_energy_rate'] = self.status.battery[0].energy_rate
135 self.status.battery[0].voltage_min_design
136 keyvals['v_voltage_now'] = self.status.battery[0].voltage_now
/external/u-boot/doc/
DREADME.power-framework38 The problem emerges when we have a device (battery) which conceptually shall be
40 to start charging the battery, use PMIC to reduce board's overall power
42 energy on the battery from FG.
55 e.g. ./drivers/power/battery/trats/bat_trats.c
64 Everything is a power device described by struct pmic. Even battery is
81 1. When hierarchy is not needed (no complex battery charge):
90 2. Complex battery charging.
92 To charge a battery, information from several "abstract" power devices is
95 -- *fg_battery_check - check if battery is not above its limits
97 battery state(voltage and current capacity)
[all …]
/external/u-boot/arch/arm/dts/
Dcros-ec-sbs.dtsi3 * Smart battery dts fragment for devices that use cros-ec-sbs
9 battery: sbs-battery@b { label
10 compatible = "sbs,sbs-battery";
/external/u-boot/drivers/power/battery/
Dbat_trats.c14 static struct battery battery_trats;
19 struct battery *battery = p_bat->bat; in power_battery_charge() local
27 battery->state_of_chrg < 100; k++) { in power_battery_charge()
34 debug(" %d [V]", battery->voltage_uV); in power_battery_charge()
/external/autotest/client/site_tests/power_Standby/
Dpower_Standby.py61 charge_start = power_stats.battery[0].charge_now
62 voltage_start = power_stats.battery[0].voltage_now
79 charge_before = power_stats.battery[0].charge_now
100 charge_used = charge_before - power_stats.battery[0].charge_now
117 charge_end = power_stats.battery[0].charge_now
122 voltage_end = power_stats.battery[0].voltage_now
123 standby_hours = power_stats.battery[0].charge_full_design / \
/external/autotest/client/site_tests/power_LoadTest/
DREADME.md6 Modern mobile computers are sold with an advertised battery life, ranging from a
8 many users report that their actual battery life doesn’t match up with the
9 advertised numbers. For Chrome OS devices, we wanted to try and report battery
12 resultant battery life. This test is as an [open source][1] Chrome extension
15 The `power_LoadTest` runs as a series of one hour long iterations until battery
27 * Screen: Set to platform default brightness on battery or 40% if default can
43 * Device only powered by battery (no AC power).
45 iterations until battery passes low threshold (typically set at 3%). Initial
46 & remaining battery charge is recorded.
78 [chroot][6]. (Make sure you have battery fully charged with AC power source and
[all …]
Dpower_LoadTest.py239 if self._power_status.battery:
240 self._ah_charge_start = self._power_status.battery[0].charge_now
241 self._wh_energy_start = self._power_status.battery[0].energy
259 if self._power_status.battery:
437 if self._power_status.battery:
438 keyvals['a_current_now'] = self._power_status.battery[0].current_now
440 self._power_status.battery[0].charge_full
442 self._power_status.battery[0].charge_full_design
444 keyvals['ah_charge_now'] = self._power_status.battery[0].charge_now
448 keyvals['wh_energy_now'] = self._power_status.battery[0].energy
[all …]
/external/perfetto/protos/perfetto/trace/power/
Dbattery_counters.proto25 // Remaining battery capacity percentage of total capacity
28 // Instantaneous battery current in microamperes(µA).
29 // Positive values indicate net current entering the battery from a charge
30 // source, negative values indicate net current discharging from the battery.
33 // Instantaneous battery current in microamperes(µA).
/external/autotest/client/site_tests/power_BatteryCharge/
Dpower_BatteryCharge.py53 self.charge_full_design = self.status.battery[0].charge_full_design
54 self.charge_full = self.status.battery[0].charge_full
63 self.initial_charge = self.status.battery[0].charge_now
100 new_charge = self.status.battery[0].charge_now
107 if self.status.battery[0].status == 'Full':
118 keyvals['ah_final_charge'] = self.status.battery[0].charge_now
Dcontrol7 PURPOSE = "Measure the time required to charge the battery."
19 initialization and parsing routines for battery status.
/external/autotest/client/site_tests/power_Draw/
Dpower_Draw.py30 start_energy = status.battery[0].energy
40 end_energy = status.battery[0].energy
46 keyvals['wh_energy_full'] = status.battery[0].energy_full
51 keyvals['w_end_energy_rate'] = status.battery[0].energy_rate
/external/autotest/client/site_tests/hardware_MultiReaderPowerConsumption/
Dhardware_MultiReaderPowerConsumption.py116 max_charge = self.status.battery[0].charge_full_design
117 initial_charge = self.status.battery[0].charge_now
123 charge_A = self.status.battery[0].charge_now
133 charge_B = self.status.battery[0].charge_now
143 charge_C = self.status.battery[0].charge_now
/external/autotest/server/site_tests/sequences/
Dcontrol.power_daily12 DEPENDENCIES = "power:battery, rpm"
30 # Charge the battery to at least 50% in preparation for the consumption
31 # test. Charging the battery from empty to full can take up to 4 hours.
44 # Charge the battery to at least 99% in preparation for the load
45 # test. Charging the battery from empty to full can take up to 4 hours.
Dcontrol.power44 # Charge battery to at least 50% first
61 # Charge the battery to at least 99% in preparation for the load
62 # test. Charging the battery from empty to full can take up to 4 hours.
Dcontrol.power_build19 This suite runs the test list on systems with AC off (on battery)
47 # Tests that are only run on battery power here.
62 """Runs client tests - all with battery actively discharging."""
/external/autotest/client/profilers/powertop/src/
DREADME1 What's eating the battery life of my laptop? Why isn't it many more
9 idle for long periods, which translates into a longer battery life for
21 components are the biggest offenders in slurping up your battery time.
28 battery life of typical laptops was increased by one hour or more!
32 maximum battery life out of your (hopefully Intel based) laptops. Try
/external/autotest/server/site_tests/firmware_ECBattery/
Dcontrol9 PURPOSE = "Servo based EC battery status report test"
10 CRITERIA = "This test will fail if EC battery status report misbehalved."
20 This test check battery status read from EC console and kernel sysfs match.
/external/autotest/client/site_tests/power_ProbeDriver/
Dpower_ProbeDriver.py56 if not status.battery:
59 if not status.battery[0].present:
/external/autotest/server/site_tests/video_PowerConsumption/
Dcontrol.webrtc12 DEPENDENCIES = "power:battery"
29 """Runs client test with battery actively discharging."""

1234567