/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 129 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels() 130 addChannel(scanSettings.channels[j].frequency); in addChannels() 142 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels() 143 addChannel(bucketSettings.channels[j].frequency); in addChannels() 155 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings() 156 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings() 171 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings() 172 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings() 188 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings() 189 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings() [all …]
|
D | KnownBandsChannelHelper.java | 68 WifiScanner.ChannelSpec[] channelSpec, int offset, int[] channels) { in copyChannels() argument 69 for (int i = 0; i < channels.length; i++) { in copyChannels() 70 channelSpec[offset + i] = new WifiScanner.ChannelSpec(channels[i]); in copyChannels() 87 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration() 120 settingsChannels = settings.channels; in settingsContainChannel() 252 bucketSettings.channels = null; in fillBucketSettings() 256 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings() 260 bucketSettings.channels[i] = channelSettings; in fillBucketSettings()
|
/frameworks/av/media/libaudioprocessing/tests/ |
D | resampler_tests.cpp | 56 void resample(int channels, void *output, in resample() argument 69 (int32_t*) output + channels*i, thisFrames, provider); in resample() 89 void testBufferIncrement(size_t channels, bool useFloat, in testBufferIncrement() argument 98 provider.setChirp<float>(channels, in testBufferIncrement() 101 provider.setChirp<int16_t>(channels, in testBufferIncrement() 108 …size_t outputFrameSize = (channels == 1 ? 2 : channels) * (useFloat ? sizeof(float) : sizeof(int32… in testBufferIncrement() 115 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() 124 resample(channels, reference, outputFrames, refIncr, &provider, resampler); in testBufferIncrement() 133 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() 148 resample(channels, test, outputFrames, outIncr, &provider, resampler); in testBufferIncrement() [all …]
|
D | test-resampler.cpp | 110 int channels = 1; in main() local 133 channels = atoi(optarg); in main() 182 if (channels < 1 in main() 183 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) { in main() 184 fprintf(stderr, "invalid number of audio channels %d\n", channels); in main() 219 input_size = info.frames * info.channels * sizeof(short); in main() 223 channels = info.channels; in main() 231 input_size = channels * sizeof(int16_t) * input_frames; in main() 238 for (int j = 0; j < channels; j++) { in main() 239 in[i*channels + j] = yi / (1 + j); in main() [all …]
|
D | test_utils.h | 195 size_t channels, double sampleRate, double freq) 204 for (size_t j = 0; j < channels; ++j) { 205 buffer[i*channels + j] = yt / T(j + 1); 219 size_t channels, double sampleRate, double minfreq, double maxfreq) 230 for (size_t j = 0; j < channels; ++j) { 231 buffer[i*channels + j] = yt / T(j + 1); 257 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time) 259 createBufferByFrames<T>(channels, sampleRate, sampleRate*time); 264 void setSine(size_t channels, 267 createBufferByFrames<T>(channels, sampleRate, sampleRate*time); [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | OpusHeader.cpp | 101 header->channels = data[kOpusHeaderChannelsOffset]; in ParseOpusHeader() 103 if (header->channels < 1 || header->channels > kMaxChannels) { in ParseOpusHeader() 104 ALOGV("Invalid Header, bad channel count: %d", header->channels); in ParseOpusHeader() 111 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader() 116 header->num_coupled = header->channels > 1; in ParseOpusHeader() 121 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader() 124 header->channels); in ParseOpusHeader() 129 if (header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader() 133 for (int i = 0; i < header->channels; ++i) in ParseOpusHeader() 141 const size_t total_size = kOpusHeaderStreamMapOffset + header.channels; in WriteOpusHeader() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest() argument 55 request.channels = channels; in createRequest() 83 request.channels = null; in createRequest() 151 int period, int reportEvents, WifiScanner.ChannelSpec... channels) { in addBucketWithChannels() argument 152 int[] channelFreqs = new int[channels.length]; in addBucketWithChannels() 153 for (int i = 0; i < channels.length; ++i) { in addBucketWithChannels() 154 channelFreqs[i] = channels[i].frequency; in addBucketWithChannels() 160 int period, int reportEvents, int... channels) { in addBucketWithChannels() argument 164 bucket.num_channels = channels.length; in addBucketWithChannels() 165 bucket.channels = channelsToNativeSettings(channels); in addBucketWithChannels() [all …]
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
D | SoftOpus.cpp | 178 opusParams->nChannels = mHeader->channels; in internalGetParameter() 209 pcmParams->nChannels = mHeader->channels; in internalGetParameter() 344 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader() 346 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader() 347 ALOGV("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader() 357 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader() 362 header->num_coupled = header->channels > 1; in ParseOpusHeader() 367 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader() 369 "count: %d", header->channels); in ParseOpusHeader() 374 if (header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader() [all …]
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestFeedback.cpp | 40 static SLuint32 channels = 1; // -c# variable 186 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short)); in playerCallback() 196 for (unsigned k = 0; k < channels; k++) { in playerCallback() 197 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000; in playerCallback() 292 channels = atoi(&arg[2]); in main() 293 if (channels < 1 || channels > 2) { in main() 295 (unsigned) channels); in main() 296 channels = 2; in main() 345 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short); in main() 367 size_t frameSize = channels * sizeof(short); in main() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 242 r.channels.put(id, channel); in readXml() 339 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeededLocked() 350 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeededLocked() 357 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeededLocked() 358 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName(mContext.getString( in createDefaultChannelIfNeededLocked() 385 r.channels.put(channel.getId(), channel); in createDefaultChannelIfNeededLocked() 413 || r.channels.size() > 0 in writeXml() 459 for (NotificationChannel channel : r.channels.values()) { in writeXml() 636 NotificationChannel existing = r.channels.get(channel.getId()); in createNotificationChannel() 723 r.channels.put(channel.getId(), channel); in createNotificationChannel() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/ |
D | LVCS_Process.c | 81 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process_CS() local 90 if (channels == 1) in LVCS_Process_CS() 92 channels = 2; in LVCS_Process_CS() 116 channels); in LVCS_Process_CS() 286 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process() local 288 if (channels == 1) in LVCS_Process() 290 channels = 2; in LVCS_Process() 433 channels); in LVCS_Process() 446 (LVM_INT16)(channels * NrFrames)); /* All Channels*/ in LVCS_Process()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogController.kt | 98 channels: Set<NotificationChannel>, in <lambda>() 112 padToFourChannels(channels) in <lambda>() 123 private fun padToFourChannels(channels: Set<NotificationChannel>) { in <lambda>() 126 providedChannels.addAll(channels.asSequence().take(4)) in <lambda>() 146 val channels = groupList in <lambda>() constant 148 group.channels.asSequence().filterNot { channel -> in <lambda>() 156 return channels.sortedWith(compareBy { it.name?.toString() ?: it.id }) in <lambda>() 268 channels = providedChannels in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogControllerTest.kt | 85 group.channels = listOf(channel1, channel2) in testPrepareDialogForApp_noExtraChannels() 105 group.channels = listOf() in testPrepareDialogForApp_noProvidedChannels_noException() 116 group.channels = listOf(channel1, channel2, channel3, channel4) in testPrepareDialogForApp_retrievesUpTo4Channels() 127 group.channels = listOf(channel1, channel2) in testApply_demoteChannel() 146 group.channels = listOf(channel1, channel2) in testApply_demoteApp() 174 group.channels = listOf(channel1, channel2) in testSettingsClickListenerNull_noCrash()
|
/frameworks/av/cmds/stagefright/ |
D | audioloop.cpp | 56 static const int channels = 1; // not permitted to be stereo now in main() local 114 channels); in main() 117 source = new SineSource(sampleRate, channels); in main() 131 meta->setInt32("channel-count", channels); in main()
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioCodec.java | 117 String channels = clue.substring(codec.rtpmap.length()); in getCodec() local 118 if (channels.length() == 0 || channels.equals("/1")) { in getCodec()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputConsumerImpl.java | 59 InputChannel[] channels = InputChannel.openInputChannelPair(name); in InputConsumerImpl() local 60 mServerChannel = channels[0]; in InputConsumerImpl() 62 channels[1].transferTo(inputChannel); in InputConsumerImpl() 63 channels[1].dispose(); in InputConsumerImpl() 66 mClientChannel = channels[1]; in InputConsumerImpl()
|
/frameworks/base/telephony/java/android/telephony/ |
D | RadioAccessSpecifier.java | 73 public RadioAccessSpecifier(int ran, int[] bands, int[] channels) { in RadioAccessSpecifier() argument 80 if (channels != null) { in RadioAccessSpecifier() 81 this.mChannels = channels.clone(); in RadioAccessSpecifier()
|
/frameworks/wilhelm/tools/permute/ |
D | permute.c | 191 switch (sfinfo_in.channels) { in permute() 194 frameSizeRead = sampleSizeRead * sfinfo_in.channels; in permute() 197 fprintf(stderr, "%s: unsupported channels %d\n", path_in, sfinfo_in.channels); in permute() 260 sfinfo_out.channels = sfinfo_in.channels; in permute() 270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i] in permute()
|
/frameworks/av/media/libstagefright/flac/dec/ |
D | FLACDecoder.cpp | 374 mWriteHeader.channels != getChannels() || in decodeOneFrame() 378 mWriteHeader.sample_rate, mWriteHeader.channels, mWriteHeader.bits_per_sample); in decodeOneFrame() 387 const unsigned channels = getChannels(); in decodeOneFrame() local 389 const size_t frameSize = channels * sampleSize; in decodeOneFrame() 405 channels, in decodeOneFrame() 411 channels, in decodeOneFrame()
|
/frameworks/av/services/audioflinger/ |
D | BufLog.cpp | 75 size_t BufLog::write(int streamid, const char *tag, int format, int channels, in write() argument 83 pBLStream = mStreams[id] = new BufLogStream(id, tag, format, channels, in write() 114 unsigned int channels, in BufLogStream() argument 116 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels), in BufLogStream()
|
/frameworks/av/media/libmedia/ |
D | TypeConverter.cpp | 448 audio_channel_mask_t channels; in channelMaskFromString() local 449 if (!OutputChannelConverter::fromString(literalChannels, channels) && in channelMaskFromString() 450 !InputChannelConverter::fromString(literalChannels, channels)) { in channelMaskFromString() 453 return channels; in channelMaskFromString() 457 const std::string &channels, const char *del) in channelMasksFromString() argument 460 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString() 461 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString() 462 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
|
/frameworks/av/services/mediaanalytics/ |
D | statsd_audiorecord.cpp | 77 int32_t channels = -1; in statsd_audiorecord() local 78 if (item->getInt32("android.media.audiorecord.channels", &channels)) { in statsd_audiorecord() 79 metrics_proto.set_channels(channels); in statsd_audiorecord()
|
/frameworks/native/services/vr/bufferhubd/ |
D | buffer_hub.cpp | 38 auto channels = GetChannels<BufferHubChannel>(); in DumpState() local 40 std::sort(channels.begin(), channels.end(), in DumpState() 65 for (const auto& channel : channels) { in DumpState() 148 for (const auto& channel : channels) { in DumpState() 181 for (const auto& channel : channels) { in DumpState() 199 for (const auto& channel : channels) { in DumpState()
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusDec.cpp | 273 if (mHeader.channels <= kMaxChannelsWithDefaultLayout) { in process() 280 mHeader.channels); in process() 284 mHeader.channels, in process() 340 kRate, mHeader.channels); in process() 342 C2StreamChannelCountInfo::output channelCountInfo(0u, mHeader.channels); in process() 415 outOffset = mSamplesToDiscard * sizeof(int16_t) * mHeader.channels; in process() 421 int outSize = numSamples * sizeof(int16_t) * mHeader.channels; in process()
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 285 int channels = audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in EffectCreate() local 288 pContext->bufferSizeIn = LVREV_MAX_FRAME_SIZE * sizeof(process_buffer_t) * channels; in EffectCreate() 372 int channels = audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in process() local 376 if (!(channels == 1 || channels == FCC_2) ) { in process() 382 size_t inSize = frameCount * sizeof(process_buffer_t) * channels; in process() 409 fwrite(pIn, frameCount * sizeof(*pIn) * channels, 1 /* nmemb */, pContext->PcmInPtr); in process() 422 memcpy(pContext->InFrames, pIn, frameCount * channels * sizeof(*pIn)); in process() 425 pContext->InFrames, pIn, frameCount * channels); in process() 428 for (int i = 0; i < frameCount * channels; i++) { in process() 458 frameCount * sizeof(*pContext->OutFrames) * channels); in process() [all …]
|