Searched defs:channels (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp51 static const int channels = 1; // not permitted to be stereo now local
91 channels);
94 source = new SineSource(kSampleRate, channels);
103 meta->setInt32("channel-count", channels);
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.h33 int channels; member in struct:android::OpusHeader
/frameworks/av/media/libmedia/
H A DTypeConverter.cpp377 audio_channel_mask_t channels; local
378 if (!OutputChannelConverter::fromString(literalChannels, channels) ||
379 !InputChannelConverter::fromString(literalChannels, channels)) {
382 return channels;
386 const std::string &channels, const char *del)
389 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
390 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
391 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del);
385 channelMasksFromString( const std::string &channels, const char *del) argument
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dstat_bits.c181 Word16 channels,
193 switch (channels) {
179 countStaticBitdemand(PSY_OUT_CHANNEL psyOutChannel[MAX_CHANNELS], PSY_OUT_ELEMENT *psyOutElement, Word16 channels, Word16 adtsUsed) argument
H A Dpsy_main.c193 Word16 channels,
198 Word32 channelBitRate = bitRate/channels;
207 err = InitTnsConfigurationLong(bitRate, sampleRate, channels,
217 err = InitTnsConfigurationShort(bitRate, sampleRate, channels,
222 for(ch=0;ch < channels;ch++){
225 bitRate, channels);
261 Word16 ch; /* counts through channels */
264 Word16 channels; local
267 channels = elemInfo->nChannelsInEl;
271 for(ch = 0; ch < channels; c
190 psyMainInit(PSY_KERNEL *hPsy, Word32 sampleRate, Word32 bitRate, Word16 channels, Word16 tnsMask, Word16 bandwidth) argument
[all...]
/frameworks/av/services/audioflinger/
H A DBufLog.cpp74 size_t BufLog::write(int streamid, const char *tag, int format, int channels, argument
82 pBLStream = mStreams[id] = new BufLogStream(id, tag, format, channels,
113 unsigned int channels,
115 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels),
110 BufLogStream(unsigned int id, const char *tag, unsigned int format, unsigned int channels, unsigned int samplingRate, size_t maxBytes = 0) argument
/frameworks/native/libs/vr/libpdx_uds/private/uds/
H A Dipc_helper.h135 std::vector<ChannelInfo<FileHandleType>> channels; member in class:android::pdx::uds::RequestHeader
141 file_descriptors, channels, impulse_payload,
151 std::vector<ChannelInfo<FileHandleType>> channels; member in class:android::pdx::uds::ResponseHeader
155 channels);
/frameworks/av/media/libaudioprocessing/tests/
H A Dresampler_tests.cpp53 void resample(int channels, void *output, argument
66 (int32_t*) output + channels*i, thisFrames, provider);
86 void testBufferIncrement(size_t channels, bool useFloat, argument
95 provider.setChirp<float>(channels,
98 provider.setChirp<int16_t>(channels,
105 size_t outputFrameSize = (channels == 1 ? 2 : channels) * (useFloat ? sizeof(float) : sizeof(int32_t));
112 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
121 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
130 resampler = android::AudioResampler::create(format, channels, outputFre
177 testStopbandDownconversion(size_t channels, unsigned inputFreq, unsigned outputFreq, unsigned passband, unsigned stopband, enum android::AudioResampler::src_quality quality) argument
[all...]
H A Dtest-mixer.cpp39 fprintf(stderr, "Usage: %s [-f] [-m] [-c channels]"
44 fprintf(stderr, " -c number of mixer output channels\n");
50 fprintf(stderr, " <command> can be 'sine:[(i|f),]<channels>,<frequency>,<samplerate>'\n");
51 fprintf(stderr, " 'chirp:[(i|f),]<channels>,<samplerate>'\n");
55 uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) {
63 info.channels = channels;
65 printf("saving file:%s channels:%u samplerate:%u frames:%zu\n",
66 filename, info.channels, info.samplerate, frames);
54 writeFile(const char *filename, const void *buffer, uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) argument
H A Dtest_utils.h183 int mFrameSize; // frame size (# channels * bytes per sample)
194 size_t channels, double sampleRate, double freq)
203 for (size_t j = 0; j < channels; ++j) {
204 buffer[i*channels + j] = yt / T(j + 1);
218 size_t channels, double sampleRate, double minfreq, double maxfreq)
229 for (size_t j = 0; j < channels; ++j) {
230 buffer[i*channels + j] = yt / T(j + 1);
256 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time) argument
258 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
263 void setSine(size_t channels, argument
193 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
217 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
290 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
H A Dtest-resampler.cpp39 fprintf(stderr,"Usage: %s [-p] [-f] [-F] [-v] [-c channels]"
48 fprintf(stderr," -c # channels (1-2 for lq|mq|hq; 1-8 for dlq|dmq|dhq)\n");
109 int channels = 1; local
132 channels = atoi(optarg);
181 if (channels < 1
182 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) {
183 fprintf(stderr, "invalid number of audio channels %d\n", channels);
218 input_size = info.frames * info.channels * sizeof(short);
222 channels
253 reinterpret_cast<int16_t*>(input_vaddr), input_frames * channels); local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DConfigParsingUtils.cpp159 ChannelsVector channels; local
172 channels = inputChannelMasksFromString(node->value);
174 channels = outputChannelMasksFromString(node->value);
192 sp<AudioProfile> profileToAdd = new AudioProfile(gDynamicFormat, channels, sampleRates);
194 profileToAdd->setDynamicChannels(channels.isEmpty());
200 // collection of rate and channels.
201 sp<AudioProfile> profileToAdd = new AudioProfile(formats[i], channels, sampleRates);
203 profileToAdd->setDynamicChannels(channels.isEmpty());
H A DAudioPort.cpp93 audio_channel_mask_t channels = channelsToExport[chanIndex]; local
94 if (flatenedChannels.indexOf(channels) < 0) {
95 flatenedChannels.add(channels);
137 // Import only valid port, i.e. valid format, non empty rates and channels masks
339 ALOGV("%s Port[nm:%s] profile rate=%d, format=%d, channels=%d", __FUNCTION__, mName.string(),
H A DSerializer.cpp200 string channels = getXmlAttribute(root, Attributes::channelMasks); local
203 channelMasksFromString(channels, ","),
/frameworks/av/services/oboeservice/
H A DAAudioServiceStreamMMAP.cpp267 void AAudioServiceStreamMMAP::onVolumeChanged(audio_channel_mask_t channels, argument
/frameworks/base/core/java/android/service/notification/
H A DNotificationRankingUpdate.java42 Bundle channels, Bundle overridePeople, Bundle snoozeCriteria,
51 mChannels = channels;
39 NotificationRankingUpdate(String[] keys, String[] interceptedKeys, Bundle visibilityOverrides, Bundle suppressedVisualEffects, int[] importance, Bundle explanation, Bundle overrideGroupKeys, Bundle channels, Bundle overridePeople, Bundle snoozeCriteria, Bundle showBadge) argument
/frameworks/native/services/vr/bufferhubd/
H A Dbuffer_hub.cpp38 auto channels = GetChannels<BufferHubChannel>(); local
40 std::sort(channels.begin(), channels.end(),
61 for (const auto& channel : channels) {
100 for (const auto& channel : channels) {
144 for (const auto& channel : channels) {
177 for (const auto& channel : channels) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DChannelHelper.java28 * adjusted based on the amount of information known about the available channels.
32 // TODO: Currently this is simply an estimate and is used for both active and passive channels
43 * Create a new collection that can be used to store channels
53 * Get the channels that are available for scanning on the supplied band.
75 * Object that supports accumulation of channels and bands
83 * Add all channels in the band to the collection
91 * @return true if the collection contains all the channels of the supplied band
95 * @return true if the collection contains some of the channels of the supplied band
99 * @return true if the collection contains no channels
103 * @return true if the collection contains all available channels
262 toString(WifiScanner.ChannelSpec[] channels) argument
279 toString(WifiNative.ChannelSettings[] channels, int numChannels) argument
[all...]
H A DKnownBandsChannelHelper.java27 * ChannelHelper that offers channel manipulation utilities when the channels in a band are known.
28 * This allows more fine operations on channels than if band channels are not known.
68 WifiScanner.ChannelSpec[] channelSpec, int offset, int[] channels) {
69 for (int i = 0; i < channels.length; i++) {
70 channelSpec[offset + i] = new WifiScanner.ChannelSpec(channels[i]);
87 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS;
120 settingsChannels = settings.channels;
133 * ChannelCollection that merges channels so that the optimal schedule will be generated.
134 * When the max channels valu
67 copyChannels( WifiScanner.ChannelSpec[] channelSpec, int offset, int[] channels) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DScanTestUtil.java51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, argument
55 request.channels = channels;
75 request.channels = null;
138 int period, int reportEvents, WifiScanner.ChannelSpec... channels) {
139 int[] channelFreqs = new int[channels.length];
140 for (int i = 0; i < channels.length; ++i) {
141 channelFreqs[i] = channels[i].frequency;
147 int period, int reportEvents, int... channels) {
151 bucket.num_channels = channels
137 addBucketWithChannels( int period, int reportEvents, WifiScanner.ChannelSpec... channels) argument
146 addBucketWithChannels( int period, int reportEvents, int... channels) argument
194 createSingleScanNativeSettingsForChannels( int reportEvents, WifiScanner.ChannelSpec... channels) argument
305 channelsToSpec(int... channels) argument
388 channelsToNativeSettings(int... channels) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DBaseWifiScannerImplTest.java104 protected Set<Integer> expectedBandAndChannelScanFreqs(int band, int... channels) { argument
107 for (int channel : channels) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationInfoTest.java118 // Some test channels.
139 private CharSequence getChannelsListDescString(NotificationChannel... channels) { argument
140 if (channels.length == 2) {
142 channels[0].getName(), channels[1].getName());
144 final int numOthers = channels.length - 2;
148 channels[0].getName(), channels[1].getName(), numOthers);
/frameworks/wilhelm/tests/examples/
H A DslesTestFeedback.cpp40 static SLuint32 channels = 1; // -c# variable
186 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short));
196 for (unsigned k = 0; k < channels; k++) {
197 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000;
292 channels = atoi(&arg[2]);
293 if (channels < 1 || channels > 2) {
295 (unsigned) channels);
296 channels = 2;
345 bufSizeInBytes = channels * bufSizeInFrame
[all...]
/frameworks/av/include/media/
H A DMediaProfiles.h120 * aud.ch - number of audio channels
167 * enc.aud.ch.min - min number of channels
168 * enc.aud.ch.max - max number of channels
234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
238 mChannels(channels) {}
/frameworks/av/media/libaudioprocessing/
H A DAudioMixer.cpp291 // resampler channels may have changed.
296 // recreate the resampler with updated format, channels, saved sampleRate.
781 // TODO: Remove MONO_HACK. Resampler sees #channels after the downmixer
786 " format(%#x) channels(%d) devSampleRate(%u) quality(%d)\n",
809 // TODO: Remove MONO_HACK. Resampler sees #channels after the downmixer
832 * if one channel requires ramping, all channels are ramped.
1628 " %p track %d, channels %d, needs %08x, volume %08x vfl %f vfr %f",
1702 static void volumeRampMulti(uint32_t channels, TO* out, size_t frameCount, argument
1705 switch (channels) {
1746 static void volumeMulti(uint32_t channels, T argument
1831 const uint32_t channels = t->mMixerChannelCount; local
[all...]

Completed in 452 milliseconds

12