Lines Matching full:suspend
26 """Base class for a failure during a single suspend/resume cycle."""
31 """Suspend took too long, got wakeup event (RTC tick) before it was done."""
36 """Kernel problem encountered during suspend/resume.
97 """Suspend was not allowed to be performed."""
114 """Prepare the device to wake up from an upcoming suspend.
116 @param seconds: The number of seconds to allow the device to suspend.
118 # May cause DUT not wake from sleep if the suspend time is 1 second.
125 logging.debug('Suspend for %d seconds, estimated wakealarm = %d',
139 raise SpuriousWakeupError('Woke from suspend early')
176 """Suspend using the power manager with a wakeup timeout.
178 Wait for |delay_seconds|, suspend the system(S3/S0iX) using
182 This means that RTC can trigger an early resume and prevent suspend.
184 Function will block until suspend/resume has completed or failed.
204 """Suspend using the power manager and spend |time_in_suspend| in suspend.
206 Wait for |delay_seconds|, suspend the system(S3/S0iX) using
212 Function will block until suspend/resume has completed or failed.
215 @param time_in_suspend: Number of seconds to suspend the DUT.
230 """Do a non-blocking suspend using power manager.
232 Wait for |delay_seconds|, then suspend with an rtc alarm for
236 @param suspend_seconds: Number of seconds to suspend the DUT.
254 """Do a kernel suspend.
256 Suspend the system to @state, waking up again after |seconds|, by directly
257 writing to /sys/power/state. Function will block until suspend/resume has
260 @param seconds: The number of seconds to suspend the device.
261 @param state: power state to suspend to. DEFAULT mem.
275 # another wakeup fires before we've reached suspend.
278 # Some driver probably failed to suspend properly.
280 raise KernelError('Suspend failed: %s' % e.strerror)
282 logging.info('Woke from suspend at %d', rtc.get_seconds())
289 Wait for the system to suspend to RAM (S3), scheduling the RTC to wake up
291 will idle-suspend in time for this to happen. Returns the wake alarm time
301 # tell powerd something happened, or it will immediately idle-suspend again
304 logging.debug('Simulating user activity after idle suspend...')
313 """Do a memory suspend.
315 Suspend the system to RAM (S3), waking up again after |seconds|, using
316 the memory_suspend_test tool. Function will block until suspend/resume has
319 @param seconds: The number of seconds to suspend the device.
359 raise SpuriousWakeupError('wakeup_count changed before suspend')