OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import weakref | 5 import weakref |
6 | 6 |
7 from battor import battor_wrapper | 7 from battor import battor_wrapper |
8 from telemetry.internal import forwarders | 8 from telemetry.internal import forwarders |
9 from telemetry.internal.forwarders import do_nothing_forwarder | 9 from telemetry.internal.forwarders import do_nothing_forwarder |
10 from telemetry.internal.platform import network_controller_backend | 10 from telemetry.internal.platform import network_controller_backend |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 Return: | 298 Return: |
299 Whether the path exists on the target platform. | 299 Whether the path exists on the target platform. |
300 """ | 300 """ |
301 raise NotImplementedError() | 301 raise NotImplementedError() |
302 | 302 |
303 def HasBattOrConnected(self): | 303 def HasBattOrConnected(self): |
304 return battor_wrapper.IsBattOrConnected(self.GetOSName()) | 304 return battor_wrapper.IsBattOrConnected(self.GetOSName()) |
305 | 305 |
306 def WaitForBatteryTemperature(self, temp): | 306 def WaitForBatteryTemperature(self, temp): |
307 pass | 307 pass |
| 308 |
| 309 def SetInteractivityBoost(self, enable): |
| 310 """On some platforms (e.g. ChromeOS), the kernel provides a frequency boost |
| 311 to the CPUs when an input is received (e.g., keypress, touchpad event). |
| 312 Page actions which simulate a user input therefore need to trigger the |
| 313 same boost in order to accurately simulate normal behaviour. |
| 314 |
| 315 This should be overridden by platforms which provide a frequency boost |
| 316 in response to user input. |
| 317 |
| 318 Args: |
| 319 enable: turn boost on or off |
| 320 """ |
| 321 pass |
OLD | NEW |