Home
last modified time | relevance | path

Searched refs:band (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/av/media/libeffects/testlibs/
DAudioEqualizer.cpp105 void AudioEqualizer::setGain(int band, int32_t millibel) { in setGain() argument
106 ALOGV("AudioEqualizer::setGain(band=%d, millibel=%d)", band, millibel); in setGain()
107 assert(band >= 0 && band < mNumPeaking + 2); in setGain()
108 if (band == 0) { in setGain()
110 } else if (band == mNumPeaking + 1) { in setGain()
113 mpPeakingFilters[band - 1].setGain(millibel); in setGain()
118 void AudioEqualizer::setFrequency(int band, uint32_t millihertz) { in setFrequency() argument
119 ALOGV("AudioEqualizer::setFrequency(band=%d, millihertz=%d)", band, in setFrequency()
121 assert(band >= 0 && band < mNumPeaking + 2); in setFrequency()
122 if (band == 0) { in setFrequency()
[all …]
DAudioEqualizer.h109 void setGain(int band, int32_t millibel);
115 int32_t getGain(int band) const;
122 void setFrequency(int band, uint32_t millihertz);
128 uint32_t getFrequency(int band) const;
135 void setBandwidth(int band, uint32_t cents);
142 uint32_t getBandwidth(int band) const;
150 void getBandRange(int band, uint32_t & low, uint32_t & high) const;
DEffectEqualizer.cpp536 int32_t band; in Equalizer_setParameter() local
554 band = *pParam; in Equalizer_setParameter()
556 ALOGV("setParameter() EQ_PARAM_BAND_LEVEL band %d, level %d", band, level); in Equalizer_setParameter()
557 if (band >= kNumBands) { in Equalizer_setParameter()
561 pEqualizer->setGain(band, level); in Equalizer_setParameter()
/frameworks/wilhelm/src/itf/
DIEqualizer.c145 static SLresult IEqualizer_SetBandLevel(SLEqualizerItf self, SLuint16 band, SLmillibel level) in IEqualizer_SetBandLevel() argument
151 (band >= thiz->mNumBands)) { in IEqualizer_SetBandLevel()
156 thiz->mLevels[band] = level; in IEqualizer_SetBandLevel()
164 android_eq_setParam(thiz->mEqEffect, EQ_PARAM_BAND_LEVEL, band, &level); in IEqualizer_SetBandLevel()
175 static SLresult IEqualizer_GetBandLevel(SLEqualizerItf self, SLuint16 band, SLmillibel *pLevel) in IEqualizer_GetBandLevel() argument
184 if (band >= thiz->mNumBands) { in IEqualizer_GetBandLevel()
190 level = thiz->mLevels[band]; in IEqualizer_GetBandLevel()
197 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_BAND_LEVEL, band, &level); in IEqualizer_GetBandLevel()
210 static SLresult IEqualizer_GetCenterFreq(SLEqualizerItf self, SLuint16 band, SLmilliHertz *pCenter) in IEqualizer_GetCenterFreq() argument
218 if (band >= thiz->mNumBands) { in IEqualizer_GetCenterFreq()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_Radio.cpp163 ALOGV("%s type %d region %d", __FUNCTION__, nBandconfig->band.type, nBandconfig->region); in convertBandDescriptorFromNative()
165 if (nBandconfig->band.type == RADIO_BAND_FM || in convertBandDescriptorFromNative()
166 nBandconfig->band.type == RADIO_BAND_FM_HD) { in convertBandDescriptorFromNative()
168 nBandconfig->region, nBandconfig->band.type, in convertBandDescriptorFromNative()
169 nBandconfig->band.lower_limit, nBandconfig->band.upper_limit, in convertBandDescriptorFromNative()
170 nBandconfig->band.spacings[0], in convertBandDescriptorFromNative()
171 nBandconfig->band.fm.stereo, in convertBandDescriptorFromNative()
172 nBandconfig->band.fm.rds != RADIO_RDS_NONE, in convertBandDescriptorFromNative()
173 nBandconfig->band.fm.ta, in convertBandDescriptorFromNative()
174 nBandconfig->band.fm.af); in convertBandDescriptorFromNative()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_imdct_synth.cpp224 int32 band; in pvmp3_imdct_synth() local
239 for (band = 0; band < bands2process; band++) in pvmp3_imdct_synth()
241 uint32 current_blk_type = (band < mx_band) ? LONG : blk_type; in pvmp3_imdct_synth()
243 int32 * out = in + (band * FILTERBANK_BANDS); in pvmp3_imdct_synth()
244 int32 * history = overlap + (band * FILTERBANK_BANDS); in pvmp3_imdct_synth()
317 if (band & 1) in pvmp3_imdct_synth()
332 for (band = bands2process; band < SUBBANDS_NUMBER; band++) in pvmp3_imdct_synth()
334 int32 * out = in + (band * FILTERBANK_BANDS); in pvmp3_imdct_synth()
335 int32 * history = overlap + (band * FILTERBANK_BANDS); in pvmp3_imdct_synth()
338 if (band & 1) in pvmp3_imdct_synth()
Dpvmp3_poly_phase_synthesis.cpp138 for (int32 band = 0; band < FILTERBANK_BANDS; band += 2) in pvmp3_poly_phase_synthesis() local
140 int32 *inData = &pChVars->circ_buffer[544 - (band<<5)]; in pvmp3_poly_phase_synthesis()
Dpvmp3_equalizer.cpp332 for (int32 band = 0; band < FILTERBANK_BANDS; band += 2) in pvmp3_equalizer() local
335 int32 *pt_work_buff = &work_buff[band]; in pvmp3_equalizer()
336 int32 *inData = &circ_buffer[544 - (band<<5)]; in pvmp3_equalizer()
372 for (int32 band = 0; band < FILTERBANK_BANDS; band += 3) in pvmp3_equalizer() local
374 int32 *inData = &circ_buffer[544 - (band<<5)]; in pvmp3_equalizer()
376 int32 *pt_work_buff = &work_buff[band]; in pvmp3_equalizer()
/frameworks/base/media/java/android/media/audiofx/
DEqualizer.java215 public void setBandLevel(short band, short level) in setBandLevel() argument
221 param[1] = (int)band; in setBandLevel()
235 public short getBandLevel(short band) in getBandLevel() argument
241 param[1] = (int)band; in getBandLevel()
257 public int getCenterFreq(short band) in getCenterFreq() argument
263 param[1] = (int)band; in getCenterFreq()
279 public int[] getBandFreqRange(short band) in getBandFreqRange() argument
284 param[1] = (int)band; in getBandFreqRange()
/frameworks/av/services/radio/
DRadioService.cpp144 ALOGV("%s region %d type %d", __FUNCTION__, config->region, config->band.type); in attach()
224 const radio_hal_band_config_t *band = &sKnownRegionConfigs[i].band; in convertProperties() local
229 if (band->type != halBand->type) continue; in convertProperties()
230 if (band->lower_limit < halBand->lower_limit) continue; in convertProperties()
231 if (band->upper_limit > halBand->upper_limit) continue; in convertProperties()
233 if (band->spacings[0] == halBand->spacings[k]) break; in convertProperties()
236 if (band->type == RADIO_BAND_AM) break; in convertProperties()
237 if ((band->fm.deemphasis & halBand->fm.deemphasis) == 0) continue; in convertProperties()
239 if ((band->fm.rds & halBand->fm.rds) != 0) break; in convertProperties()
244 sKnownRegionConfigs[i].band.type , sKnownRegionConfigs[i].region); in convertProperties()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScanningServiceImpl.java100 public Bundle getAvailableChannels(int band) { in getAvailableChannels() argument
101 ChannelSpec channelSpecs[] = getChannelsForBand(band); in getAvailableChannels()
595 if (num_channels == 0 && settings.band != 0) { in getCsph()
596 num_channels = getChannelsForBand(settings.band).length; in getCsph()
678 if (settings.band != WifiScanner.WIFI_BAND_UNSPECIFIED in reportScanResults()
680 desiredChannels = getChannelsForBand(settings.band); in reportScanResults()
749 if (settings.band != WifiScanner.WIFI_BAND_UNSPECIFIED in reportFullScanResult()
751 desiredChannels = getChannelsForBand(settings.band); in reportFullScanResult()
973 channels = getChannelsForBand(settings.band); in getBestBucket()
1035 if (settings.band != WifiScanner.WIFI_BAND_UNSPECIFIED in addScanRequestToBucket()
[all …]
DWifiNative.java581 public boolean setBand(int band) { in setBand() argument
584 if (band == WifiManager.WIFI_FREQUENCY_BAND_5GHZ) in setBand()
586 else if (band == WifiManager.WIFI_FREQUENCY_BAND_2GHZ) in setBand()
1365 int band; field in WifiNative.BucketSettings
1900 int iface, int band); in getChannelsForBandNative() argument
1902 synchronized public static int [] getChannelsForBand(int band) { in getChannelsForBand() argument
1905 return getChannelsForBandNative(sWlan0Index, band); in getChannelsForBand()
DWifiStateMachine.java2381 public void setFrequencyBand(int band, boolean persist) { in setFrequencyBand() argument
2385 band); in setFrequencyBand() local
2387 sendMessage(CMD_SET_FREQUENCY_BAND, band, 0); in setFrequencyBand()
3330 settings.band = WifiScanner.WIFI_BAND_BOTH; in startConnectedGScan()
3350 log("startConnectedScan: settings band="+ settings.band in startConnectedGScan()
3375 settings.band = WifiScanner.WIFI_BAND_BOTH; in startDisconnectedGScan()
3396 log("startDisconnectedScan: settings band="+ settings.band in startDisconnectedGScan()
3605 int band = Settings.Global.getInt(mContext.getContentResolver(), in setFrequencyBand() local
3608 if (mWifiNative.setBand(band)) { in setFrequencyBand()
3609 mFrequencyBand.set(band); in setFrequencyBand()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaEqualizerTest.java167 short band = mEqualizer.getBand(TEST_FREQUENCY_MILLIHERTZ); in test1_1BandFrequency() local
168 assertTrue(msg + ": getBand failed", band >= 0); in test1_1BandFrequency()
169 int[] freqRange = mEqualizer.getBandFreqRange(band); in test1_1BandFrequency()
173 int freq = mEqualizer.getCenterFreq(band); in test1_1BandFrequency()
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dtns.c99 Word32 lineNumber, band; in FreqToBandWithRounding() local
112 for (band=0; band<numOfBands; band++) { in FreqToBandWithRounding()
113 temp = bandStartOffset[band + 1] - lineNumber; in FreqToBandWithRounding()
117 temp = (lineNumber - bandStartOffset[band]); in FreqToBandWithRounding()
118 temp = (temp - (bandStartOffset[band + 1] - lineNumber)); in FreqToBandWithRounding()
121 band = band + 1; in FreqToBandWithRounding()
124 return extract_l(band); in FreqToBandWithRounding()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiScanner.aidl29 Bundle getAvailableChannels(int band); in getAvailableChannels() argument
DWifiScanner.java100 public List<Integer> getAvailableChannels(int band) { in getAvailableChannels() argument
102 Bundle bundle = mService.getAvailableChannels(band); in getAvailableChannels()
157 public int band; field in WifiScanner.ScanSettings
179 dest.writeInt(band); in writeToParcel()
204 settings.band = in.readInt();
DIWifiManager.aidl87 void setFrequencyBand(int band, boolean persist); in setFrequencyBand() argument
DWifiManager.java1387 public void setFrequencyBand(int band, boolean persist) {
1389 mService.setFrequencyBand(band, persist);
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp1516 int32_t EqualizerGetBandLevel(EffectContext *pContext, int32_t band){ in EqualizerGetBandLevel() argument
1518 return pContext->pBundledContext->bandGaindB[band] * 100; in EqualizerGetBandLevel()
1535 void EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain){ in EqualizerSetBandLevel() argument
1543 pContext->pBundledContext->bandGaindB[band] = gainRounded; in EqualizerSetBandLevel()
1562 int32_t EqualizerGetCentreFrequency(EffectContext *pContext, int32_t band){ in EqualizerGetCentreFrequency() argument
1575 Frequency = (int32_t)BandDef[band].Frequency*1000; // Convert to millibels in EqualizerGetCentreFrequency()
1600 int32_t EqualizerGetBandFreqRange(EffectContext *pContext __unused, int32_t band, uint32_t *pLow, in EqualizerGetBandFreqRange() argument
1602 *pLow = bandFreqRange[band][0]; in EqualizerGetBandFreqRange()
1603 *pHi = bandFreqRange[band][1]; in EqualizerGetBandFreqRange()
1625 int band = 0; in EqualizerGetBand() local
[all …]
/frameworks/av/radio/
DIRadioService.cpp90 …) config %p withAudio %d region %d type %d", config, withAudio, config->region, config->band.type); in attach()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEqualizerTest.java264 …public BandLevelParam(Equalizer equalizer, int band, short min, short max, SeekBar seekBar, TextVi… in BandLevelParam() argument
267 mBand = band; in BandLevelParam()
/frameworks/opt/net/wifi/service/jni/
Dwifi_hal_stub.h62 int band, int max_channels, wifi_channel *channels, int *num_channels);
/frameworks/opt/net/wifi/service/lib/
Dwifi_hal_stub.cpp113 int band, int max_channels, wifi_channel *channels, int *num_channels) { in wifi_get_valid_channels_stub() argument
/frameworks/wilhelm/include/SLES/
DOpenSLES.h1242 SLuint16 band,
1247 SLuint16 band,
1252 SLuint16 band,
1257 SLuint16 band,

12