• Home
  • Raw
  • Download

Lines Matching full:suspend

18     """Class for suspend/resume measurements.
24 device_times[]: List of individual device suspend/resume time dicts.
27 suspend: Do a suspend/resume cycle. Return timing measurement dict.
30 _logs: Array of /var/log/messages lines since start of suspend cycle.
33 _suspend: Set to the sys_power suspend function to use.
41 _set_pm_print_times: Enable/disable kernel device suspend timing output.
46 _individual_device_times: Reads individual device suspend/resume times.
50 # board-specific "time to suspend" values determined empirically
87 # Line to look for suspend abort due to override.
88 _ABORT_DUE_TO_OVERRIDE_LINE = 'Aborting suspend attempt for lockfile'
103 # File read by powerd to decide on the state to suspend (mem or freeze).
113 @param suspend_state: Suspend state to enter into. It can be
115 the suspend state is an empty string,
146 # activate device suspend timing debug output
152 # Shut down 3G to remove its variability from suspend time measurements
171 """Configure the suspend state as requested."""
175 raise error.TestNAError('Invalid suspend state: ' +
187 """Enable/disable extra suspend timing output from powerd to syslog."""
218 Returns true if we found evidences in the powerd log that the suspend
272 """Searches logs for last timestamp with a given suspend message."""
337 regex_freeze = re.compile(r'PM: resume from suspend-to-idle')
344 logging.info('fw resume time zero due to suspend-to-idle\n')
366 regex = re.compile(r'PM: (\w+ )?(resume|suspend) of devices complete')
388 """Return dict of individual device suspend and resume times."""
438 """Find and identify suspend errors.
446 sys_power.SuspendTimeout: took too long to enter suspend.
447 sys_power.SpuriousWakeupError: woke too soon from suspend.
452 r'| powerd_suspend\[.*Cancel suspend at kernel'
497 'long to suspend.')
528 # ARC logcat is cleared before suspend so the first ARC resume
543 def suspend(self, duration=10, ignore_kernel_warns=False, member in Suspender
546 Do a single suspend for 'duration' seconds. Estimates the amount of time
547 it takes to suspend for a board (see _SUSPEND_DELAY), so the actual RTC
553 @param duration: time in seconds to do a suspend prior to waking.
568 # Retry suspend in case we hit a known (allowlisted) bug
580 # Return value of suspend method can be None
608 raise error.TestError("Sanity check failed: did not try to suspend.")
609 logging.warning('Aborted suspend due to power override, will retry\n')