Searched defs:band (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
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...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DNoBandChannelHelper.java27 * 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
121 getMissingChannelsFromBand(int band) argument
129 getContainingChannelsFromBand(int band) argument
[all...]
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
107 * Retrieves a list of channels from the band which are missing in the channel collection.
109 public abstract Set<Integer> getMissingChannelsFromBand(int band); argument
113 getContainingChannelsFromBand(int band) argument
292 toString(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
208 getMissingChannelsFromBand(int band) argument
220 getContainingChannelsFromBand(int band) argument
[all...]
H A DWifiScanningServiceImpl.java108 public Bundle getAvailableChannels(int band) { argument
110 ChannelSpec[] channelSpecs = mChannelHelper.getAvailableScanChannels(band);
648 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
1047 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED && settings.channels == null) {
1048 loge("Channels was null with unspecified band");
1052 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED
2228 settings.band = WifiScanner.WIFI_BAND_BOTH;
2291 settings.band = WifiScanner.WIFI_BAND_UNSPECIFIED;
2348 settings2.band = WifiScanner.WIFI_BAND_UNSPECIFIED;
2569 .append(" band
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiApConfigStoreTest.java83 String ssid, String preSharedKey, int keyManagement, int band, int channel) {
88 config.apBand = band;
134 1, /* AP band (5GHz) */
154 1, /* AP band (5GHz) */
181 1, /* AP band (5GHz) */
82 setupApConfig( String ssid, String preSharedKey, int keyManagement, int band, int channel) argument
H A DScanTestUtil.java54 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;
124 int period, int reportEvents, int band) {
127 bucket.band = band;
146 bucket.band
123 addBucketWithBand( int period, int reportEvents, int band) argument
[all...]
H A DWifiStateMachineTest.java775 private void verifyScan(int band, int reportEvents, Set<Integer> configuredNetworkIds) { argument
783 assertEquals("band", band, actualSettings.band);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DKnownBandsChannelHelperTest.java87 * check a settings object with a band
90 public void band() { method in class:KnownBandsChannelHelperTest.EstimateScanDurationTest
119 private void testBand(int[] expectedChannels, int band) { argument
121 mChannelHelper.getAvailableScanChannels(band);
130 * test the 2.4GHz band
138 * test the 5GHz band
146 * test the 5GHz DFS band
154 * test the 2.4GHz and 5GHz band
229 * check a settings object with a band specified
316 * Add a single band t
[all...]
H A DNoBandChannelHelperTest.java81 * 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
250 * Add a single band to the collection
307 * Add a band an
[all...]
H A DBaseWifiScannerImplTest.java92 protected Set<Integer> expectedBandScanFreqs(int band) { argument
94 collection.addBand(band);
98 protected Set<Integer> expectedBandAndChannelScanFreqs(int band, int... channels) { argument
100 collection.addBand(band);
H A DSupplicantPnoScannerTest.java294 private Set<Integer> expectedBandScanFreqs(int band) { argument
296 collection.addBand(band);
/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 DEffectEqualizer.cpp437 ALOGV("Equalizer_getParameter() EQ_PARAM_BAND_LEVEL band %d, level %d",
448 ALOGV("Equalizer_getParameter() EQ_PARAM_CENTER_FREQ band %d, frequency %d",
459 ALOGV("Equalizer_getParameter() EQ_PARAM_BAND_FREQ_RANGE band %d, min %d, max %d",
466 ALOGV("Equalizer_getParameter() EQ_PARAM_GET_BAND frequency %d, band %d",
536 int32_t band; local
554 band = *pParam;
556 ALOGV("setParameter() EQ_PARAM_BAND_LEVEL band %d, level %d", band, level);
557 if (band >= kNumBands) {
561 pEqualizer->setGain(band, leve
[all...]
/frameworks/base/media/java/android/media/audiofx/
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/media/tests/EffectsTest/src/com/android/effectstest/
H A DEqualizerTest.java264 public BandLevelParam(Equalizer equalizer, int band, short min, short max, SeekBar seekBar, TextView textView) { argument
267 mBand = band;
/frameworks/wilhelm/src/itf/
H A DIEqualizer.c145 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/services/radio/
H A DRadioService.cpp144 ALOGV("%s region %d type %d", __FUNCTION__, config->region, config->band.type);
224 const radio_hal_band_config_t *band = &sKnownRegionConfigs[i].band; local
229 if (band->type != halBand->type) continue;
230 if (band->lower_limit < halBand->lower_limit) continue;
231 if (band->upper_limit > halBand->upper_limit) continue;
233 if (band->spacings[0] == halBand->spacings[k]) break;
236 if (band->type == RADIO_BAND_AM) break;
237 if ((band->fm.deemphasis & halBand->fm.deemphasis) == 0) continue;
239 if ((band
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dtns.c90 * 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/
H A DWifiConnectivityManager.java608 // Helper for selecting the band for connectivity scan
629 // Helper for setting the channels for connectivity scan when band is unspecified. Returns
648 localLog("No scan channels for " + config.configKey() + ". Perform full band scan");
690 localLog("No full band scan due to heavy traffic, txSuccessRate="
737 settings.band = getScanBand(isFullBandScan);
774 settings.band = getScanBand();
811 scanSettings.band = getScanBand();
854 scanSettings.band = getScanBand();
1034 * Set band preference when doing scan and making connection
1036 public void setUserPreferredBand(int band) { argument
[all...]
H A DWifiQualifiedNetworkSelector.java72 //if current network is on 2.4GHz band and has a RSSI over this, need not new network selection
74 //if current network is on 5GHz band and has a RSSI over this, need not new network selection
156 * set the user selected preferred band
158 * @param band preferred band user selected
160 public void setUserPreferredBand(int band) { argument
161 mUserPreferedBand = band;
240 // Current network band must match with user preference selection
242 localLog("Current band dose not match user preference. Start Qualified Network"
243 + " Selection Current band
[all...]
H A DWifiServiceImpl.java1140 * Set the operational frequency band
1141 * @param band One of
1148 public void setFrequencyBand(int band, boolean persist) { argument
1151 Slog.i(TAG, "WifiService trying to set frequency band to " + band +
1155 mWifiStateMachine.setFrequencyBand(band, persist);
1163 * Get the operational frequency band
/frameworks/opt/net/wifi/service/lib/
H A Dwifi_hal_stub.cpp129 int band, int max_channels, wifi_channel *channels, int *num_channels) {
128 wifi_get_valid_channels_stub(wifi_interface_handle handle, int band, int max_channels, wifi_channel *channels, int *num_channels) argument
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp540 LVM_EQNB_BandDef_t BandDefs[MAX_NUM_BANDS]; /* Equaliser band definitions */
794 // ActiveParams.pEQNB_BandDefinition[band].Gain);
807 // ActiveParams.pEQNB_BandDefinition[band].Gain);
815 // the overall EQ band gain and BassBoost relative levels.
832 // ActiveParams.pEQNB_BandDefinition[band].Gain);
835 //Count the energy contribution per band for EQ and BassBoost only if they are active.
915 // ActiveParams.pEQNB_BandDefinition[band].Gain);
1510 // Purpose: Retrieve the gain currently being used for the band passed in
1513 // band: band numbe
1519 EqualizerGetBandLevel(EffectContext *pContext, int32_t band) argument
1538 EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain) argument
1565 EqualizerGetCentreFrequency(EffectContext *pContext, int32_t band) argument
1603 EqualizerGetBandFreqRange(EffectContext *pContext __unused, int32_t band, uint32_t *pLow, uint32_t *pHi) argument
1628 int band = 0; local
2460 int32_t band; local
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiScanner.java50 /** no band specified; use channel list instead */
53 /** 2.4 GHz band */
54 public static final int WIFI_BAND_24_GHZ = 1; /* 2.4 GHz band */
55 /** 5 GHz band excluding DFS channels */
56 public static final int WIFI_BAND_5_GHZ = 2; /* 5 GHz band without DFS channels */
57 /** DFS channels from 5 GHz band only */
58 public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; /* 5 GHz band with DFS channels */
59 /** 5 GHz band including DFS channels */
60 public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; /* 5 GHz band with DFS channels */
61 /** Both 2.4 GHz band an
102 getAvailableChannels(int band) argument
172 public int band; field in class:WifiScanner.ScanSettings
[all...]

Completed in 3912 milliseconds

12