summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2014-02-19 16:39:36 -0800
committerGreg Hackmann <ghackmann@google.com>2014-02-21 09:53:19 -0800
commit38bf51466881b726f42832743d8cca6ee67bb148 (patch)
treef2273799ae619f0f9b81ea0997009f2457d1cf54 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent05cebdc2abd05b0dca351306cb039245d50c67ae (diff)
Move time setting code from SystemClock to AlarmManagerService
On devices using /dev/rtc instead of /dev/alarm, updating the time-of-day clock and RTC are separate syscalls. Hence the clock and RTC could be left in inconsistent states if two threads called SystemClock.setCurrentTimeMillis() simultaneously. By moving this code into AlarmManagerService, we can put a global lock around AlarmManagerService.setTime() and prevent the race condition. Note that access to SystemClock.setCurrentTimeMillis() is now gated by android.permission.SET_TIME, where before it was gated by filesystem permissions (i.e., could the process write to /dev/alarm or /dev/rtc). Change-Id: Ia34899a4cde983656305fd2ef466dfe908ed23c8 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions