diff options
Diffstat (limited to 'java/com/android/dialer')
-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; |