Home
last modified time | relevance | path

Searched refs:channelMask (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DActiveOperationalDataset.java191 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/
DActiveOperationalDatasetTest.java280 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()
DPendingOperationalDatasetTest.java56 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/
DThreadNetworkControllerService.java880 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/
DCarHalAudioUtilsTest.java230 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/
DCarAudioDeviceInfo.java435 for (int channelMask : channelMasks) { in getMaxChannels()
436 int currentNumChannels = Integer.bitCount(channelMask); in getMaxChannels()
DCarHalAudioUtils.java93 playbackTrackMetadata.channelMask = AudioChannelLayout.none(0); in audioAttributeToMetadata()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java90 audioGain.channelMask(), in setAudioDeviceGain()
194 audioGain.channelMask(), new int[] { gainInMillibels }, 0); in createAudioPatch()