/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioEqualizer.cpp | 105 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 D | AudioEqualizer.h | 30 // 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...] |
H A D | EffectEqualizer.cpp | 440 ALOGV("Equalizer_getParameter() EQ_PARAM_BAND_LEVEL band %d, level %d", 451 ALOGV("Equalizer_getParameter() EQ_PARAM_CENTER_FREQ band %d, frequency %d", 462 ALOGV("Equalizer_getParameter() EQ_PARAM_BAND_FREQ_RANGE band %d, min %d, max %d", 469 ALOGV("Equalizer_getParameter() EQ_PARAM_GET_BAND frequency %d, band %d", 539 int32_t band; local 557 band = *pParam; 559 ALOGV("setParameter() EQ_PARAM_BAND_LEVEL band %d, level %d", band, level); 560 if (band >= kNumBands) { 564 pEqualizer->setGain(band, leve [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | IWifiScanner.aidl | 29 Bundle getAvailableChannels(int band);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | NoBandChannelHelper.java | 27 * ChannelHelper that offers channel manipulation utilities when the channels in a band are not 28 * known. Operations performed may simplify any band to include all channels. 35 * specifies a band instead of a list of channels. 41 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { 54 public WifiScanner.ChannelSpec[] getAvailableScanChannels(int band) { argument 60 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { 68 * ChannelCollection that merges channels without knowing which channels are in each band. In 69 * order to do this if any band is added or the maxChannels is exceeded then all channels will 82 public void addBand(int band) { argument 83 if (band ! 94 containsBand(int band) argument 102 partiallyContainsBand(int band) argument 126 getMissingChannelsFromBand(int band) argument 134 getContainingChannelsFromBand(int band) argument [all...] |
H A D | ChannelHelper.java | 53 * 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 296 toString(int band) argument [all...] |
H A D | KnownBandsChannelHelper.java | 27 * 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 D | ScanScheduleUtil.java | 56 if (bucket1.band != bucket2.band) return false;
|
/frameworks/wilhelm/src/itf/ |
H A D | IEqualizer.cpp | 145 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 D | pvmp3_poly_phase_synthesis.cpp | 138 for (int32 band = 0; band < FILTERBANK_BANDS; band += 2) 140 int32 *inData = &pChVars->circ_buffer[544 - (band<<5)]; 178 }/* end band loop */
|
H A D | pvmp3_imdct_synth.cpp | 224 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 D | pvmp3_equalizer.cpp | 332 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/base/core/jni/ |
H A D | android_hardware_Radio.cpp | 165 ALOGV("%s type %d region %d", __FUNCTION__, nBandconfig->band.type, nBandconfig->region); 167 if (nBandconfig->band.type == RADIO_BAND_FM || 168 nBandconfig->band.type == RADIO_BAND_FM_HD) { 170 nBandconfig->region, nBandconfig->band.type, 171 nBandconfig->band.lower_limit, nBandconfig->band.upper_limit, 172 nBandconfig->band.spacings[0], 173 nBandconfig->band.fm.stereo, 174 nBandconfig->band.fm.rds != RADIO_RDS_NONE, 175 nBandconfig->band [all...] |
/frameworks/base/wifi/java/android/net/wifi/aware/ |
H A D | ConfigRequest.java | 46 * 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/media/java/android/media/audiofx/ |
H A D | Equalizer.java | 30 * 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | ScanTestUtil.java | 54 request.band = WifiScanner.WIFI_BAND_UNSPECIFIED; 63 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, argument 65 return createRequest(band, period, 0, 0, batch, bssidsPerScan, reportEvents); 71 public static WifiScanner.ScanSettings createRequest(int band, int period, int maxPeriod, argument 74 request.band = band; 128 int period, int reportEvents, int band) { 131 bucket.band = band; 150 bucket.band 127 addBucketWithBand( int period, int reportEvents, int band) argument [all...] |
H A D | WifiApConfigStoreTest.java | 88 String ssid, String preSharedKey, int keyManagement, int band, int channel) { 93 config.apBand = band; 143 1, /* AP band (5GHz) */ 163 1, /* AP band (5GHz) */ 190 1, /* AP band (5GHz) */ 87 setupApConfig( String ssid, String preSharedKey, int keyManagement, int band, int channel) argument
|
/frameworks/av/services/radio/ |
H A D | RadioService.cpp | 135 ALOGV("%s region %d type %d", __FUNCTION__, config->region, config->band.type); 205 const radio_hal_band_config_t *band = &sKnownRegionConfigs[i].band; local 210 if (band->type != halBand->type) continue; 211 if (band->lower_limit < halBand->lower_limit) continue; 212 if (band->upper_limit > halBand->upper_limit) continue; 214 if (band->spacings[0] == halBand->spacings[k]) break; 217 if (band->type == RADIO_BAND_AM) break; 218 if ((band->fm.deemphasis & halBand->fm.deemphasis) == 0) continue; 220 if ((band [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
H A D | MediaEqualizerTest.java | 160 //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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | NoBandChannelHelperTest.java | 81 * check a settings object with a band 84 public void band() { method in class:NoBandChannelHelperTest.EstimateScanDurationTest 112 * Test that getting the channels for each band results in the expected empty list 116 for (int band = WifiScanner.WIFI_BAND_24_GHZ; 117 band <= WifiScanner.WIFI_BAND_BOTH_WITH_DFS; ++band) { 119 mChannelHelper.getAvailableScanChannels(band); 169 * check a settings object with a band specified 252 * Add a single band to the collection 312 * Add a band an [all...] |
H A D | ChannelHelperTest.java | 52 * 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. 148 testBucket.band = WifiScanner.WIFI_BAND_UNSPECIFIED; 164 testBucket.band = WifiScanner.WIFI_BAND_5_GHZ;
|
H A D | BaseWifiScannerImplTest.java | 92 protected boolean isAllChannelsScanned(int band) { argument 94 collection.addBand(band); 98 protected Set<Integer> expectedBandScanFreqs(int band) { argument 100 collection.addBand(band); 104 protected Set<Integer> expectedBandAndChannelScanFreqs(int band, int... channels) { argument 106 collection.addBand(band);
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | tns.c | 90 * description: Retrieve index of nearest band border 97 const Word16 *bandStartOffset) /*!< table of band borders */ 99 Word32 lineNumber, band; local 111 /* find band the line number lies in */ 112 for (band=0; band<numOfBands; band++) { 113 temp = bandStartOffset[band + 1] - lineNumber; 117 temp = (lineNumber - bandStartOffset[band]); 118 temp = (temp - (bandStartOffset[band [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
H A D | WifiAwareStateManager.java | 2627 for (int band = ConfigRequest.NAN_BAND_24GHZ; band <= ConfigRequest.NAN_BAND_5GHZ; 2628 ++band) { 2629 if (discoveryWindowInterval[band] == ConfigRequest.DW_INTERVAL_NOT_INIT) { 2630 discoveryWindowInterval[band] = cr.mDiscoveryWindowInterval[band]; 2631 } else if (cr.mDiscoveryWindowInterval[band] 2634 } else if (discoveryWindowInterval[band] == ConfigRequest.DW_DISABLE) { 2635 discoveryWindowInterval[band] = cr.mDiscoveryWindowInterval[band]; [all...] |
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 543 LVM_EQNB_BandDef_t BandDefs[MAX_NUM_BANDS]; /* Equaliser band definitions */ 796 // ActiveParams.pEQNB_BandDefinition[band].Gain); 809 // ActiveParams.pEQNB_BandDefinition[band].Gain); 817 // the overall EQ band gain and BassBoost relative levels. 834 // ActiveParams.pEQNB_BandDefinition[band].Gain); 837 //Count the energy contribution per band for EQ and BassBoost only if they are active. 917 // ActiveParams.pEQNB_BandDefinition[band].Gain); 1520 // Purpose: Retrieve the gain currently being used for the band passed in 1523 // band: band numbe 1529 EqualizerGetBandLevel(EffectContext *pContext, int32_t band) argument 1548 EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain) argument 1575 EqualizerGetCentreFrequency(EffectContext *pContext, int32_t band) argument 1613 EqualizerGetBandFreqRange(EffectContext *pContext __unused, int32_t band, uint32_t *pLow, uint32_t *pHi) argument 1638 int band = 0; local 2494 int32_t band; local [all...] |