diff options
author | erfanian <erfanian@google.com> | 2018-06-12 07:20:24 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-12 07:21:30 -0700 |
commit | ab680280a9ba9392e2c1004ac3438707af368834 (patch) | |
tree | 0239c848b4a19b3386fc5b75667a8083fcff0648 /java | |
parent | 3008707c87203ede53ce66cb165c63af1ea2e02a (diff) |
Add battery events to primes.
Bug: 80425147
Test: tap
PiperOrigin-RevId: 200211179
Change-Id: Icff35da693d713298a4cd6dcae90d9cbb1a71cdb
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/metrics/Metrics.java | 3 | ||||
-rw-r--r-- | java/com/android/dialer/metrics/StubMetrics.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/java/com/android/dialer/metrics/Metrics.java b/java/com/android/dialer/metrics/Metrics.java index 191b84d89..a8c68c886 100644 --- a/java/com/android/dialer/metrics/Metrics.java +++ b/java/com/android/dialer/metrics/Metrics.java @@ -101,6 +101,9 @@ public interface Metrics { /** Record memory. */ void recordMemory(String memoryEventName); + /** Record battery. */ + void recordBattery(String batteryEventName); + /** Initiazer for metrics. */ interface Initializer { /** Initialize metrics for the application . */ diff --git a/java/com/android/dialer/metrics/StubMetrics.java b/java/com/android/dialer/metrics/StubMetrics.java index ecd2382b9..be1cf6010 100644 --- a/java/com/android/dialer/metrics/StubMetrics.java +++ b/java/com/android/dialer/metrics/StubMetrics.java @@ -96,6 +96,11 @@ public final class StubMetrics implements Metrics { LogUtil.d("StubMetrics.startJankRecorder", "recorded memory for %s", memoryEventName); } + @Override + public void recordBattery(String batteryEventName) { + LogUtil.d("StubMetrics.recordBattery", "recorded battery for %s", batteryEventName); + } + private static class StubTimerEvent { final long startTime; |