Searched refs:utilizationRatio (Results 1 – 3 of 3) sorted by relevance
161 public void setUtilizationRatio(int frequency, int utilizationRatio) { in setUtilizationRatio() argument162 mChannelUtilizationMap.put(frequency, utilizationRatio); in setUtilizationRatio()207 int utilizationRatio = BssLoad.INVALID; in calculateChannelUtilization() local209 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() local265 return (utilizationRatio > UTILIZATION_RATIO_MAX) ? BssLoad.INVALID : utilizationRatio; in calculateUtilizationRatio()
492 private static boolean isValidUtilizationRatio(int utilizationRatio) { in isValidUtilizationRatio() argument493 return (utilizationRatio <= MAX_CHANNEL_UTILIZATION in isValidUtilizationRatio()494 && utilizationRatio >= MIN_CHANNEL_UTILIZATION); in isValidUtilizationRatio()
436 int utilizationRatio = 24; in verifySetGetUtilizationRatio() local437 mWifiChannelUtilization.setUtilizationRatio(freq, utilizationRatio); in verifySetGetUtilizationRatio()438 assertEquals(utilizationRatio, mWifiChannelUtilization.getUtilizationRatio(freq)); in verifySetGetUtilizationRatio()