summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2020-07-14 23:16:24 -0700
committerJeffrey Huang <jeffreyhuang@google.com>2020-10-09 14:15:35 -0700
commitd9014e7314f4e2ded76adf1cca77a9b8c1f0583c (patch)
tree79cc878650f823bb3f5fc2a41162bd0de4f85674 /rs/java/android/renderscript/ProgramStore.java
parent1a6164c94a7277e6d3cef56b2a2041bdffff0dc0 (diff)
Remove alarm manager dependency from anomalyalarms
Anomaly alarms, which are used for prediction-base duration metric anomaly detection, currently use alarm manager for setting alarms. This can result in excessive binder calls to SCS to set/cancel the alarms if the duration metric that the alarm is based on gets stopped/started in quick succession. To resolve this without losing precision, we can instead rely on the flow of events into the statsd socket for this prediction. The socket receives events very frequently, so there should be minimal (if any) loss of precision, and we can remove the binder call entirely. One concern is that we used to hold a wakelock when the alarm fired (since alarm manager would hold a wakelock), and we now lose this ability. Test: atest statsd_test Test: atest AnomalyDetectionTests Bug: 161326200 Change-Id: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca Merged-In: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions