OSDN Git Service

Add /dev/rtc backend to SystemClock
authorGreg Hackmann <ghackmann@google.com>
Thu, 12 Dec 2013 02:00:34 +0000 (18:00 -0800)
committerGreg Hackmann <ghackmann@google.com>
Tue, 17 Dec 2013 00:23:52 +0000 (16:23 -0800)
commitb7bbca2d6a0ba8e7a0cee5f7683a8193c0e30140
treeb05fe65aaea63160a65f4fa50440c222bb722730
parenta1d6f92f34adb499565c9513235227a308e90221
Add /dev/rtc backend to SystemClock

On devices without /dev/alarm, use the settimeofday() syscall and the
standard RTC_SET_TIME ioctl (which are collectively equivalent to the
ANDROID_ALARM_SET_RTC ioctl).

Change-Id: I3c1d741099e253186e43c9369b62603b214b9c9a
Signed-off-by: Greg Hackmann <ghackmann@google.com>
core/jni/android_os_SystemClock.cpp