diff options
author | David Su <dysu@google.com> | 2020-04-28 22:07:35 -0700 |
---|---|---|
committer | David Su <dysu@google.com> | 2020-04-28 22:07:35 -0700 |
commit | 5ecd7c29ee23e426e7715be27494e1689b47fa75 (patch) | |
tree | 60f7213964bae91c4366deb3c3a13232962c985c /tests | |
parent | 8ad8c284ca31abac1a538f06205441937a4d6ded (diff) |
Remove WPS metrics
WPS metrics are no longer being populated.
Remove them completely.
Bug: 140938762
Test: atest FrameworksWifiTests
Test: device boots up and connects to Wifi
Change-Id: Ie398bd94ffeb8bf3d885846ee7eb59730e4d5989
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java index 191f81cee..653d8d97a 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java @@ -108,7 +108,6 @@ import com.android.server.wifi.proto.nano.WifiMetricsProto.WifiIsUnusableEvent; import com.android.server.wifi.proto.nano.WifiMetricsProto.WifiRadioUsage; import com.android.server.wifi.proto.nano.WifiMetricsProto.WifiUsabilityStats; import com.android.server.wifi.proto.nano.WifiMetricsProto.WifiUsabilityStatsEntry; -import com.android.server.wifi.proto.nano.WifiMetricsProto.WpsMetrics; import com.android.server.wifi.rtt.RttMetrics; import com.android.server.wifi.util.ExternalCallbackTracker; import com.android.server.wifi.util.InformationElementUtil; @@ -419,14 +418,6 @@ public class WifiMetricsTest extends WifiBaseTest { private static final int NUM_PNO_SCAN_ATTEMPTS = 20; private static final int NUM_PNO_SCAN_FAILED = 5; private static final int NUM_PNO_FOUND_NETWORK_EVENTS = 10; - private static final int NUM_WPS_ATTEMPTS = 17; - private static final int NUM_WPS_SUCCESS = 21; - private static final int NUM_WPS_START_FAILURE = 7; - private static final int NUM_WPS_OVERLAP_FAILURE = 3; - private static final int NUM_WPS_TIMEOUT_FAILURE = 8; - private static final int NUM_WPS_OTHER_CONNECTION_FAILURE = 16; - private static final int NUM_WPS_SUPPLICANT_FAILURE = 12; - private static final int NUM_WPS_CANCELLATION = 11; private static final int NUM_RADIO_MODE_CHANGE_TO_MCC = 4; private static final int NUM_RADIO_MODE_CHANGE_TO_SCC = 13; private static final int NUM_RADIO_MODE_CHANGE_TO_SBS = 19; @@ -942,31 +933,6 @@ public class WifiMetricsTest extends WifiBaseTest { addSoftApEventsToMetrics(); - // increment wps metrics - for (int i = 0; i < NUM_WPS_ATTEMPTS; i++) { - mWifiMetrics.incrementWpsAttemptCount(); - } - for (int i = 0; i < NUM_WPS_SUCCESS; i++) { - mWifiMetrics.incrementWpsSuccessCount(); - } - for (int i = 0; i < NUM_WPS_START_FAILURE; i++) { - mWifiMetrics.incrementWpsStartFailureCount(); - } - for (int i = 0; i < NUM_WPS_OVERLAP_FAILURE; i++) { - mWifiMetrics.incrementWpsOverlapFailureCount(); - } - for (int i = 0; i < NUM_WPS_TIMEOUT_FAILURE; i++) { - mWifiMetrics.incrementWpsTimeoutFailureCount(); - } - for (int i = 0; i < NUM_WPS_OTHER_CONNECTION_FAILURE; i++) { - mWifiMetrics.incrementWpsOtherConnectionFailureCount(); - } - for (int i = 0; i < NUM_WPS_SUPPLICANT_FAILURE; i++) { - mWifiMetrics.incrementWpsSupplicantFailureCount(); - } - for (int i = 0; i < NUM_WPS_CANCELLATION; i++) { - mWifiMetrics.incrementWpsCancellationCount(); - } for (int i = 0; i < NUM_ONESHOT_SCAN_REQUESTS_WITH_DFS_CHANNELS; i++) { mWifiMetrics.incrementOneshotScanWithDfsCount(); } @@ -1389,17 +1355,6 @@ public class WifiMetricsTest extends WifiBaseTest { verifySoftApEventsStoredInProto(); - WpsMetrics wps_metrics = mDecodedProto.wpsMetrics; - assertNotNull(wps_metrics); - assertEquals(NUM_WPS_ATTEMPTS, wps_metrics.numWpsAttempts); - assertEquals(NUM_WPS_SUCCESS, wps_metrics.numWpsSuccess); - assertEquals(NUM_WPS_START_FAILURE, wps_metrics.numWpsStartFailure); - assertEquals(NUM_WPS_OVERLAP_FAILURE, wps_metrics.numWpsOverlapFailure); - assertEquals(NUM_WPS_TIMEOUT_FAILURE, wps_metrics.numWpsTimeoutFailure); - assertEquals(NUM_WPS_OTHER_CONNECTION_FAILURE, wps_metrics.numWpsOtherConnectionFailure); - assertEquals(NUM_WPS_SUPPLICANT_FAILURE, wps_metrics.numWpsSupplicantFailure); - assertEquals(NUM_WPS_CANCELLATION, wps_metrics.numWpsCancellation); - assertEquals(NUM_WATCHDOG_SUCCESS_DURATION_MS, mDecodedProto.watchdogTriggerToConnectionSuccessDurationMs); assertEquals(IS_MAC_RANDOMIZATION_ON, mDecodedProto.isMacRandomizationOn); |