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.py11 def read_rtc_wakeup(rtc_device): argument
15 sysfs_path = '/sys/class/rtc/%s/device/power/wakeup' % rtc_device
19 def read_rtc_wakeup_count(rtc_device): argument
23 sysfs_path = '/sys/class/rtc/%s/device/power/wakeup_count' % rtc_device
27 def fire_wakealarm(rtc_device): argument
31 rtc.set_wake_alarm('+1', rtc_device)
41 for rtc_device in rtc.get_rtc_devices():
42 self.run_once_rtc(rtc_device)
44 def run_once_rtc(self, rtc_device): argument
45 logging.info('testing rtc device %s', rtc_device)
[all …]
/external/autotest/client/cros/
Drtc.py20 def get_seconds(utc=True, rtc_device='rtc0'): argument
24 return int(file('/sys/class/rtc/%s/since_epoch' % rtc_device).readline())
27 def write_wake_alarm(alarm_time, rtc_device='rtc0'): argument
31 f = file('/sys/class/rtc/%s/wakealarm' % rtc_device, 'w')
36 def set_wake_alarm(alarm_time, rtc_device='rtc0'): argument
41 write_wake_alarm(alarm_time, rtc_device)
45 write_wake_alarm('clear', rtc_device)
46 write_wake_alarm(alarm_time, rtc_device)