Home
last modified time | relevance | path

Searched refs:numOfChannels (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DChannelPowerInfo.java39 public final int numOfChannels; field in ChannelPowerInfo
65 int numOfChannels = (int) (((bytes[0] & ENCODE_NUM_OF_CHANNEL_BITMASK) >> 1) & 0x0007); in fromBytes() local
68 return new ChannelPowerInfo(firstChannel, numOfChannels, isIndoor, averagePowerLimitDbm); in fromBytes()
81 | convertNumOfChannels(info.numOfChannels) in toBytes()
91 private static byte convertNumOfChannels(int numOfChannels) { in convertNumOfChannels() argument
92 return (byte) ((numOfChannels << 1) & ENCODE_NUM_OF_CHANNEL_BITMASK); in convertNumOfChannels()
100 int firstChannel, int numOfChannels, boolean isIndoor, int averagePowerLimitDbm) { in ChannelPowerInfo() argument
103 this.numOfChannels = numOfChannels; in ChannelPowerInfo()
113 .append(numOfChannels) in toString()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java133 int numOfChannels = channels.size(); in retrieveBackupDataFromSoftApConfiguration() local
134 out.writeInt(numOfChannels); in retrieveBackupDataFromSoftApConfiguration()
135 for (int i = 0; i < numOfChannels; i++) { in retrieveBackupDataFromSoftApConfiguration()
248 int numOfChannels = in.readInt(); in retrieveSoftApConfigurationFromBackupData() local
249 SparseIntArray channels = new SparseIntArray(numOfChannels); in retrieveSoftApConfigurationFromBackupData()
250 for (int i = 0; i < numOfChannels; i++) { in retrieveSoftApConfigurationFromBackupData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApBackupRestoreTest.java447 int numOfChannels = channels.size(); in retrieveSpecificVersionBackupDataFromSoftApConfiguration() local
448 out.writeInt(numOfChannels); in retrieveSpecificVersionBackupDataFromSoftApConfiguration()
449 for (int i = 0; i < numOfChannels; i++) { in retrieveSpecificVersionBackupDataFromSoftApConfiguration()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DChannelPowerInfoTest.java56 assertThat(info.numOfChannels).isEqualTo(NUMBER_OF_CHANNELS); in fromBytes_succeed()
DRegulatoryInfoTest.java93 assertThat(i.numOfChannels).isEqualTo(NUMBER_OF_CHANNELS); in fromBytes_succeed()