Home
last modified time | relevance | path

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

123

/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;
/frameworks/wilhelm/src/itf/
DIEqualizer.cpp145 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/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java56 public abstract WifiScanner.ChannelSpec[] getAvailableScanChannels(int band); in getAvailableScanChannels() argument
85 public abstract void addBand(int band); in addBand() argument
93 public abstract boolean containsBand(int band); in containsBand() argument
97 public abstract boolean partiallyContainsBand(int band); in partiallyContainsBand() argument
113 public abstract Set<Integer> getMissingChannelsFromBand(int band); in getMissingChannelsFromBand() argument
117 public abstract Set<Integer> getContainingChannelsFromBand(int band); in getContainingChannelsFromBand() argument
128 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels()
133 addBand(scanSettings.band); in addChannels()
141 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels()
146 addBand(bucketSettings.band); in addChannels()
[all …]
DKnownBandsChannelHelper.java75 public WifiScanner.ChannelSpec[] getAvailableScanChannels(int band) { in getAvailableScanChannels() argument
76 if (band < WifiScanner.WIFI_BAND_24_GHZ || band > WifiScanner.WIFI_BAND_BOTH_WITH_DFS) { in getAvailableScanChannels()
80 return mBandsToChannels[band]; in getAvailableScanChannels()
86 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in estimateScanDuration()
89 return getAvailableScanChannels(settings.band).length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration()
119 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in settingsContainChannel()
122 settingsChannels = getAvailableScanChannels(settings.band); in settingsContainChannel()
159 public void addBand(int band) { in addBand() argument
160 mExactBands |= band; in addBand()
161 mAllBands |= band; in addBand()
[all …]
DScanScheduleUtil.java56 if (bucket1.band != bucket2.band) return false; in bucketEquals()
/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/
DDynamicsProcessing.java770 private void checkBand(int band) { in checkBand() argument
771 if (mBands == null || band < 0 || band >= mBands.length) { in checkBand()
772 throw new IllegalArgumentException("band index " + band +" out of bounds"); in checkBand()
780 public void setBand(int band, EqBand bandCfg) { in setBand() argument
781 checkBand(band); in setBand()
782 mBands[band] = new EqBand(bandCfg); in setBand()
789 public EqBand getBand(int band) { in getBand() argument
790 checkBand(band); in getBand()
791 return mBands[band]; in getBand()
861 private void checkBand(int band) { in checkBand() argument
[all …]
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/media/libeffects/dynamicsproc/dsp/
DDPBase.cpp114 DPEqBand * DPEq::getBand(uint32_t band) { in getBand() argument
115 if (band < getBandCount()) { in getBand()
116 return &mBands[band]; in getBand()
121 void DPEq::setBand(uint32_t band, DPEqBand &src) { in setBand() argument
122 if (band < getBandCount()) { in setBand()
123 mBands[band] = src; in setBand()
140 DPMbcBand * DPMbc::getBand(uint32_t band) { in getBand() argument
141 if (band < getBandCount()) { in getBand()
142 return &mBands[band]; in getBand()
147 void DPMbc::setBand(uint32_t band, DPMbcBand &src) { in setBand() argument
[all …]
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java54 request.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in createRequest()
63 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest() argument
65 return createRequest(WifiScanner.TYPE_HIGH_ACCURACY, band, period, 0, 0, in createRequest()
69 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest() argument
71 return createRequest(WifiScanner.TYPE_HIGH_ACCURACY, band, period, 0, 0, batch, in createRequest()
78 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest() argument
82 request.band = band; in createRequest()
141 int period, int reportEvents, int band) { in addBucketWithBand() argument
144 bucket.band = band; in addBucketWithBand()
163 bucket.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in addBucketWithChannels()
[all …]
/frameworks/base/core/java/android/hardware/radio/
DProgramSelector.java407 @RadioManager.Band int band, int frequencyKhz) { in createAmFmSelector()
408 return createAmFmSelector(band, frequencyKhz, 0); in createAmFmSelector()
444 @RadioManager.Band int band, int frequencyKhz, int subChannel) { in createAmFmSelector()
445 if (band == RadioManager.BAND_INVALID) { in createAmFmSelector()
448 band = (subChannel <= 0) ? RadioManager.BAND_AM : RadioManager.BAND_AM_HD; in createAmFmSelector()
450 band = (subChannel <= 0) ? RadioManager.BAND_FM : RadioManager.BAND_FM_HD; in createAmFmSelector()
454 boolean isAm = (band == RadioManager.BAND_AM || band == RadioManager.BAND_AM_HD); in createAmFmSelector()
455 boolean isDigital = (band == RadioManager.BAND_AM_HD || band == RadioManager.BAND_FM_HD); in createAmFmSelector()
456 if (!isAm && !isDigital && band != RadioManager.BAND_FM) { in createAmFmSelector()
457 throw new IllegalArgumentException("Unknown band: " + band); in createAmFmSelector()
/frameworks/base/telephony/java/android/telephony/
DAccessNetworkUtils.java32 public static int getDuplexModeForEutranBand(int band) { in getDuplexModeForEutranBand() argument
33 if (band == INVALID_BAND) { in getDuplexModeForEutranBand()
37 if (band > EutranBand.BAND_88) { in getDuplexModeForEutranBand()
39 } else if (band >= EutranBand.BAND_65) { in getDuplexModeForEutranBand()
41 } else if (band >= EutranBand.BAND_33) { in getDuplexModeForEutranBand()
43 } else if (band >= EutranBand.BAND_1) { in getDuplexModeForEutranBand()
/frameworks/base/wifi/java/android/net/wifi/aware/
DConfigRequest.java321 public Builder setDiscoveryWindowInterval(int band, int interval) { in setDiscoveryWindowInterval() argument
322 if (band != NAN_BAND_24GHZ && band != NAN_BAND_5GHZ) { in setDiscoveryWindowInterval()
325 if ((band == NAN_BAND_24GHZ && (interval < 1 || interval > 5)) in setDiscoveryWindowInterval()
326 || (band == NAN_BAND_5GHZ && (interval < 0 || interval > 5))) { in setDiscoveryWindowInterval()
331 mDiscoveryWindowInterval[band] = interval; in setDiscoveryWindowInterval()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp406 int32_t eqType, int32_t band) { in DP_getEqBand() argument
411 dp_fx::DPEqBand *pEqBand = pEq->getBand(band); in DP_getEqBand()
412 ALOGE_IF(pEqBand == NULL, "DPEqBand NULL. invalid band %d", band); in DP_getEqBand()
427 int32_t band) { in DP_getMbcBand() argument
432 dp_fx::DPMbcBand *pMbcBand = pMbc->getBand(band); in DP_getMbcBand()
433 ALOGE_IF(pMbcBand == NULL, "pMbcBand NULL. invalid band %d", band); in DP_getMbcBand()
777 const int32_t band = params[2]; in DP_getParameter() local
781 dp_fx::DPEqBand *pEqBand = DP_getEqBand(pContext, channel, eqCommand, band); in DP_getParameter()
783 ALOGE("%s get PARAM_*_EQ_BAND invalid channel %d or band %d", __func__, channel, band); in DP_getParameter()
794 (command == DP_PARAM_PRE_EQ_BAND ? "preEqBand" : "postEqBand"), channel, band, in DP_getParameter()
[all …]
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp1560 int32_t EqualizerGetBandLevel(EffectContext *pContext, int32_t band){ in Effect_setConfig() argument
1562 return pContext->pBundledContext->bandGaindB[band] * 100; in Effect_setConfig()
1579 void EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain){ in Effect_setConfig() argument
1587 pContext->pBundledContext->bandGaindB[band] = gainRounded; in Effect_setConfig()
1606 int32_t EqualizerGetCentreFrequency(EffectContext *pContext, int32_t band){ in Effect_setConfig() argument
1619 Frequency = (int32_t)BandDef[band].Frequency*1000; // Convert to millibels in Effect_setConfig()
1644 int32_t EqualizerGetBandFreqRange(EffectContext *pContext __unused, int32_t band, uint32_t *pLow, in Effect_setConfig() argument
1646 *pLow = bandFreqRange[band][0]; in Effect_setConfig()
1647 *pHi = bandFreqRange[band][1]; in Effect_setConfig()
1669 int band = 0; in Effect_setConfig() local
[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/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
DRadioTunerTest.java134 for (RadioManager.BandDescriptor band : mModule.getBands()) { in openTuner()
135 Log.d(TAG, "Band: " + band); in openTuner()
136 int bandType = band.getType(); in openTuner()
138 mAmBandDescriptor = (RadioManager.AmBandDescriptor)band; in openTuner()
141 mFmBandDescriptor = (RadioManager.FmBandDescriptor)band; in openTuner()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java116 writeSettings.band = WifiScanner.WIFI_BAND_BOTH_WITH_DFS; in verifyScanSettingsParcelWithBand()
120 assertEquals(readSettings.band, writeSettings.band); in verifyScanSettingsParcelWithBand()
131 writeSettings.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in verifyScanSettingsParcelWithChannels()
139 assertEquals(writeSettings.band, readSettings.band); in verifyScanSettingsParcelWithChannels()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTuner.java55 int region, boolean withAudio, int band) { in Tuner() argument
60 mNativeContext = nativeInit(halRev, withAudio, band); in Tuner()
75 private native long nativeInit(int halRev, boolean withAudio, int band); in nativeInit() argument
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pConfig.java360 public @NonNull Builder setGroupOperatingBand(@GroupOperatingBandType int band) { in setGroupOperatingBand() argument
361 switch (band) { in setGroupOperatingBand()
365 mGroupOperatingBand = band; in setGroupOperatingBand()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiScanner.aidl29 Bundle getAvailableChannels(int band); in getAvailableChannels() argument

123