Searched refs:oldStats (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiDataStall.java | 324 @Nullable WifiLinkLayerStats oldStats, in checkDataStallAndThroughputSufficiency() argument 331 if (oldStats == null || newStats == null) { in checkDataStallAndThroughputSufficiency() 348 - (oldStats.txmpdu_be + oldStats.txmpdu_bk in checkDataStallAndThroughputSufficiency() 349 + oldStats.txmpdu_vi + oldStats.txmpdu_vo); in checkDataStallAndThroughputSufficiency() 352 - (oldStats.retries_be + oldStats.retries_bk in checkDataStallAndThroughputSufficiency() 353 + oldStats.retries_vi + oldStats.retries_vo); in checkDataStallAndThroughputSufficiency() 356 - (oldStats.lostmpdu_be + oldStats.lostmpdu_bk in checkDataStallAndThroughputSufficiency() 357 + oldStats.lostmpdu_vi + oldStats.lostmpdu_vo); in checkDataStallAndThroughputSufficiency() 360 - (oldStats.rxmpdu_be + oldStats.rxmpdu_bk in checkDataStallAndThroughputSufficiency() 361 + oldStats.rxmpdu_vi + oldStats.rxmpdu_vo); in checkDataStallAndThroughputSufficiency() [all …]
|
D | WifiScoreCard.java | 1282 void updateLinkBandwidth(WifiLinkLayerStats oldStats, WifiLinkLayerStats newStats, in updateLinkBandwidth() argument 1301 updateLinkBandwidthTxRxSample(oldStats, newStats, wifiInfo, txBytes, rxBytes); in updateLinkBandwidth() 1321 private void updateLinkBandwidthTxRxSample(WifiLinkLayerStats oldStats, in updateLinkBandwidthTxRxSample() argument 1325 if (oldStats == null || newStats == null) { in updateLinkBandwidthTxRxSample() 1329 int elapsedTimeMs = (int) (newStats.timeStampInMs - oldStats.timeStampInMs); in updateLinkBandwidthTxRxSample() 1334 int onTimeMs = getTotalRadioOnTimeMs(newStats) - getTotalRadioOnTimeMs(oldStats); in updateLinkBandwidthTxRxSample()
|
D | WifiMetrics.java | 1678 private void incrementPerRadioUsageStats(WifiLinkLayerStats oldStats, in incrementPerRadioUsageStats() argument 1681 && oldStats.radioStats != null && oldStats.radioStats.length > 0 in incrementPerRadioUsageStats() 1682 && newStats.radioStats.length == oldStats.radioStats.length) { in incrementPerRadioUsageStats() 1686 WifiLinkLayerStats.RadioStat oldRadio = oldStats.radioStats[i]; in incrementPerRadioUsageStats() 1718 private boolean newLinkLayerStatsIsValid(WifiLinkLayerStats oldStats, in newLinkLayerStatsIsValid() argument 1720 if (newStats.on_time < oldStats.on_time in newLinkLayerStatsIsValid() 1721 || newStats.tx_time < oldStats.tx_time in newLinkLayerStatsIsValid() 1722 || newStats.rx_time < oldStats.rx_time in newLinkLayerStatsIsValid() 1723 || newStats.on_time_scan < oldStats.on_time_scan) { in newLinkLayerStatsIsValid()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTest.java | 3849 private void assertWifiLinkLayerUsageHasDiff(WifiLinkLayerStats oldStats, in assertWifiLinkLayerUsageHasDiff() argument 3851 assertEquals(newStats.timeStampInMs - oldStats.timeStampInMs, in assertWifiLinkLayerUsageHasDiff() 3853 assertEquals(newStats.on_time - oldStats.on_time, in assertWifiLinkLayerUsageHasDiff() 3855 assertEquals(newStats.tx_time - oldStats.tx_time, in assertWifiLinkLayerUsageHasDiff() 3857 assertEquals(newStats.rx_time - oldStats.rx_time, in assertWifiLinkLayerUsageHasDiff() 3859 assertEquals(newStats.on_time_scan - oldStats.on_time_scan, in assertWifiLinkLayerUsageHasDiff() 3861 assertEquals(newStats.on_time_nan_scan - oldStats.on_time_nan_scan, in assertWifiLinkLayerUsageHasDiff() 3863 assertEquals(newStats.on_time_background_scan - oldStats.on_time_background_scan, in assertWifiLinkLayerUsageHasDiff() 3865 assertEquals(newStats.on_time_roam_scan - oldStats.on_time_roam_scan, in assertWifiLinkLayerUsageHasDiff() 3867 assertEquals(newStats.on_time_pno_scan - oldStats.on_time_pno_scan, in assertWifiLinkLayerUsageHasDiff() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecManagerTest.java | 427 long oldStats, long newStats, int expectedDelta, double errorMargin) { in assertApproxEquals() argument 428 assertTrue(expectedDelta <= newStats - oldStats); in assertApproxEquals() 429 assertTrue((expectedDelta * errorMargin) > newStats - oldStats); in assertApproxEquals()
|