summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-06-12 16:15:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-12 16:15:18 +0000
commit4b6b71fa69728bc6045ca15b10e77eb0540ac4f0 (patch)
tree0239c848b4a19b3386fc5b75667a8083fcff0648
parent3008707c87203ede53ce66cb165c63af1ea2e02a (diff)
parentab680280a9ba9392e2c1004ac3438707af368834 (diff)
Merge "Add battery events to primes."
-rw-r--r--java/com/android/dialer/metrics/Metrics.java3
-rw-r--r--java/com/android/dialer/metrics/StubMetrics.java5
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;