Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiChannelUtilization.java161 public void setUtilizationRatio(int frequency, int utilizationRatio) { in setUtilizationRatio() argument
162 mChannelUtilizationMap.put(frequency, utilizationRatio); in setUtilizationRatio()
207 int utilizationRatio = BssLoad.INVALID; in calculateChannelUtilization() local
209 utilizationRatio = calculateUtilizationRatio(radioOnTimeDiff, busyTimeDiff); in calculateChannelUtilization()
211 mChannelUtilizationMap.put(freq, utilizationRatio); in calculateChannelUtilization()
221 .append(" utilization: ").append(utilizationRatio) in calculateChannelUtilization()
264 int utilizationRatio = busyTimeDiff * BssLoad.MAX_CHANNEL_UTILIZATION / radioOnTimeDiff; in calculateUtilizationRatio() local
265 return (utilizationRatio > UTILIZATION_RATIO_MAX) ? BssLoad.INVALID : utilizationRatio; in calculateUtilizationRatio()
DThroughputPredictor.java492 private static boolean isValidUtilizationRatio(int utilizationRatio) { in isValidUtilizationRatio() argument
493 return (utilizationRatio <= MAX_CHANNEL_UTILIZATION in isValidUtilizationRatio()
494 && utilizationRatio >= MIN_CHANNEL_UTILIZATION); in isValidUtilizationRatio()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiChannelUtilizationTest.java436 int utilizationRatio = 24; in verifySetGetUtilizationRatio() local
437 mWifiChannelUtilization.setUtilizationRatio(freq, utilizationRatio); in verifySetGetUtilizationRatio()
438 assertEquals(utilizationRatio, mWifiChannelUtilization.getUtilizationRatio(freq)); in verifySetGetUtilizationRatio()