Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java208 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local
209 stats1.recordData(TEST_START, TEST_START + 2 * HOUR_IN_MILLIS, 2000L, 1000L); in testRecordEntireGapIdentical()
217 stats.recordEntireHistory(stats1); in testRecordEntireGapIdentical()
233 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local
234 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); in testRecordEntireOverlapVaryingBuckets()
242 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
259 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java4077 WifiLinkLayerStats stats1 = start; in addBadWifiUsabilityStats() local
4078 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in addBadWifiUsabilityStats()
4079 mWifiMetrics.updateWifiUsabilityStatsEntries(TEST_IFACE_NAME, info, stats1); in addBadWifiUsabilityStats()
4107 WifiLinkLayerStats stats1 = nextRandomStats(createNewWifiLinkLayerStats()); in testUpdateWifiUsabilityStatsEntries() local
4108 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in testUpdateWifiUsabilityStatsEntries()
4113 mWifiMetrics.updateWifiUsabilityStatsEntries(TEST_IFACE_NAME, info, stats1); in testUpdateWifiUsabilityStatsEntries()
4133 assertUsabilityStatsAssignment(info, stats1, in testUpdateWifiUsabilityStatsEntries()
4284 WifiLinkLayerStats stats1 = new WifiLinkLayerStats(); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() local
4286 stats1 = addGoodWifiUsabilityStats(stats1); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
4287 stats2.timeStampInMs = stats1.timeStampInMs in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java1764 private boolean isRatioAboveThreshold(NetworkConnectionStats stats1, in isRatioAboveThreshold() argument
1771 return ((stats1.getCount(countCode) + 1) * (stats2.getCount(refCountCode) + 2) in isRatioAboveThreshold()
1773 >= ((stats1.getCount(refCountCode) + 2) * (stats2.getCount(countCode) + 1) in isRatioAboveThreshold()