summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ScriptIntrinsicBLAS.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-06-10 16:25:57 -0700
committerDianne Hackborn <hackbod@google.com>2015-06-12 12:37:35 -0700
commit3d1933c45fe9ba2389ebd166d96abeceab1971d1 (patch)
treeaa62fd57d10a9ae0bfb86e73655bc07b3b2b47e3 /rs/java/android/renderscript/ScriptIntrinsicBLAS.java
parent8a435ced674562b827f91800317a89056e050b15 (diff)
Implement some control over ALLOW_WHILE_IDLE alarms.
Since these alarms allow you to bypass the idle restrictions, we don't want them to be so open-ended like other alarms. This implements a policy where the alarm manager will only deliver these types of alarms every X minutes to each application. For this initial implementation, X is 1 minute under normal operation and 15 minutes when in idle mode. To do this, I needed to introduce a new internal allow-while-idle flag for system alarms, which applications can't get, and doesn't have these new restrictions. Also tweaked how the alarm manager handles the alarm window, so it doesn't change if the alarm gets rescheduld; the window is now always what as computed based on the time when the alarm was first given to it. Finally, fix TimeUtils to be able to correctly print times that are > 999 days. Change-Id: Ibad8c6a7c14b0624b54e82267be23224b4c31e84
Diffstat (limited to 'rs/java/android/renderscript/ScriptIntrinsicBLAS.java')
0 files changed, 0 insertions, 0 deletions