Home
last modified time | relevance | path

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

12

/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java221 for (short band = 0; band < mEQNumBands; band++) { in initEffectsPreferences()
222 mEQCenterFreq[band] = equalizerEffect.getCenterFreq(band); in initEffectsPreferences()
230 for (short band = 0; band < mEQNumBands; band++) { in initEffectsPreferences()
231 mEQPresetOpenSLESBandLevel[preset][band] = equalizerEffect in initEffectsPreferences()
232 .getBandLevel(band); in initEffectsPreferences()
283 for (short band = 0; band < mEQNumBands; band++) { in initEffectsPreferences()
287 bandLevel[band] = mEQPresetOpenSLESBandLevel[eQPreset][band]; in initEffectsPreferences()
290 bandLevel[band] = eQPresetCIExtremeBandLevel[band]; in initEffectsPreferences()
293 bandLevel[band] = (short) prefs.getInt( in initEffectsPreferences()
294 Key.eq_preset_user_band_level.toString() + band, in initEffectsPreferences()
[all …]
DActivityMusic.java657 for (int band = 0; band < mNumberEqualizerBands; band++) { in equalizerBandsInit()
659 final int centerFreq = centerFreqs[band] / 1000; in equalizerBandsInit()
666 ((TextView) eqcontainer.findViewById(EQViewElementIds[band][0])).setText( in equalizerBandsInit()
668 mEqualizerSeekBar[band] = (SeekBar) eqcontainer in equalizerBandsInit()
669 .findViewById(EQViewElementIds[band][1]); in equalizerBandsInit()
670 eqcontainer.findViewById(EQViewElementIds[band][0]) in equalizerBandsInit()
671 .setLabelFor(EQViewElementIds[band][1]); in equalizerBandsInit()
672 mEqualizerSeekBar[band].setMax(mEqualizerMaxBandLevel - mEqualizerMinBandLevel); in equalizerBandsInit()
673 mEqualizerSeekBar[band].setOnSeekBarChangeListener(this); in equalizerBandsInit()
677 for (int band = mNumberEqualizerBands; band < EQUALIZER_MAX_BANDS; band++) { in equalizerBandsInit()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/bands/
DAMFMProgramType.java61 BandDescriptor band = bands.get(rnd.nextInt(bands.size())); in tuneToDefault() local
62 int freq = rnd.nextInt(band.getUpperLimit() - band.getLowerLimit()) + band.getLowerLimit(); in tuneToDefault()
63 freq /= band.getSpacing(); in tuneToDefault()
64 freq *= band.getSpacing(); in tuneToDefault()
80 for (BandDescriptor band : getBands(config)) { in isComplete()
81 if (band.getLowerLimit() <= frequencyKhz && frequencyKhz <= band.getUpperLimit() in isComplete()
82 && (frequencyKhz - band.getLowerLimit()) % band.getSpacing() == 0) { in isComplete()
146 for (BandDescriptor band : getBands(config)) { in getValidAppendices()
147 int lowerLimitKHz = band.getLowerLimit(); in getValidAppendices()
148 int upperLimitKHz = band.getUpperLimit(); in getValidAppendices()
[all …]
DRegionConfig.java54 for (BandDescriptor band : amFmConfig) { in RegionConfig()
55 if (band instanceof AmBandDescriptor) { in RegionConfig()
56 mAmConfig.add(band); in RegionConfig()
57 } else if (band instanceof FmBandDescriptor) { in RegionConfig()
58 mFmConfig.add(band); in RegionConfig()
60 Log.w(TAG, "Unknown band type: " + band); in RegionConfig()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherApBandPreferenceController.java97 private int validateSelection(int band) { in validateSelection() argument
105 if (!isDualMode && WifiConfiguration.AP_BAND_ANY == band) { in validateSelection()
107 } else if (!is5GhzBandSupported() && WifiConfiguration.AP_BAND_5GHZ == band) { in validateSelection()
109 } else if (isDualMode && WifiConfiguration.AP_BAND_5GHZ == band) { in validateSelection()
113 return band; in validateSelection()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherApBandPreferenceController.java97 private int validateSelection(int band) { in validateSelection() argument
105 if (!isDualMode && WifiConfiguration.AP_BAND_ANY == band) { in validateSelection()
107 } else if (!is5GhzBandSupported() && WifiConfiguration.AP_BAND_5GHZ == band) { in validateSelection()
109 } else if (isDualMode && WifiConfiguration.AP_BAND_5GHZ == band) { in validateSelection()
113 return band; in validateSelection()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceController.java110 private int validateSelection(int band) { in validateSelection() argument
118 if (!isDualMode && WifiConfiguration.AP_BAND_ANY == band) { in validateSelection()
120 } else if (!is5GhzBandSupported() && WifiConfiguration.AP_BAND_5GHZ == band) { in validateSelection()
122 } else if (isDualMode && WifiConfiguration.AP_BAND_5GHZ == band) { in validateSelection()
126 return band; in validateSelection()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiFrequencyPreferenceController.java46 String band = null; in updateState() local
49 band = getContext().getResources().getString(R.string.wifi_band_24ghz); in updateState()
52 band = getContext().getResources().getString(R.string.wifi_band_5ghz); in updateState()
56 preference.setDetailText(band); in updateState()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/
DBrowseTree.java204 for (BandDescriptor band : amFmBands) { in setAmFmRegionConfig()
205 final int freq = band.getLowerLimit(); in setAmFmRegionConfig()
207 amBands.add(band); in setAmFmRegionConfig()
209 fmBands.add(band); in setAmFmRegionConfig()
425 for (BandDescriptor band : mBands) { in getChannels()
426 final int lowerLimit = band.getLowerLimit(); in getChannels()
427 final int upperLimit = band.getUpperLimit(); in getChannels()
428 final int spacing = band.getSpacing(); in getChannels()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java247 private void startGscan(int band, Integer[] channelList) { in startGscan() argument
252 if (band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in startGscan()
260 scanSettings.band = band; in startGscan()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DRadioManagerExt.java76 return Arrays.stream(bands).filter(band -> band.getRegion() == region). in reduceAmFmBands()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSNetworkScanCtlr.java246 int[] bands = bandSet.stream().mapToInt(band->band).toArray(); in createNetworkScanRequest()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppServiceWrapper.java372 public void switchBand(@NonNull ProgramType band) { in switchBand() argument
373 callService(service -> service.switchBand(Objects.requireNonNull(band))); in switchBand()
DRadioAppService.java374 public void switchBand(ProgramType band) {
375 tuneToDefault(band);
DIRadioAppService.aidl85 void switchBand(in ProgramType band); in switchBand() argument
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java639 String band = null; in refreshFrequency() local
642 band = mContext.getResources().getString(R.string.wifi_band_24ghz); in refreshFrequency()
645 band = mContext.getResources().getString(R.string.wifi_band_5ghz); in refreshFrequency()
654 mFrequencyPref.setSummary(band); in refreshFrequency()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java653 String band = null; in refreshFrequency() local
656 band = mContext.getResources().getString(R.string.wifi_band_24ghz); in refreshFrequency()
659 band = mContext.getResources().getString(R.string.wifi_band_5ghz); in refreshFrequency()
668 mFrequencyPref.setSummary(band); in refreshFrequency()
/packages/services/Car/car-lib/src/android/car/
DICarProjection.aidl93 int[] getAvailableWifiChannels(int band) = 12; in getAvailableWifiChannels() argument
DCarProjectionManager.java530 public @NonNull List<Integer> getAvailableWifiChannels(int band) { in getAvailableWifiChannels() argument
532 int[] channels = mService.getAvailableWifiChannels(band); in getAvailableWifiChannels()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java408 String band = null; in initWifiConfigController() local
412 band = res.getString(R.string.wifi_band_24ghz); in initWifiConfigController()
415 band = res.getString(R.string.wifi_band_5ghz); in initWifiConfigController()
419 if (band != null) { in initWifiConfigController()
420 addRow(group, R.string.wifi_frequency, band); in initWifiConfigController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiConfigController.java393 String band = null; in initWifiConfigController() local
397 band = res.getString(R.string.wifi_band_24ghz); in initWifiConfigController()
400 band = res.getString(R.string.wifi_band_5ghz); in initWifiConfigController()
404 if (band != null) { in initWifiConfigController()
405 addRow(group, R.string.wifi_frequency, band); in initWifiConfigController()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarProjectionService.java192 public int[] getAvailableWifiChannels(int band) throws RemoteException { in getAvailableWifiChannels() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DBandMode.java79 mBandList = (ListView) findViewById(R.id.band); in onCreate()
/packages/services/Telephony/src/com/android/phone/settings/
DBandMode.java96 mBandList = (ListView) findViewById(R.id.band); in onCreate()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java301 public int[] getAvailableWifiChannels(int band) { in getAvailableWifiChannels() argument
316 List<Integer> channels = scanner.getAvailableChannels(band); in getAvailableWifiChannels()

12