diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-02-27 23:08:31 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-02-27 23:08:31 +0000 |
| commit | 03b91d77c4eccd2d088a12e6fe747240a09b573d (patch) | |
| tree | 890b0730a309a15582722fbcd2ae4838143bc2c7 /core/java/android | |
| parent | 82d7883f0553971078b7cfc13a38838afdf73ff0 (diff) | |
| parent | 932ececa1674c59a8da9f3e32d2651e781b86fc4 (diff) | |
Merge "Alarm: wakes up statsd and notifies the subscribers."
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/os/IStatsCompanionService.aidl | 14 | ||||
| -rw-r--r-- | core/java/android/os/IStatsManager.aidl | 7 |
2 files changed, 19 insertions, 2 deletions
diff --git a/core/java/android/os/IStatsCompanionService.aidl b/core/java/android/os/IStatsCompanionService.aidl index eae52171ee48..29c298e31ae9 100644 --- a/core/java/android/os/IStatsCompanionService.aidl +++ b/core/java/android/os/IStatsCompanionService.aidl @@ -41,7 +41,7 @@ interface IStatsCompanionService { oneway void cancelAnomalyAlarm(); /** - * Register a repeating alarm for polling to fire at the given timestamp and every + * Register a repeating alarm for pulling to fire at the given timestamp and every * intervalMs thereafter (in ms since epoch). * If polling alarm had already been registered, it will be replaced by new one. * Uses AlarmManager.setRepeating API, so if the timestamp is in past, alarm fires immediately, @@ -49,9 +49,19 @@ interface IStatsCompanionService { */ oneway void setPullingAlarms(long timestampMs, long intervalMs); - /** Cancel any repeating polling alarm. */ + /** Cancel any repeating pulling alarm. */ oneway void cancelPullingAlarms(); + /** + * Register an alarm when we want to trigger subscribers at the given + * timestamp (in ms since epoch). + * If an alarm had already been registered, it will be replaced by new one. + */ + oneway void setAlarmForSubscriberTriggering(long timestampMs); + + /** Cancel any alarm for the purpose of subscriber triggering. */ + oneway void cancelAlarmForSubscriberTriggering(); + /** Pull the specified data. Results will be sent to statsd when complete. */ StatsLogEventWrapper[] pullData(int pullCode); diff --git a/core/java/android/os/IStatsManager.aidl b/core/java/android/os/IStatsManager.aidl index 682a24f17648..2a68714431d4 100644 --- a/core/java/android/os/IStatsManager.aidl +++ b/core/java/android/os/IStatsManager.aidl @@ -47,6 +47,13 @@ interface IStatsManager { void informPollAlarmFired(); /** + * Tells statsd that it is time to handle periodic alarms. Statsd will be responsible for + * determing what alarm subscriber to trigger. + * Two-way binder call so that caller's method (and corresponding wakelocks) will linger. + */ + void informAlarmForSubscriberTriggeringFired(); + + /** * Tells statsd to store data to disk. */ void writeDataToDisk(); |
