Home
last modified time | relevance | path

Searched refs:oldStats (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDataStall.java70 public int checkForDataStall(WifiLinkLayerStats oldStats, WifiLinkLayerStats newStats) { in checkForDataStall() argument
71 if (oldStats == null || newStats == null) { in checkForDataStall()
78 - (oldStats.txmpdu_be + oldStats.txmpdu_bk in checkForDataStall()
79 + oldStats.txmpdu_vi + oldStats.txmpdu_vo); in checkForDataStall()
82 - (oldStats.retries_be + oldStats.retries_bk in checkForDataStall()
83 + oldStats.retries_vi + oldStats.retries_vo); in checkForDataStall()
86 - (oldStats.lostmpdu_be + oldStats.lostmpdu_bk in checkForDataStall()
87 + oldStats.lostmpdu_vi + oldStats.lostmpdu_vo); in checkForDataStall()
90 - (oldStats.rxmpdu_be + oldStats.rxmpdu_bk in checkForDataStall()
91 + oldStats.rxmpdu_vi + oldStats.rxmpdu_vo); in checkForDataStall()
[all …]
DWifiMetrics.java862 private boolean newLinkLayerStatsIsValid(WifiLinkLayerStats oldStats, in newLinkLayerStatsIsValid() argument
864 if (newStats.on_time < oldStats.on_time in newLinkLayerStatsIsValid()
865 || newStats.tx_time < oldStats.tx_time in newLinkLayerStatsIsValid()
866 || newStats.rx_time < oldStats.rx_time in newLinkLayerStatsIsValid()
867 || newStats.on_time_scan < oldStats.on_time_scan) { in newLinkLayerStatsIsValid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java2665 private void assertWifiLinkLayerUsageHasDiff(WifiLinkLayerStats oldStats, in assertWifiLinkLayerUsageHasDiff() argument
2667 assertEquals(newStats.timeStampInMs - oldStats.timeStampInMs, in assertWifiLinkLayerUsageHasDiff()
2669 assertEquals(newStats.on_time - oldStats.on_time, in assertWifiLinkLayerUsageHasDiff()
2671 assertEquals(newStats.tx_time - oldStats.tx_time, in assertWifiLinkLayerUsageHasDiff()
2673 assertEquals(newStats.rx_time - oldStats.rx_time, in assertWifiLinkLayerUsageHasDiff()
2675 assertEquals(newStats.on_time_scan - oldStats.on_time_scan, in assertWifiLinkLayerUsageHasDiff()
2677 assertEquals(newStats.on_time_nan_scan - oldStats.on_time_nan_scan, in assertWifiLinkLayerUsageHasDiff()
2679 assertEquals(newStats.on_time_background_scan - oldStats.on_time_background_scan, in assertWifiLinkLayerUsageHasDiff()
2681 assertEquals(newStats.on_time_roam_scan - oldStats.on_time_roam_scan, in assertWifiLinkLayerUsageHasDiff()
2683 assertEquals(newStats.on_time_pno_scan - oldStats.on_time_pno_scan, in assertWifiLinkLayerUsageHasDiff()
[all …]