Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: telemetry/telemetry/internal/platform/platform_backend.py

Issue 2876843002: Simulate interactivity boost for simulated user input events
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « telemetry/telemetry/internal/platform/cros_platform_backend.py ('k') | telemetry/telemetry/internal/util/repeating_timer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698