Searched refs:PowerMonitorSource (Results 1 – 9 of 9) sorted by relevance
12 PowerMonitorSource::PowerMonitorSource() = default;13 PowerMonitorSource::~PowerMonitorSource() = default;15 bool PowerMonitorSource::IsOnBatteryPower() { in IsOnBatteryPower()20 void PowerMonitorSource::ProcessPowerEvent(PowerEvent event_id) { in ProcessPowerEvent()25 PowerMonitorSource* source = monitor->Source(); in ProcessPowerEvent()62 void PowerMonitorSource::SetInitialOnBatteryPowerState(bool on_battery_power) { in SetInitialOnBatteryPowerState()
16 class PowerMonitorSource; variable23 explicit PowerMonitor(std::unique_ptr<PowerMonitorSource> source);40 friend class PowerMonitorSource;42 PowerMonitorSource* Source();49 std::unique_ptr<PowerMonitorSource> source_;
19 class BASE_EXPORT PowerMonitorSource {21 PowerMonitorSource();22 virtual ~PowerMonitorSource();70 DISALLOW_COPY_AND_ASSIGN(PowerMonitorSource);
13 void ProcessPowerEventHelper(PowerMonitorSource::PowerEvent event) { in ProcessPowerEventHelper()14 PowerMonitorSource::ProcessPowerEvent(event); in ProcessPowerEventHelper()25 ProcessPowerEventHelper(PowerMonitorSource::POWER_STATE_EVENT); in JNI_PowerMonitor_OnBatteryChargingChanged()
15 PowerMonitor::PowerMonitor(std::unique_ptr<PowerMonitorSource> source) in PowerMonitor()41 PowerMonitorSource* PowerMonitor::Source() { in Source()
26 class BASE_EXPORT PowerMonitorDeviceSource : public PowerMonitorSource {
18 std::unique_ptr<PowerMonitorSource>(power_monitor_source_))); in PowerMonitorTest()
13 class PowerMonitorTestSource : public PowerMonitorSource {
26 std::unique_ptr<base::PowerMonitorSource> power_monitor_source( in TEST()