Home
last modified time | relevance | path

Searched refs:PowerMonitor (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/base/power_monitor/
Dpower_monitor.cc10 static PowerMonitor* g_power_monitor = NULL;
12 PowerMonitor::PowerMonitor(scoped_ptr<PowerMonitorSource> source) in PowerMonitor() function in base::PowerMonitor
19 PowerMonitor::~PowerMonitor() { in ~PowerMonitor()
25 PowerMonitor* PowerMonitor::Get() { in Get()
29 void PowerMonitor::AddObserver(PowerObserver* obs) { in AddObserver()
33 void PowerMonitor::RemoveObserver(PowerObserver* obs) { in RemoveObserver()
37 PowerMonitorSource* PowerMonitor::Source() { in Source()
41 bool PowerMonitor::IsOnBatteryPower() { in IsOnBatteryPower()
45 void PowerMonitor::NotifyPowerStateChange(bool battery_in_use) { in NotifyPowerStateChange()
51 void PowerMonitor::NotifySuspend() { in NotifySuspend()
[all …]
Dpower_monitor.h20 class BASE_EXPORT PowerMonitor {
23 explicit PowerMonitor(scoped_ptr<PowerMonitorSource> source);
24 ~PowerMonitor();
27 static PowerMonitor* Get();
50 DISALLOW_COPY_AND_ASSIGN(PowerMonitor);
Dpower_monitor_unittest.cc15 power_monitor_.reset(new PowerMonitor( in PowerMonitorTest()
21 PowerMonitor* monitor() { return power_monitor_.get(); } in monitor()
25 scoped_ptr<PowerMonitor> power_monitor_;
Dpower_monitor_source.cc25 PowerMonitor* monitor = PowerMonitor::Get(); in ProcessPowerEvent()
Dpower_monitor_source.h16 class PowerMonitor; variable
Dpower_monitor_device_source_mac.mm70 // Need to call AllocateSystemIOPorts() before creating a PowerMonitor
/external/chromium_org/content/browser/
Dpower_monitor_message_broadcaster.cc16 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in PowerMonitorMessageBroadcaster()
22 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~PowerMonitorMessageBroadcaster()
Dpower_monitor_message_broadcaster_unittest.cc53 power_monitor_.reset(new base::PowerMonitor( in PowerMonitorMessageBroadcasterTest()
59 base::PowerMonitor* monitor() { return power_monitor_.get(); } in monitor()
63 scoped_ptr<base::PowerMonitor> power_monitor_;
Dbrowser_main_loop.h20 class PowerMonitor; variable
137 scoped_ptr<base::PowerMonitor> power_monitor_;
/external/chromium_org/base/android/java/src/org/chromium/base/
DPowerMonitor.java19 public class PowerMonitor implements ActivityStatus.StateListener { class
22 private static final PowerMonitor INSTANCE = new PowerMonitor();
24 private static PowerMonitor sInstance;
57 private PowerMonitor() { in PowerMonitor() method in PowerMonitor
DPowerStatusReceiver.java21 PowerMonitor.onBatteryChargingChanged(intent); in onReceive()
/external/chromium_org/net/http/
Dhttp_network_layer.cc28 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in HttpNetworkLayer()
36 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~HttpNetworkLayer()
/external/chromium_org/base/timer/
Dhi_res_timer_manager_win.cc14 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in HighResolutionTimerManager()
21 base::PowerMonitor::Get()->RemoveObserver(this); in ~HighResolutionTimerManager()
Dhi_res_timer_manager_unittest.cc22 scoped_ptr<base::PowerMonitor> power_monitor( in TEST()
23 new base::PowerMonitor(power_monitor_source.Pass())); in TEST()
/external/chromium_org/content/child/
Dpower_monitor_broadcast_source_unittest.cc17 power_monitor_.reset(new base::PowerMonitor( in PowerMonitorBroadcastSourceTest()
23 base::PowerMonitor* monitor() { return power_monitor_.get(); } in monitor()
29 scoped_ptr<base::PowerMonitor> power_monitor_;
Dchild_thread.cc214 if (!base::PowerMonitor::Get()) { in Init()
219 power_monitor_.reset(new base::PowerMonitor( in Init()
Dchild_thread.h228 scoped_ptr<base::PowerMonitor> power_monitor_;
/external/chromium_org/content/gpu/
Dgpu_watchdog_thread.cc117 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~GpuWatchdogThread()
269 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in OnAddPowerObserver()
/external/chromium_org/testing/android/java/src/org/chromium/native_test/
DChromeNativeTestActivity.java14 import org.chromium.base.PowerMonitor;
34 PowerMonitor.createForTests(this); in onCreate()
/external/chromium_org/tools/valgrind/tsan_v2/
Dsuppressions.txt101 race:base::PowerMonitor::PowerMonitor
102 race:base::PowerMonitor::AddObserver
/external/chromium_org/net/url_request/
Durl_request_job.cc38 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in URLRequestJob()
236 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~URLRequestJob()
/external/chromium_org/components/nacl/loader/
Dnacl_main.cc27 base::PowerMonitor power_monitor(power_monitor_source.Pass()); in NaClMain()
Dnacl_helper_win_64.cc35 base::PowerMonitor power_monitor(power_monitor_source.Pass()); in NaClBrokerMain()
/external/chromium_org/chrome/browser/extensions/
Devent_router_forwarder_unittest.cc100 dummy.reset(new base::PowerMonitor(power_monitor_source.Pass())); in EventRouterForwarderTest()
127 scoped_ptr<base::PowerMonitor> dummy;
/external/chromium_org/tools/valgrind/tsan/
Dsuppressions.txt1106 fun:base::PowerMonitor::PowerMonitor
1115 fun:base::PowerMonitor::*

12