diff options
author | Mingguang Xu <mingguangxu@google.com> | 2019-03-29 21:01:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-03-29 21:01:08 +0000 |
commit | 4a7318c12f312e550f9a632440aefbda58b13987 (patch) | |
tree | c993a758ffc62f4de6be18d518007645665d4a22 /tests | |
parent | b67ef4023640cc81603bc750c8a448723b1cd0cc (diff) | |
parent | efe5d28d9030c2c5370e2682ab0db8c0b21f536c (diff) |
Merge "Wifi usability: Add device mobility state into Wifi usability stats"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java index e574427e8..bf0de0456 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java @@ -2768,6 +2768,7 @@ public class WifiMetricsTest { mWifiMetrics.incrementWifiUsabilityScoreCount(3, 56, 15); mWifiMetrics.logLinkProbeFailure(nextRandInt(), nextRandInt(), nextRandInt(), nextRandInt(), nextRandInt()); + mWifiMetrics.enterDeviceMobilityState(DEVICE_MOBILITY_STATE_HIGH_MVMT); mWifiMetrics.updateWifiUsabilityStatsEntries(info, stats2); mWifiMetrics.addToWifiUsabilityStatsList(WifiUsabilityStats.LABEL_BAD, @@ -2817,6 +2818,9 @@ public class WifiMetricsTest { mDecodedProto.wifiUsabilityStatsList[0].stats[0].cellularSignalStrengthDb); assertEquals(isSameRegisteredCell, mDecodedProto.wifiUsabilityStatsList[0].stats[0].isSameRegisteredCell); + assertEquals(DEVICE_MOBILITY_STATE_HIGH_MVMT, mDecodedProto.wifiUsabilityStatsList[1] + .stats[mDecodedProto.wifiUsabilityStatsList[1].stats.length - 1] + .deviceMobilityState); } /** |