Searched refs:band (Results 1 - 25 of 56) sorted by relevance

123

/frameworks/av/media/libeffects/testlibs/
H A DAudioEqualizer.cpp105 void AudioEqualizer::setGain(int band, int32_t millibel) { argument
106 ALOGV("AudioEqualizer::setGain(band=%d, millibel=%d)", band, millibel);
107 assert(band >= 0 && band < mNumPeaking + 2);
108 if (band == 0) {
110 } else if (band == mNumPeaking + 1) {
113 mpPeakingFilters[band - 1].setGain(millibel);
118 void AudioEqualizer::setFrequency(int band, uint32_t millihertz) { argument
119 ALOGV("AudioEqualizer::setFrequency(band
132 setBandwidth(int band, uint32_t cents) argument
172 getBandRange(int band, uint32_t & low, uint32_t & high) const argument
264 int band = mNumPeaking; local
[all...]
H A DAudioEqualizer.h30 // shelf, where each band has frequency and gain controls, and the peaking
34 // Configuration of a single band.
49 // corresponding band.
107 // band The band to set the gain for.
109 void setGain(int band, int32_t millibel);
111 // Gets gain of a certain band. This is always the last value set (or
113 // band The band to get the gain for.
115 int32_t getGain(int band) cons
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DIWifiScanner.aidl29 Bundle getAvailableChannels(int band);
/frameworks/wilhelm/src/itf/
H A DIEqualizer.cpp145 static SLresult IEqualizer_SetBandLevel(SLEqualizerItf self, SLuint16 band, SLmillibel level) argument
151 (band >= thiz->mNumBands)) {
156 thiz->mLevels[band] = level;
164 android_eq_setParam(thiz->mEqEffect, EQ_PARAM_BAND_LEVEL, band, &level);
175 static SLresult IEqualizer_GetBandLevel(SLEqualizerItf self, SLuint16 band, SLmillibel *pLevel) argument
184 if (band >= thiz->mNumBands) {
190 level = thiz->mLevels[band];
197 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_BAND_LEVEL, band, &level);
210 static SLresult IEqualizer_GetCenterFreq(SLEqualizerItf self, SLuint16 band, SLmilliHertz *pCenter) argument
218 if (band >
245 IEqualizer_GetBandFreqRange(SLEqualizerItf self, SLuint16 band, SLmilliHertz *pMin, SLmilliHertz *pMax) argument
302 const struct EqualizerBand *band; local
321 uint16_t band = 0; local
384 SLuint16 band; local
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_poly_phase_synthesis.cpp138 for (int32 band = 0; band < FILTERBANK_BANDS; band += 2)
140 int32 *inData = &pChVars->circ_buffer[544 - (band<<5)];
178 }/* end band loop */
H A Dpvmp3_imdct_synth.cpp224 int32 band; local
239 for (band = 0; band < bands2process; band++)
241 uint32 current_blk_type = (band < mx_band) ? LONG : blk_type;
243 int32 * out = in + (band * FILTERBANK_BANDS);
244 int32 * history = overlap + (band * FILTERBANK_BANDS);
317 if (band & 1)
332 for (band = bands2process; band < SUBBANDS_NUMBE
[all...]
H A Dpvmp3_equalizer.cpp332 for (int32 band = 0; band < FILTERBANK_BANDS; band += 2)
335 int32 *pt_work_buff = &work_buff[band];
336 int32 *inData = &circ_buffer[544 - (band<<5)];
372 for (int32 band = 0; band < FILTERBANK_BANDS; band += 3)
374 int32 *inData = &circ_buffer[544 - (band<<5)];
376 int32 *pt_work_buff = &work_buff[band];
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DChannelHelper.java53 * Get the channels that are available for scanning on the supplied band.
56 public abstract WifiScanner.ChannelSpec[] getAvailableScanChannels(int band); argument
83 * Add all channels in the band to the collection
85 public abstract void addBand(int band); argument
91 * @return true if the collection contains all the channels of the supplied band
93 public abstract boolean containsBand(int band); argument
95 * @return true if the collection contains some of the channels of the supplied band
97 public abstract boolean partiallyContainsBand(int band); argument
111 * Retrieves a list of channels from the band which are missing in the channel collection.
113 public abstract Set<Integer> getMissingChannelsFromBand(int band); argument
117 getContainingChannelsFromBand(int band) argument
299 bandToString(int band) 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.
75 public WifiScanner.ChannelSpec[] getAvailableScanChannels(int band) { argument
76 if (band < WifiScanner.WIFI_BAND_24_GHZ || band > WifiScanner.WIFI_BAND_BOTH_WITH_DFS) {
77 // invalid value for band
80 return mBandsToChannels[band];
86 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
89 return getAvailableScanChannels(settings.band).length * SCAN_PERIOD_PER_CHANNEL_MS;
119 if (settings.band
159 addBand(int band) argument
174 containsBand(int band) argument
185 partiallyContainsBand(int band) argument
214 getMissingChannelsFromBand(int band) argument
226 getContainingChannelsFromBand(int band) argument
[all...]
H A DScanScheduleUtil.java56 if (bucket1.band != bucket2.band) return false;
/frameworks/base/telephony/java/android/telephony/
H A DAccessNetworkUtils.java24 * Gets the duplex mode for the given EUTRAN operating band.
28 * @param band The EUTRAN band number
29 * @return The duplex mode of the given EUTRAN band
32 public static int getDuplexModeForEutranBand(int band) { argument
33 if (band == INVALID_BAND) {
37 if (band >= EutranBand.BAND_68) {
39 } else if (band >= EutranBand.BAND_65) {
41 } else if (band >= EutranBand.BAND_47) {
43 } else if (band >
[all...]
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiScannerTest.java84 writeSettings.band = WifiScanner.WIFI_BAND_BOTH_WITH_DFS;
88 assertEquals(readSettings.band, writeSettings.band);
99 writeSettings.band = WifiScanner.WIFI_BAND_UNSPECIFIED;
107 assertEquals(writeSettings.band, readSettings.band);
/frameworks/av/media/libeffects/dynamicsproc/dsp/
H A DDPBase.cpp114 DPEqBand * DPEq::getBand(uint32_t band) { argument
115 if (band < getBandCount()) {
116 return &mBands[band];
121 void DPEq::setBand(uint32_t band, DPEqBand &src) { argument
122 if (band < getBandCount()) {
123 mBands[band] = src;
140 DPMbcBand * DPMbc::getBand(uint32_t band) { argument
141 if (band < getBandCount()) {
142 return &mBands[band];
147 void DPMbc::setBand(uint32_t band, DPMbcBan argument
[all...]
H A DDPBase.h189 DPEqBand * getBand(uint32_t band);
190 void setBand(uint32_t band, DPEqBand &src);
200 DPMbcBand * getBand(uint32_t band);
201 void setBand(uint32_t band, DPMbcBand &src);
/frameworks/base/media/java/android/media/audiofx/
H A DDynamicsProcessing.java32 * sound. It is composed of multiple stages including equalization, multi-band compression and
69 * PreEQ: Multi-band Equalizer.
70 * MBC: Multi-band Compressor
71 * PostEQ: Multi-band Equalizer
72 * Limiter: Single band compressor/limiter.
76 * are available to help configure the multiple stages and each band parameters if desired.
177 * specific parameters for each stage/band. Use
405 * @param enabled true if this band is currently used to process sound. When false,
406 * the band is effectively muted and sound set to zero.
407 * @param cutoffFrequency topmost frequency number (in Hz) this band wil
770 checkBand(int band) argument
780 setBand(int band, EqBand bandCfg) argument
789 getBand(int band) argument
861 checkBand(int band) argument
871 setBand(int band, MbcBand bandCfg) argument
880 getBand(int band) argument
1132 getPreEqBand(int band) argument
1140 setPreEqBand(int band, EqBand preEqBand) argument
1168 getMbcBand(int band) argument
1176 setMbcBand(int band, MbcBand mbcBand) argument
1204 getPostEqBand(int band) argument
1212 setPostEqBand(int band, EqBand postEqBand) argument
1540 getPreEqBandByChannelIndex(int channelIndex, int band) argument
1544 setPreEqBandByChannelIndex(int channelIndex, int band, EqBand preEqBand) argument
1548 setPreEqBandAllChannelsTo(int band, EqBand preEqBand) argument
1568 getMbcBandByChannelIndex(int channelIndex, int band) argument
1572 setMbcBandByChannelIndex(int channelIndex, int band, MbcBand mbcBand) argument
1576 setMbcBandAllChannelsTo(int band, MbcBand mbcBand) argument
1596 getPostEqBandByChannelIndex(int channelIndex, int band) argument
1600 setPostEqBandByChannelIndex(int channelIndex, int band, EqBand postEqBand) argument
1604 setPostEqBandAllChannelsTo(int band, EqBand postEqBand) argument
1810 getPreEqBandByChannelIndex(int channelIndex, int band) argument
1813 setPreEqBandByChannelIndex(int channelIndex, int band, EqBand preEqBand) argument
1816 setPreEqBandAllChannelsTo(int band, EqBand preEqBand) argument
1834 getMbcBandByChannelIndex(int channelIndex, int band) argument
1837 setMbcBandByChannelIndex(int channelIndex, int band, MbcBand mbcBand) argument
1840 setMbcBandAllChannelsTo(int band, MbcBand mbcBand) argument
1858 getPostEqBandByChannelIndex(int channelIndex, int band) argument
1861 setPostEqBandByChannelIndex(int channelIndex, int band, EqBand postEqBand) argument
1864 setPostEqBandAllChannelsTo(int band, EqBand postEqBand) argument
[all...]
H A DEqualizer.java30 * precise control of the gain in each frequency band controlled by the equalizer.
191 * @return the band level range in an array of short integers. The first element is the lower
205 * Sets the given equalizer band to the given gain value.
206 * @param band frequency band that will have the new gain. The numbering of the bands starts
208 * @param level new gain in millibels that will be set to the given band. getBandLevelRange()
215 public void setBandLevel(short band, short level) argument
221 param[1] = (int)band;
227 * Gets the gain set for the given equalizer band.
228 * @param band frequenc
235 getBandLevel(short band) argument
257 getCenterFreq(short band) argument
279 getBandFreqRange(short band) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/aware/
H A DConfigRequest.java46 * Indices for configuration variables which are specified per band.
58 * Indicates whether 5G band support is requested.
223 * Specify whether 5G band support is required in this request. Disabled by default.
225 * @param support5gBand Support for 5G band is required.
313 * @param band Either {@link #NAN_BAND_24GHZ} or {@link #NAN_BAND_5GHZ}.
315 * the 5GHz band a value of 0 indicates that the device will not be awake
321 public Builder setDiscoveryWindowInterval(int band, int interval) { argument
322 if (band != NAN_BAND_24GHZ && band != NAN_BAND_5GHZ) {
323 throw new IllegalArgumentException("Invalid band valu
[all...]
/frameworks/base/core/java/android/hardware/radio/
H A DProgramSelector.java45 * but the primary ID is sufficient (ie. after a full band scan).
401 * @param band the band.
407 @RadioManager.Band int band, int frequencyKhz) {
408 return createAmFmSelector(band, frequencyKhz, 0);
436 * @param band the band.
444 @RadioManager.Band int band, int frequencyKhz, int subChannel) {
445 if (band == RadioManager.BAND_INVALID) {
448 band
406 createAmFmSelector( @adioManager.Band int band, int frequencyKhz) argument
443 createAmFmSelector( @adioManager.Band int band, int frequencyKhz, int subChannel) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DScanTestUtil.java54 request.band = WifiScanner.WIFI_BAND_UNSPECIFIED;
63 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, argument
65 return createRequest(WifiScanner.TYPE_HIGH_ACCURACY, band, period, 0, 0,
69 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, argument
71 return createRequest(WifiScanner.TYPE_HIGH_ACCURACY, band, period, 0, 0, batch,
78 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, argument
82 request.band = band;
141 int period, int reportEvents, int band) {
144 bucket.band
140 addBucketWithBand( int period, int reportEvents, int band) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaEqualizerTest.java160 //Test case 1.1: test band frequency
167 short band = mEqualizer.getBand(TEST_FREQUENCY_MILLIHERTZ);
168 assertTrue(msg + ": getBand failed", band >= 0);
169 int[] freqRange = mEqualizer.getBandFreqRange(band);
173 int freq = mEqualizer.getCenterFreq(band);
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp574 LVM_EQNB_BandDef_t BandDefs[MAX_NUM_BANDS]; /* Equaliser band definitions */
932 // ActiveParams.pEQNB_BandDefinition[band].Gain);
945 // ActiveParams.pEQNB_BandDefinition[band].Gain);
953 // the overall EQ band gain and BassBoost relative levels.
970 // ActiveParams.pEQNB_BandDefinition[band].Gain);
973 //Count the energy contribution per band for EQ and BassBoost only if they are active.
1061 // ActiveParams.pEQNB_BandDefinition[band].Gain);
1675 // Purpose: Retrieve the gain currently being used for the band passed in
1678 // band: band numbe
1684 EqualizerGetBandLevel(EffectContext *pContext, int32_t band) argument
1703 EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain) argument
1730 EqualizerGetCentreFrequency(EffectContext *pContext, int32_t band) argument
1768 EqualizerGetBandFreqRange(EffectContext *pContext __unused, int32_t band, uint32_t *pLow, uint32_t *pHi) argument
1793 int band = 0; local
2560 const int32_t band = params[1]; local
2601 const int32_t band = params[1]; local
2630 const int32_t band = params[1]; local
2762 const int32_t band = params[1]; local
[all...]
/frameworks/av/media/libeffects/dynamicsproc/
H A DEffectDynamicsProcessing.cpp409 int32_t eqType, int32_t band) {
414 dp_fx::DPEqBand *pEqBand = pEq->getBand(band);
415 ALOGE_IF(pEqBand == NULL, "DPEqBand NULL. invalid band %d", band);
430 int32_t band) {
435 dp_fx::DPMbcBand *pMbcBand = pMbc->getBand(band);
436 ALOGE_IF(pMbcBand == NULL, "pMbcBand NULL. invalid band %d", band);
746 // 0 /*2 band count */};
780 const int32_t band
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DChannelHelperTest.java52 * Compute a string representing the channels in a ScanSettings with a band set.
72 * Compute a string representing the channels in a BucketSettings with a band set.
111 assertEquals("invalid band", ChannelHelper.bandToString(-235342));
169 testBucket.band = WifiScanner.WIFI_BAND_UNSPECIFIED;
185 testBucket.band = WifiScanner.WIFI_BAND_5_GHZ;
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
H A DTuner.java55 int region, boolean withAudio, int band) {
60 mNativeContext = nativeInit(halRev, withAudio, band);
75 private native long nativeInit(int halRev, boolean withAudio, int band); argument
54 Tuner(@onNull ITunerCallback clientCallback, int halRev, int region, boolean withAudio, int band) argument
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
H A DRadioTunerTest.java134 // find FM band and build its config
137 for (RadioManager.BandDescriptor band : mModule.getBands()) {
138 Log.d(TAG, "Band: " + band);
139 int bandType = band.getType();
141 mAmBandDescriptor = (RadioManager.AmBandDescriptor)band;
144 mFmBandDescriptor = (RadioManager.FmBandDescriptor)band;

Completed in 363 milliseconds

123