Home
last modified time | relevance | path

Searched refs:band (Results 1 – 25 of 27) 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/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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScanningServiceImpl.java70 public Bundle getAvailableChannels(int band) { in getAvailableChannels() argument
71 WifiScanner.ChannelSpec channelSpecs[] = getChannelsForBand(band); in getAvailableChannels()
521 if (settings.band != WifiScanner.WIFI_BAND_UNSPECIFIED in reportScanResults()
523 desiredChannels = getChannelsForBand(settings.band); in reportScanResults()
572 if (settings.band != WifiScanner.WIFI_BAND_UNSPECIFIED in reportFullScanResult()
574 desiredChannels = getChannelsForBand(settings.band); in reportFullScanResult()
803 channels = getChannelsForBand(settings.band); in getBestBucket()
865 if (settings.band != WifiScanner.WIFI_BAND_UNSPECIFIED in addScanRequestToBucket()
869 desiredChannels = getChannelsForBand(settings.band); in addScanRequestToBucket()
883 && (bucket.band == WifiScanner.WIFI_BAND_UNSPECIFIED); in addScanRequestToBucket()
[all …]
DWifiNative.java520 public boolean setBand(int band) { in setBand() argument
521 return doBooleanCommand("DRIVER SETBAND " + band); in setBand()
1231 int band; field in WifiNative.BucketSettings
1586 int iface, int band); in getChannelsForBandNative() argument
1588 synchronized public static int [] getChannelsForBand(int band) { in getChannelsForBand() argument
1591 return getChannelsForBandNative(sWlan0Index, band); in getChannelsForBand()
DWifiServiceImpl.java1058 public void setFrequencyBand(int band, boolean persist) { in setFrequencyBand() argument
1061 Slog.i(TAG, "WifiService trying to set frequency band to " + band + in setFrequencyBand()
1065 mWifiStateMachine.setFrequencyBand(band, persist); in setFrequencyBand()
DWifiStateMachine.java2207 public void setFrequencyBand(int band, boolean persist) { in setFrequencyBand() argument
2211 band); in setFrequencyBand() local
2213 sendMessage(CMD_SET_FREQUENCY_BAND, band, 0); in setFrequencyBand()
3030 int band = Settings.Global.getInt(mContext.getContentResolver(), in setFrequencyBand() local
3032 setFrequencyBand(band, false); in setFrequencyBand()
5262 int band = message.arg1; in processMessage() local
5263 if (DBG) log("set frequency band " + band); in processMessage()
5264 if (mWifiNative.setBand(band)) { in processMessage()
5266 if (PDBG) loge("did set frequency band " + band); in processMessage()
5268 mFrequencyBand.set(band); in processMessage()
[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/opt/net/wifi/service/tools/halutil/
Dhalutil.cpp60 static wifi_band band = WIFI_BAND_UNSPECIFIED; variable
334 params.buckets[0].band = WIFI_BAND_UNSPECIFIED; in startScan()
353 params.buckets[0].band = WIFI_BAND_UNSPECIFIED; in startScan()
362 params.buckets[1].band = WIFI_BAND_A; in startScan()
378 params.buckets[2].band = WIFI_BAND_UNSPECIFIED; in startScan()
430 static int scanOnce(wifi_band band, wifi_scan_result *results, int num_results) { in scanOnce() argument
445 params.buckets[0].band = band; in scanOnce()
1000 band = WIFI_BAND_A_WITH_DFS; in readTestOptions()
1002 band = WIFI_BAND_BG; in readTestOptions()
1004 band = WIFI_BAND_ABG_WITH_DFS; in readTestOptions()
[all …]
/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()
152 public int band; field in WifiScanner.ScanSettings
169 dest.writeInt(band); in writeToParcel()
193 settings.band = in.readInt();
DIWifiManager.aidl80 void setFrequencyBand(int band, boolean persist); in setFrequencyBand() argument
DWifiManager.java1233 public void setFrequencyBand(int band, boolean persist) { in setFrequencyBand() argument
1235 mService.setFrequencyBand(band, persist); in setFrequencyBand()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp1453 int32_t EqualizerGetBandLevel(EffectContext *pContext, int32_t band){ in EqualizerGetBandLevel() argument
1455 return pContext->pBundledContext->bandGaindB[band] * 100; in EqualizerGetBandLevel()
1472 void EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain){ in EqualizerSetBandLevel() argument
1480 pContext->pBundledContext->bandGaindB[band] = gainRounded; in EqualizerSetBandLevel()
1498 int32_t EqualizerGetCentreFrequency(EffectContext *pContext, int32_t band){ in EqualizerGetCentreFrequency() argument
1511 Frequency = (int32_t)BandDef[band].Frequency*1000; // Convert to millibels in EqualizerGetCentreFrequency()
1536 int32_t EqualizerGetBandFreqRange(EffectContext *pContext __unused, int32_t band, uint32_t *pLow, in EqualizerGetBandFreqRange() argument
1538 *pLow = bandFreqRange[band][0]; in EqualizerGetBandFreqRange()
1539 *pHi = bandFreqRange[band][1]; in EqualizerGetBandFreqRange()
1561 int band = 0; in EqualizerGetBand() local
[all …]
/frameworks/opt/net/wifi/service/lib/
Dwifi_hal.cpp117 int band, int max_channels, wifi_channel *channels, int *num_channels) { in wifi_get_valid_channels() argument
/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/
Dcom_android_server_wifi_WifiNative.cpp369 params.buckets[i].band = (wifi_band) getIntField(env, bucket, "band"); in android_net_wifi_startScan()
373 params.buckets[i].band, params.buckets[i].period); in android_net_wifi_startScan()
1028 jint iface, jint band) { in android_net_wifi_getValidChannels() argument
1036 wifi_error result = wifi_get_valid_channels(handle, band, MaxChannels, in android_net_wifi_getValidChannels()
/frameworks/wilhelm/include/SLES/
DOpenSLES.h1242 SLuint16 band,
1247 SLuint16 band,
1252 SLuint16 band,
1257 SLuint16 band,
/frameworks/wilhelm/include/OMXAL/
DOpenMAXAL.h2026 XAuint16 band,
2031 XAuint16 band,
2036 XAuint16 band,
2041 XAuint16 band,

12