summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2014-11-17 16:09:27 -0800
committerChristopher Tate <ctate@google.com>2014-11-18 12:00:58 -0800
commit498c6cbd78f42d4f6d2568ead6c2697fcfaa326e (patch)
treea18fab9480455119c6e34feb67fe7c0314cdcb4e /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc9f1b3a0e8f64ae75f71e363c612b8734031b1b2 (diff)
Prevent some alarm pathologies
* Sanity-check the recurrence interval. Some buggy apps pass seconds where the API expects milliseconds, with the result that the device pins the CPU at 100% trying to deliver alarm broadcasts every 60 ms or what have you. The minimum recurrence is now 1 minute. * Sanity-check alarms being scheduled for the immediate future. As with the above this will catch people trying to schedule alarms in a spammy way that keeps the device from entering low-power state. The minimum futurity of a new alarm is now 5 seconds. Bug 17495168 Change-Id: If8ff7d88da48960532ac21a0ba20094af9912603
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions