Home
last modified time | relevance | path

Searched refs:power_monitor (Results 1 – 25 of 53) sorted by relevance

123

/external/chromium_org/content/browser/
Dpower_monitor_message_broadcaster.cc16 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in PowerMonitorMessageBroadcaster() local
17 if (power_monitor) in PowerMonitorMessageBroadcaster()
18 power_monitor->AddObserver(this); in PowerMonitorMessageBroadcaster()
22 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~PowerMonitorMessageBroadcaster() local
23 if (power_monitor) in ~PowerMonitorMessageBroadcaster()
24 power_monitor->RemoveObserver(this); in ~PowerMonitorMessageBroadcaster()
28 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in Init() local
30 if (power_monitor) in Init()
31 OnPowerStateChange(power_monitor->IsOnBatteryPower()); in Init()
/external/chromium_org/net/http/
Dhttp_network_layer.cc28 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in HttpNetworkLayer() local
29 if (power_monitor) in HttpNetworkLayer()
30 power_monitor->AddObserver(this); in HttpNetworkLayer()
36 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~HttpNetworkLayer() local
37 if (power_monitor) in ~HttpNetworkLayer()
38 power_monitor->RemoveObserver(this); in ~HttpNetworkLayer()
/external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/
Dippet_power_monitor_unittest.py10 from telemetry.core.platform.power_monitor import ippet_power_monitor
22 power_monitor = ippet_power_monitor.IppetPowerMonitor(platform_backend)
23 if not power_monitor.CanMonitorPower():
27 power_monitor.StartMonitoringPower(None)
28 statistics = power_monitor.StopMonitoringPower()
Dmsr_power_monitor_unittest.py11 from telemetry.core.platform.power_monitor import msr_power_monitor
18 power_monitor = msr_power_monitor.MsrPowerMonitor(platform_backend)
19 if not power_monitor.CanMonitorPower():
23 power_monitor.StartMonitoringPower(None)
25 statistics = power_monitor.StopMonitoringPower()
Dpowermetrics_power_monitor_unittest.py13 from telemetry.core.platform.power_monitor import powermetrics_power_monitor
20 power_monitor = powermetrics_power_monitor.PowerMetricsPowerMonitor(backend)
24 self.assertEqual(power_monitor.CanMonitorPower(), mavericks_or_later,
42 power_monitor = powermetrics_power_monitor.PowerMetricsPowerMonitor(
44 if not power_monitor.CanMonitorPower():
49 self.assertFalse(power_monitor.CanMeasurePerApplicationPower())
Dpower_monitor_controller_unittest.py7 import telemetry.core.platform.power_monitor as power_monitor namespace
8 from telemetry.core.platform.power_monitor import power_monitor_controller
14 class P1(power_monitor.PowerMonitor):
20 class P2(power_monitor.PowerMonitor):
Dpower_monitor_controller.py5 import telemetry.core.platform.power_monitor as power_monitor namespace
8 class PowerMonitorController(power_monitor.PowerMonitor):
Dandroid_temperature_monitor.py5 import telemetry.core.platform.power_monitor as power_monitor namespace
10 class AndroidTemperatureMonitor(power_monitor.PowerMonitor):
Dandroid_temperature_monitor_unittest.py7 from telemetry.core.platform.power_monitor import android_temperature_monitor
17 def __init__(self, power_monitor, expected_temperature): argument
18 super(TemperatureMonitorForTesting, self).__init__(power_monitor, None)
Dmsr_power_monitor.py10 from telemetry.core.platform import power_monitor
55 class MsrPowerMonitor(power_monitor.PowerMonitor):
Dandroid_ds2784_power_monitor_unittest.py7 from telemetry.core.platform.power_monitor import android_ds2784_power_monitor
Dmonsoon_power_monitor_unittest.py8 from telemetry.core.platform.power_monitor import monsoon_power_monitor
Dsysfs_power_monitor.py11 from telemetry.core.platform import power_monitor
17 class SysfsPowerMonitor(power_monitor.PowerMonitor):
Dpowermetrics_power_monitor.py16 from telemetry.core.platform import power_monitor
19 class PowerMetricsPowerMonitor(power_monitor.PowerMonitor):
/external/chromium_org/base/timer/
Dhi_res_timer_manager_win.cc14 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in HighResolutionTimerManager() local
15 DCHECK(power_monitor != NULL); in HighResolutionTimerManager()
16 power_monitor->AddObserver(this); in HighResolutionTimerManager()
17 UseHiResClock(!power_monitor->IsOnBatteryPower()); in HighResolutionTimerManager()
/external/chromium_org/content/browser/renderer_host/media/
Dpeer_connection_tracker_host.cc53 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in OnChannelConnected() local
54 if (power_monitor) in OnChannelConnected()
55 power_monitor->AddObserver(this); in OnChannelConnected()
60 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in OnChannelClosing() local
61 if (power_monitor) in OnChannelClosing()
62 power_monitor->RemoveObserver(this); in OnChannelClosing()
/external/chromium_org/content/gpu/
Dgpu_watchdog_thread.cc117 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~GpuWatchdogThread() local
118 if (power_monitor) in ~GpuWatchdogThread()
119 power_monitor->RemoveObserver(this); in ~GpuWatchdogThread()
269 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in OnAddPowerObserver() local
270 DCHECK(power_monitor); in OnAddPowerObserver()
271 power_monitor->AddObserver(this); in OnAddPowerObserver()
/external/chromium_org/base/power_monitor/
Dpower_monitor_device_source_mac.mm8 #include "base/power_monitor/power_monitor_device_source.h"
10 #include "base/power_monitor/power_monitor.h"
11 #include "base/power_monitor/power_monitor_source.h"
/external/chromium_org/tools/telemetry/telemetry/core/platform/
Dandroid_platform_backend.py16 from telemetry.core.platform.power_monitor import android_ds2784_power_monitor
17 from telemetry.core.platform.power_monitor import android_dumpsys_power_monitor
18 from telemetry.core.platform.power_monitor import android_temperature_monitor
19 from telemetry.core.platform.power_monitor import monsoon_power_monitor
20 from telemetry.core.platform.power_monitor import power_monitor_controller
/external/chromium_org/base/
Dbase.gypi430 'power_monitor/power_monitor.cc',
431 'power_monitor/power_monitor.h',
432 'power_monitor/power_monitor_device_source_android.cc',
433 'power_monitor/power_monitor_device_source_android.h',
434 'power_monitor/power_monitor_device_source.cc',
435 'power_monitor/power_monitor_device_source.h',
436 'power_monitor/power_monitor_device_source_ios.mm',
437 'power_monitor/power_monitor_device_source_mac.mm',
438 'power_monitor/power_monitor_device_source_posix.cc',
439 'power_monitor/power_monitor_device_source_win.cc',
[all …]
DBUILD.gn441 "power_monitor/power_monitor.cc",
442 "power_monitor/power_monitor.h",
443 "power_monitor/power_monitor_device_source.cc",
444 "power_monitor/power_monitor_device_source.h",
445 "power_monitor/power_monitor_device_source_android.cc",
446 "power_monitor/power_monitor_device_source_android.h",
447 "power_monitor/power_monitor_device_source_ios.mm",
448 "power_monitor/power_monitor_device_source_mac.mm",
449 "power_monitor/power_monitor_device_source_posix.cc",
450 "power_monitor/power_monitor_device_source_win.cc",
[all …]
Dbase.target.linux-arm64.mk169 base/power_monitor/power_monitor.cc \
170 base/power_monitor/power_monitor_device_source_android.cc \
171 base/power_monitor/power_monitor_device_source.cc \
172 base/power_monitor/power_monitor_source.cc \
Dbase.target.darwin-arm64.mk169 base/power_monitor/power_monitor.cc \
170 base/power_monitor/power_monitor_device_source_android.cc \
171 base/power_monitor/power_monitor_device_source.cc \
172 base/power_monitor/power_monitor_source.cc \
/external/chromium_org/net/url_request/
Durl_request_job.cc38 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in URLRequestJob() local
39 if (power_monitor) in URLRequestJob()
40 power_monitor->AddObserver(this); in URLRequestJob()
245 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); in ~URLRequestJob() local
246 if (power_monitor) in ~URLRequestJob()
247 power_monitor->RemoveObserver(this); in ~URLRequestJob()
/external/chromium_org/components/nacl/loader/
Dnacl_main.cc27 base::PowerMonitor power_monitor(power_monitor_source.Pass()); in NaClMain() local

123