Searched refs:channelMask (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Connectivity/thread/framework/java/android/net/thread/ |
D | ActiveOperationalDataset.java | 191 SparseArray<byte[]> channelMask, in ActiveOperationalDataset() argument 203 this.mChannelMask = deepCloneSparseArray(channelMask); in ActiveOperationalDataset() 322 SparseArray<byte[]> channelMask = new SparseArray<>(); in decodeChannelMask() local 340 channelMask.put(channelPage, Arrays.copyOfRange(tlvValue, i, i + maskLength)); in decodeChannelMask() 343 return channelMask; in decodeChannelMask() 347 SparseArray<byte[]> channelMask, ByteArrayOutputStream outputStream) { in encodeChannelMask() argument 350 for (int i = 0; i < channelMask.size(); i++) { in encodeChannelMask() 351 int key = channelMask.keyAt(i); in encodeChannelMask() 352 byte[] value = channelMask.get(key); in encodeChannelMask() 800 public Builder setChannelMask(@NonNull @Size(min = 1) SparseArray<byte[]> channelMask) { in setChannelMask() [all …]
|
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/ |
D | ActiveOperationalDatasetTest.java | 280 SparseArray<byte[]> channelMask = dataset.getChannelMask(); in fromThreadTlvs_unsupportedChannelMaskLength_success() local 281 assertThat(channelMask.size()).isEqualTo(1); in fromThreadTlvs_unsupportedChannelMaskLength_success() 282 assertThat(channelMask.get(CHANNEL_PAGE_24_GHZ)) in fromThreadTlvs_unsupportedChannelMaskLength_success() 435 SparseArray<byte[]> channelMask = dataset.getChannelMask(); in fromThreadTlvs_validFullDataset_success() local 436 assertThat(channelMask.size()).isEqualTo(1); in fromThreadTlvs_validFullDataset_success() 437 assertThat(channelMask.get(CHANNEL_PAGE_24_GHZ)) in fromThreadTlvs_validFullDataset_success() 604 SparseArray<byte[]> channelMask = new SparseArray<byte[]>(1); in builder_setValidChannelMask_success() local 605 channelMask.put(0, new byte[] {0x00, 0x00, 0x01, 0x00}); in builder_setValidChannelMask_success() 608 new Builder(DEFAULT_DATASET).setChannelMask(channelMask).build(); in builder_setValidChannelMask_success()
|
D | PendingOperationalDatasetTest.java | 56 SparseArray<byte[]> channelMask = new SparseArray<>(1); in createActiveDataset() local 57 channelMask.put(0, new byte[] {0x00, 0x1f, (byte) 0xff, (byte) 0xe0}); in createActiveDataset() 65 .setChannelMask(channelMask) in createActiveDataset()
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | ThreadNetworkControllerService.java | 880 final SparseArray<byte[]> channelMask = new SparseArray<>(1); 881 channelMask.put(CHANNEL_PAGE_24_GHZ, channelMaskToByteArray(supportedChannelMask)); 894 .setChannelMask(channelMask) 928 private static byte[] channelMaskToByteArray(int channelMask) { 938 channelMask = Integer.reverse(channelMask); 940 (byte) (channelMask >>> 24), 941 (byte) (channelMask >>> 16), 942 (byte) (channelMask >>> 8), 943 (byte) channelMask
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarHalAudioUtilsTest.java | 230 metadata.channelMask = AudioChannelLayout.none(0); in metadataToAudioAttribute_withMusic_succeeds() 250 metadata.channelMask = AudioChannelLayout.none(0); in metadataToAudioAttribute_withSystemUsage_succeeds() 272 metadata.channelMask = AudioChannelLayout.none(0); in metadataToAudioAttributes_withOemTags_succeeds()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioDeviceInfo.java | 435 for (int channelMask : channelMasks) { in getMaxChannels() 436 int currentNumChannels = Integer.bitCount(channelMask); in getMaxChannels()
|
D | CarHalAudioUtils.java | 93 playbackTrackMetadata.channelMask = AudioChannelLayout.none(0); in audioAttributeToMetadata()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/ |
D | AudioManagerHelper.java | 90 audioGain.channelMask(), in setAudioDeviceGain() 194 audioGain.channelMask(), new int[] { gainInMillibels }, 0); in createAudioPatch()
|