Home | History | Annotate | Download | only in power

Lines Matching refs:seconds

105 def prepare_wakeup(seconds):
108 @param seconds: The number of seconds to allow the device to suspend.
114 assert seconds >= 2
116 alarm = int(rtc.get_seconds() + seconds)
117 logging.debug('Suspend for %d seconds, wakealarm = %d', seconds, alarm)
141 @param suspend_seconds: Number of seconds to suspend the DUT.
142 @param delay_seconds: Number of seconds wait before suspending the DUT.
178 @param delay_seconds: Number of seconds wait before suspending the DUT.
189 def kernel_suspend(seconds, state='mem'):
192 Suspend the system to @state, waking up again after |seconds|, by directly
196 @param seconds: The number of seconds to suspend the device.
199 alarm, wakeup_count = prepare_wakeup(seconds)
222 def idle_suspend(seconds):
225 |seconds| after this function was called. Caller must ensure that the system
229 @param seconds: The number of seconds before wakeup.
231 alarm, _ = prepare_wakeup(seconds)
246 def memory_suspend(seconds, size=0):
249 Suspend the system to RAM (S3), waking up again after |seconds|, using
253 @param seconds: The number of seconds to suspend the device.
259 alarm, wakeup_count = prepare_wakeup(seconds)