Home
last modified time | relevance | path

Searched refs:rtc_device (Results 1 – 2 of 2) sorted by relevance

/external/autotest/client/site_tests/power_WakeupRTC/
Dpower_WakeupRTC.py13 def read_rtc_wakeup(rtc_device): argument
17 sysfs_path = '/sys/class/rtc/%s/device/power/wakeup' % rtc_device
22 def read_rtc_wakeup_active_count(rtc_device): argument
26 path = '/sys/class/rtc/%s/device/power/wakeup_active_count' % rtc_device
30 def fire_wakealarm(rtc_device): argument
34 rtc.set_wake_alarm('+1', rtc_device)
56 for rtc_device in rtc.get_rtc_devices():
57 if read_rtc_wakeup(rtc_device) != 'enabled':
58 logging.info('RTC wakeup is not enabled: %s' % rtc_device)
60 logging.info('RTC wakeup is enabled for: %s' % rtc_device)
[all …]
/external/autotest/client/cros/
Drtc.py21 def get_seconds(utc=True, rtc_device='rtc0'): argument
25 with open('/sys/class/rtc/%s/since_epoch' % rtc_device) as rf:
30 def write_wake_alarm(alarm_time, rtc_device='rtc0'): argument
34 with open('/sys/class/rtc/%s/wakealarm' % rtc_device, 'w') as f:
38 def set_wake_alarm(alarm_time, rtc_device='rtc0'): argument
43 write_wake_alarm(alarm_time, rtc_device)
48 write_wake_alarm('0', rtc_device)
49 write_wake_alarm(alarm_time, rtc_device)