Home
last modified time | relevance | path

Searched refs:MAX_CHANNEL_UTILIZATION (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/
DThroughputPredictor.java19 import static com.android.server.wifi.util.InformationElementUtil.BssLoad.MAX_CHANNEL_UTILIZATION;
43 public static final int CHANNEL_UTILIZATION_DEFAULT_2G = MAX_CHANNEL_UTILIZATION * 6 / 16;
46 public static final int CHANNEL_UTILIZATION_DEFAULT_ABOVE_2G = MAX_CHANNEL_UTILIZATION / 16;
48 public static final int CHANNEL_UTILIZATION_BOOST_BT_CONNECTED_2G = MAX_CHANNEL_UTILIZATION / 4;
422 int throughputMbps = (phyRateMbps * airTimeFraction) / MAX_CHANNEL_UTILIZATION; in predictThroughputInternal()
476 channelUtilization = Math.min(channelUtilization, MAX_CHANNEL_UTILIZATION); in getValidChannelUtilization()
493 return (utilizationRatio <= MAX_CHANNEL_UTILIZATION in isValidUtilizationRatio()
501 int airTimeFraction20MHz = MAX_CHANNEL_UTILIZATION - channelUtilization; in calculateAirTimeFraction()
508 airTimeFraction /= MAX_CHANNEL_UTILIZATION; in calculateAirTimeFraction()
DWifiChannelUtilization.java54 static final int UTILIZATION_RATIO_MAX = BssLoad.MAX_CHANNEL_UTILIZATION * 94 / 100;
264 int utilizationRatio = busyTimeDiff * BssLoad.MAX_CHANNEL_UTILIZATION / radioOnTimeDiff; in calculateUtilizationRatio()
DWifiMetrics.java3445 || channelUtilization > InformationElementUtil.BssLoad.MAX_CHANNEL_UTILIZATION) { in incrementChannelUtilizationCount()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiChannelUtilizationTest.java27 import static com.android.server.wifi.util.InformationElementUtil.BssLoad.MAX_CHANNEL_UTILIZATION;
127 assertEquals(cs.ccaBusyTimeMs * MAX_CHANNEL_UTILIZATION / cs.radioOnTimeMs, in verifyOneReadChanStatsWithLongRadioOnTime()
167 assertEquals((cs2.ccaBusyTimeMs - cs1.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyTwoReadChanStatsWithLargeTimeGap()
195 assertEquals((cs2.ccaBusyTimeMs - cs1.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyTwoReadChanStatsWithSmallTimeGap()
234 assertEquals((cs3.ccaBusyTimeMs - cs1.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyThreeReadChanStatsRefWithSecondLast()
238 assertEquals(cs3.ccaBusyTimeMs * MAX_CHANNEL_UTILIZATION / cs3.radioOnTimeMs, in verifyThreeReadChanStatsRefWithSecondLast()
276 assertEquals((cs3.ccaBusyTimeMs - cs2.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyThreeReadChanStatsLargeTimeGap()
309 assertEquals((cs3.ccaBusyTimeMs - cs1.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyThreeReadChanStatsSmallTimeGap()
351 assertEquals((cs3.ccaBusyTimeMs - cs2.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyThreeReadChanStatsInitAfterOneRead()
389 assertEquals((cs3.ccaBusyTimeMs - cs1.ccaBusyTimeMs) * MAX_CHANNEL_UTILIZATION in verifyThreeReadChanStatsAlwaysStationary()
[all …]
DThroughputPredictorTest.java20 import static com.android.server.wifi.util.InformationElementUtil.BssLoad.MAX_CHANNEL_UTILIZATION;
148 MAX_CHANNEL_UTILIZATION, 0, false, null); in verifyMaxChannelUtilizationBssLoad()
157 INVALID, MAX_CHANNEL_UTILIZATION, false, null); in verifyMaxChannelUtilizationLinkLayerStats()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java312 public static final int MAX_CHANNEL_UTILIZATION = 255; field in InformationElementUtil.BssLoad
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto2686 …// [BssLoad.MIN_CHANNEL_UTILIZATION, BssLoad.MAX_CHANNEL_UTILIZATION], where MIN_CHANNEL_UTILIZATI…
2687 // corresponds to ratio 0%, MAX_CHANNEL_UTILIZATION corresponds to ratio 100%,