Merge "Alarm: wakes up statsd and notifies the subscribers."
This commit is contained in:
committed by
Android (Google) Code Review
commit
03b91d77c4
@@ -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);
|
||||
|
||||
|
||||
@@ -46,6 +46,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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user