Searched refs:channels (Results 1 - 25 of 126) sorted by relevance

123456

/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/av/media/libaudioprocessing/tests/
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...]
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 Dresampler_tests.cpp56 void resample(int channels, void *output, argument
69 (int32_t*) output + channels*i, thisFrames, provider);
89 void testBufferIncrement(size_t channels, bool useFloat, argument
98 provider.setChirp<float>(channels,
101 provider.setChirp<int16_t>(channels,
108 size_t outputFrameSize = (channels == 1 ? 2 : channels) * (useFloat ? sizeof(float) : sizeof(int32_t));
115 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
124 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
133 resampler = android::AudioResampler::create(format, channels, outputFre
180 testStopbandDownconversion(size_t channels, unsigned inputFreq, unsigned outputFreq, unsigned passband, unsigned stopband, enum android::AudioResampler::src_quality quality) argument
248 testFilterResponse( size_t channels, unsigned inputFreq, unsigned outputFreq) 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;
83 request.channels = null;
151 int period, int reportEvents, WifiScanner.ChannelSpec... channels) {
152 int[] channelFreqs = new int[channels.length];
153 for (int i = 0; i < channels.length; ++i) {
154 channelFreqs[i] = channels[i].frequency;
160 int period, int reportEvents, int... channels) {
164 bucket.num_channels = channels
150 addBucketWithChannels( int period, int reportEvents, WifiScanner.ChannelSpec... channels) argument
159 addBucketWithChannels( int period, int reportEvents, int... channels) argument
223 createSingleScanNativeSettingsForChannels( int reportEvents, WifiScanner.ChannelSpec... channels) argument
232 createSingleScanNativeSettingsForChannels( int nativeScanType, int reportEvents, WifiScanner.ChannelSpec... channels) argument
344 channelsToSpec(int... channels) argument
428 channelsToNativeSettings(int... channels) argument
[all...]
/frameworks/base/core/proto/android/app/
H A Dnotification_channel_group.proto36 repeated android.app.NotificationChannelProto channels = 5;
/frameworks/av/include/media/
H A DMmapStreamCallback.h40 * \param[in] channels a channel mask containing all channels the volume should be applied to.
45 virtual void onVolumeChanged(audio_channel_mask_t channels, Vector<float> values) = 0;
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiScannerTest.java89 assertEquals(0, readSettings.channels.length);
100 writeSettings.channels = new WifiScanner.ChannelSpec[] {
108 assertEquals(2, readSettings.channels.length);
109 assertEquals(5, readSettings.channels[0].frequency);
110 assertEquals(7, readSettings.channels[1].frequency);
/frameworks/base/telephony/java/android/telephony/
H A DRadioAccessSpecifier.java27 * The scan can be performed on either bands or channels for a specific radio access network type.
51 * The frequency channels that need to be scanned
53 * When any specific channels are provided for scan, the corresponding frequency bands that
54 * contains those channels must also be provided, or else the channels will be ignored.
56 * When no specific channels are specified (empty array or null), all the frequency channels
64 * Creates a new RadioAccessSpecifier with radio network, bands and channels
67 * bands or channels.
71 * @param channels th
73 RadioAccessSpecifier(int ran, int[] bands, int[] channels) argument
[all...]
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioCodec.java117 String channels = clue.substring(codec.rtpmap.length());
118 if (channels.length() == 0 || channels.equals("/1")) {
/frameworks/av/media/libnbaio/
H A DLibsndfileSink.cpp27 NBAIO_Sink(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
H A DLibsndfileSource.cpp27 NBAIO_Source(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
/frameworks/base/services/core/java/com/android/server/wm/
H A DInputConsumerImpl.java50 InputChannel[] channels = InputChannel.openInputChannelPair(name);
51 mServerChannel = channels[0];
53 channels[1].transferTo(inputChannel);
54 channels[1].dispose();
57 mClientChannel = channels[1];
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.cpp38 // mappings for up to 8 channels. This information is part of the Vorbis I
178 opusParams->nChannels = mHeader->channels;
209 pcmParams->nChannels = mHeader->channels;
306 // stereo output: Opus streams with more than 2 channels require a stream map.
334 // - Byte 2: Starting at byte 2 are |header->channels| uint8 mapping
344 header->channels = *(data + kOpusHeaderChannelsOffset);
346 if (header->channels <= 0 || header->channels > kMaxChannels) {
347 ALOGV("Invalid Header, wrong channel count: %d", header->channels);
357 if (header->channels > kMaxChannelsWithDefaultLayou
[all...]
H A DSoftOpus.h33 int channels; member in struct:android::OpusHeader
/frameworks/base/services/core/java/com/android/server/notification/
H A DRankingHelper.java193 // Clobber groups and channels with the xml, but don't delete other data that wasn't present
268 r.channels.put(id, channel);
345 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) {
356 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID);
360 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) {
361 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName(
388 r.channels.put(channel.getId(), channel);
409 || r.channels.size() > 0
435 for (NotificationChannel channel : r.channels.values()) {
618 NotificationChannel existing = r.channels
1476 ArrayMap<String, NotificationChannel> channels = new ArrayMap<>(); field in class:RankingHelper.Record
[all...]
/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/cmds/stagefright/
H A Daudioloop.cpp56 static const int channels = 1; // not permitted to be stereo now local
114 channels);
117 source = new SineSource(sampleRate, channels);
131 meta->setInt32("channel-count", channels);
/frameworks/av/services/audioflinger/
H A DBufLog.cpp75 size_t BufLog::write(int streamid, const char *tag, int format, int channels, argument
83 pBLStream = mStreams[id] = new BufLogStream(id, tag, format, channels,
114 unsigned int channels,
116 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels),
111 BufLogStream(unsigned int id, const char *tag, unsigned int format, unsigned int channels, unsigned int samplingRate, size_t maxBytes = 0) argument
H A DBufLog.h36 * BUFLOG(buff_id, buff_tag, format, channels, sampling_rate, max_bytes, buff_pointer, buff_size);
41 * channels: int Channel Count
52 * int channels = audio_channel_count_from_out_mask(mConfig.outputCfg.channels);
55 * int frameSize = audio_bytes_per_sample((audio_format_t)format) * channels;
58 * BUFLOG(11, "loudnes_enhancer_out", format, channels, samplingRate, maxBytes,
118 unsigned int channels,
163 // channels: int Channel Count
173 int channels,
/frameworks/wilhelm/src/desktop/
H A DSDL.cpp50 fmt.channels = STEREO_CHANNELS;
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3dec_test.cpp77 sfInfo.channels = mp3Reader.getNumChannels();
120 config.outputFrameSize / sfInfo.channels);
/frameworks/wilhelm/tools/permute/
H A Dpermute.c191 switch (sfinfo_in.channels) {
194 frameSizeRead = sampleSizeRead * sfinfo_in.channels;
197 fprintf(stderr, "%s: unsupported channels %d\n", path_in, sfinfo_in.channels);
260 sfinfo_out.channels = sfinfo_in.channels;
270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i]
/frameworks/av/media/libmedia/
H A DTypeConverter.cpp412 audio_channel_mask_t channels; local
413 if (!OutputChannelConverter::fromString(literalChannels, channels) &&
414 !InputChannelConverter::fromString(literalChannels, channels)) {
417 return channels;
421 const std::string &channels, const char *del)
424 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
425 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
426 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del);
420 channelMasksFromString( const std::string &channels, const char *del) argument

Completed in 542 milliseconds

123456