diff options
| author | Chenjie Yu <cjyu@google.com> | 2017-10-24 13:41:59 -0700 |
|---|---|---|
| committer | Chenjie Yu <cjyu@google.com> | 2017-11-01 15:58:45 -0700 |
| commit | b3dda41a5a48ddfa44dc8fa939ab495926a0195d (patch) | |
| tree | 452181236dd41eae227390d496ae691599cd29d7 /core/java/android | |
| parent | 34961873947d64896cd392af81b57ffa393f7175 (diff) | |
reretry ValueMetric implementation and pulling mechanism
Note:
This is for value metric. The default operations is sum the diffs.
The test uses kernel wake lock, which also needs dimension by kernel
wake lock name.
The test is a bit cumbersome as it needs StatsCompanionService to do
the alarm, which is not exact alarm.
The internal state of a slice of bucket would look something like this:
4:ipc0000005e_727_android.hardwar
0 0
4:SensorService_wakelock
40 64
4:ipc0000005c_727_android.hardwar
...
Test: manual test on device.
Change-Id: I2ed0ac7d3c5fcba8b7611d46f38a38ffd8bdc92a
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/os/IStatsCompanionService.aidl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/os/IStatsCompanionService.aidl b/core/java/android/os/IStatsCompanionService.aidl index 20f6c8ecd495..c0a95cc08dec 100644 --- a/core/java/android/os/IStatsCompanionService.aidl +++ b/core/java/android/os/IStatsCompanionService.aidl @@ -46,10 +46,10 @@ interface IStatsCompanionService { * Uses AlarmManager.setRepeating API, so if the timestamp is in past, alarm fires immediately, * and alarm is inexact. */ - oneway void setPollingAlarms(long timestampMs, long intervalMs); + oneway void setPullingAlarms(long timestampMs, long intervalMs); /** Cancel any repeating polling alarm. */ - oneway void cancelPollingAlarms(); + oneway void cancelPullingAlarms(); /** Pull the specified data. Results will be sent to statsd when complete. */ StatsLogEventWrapper[] pullData(int pullCode); |
