| Index: build/android/pylib/perf/thermal_throttle.py
|
| diff --git a/build/android/pylib/thermal_throttle.py b/build/android/pylib/perf/thermal_throttle.py
|
| similarity index 92%
|
| copy from build/android/pylib/thermal_throttle.py
|
| copy to build/android/pylib/perf/thermal_throttle.py
|
| index 4028f0723f351cc07874c6ffa748b2bf26405c11..63efa28ccb50cf4c52f72a52162920e6e71ddfe6 100644
|
| --- a/build/android/pylib/thermal_throttle.py
|
| +++ b/build/android/pylib/perf/thermal_throttle.py
|
| @@ -4,8 +4,9 @@
|
|
|
| import logging
|
|
|
| +
|
| class ThermalThrottle(object):
|
| - """Class to detect and track thermal throttling
|
| + """Class to detect and track thermal throttling.
|
|
|
| Usage:
|
| Wait for IsThrottled() to be False before running test
|
| @@ -14,19 +15,20 @@ class ThermalThrottle(object):
|
|
|
| Currently assumes an OMap device.
|
| """
|
| +
|
| def __init__(self, adb):
|
| self._adb = adb
|
| self._throttled = False
|
|
|
|
|
| def HasBeenThrottled(self):
|
| - """ True if there has been any throttling since the last call to
|
| - HasBeenThrottled or IsThrottled
|
| + """True if there has been any throttling since the last call to
|
| + HasBeenThrottled or IsThrottled.
|
| """
|
| return self._ReadLog()
|
|
|
| def IsThrottled(self):
|
| - """True if currently throttled"""
|
| + """True if currently throttled."""
|
| self._ReadLog()
|
| return self._throttled
|
|
|
|
|