diff options
author | Mingguang Xu <mingguangxu@google.com> | 2019-04-23 06:00:22 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-23 06:00:22 +0000 |
commit | b5f40c794badf717128b645225905948e6e5ea69 (patch) | |
tree | 544323fcfd0e3860f5c713f1843bf8c4dd10aea2 /service | |
parent | 26baf9944cf023afe8dfba6d0e7619b57f6d1c79 (diff) | |
parent | d9c0f4c52fbb2a0b0824688a8461a60874a675c2 (diff) |
Merge "Wifi usability: Add timestamp in WifiUsabilityStats" into qt-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiMetrics.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiMetrics.java b/service/java/com/android/server/wifi/WifiMetrics.java index 70aaaaf43..8d6a5f1bd 100644 --- a/service/java/com/android/server/wifi/WifiMetrics.java +++ b/service/java/com/android/server/wifi/WifiMetrics.java @@ -2710,6 +2710,7 @@ public class WifiMetrics { for (WifiUsabilityStats stats : mWifiUsabilityStatsListGood) { pw.println("\nlabel=" + stats.label); pw.println("\ntrigger_type=" + stats.triggerType); + pw.println("\ntime_stamp_ms=" + stats.timeStampMs); for (WifiUsabilityStatsEntry entry : stats.stats) { printWifiUsabilityStatsEntry(pw, entry); } @@ -2717,6 +2718,7 @@ public class WifiMetrics { for (WifiUsabilityStats stats : mWifiUsabilityStatsListBad) { pw.println("\nlabel=" + stats.label); pw.println("\ntrigger_type=" + stats.triggerType); + pw.println("\ntime_stamp_ms=" + stats.timeStampMs); for (WifiUsabilityStatsEntry entry : stats.stats) { printWifiUsabilityStatsEntry(pw, entry); } @@ -4436,6 +4438,7 @@ public class WifiMetrics { wifiUsabilityStats.label = label; wifiUsabilityStats.triggerType = triggerType; wifiUsabilityStats.firmwareAlertCode = firmwareAlertCode; + wifiUsabilityStats.timeStampMs = mClock.getElapsedSinceBootMillis(); wifiUsabilityStats.stats = new WifiUsabilityStatsEntry[mWifiUsabilityStatsEntriesList.size()]; for (int i = 0; i < mWifiUsabilityStatsEntriesList.size(); i++) { |