OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:rtc_device
(Results
1 - 4
of
4
) sorted by null
/external/autotest/client/cros/
rtc.py
20
def get_seconds(utc=True,
rtc_device
='rtc0'):
24
return int(file('/sys/class/rtc/%s/since_epoch' %
rtc_device
).readline())
27
def write_wake_alarm(alarm_time,
rtc_device
='rtc0'):
31
f = file('/sys/class/rtc/%s/wakealarm' %
rtc_device
, 'w')
36
def set_wake_alarm(alarm_time,
rtc_device
='rtc0'):
41
write_wake_alarm(alarm_time,
rtc_device
)
45
write_wake_alarm('clear',
rtc_device
)
46
write_wake_alarm(alarm_time,
rtc_device
)
/external/autotest/client/site_tests/power_WakeupRTC/
power_WakeupRTC.py
11
def read_rtc_wakeup(
rtc_device
):
15
sysfs_path = '/sys/class/rtc/%s/device/power/wakeup' %
rtc_device
19
def read_rtc_wakeup_count(
rtc_device
):
23
sysfs_path = '/sys/class/rtc/%s/device/power/wakeup_count' %
rtc_device
27
def fire_wakealarm(
rtc_device
):
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
):
45
logging.info('testing rtc device %s',
rtc_device
)
[
all
...]
/system/sepolicy/private/
system_server.te
293
allow system_server
rtc_device
:chr_file rw_file_perms;
file_contexts
114
/dev/rtc[0-9] u:object_r:
rtc_device
:s0
Completed in 305 milliseconds