Home
last modified time | relevance | path

Searched refs:newStats (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDataStall.java106 public int checkForDataStall(WifiLinkLayerStats oldStats, WifiLinkLayerStats newStats, in checkForDataStall() argument
108 if (oldStats == null || newStats == null) { in checkForDataStall()
113 long txSuccessDelta = (newStats.txmpdu_be + newStats.txmpdu_bk in checkForDataStall()
114 + newStats.txmpdu_vi + newStats.txmpdu_vo) in checkForDataStall()
117 long txRetriesDelta = (newStats.retries_be + newStats.retries_bk in checkForDataStall()
118 + newStats.retries_vi + newStats.retries_vo) in checkForDataStall()
121 long txBadDelta = (newStats.lostmpdu_be + newStats.lostmpdu_bk in checkForDataStall()
122 + newStats.lostmpdu_vi + newStats.lostmpdu_vo) in checkForDataStall()
125 long rxSuccessDelta = (newStats.rxmpdu_be + newStats.rxmpdu_bk in checkForDataStall()
126 + newStats.rxmpdu_vi + newStats.rxmpdu_vo) in checkForDataStall()
[all …]
DWifiMetrics.java898 public void incrementWifiLinkLayerUsageStats(WifiLinkLayerStats newStats) { in incrementWifiLinkLayerUsageStats() argument
899 if (newStats == null) { in incrementWifiLinkLayerUsageStats()
903 mLastLinkLayerStats = newStats; in incrementWifiLinkLayerUsageStats()
906 if (!newLinkLayerStatsIsValid(mLastLinkLayerStats, newStats)) { in incrementWifiLinkLayerUsageStats()
913 (newStats.timeStampInMs - mLastLinkLayerStats.timeStampInMs); in incrementWifiLinkLayerUsageStats()
914 mWifiLinkLayerUsageStats.radioOnTimeMs += (newStats.on_time - mLastLinkLayerStats.on_time); in incrementWifiLinkLayerUsageStats()
915 mWifiLinkLayerUsageStats.radioTxTimeMs += (newStats.tx_time - mLastLinkLayerStats.tx_time); in incrementWifiLinkLayerUsageStats()
916 mWifiLinkLayerUsageStats.radioRxTimeMs += (newStats.rx_time - mLastLinkLayerStats.rx_time); in incrementWifiLinkLayerUsageStats()
918 (newStats.on_time_scan - mLastLinkLayerStats.on_time_scan); in incrementWifiLinkLayerUsageStats()
920 (newStats.on_time_nan_scan - mLastLinkLayerStats.on_time_nan_scan); in incrementWifiLinkLayerUsageStats()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCompilerStats.java142 PackageStats newStats = new PackageStats(packageName); in createPackageStats() local
143 packageStats.put(packageName, newStats); in createPackageStats()
144 return newStats; in createPackageStats()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java2734 WifiLinkLayerStats newStats) { in assertWifiLinkLayerUsageHasDiff() argument
2735 assertEquals(newStats.timeStampInMs - oldStats.timeStampInMs, in assertWifiLinkLayerUsageHasDiff()
2737 assertEquals(newStats.on_time - oldStats.on_time, in assertWifiLinkLayerUsageHasDiff()
2739 assertEquals(newStats.tx_time - oldStats.tx_time, in assertWifiLinkLayerUsageHasDiff()
2741 assertEquals(newStats.rx_time - oldStats.rx_time, in assertWifiLinkLayerUsageHasDiff()
2743 assertEquals(newStats.on_time_scan - oldStats.on_time_scan, in assertWifiLinkLayerUsageHasDiff()
2745 assertEquals(newStats.on_time_nan_scan - oldStats.on_time_nan_scan, in assertWifiLinkLayerUsageHasDiff()
2747 assertEquals(newStats.on_time_background_scan - oldStats.on_time_background_scan, in assertWifiLinkLayerUsageHasDiff()
2749 assertEquals(newStats.on_time_roam_scan - oldStats.on_time_roam_scan, in assertWifiLinkLayerUsageHasDiff()
2751 assertEquals(newStats.on_time_pno_scan - oldStats.on_time_pno_scan, in assertWifiLinkLayerUsageHasDiff()
[all …]