Searched refs:channelStats (Results 1 – 5 of 5) sorted by relevance
188 ChannelStats channelStats = channelStatsMap.get(frequency, null); in refreshChannelStatsAndChannelUtilization() local189 if (channelStats != null) calculateChannelUtilization(channelStats); in refreshChannelStatsAndChannelUtilization()192 ChannelStats channelStats = channelStatsMap.valueAt(i); in refreshChannelStatsAndChannelUtilization() local193 calculateChannelUtilization(channelStats); in refreshChannelStatsAndChannelUtilization()199 private void calculateChannelUtilization(ChannelStats channelStats) { in calculateChannelUtilization() argument200 int freq = channelStats.frequency; in calculateChannelUtilization()201 int ccaBusyTimeMs = channelStats.ccaBusyTimeMs; in calculateChannelUtilization()202 int radioOnTimeMs = channelStats.radioOnTimeMs; in calculateChannelUtilization()253 ChannelStats channelStats = channelStatsMap.get(freq); in findChanStatsReference() local254 int radioOnTimeDiff = radioOnTimeMs - channelStats.radioOnTimeMs; in findChanStatsReference()[all …]
416 rstat.channelStats = new WifiChannelStats[TEST_FREQUENCIES.length]; in randomizeRadioStats()418 WifiChannelStats channelStats = new WifiChannelStats(); in randomizeRadioStats() local419 channelStats.channel = new WifiChannelInfo(); in randomizeRadioStats()420 channelStats.channel.centerFreq = TEST_FREQUENCIES[k]; in randomizeRadioStats()421 channelStats.onTimeInMs = r.nextInt() & 0xFFFFFF; in randomizeRadioStats()422 channelStats.ccaBusyTimeInMs = r.nextInt() & 0xFFFFFF; in randomizeRadioStats()423 rstat.channelStats[k] = channelStats; in randomizeRadioStats()582 assertEquals(radio.channelStats.length, radioStat.channelStatsMap.size()); in verifyPerRadioStats()583 for (int j = 0; j < radio.channelStats.length; j++) { in verifyPerRadioStats()584 android.hardware.wifi.WifiChannelStats channelStats = radio.channelStats[j]; in verifyPerRadioStats() local[all …]
245 WifiChannelStats channelStats = new WifiChannelStats(); in randomizeRadioStats_1_3() local246 channelStats.channel.centerFreq = TEST_FREQUENCIES[k]; in randomizeRadioStats_1_3()247 channelStats.onTimeInMs = r.nextInt() & 0xFFFFFF; in randomizeRadioStats_1_3()248 channelStats.ccaBusyTimeInMs = r.nextInt() & 0xFFFFFF; in randomizeRadioStats_1_3()249 rstat.channelStats.add(channelStats); in randomizeRadioStats_1_3()409 assertEquals(radio.channelStats.size(), in verifyRadioStats_1_3()411 for (int j = 0; j < radio.channelStats.size(); j++) { in verifyRadioStats_1_3()412 WifiChannelStats channelStats = radio.channelStats.get(j); in verifyRadioStats_1_3() local414 wifiLinkLayerStats.channelStatsMap.get(channelStats.channel.centerFreq); in verifyRadioStats_1_3()416 assertEquals(channelStats.channel.centerFreq, retrievedChannelStats.frequency); in verifyRadioStats_1_3()[all …]
1245 for (android.hardware.wifi.V1_3.WifiChannelStats channelStats in setFrameworkPerRadioStatsFromHidl_1_3()1246 : hidlRadioStats.channelStats) { in setFrameworkPerRadioStatsFromHidl_1_3()1249 channelStatsEntry.frequency = channelStats.channel.centerFreq; in setFrameworkPerRadioStatsFromHidl_1_3()1250 channelStatsEntry.radioOnTimeMs = channelStats.onTimeInMs; in setFrameworkPerRadioStatsFromHidl_1_3()1251 channelStatsEntry.ccaBusyTimeMs = channelStats.ccaBusyTimeInMs; in setFrameworkPerRadioStatsFromHidl_1_3()1252 radio.channelStatsMap.put(channelStats.channel.centerFreq, channelStatsEntry); in setFrameworkPerRadioStatsFromHidl_1_3()1272 for (android.hardware.wifi.V1_6.WifiChannelStats channelStats in setFrameworkPerRadioStatsFromHidl_1_6()1273 : hidlRadioStats.channelStats) { in setFrameworkPerRadioStatsFromHidl_1_6()1276 channelStatsEntry.frequency = channelStats.channel.centerFreq; in setFrameworkPerRadioStatsFromHidl_1_6()1277 channelStatsEntry.radioOnTimeMs = channelStats.onTimeInMs; in setFrameworkPerRadioStatsFromHidl_1_6()[all …]
1480 for (WifiChannelStats channelStats : aidlRadioStats.channelStats) { in setFrameworkPerRadioStatsFromAidl()1483 channelStatsEntry.frequency = channelStats.channel.centerFreq; in setFrameworkPerRadioStatsFromAidl()1484 channelStatsEntry.radioOnTimeMs = channelStats.onTimeInMs; in setFrameworkPerRadioStatsFromAidl()1485 channelStatsEntry.ccaBusyTimeMs = channelStats.ccaBusyTimeInMs; in setFrameworkPerRadioStatsFromAidl()1486 radio.channelStatsMap.put(channelStats.channel.centerFreq, channelStatsEntry); in setFrameworkPerRadioStatsFromAidl()1516 for (WifiChannelStats channelStats : aidlRadioStats.channelStats) { in aggregateFrameworkRadioStatsFromAidl()1518 stats.channelStatsMap.get(channelStats.channel.centerFreq); in aggregateFrameworkRadioStatsFromAidl()1521 channelStatsEntry.frequency = channelStats.channel.centerFreq; in aggregateFrameworkRadioStatsFromAidl()1522 stats.channelStatsMap.put(channelStats.channel.centerFreq, channelStatsEntry); in aggregateFrameworkRadioStatsFromAidl()1524 channelStatsEntry.radioOnTimeMs += channelStats.onTimeInMs; in aggregateFrameworkRadioStatsFromAidl()[all …]