/packages/modules/Bluetooth/system/embdrv/g722/ |
D | g722_encode.cc | 72 static void block4(g722_band_t *band, int d) in block4() argument 84 band->d[0] = d; in block4() 85 band->r[0] = saturate(band->s + d); in block4() 88 band->p[0] = saturate(band->sz + d); in block4() 92 sg[i] = band->p[i] >> 15; in block4() 93 wd1 = saturate(band->a[1] << 2); in block4() 100 ap2 += (band->a[2]*32512) >> 15; in block4() 105 band->ap[2] = ap2; in block4() 108 sg[0] = band->p[0] >> 15; in block4() 109 sg[1] = band->p[1] >> 15; in block4() [all …]
|
D | g722_decode.cc | 73 static void block4(g722_band_t *band, int d); 75 static void block4(g722_band_t *band, int d) in block4() argument 87 band->d[0] = d; in block4() 88 band->r[0] = __ssat16(band->s + d); in block4() 91 band->p[0] = __ssat16(band->sz + d); in block4() 96 sg[i] = band->p[i] >> 15; in block4() 98 wd1 = __ssat16(band->a[1] << 2); in block4() 106 ap2 += (band->a[2]*32512) >> 15; in block4() 111 band->ap[2] = ap2; in block4() 114 sg[0] = band->p[0] >> 15; in block4() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 65 public abstract WifiScanner.ChannelSpec[][] getAvailableScanChannels(int band); in getAvailableScanChannels() argument 103 public abstract void addBand(int band); in addBand() argument 111 public abstract boolean containsBand(int band); in containsBand() argument 115 public abstract boolean partiallyContainsBand(int band); in partiallyContainsBand() argument 131 public abstract Set<Integer> getMissingChannelsFromBand(int band); in getMissingChannelsFromBand() argument 135 public abstract Set<Integer> getContainingChannelsFromBand(int band); in getContainingChannelsFromBand() argument 150 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels() 157 if (scanSettings.is6GhzPscOnlyEnabled() && is6GhzBandIncluded(scanSettings.band)) { in addChannels() 159 int band = scanSettings.band & (~WifiScanner.WIFI_BAND_6_GHZ); in addChannels() local 160 addBand(band); in addChannels() [all …]
|
D | KnownBandsChannelHelper.java | 125 public WifiScanner.ChannelSpec[][] getAvailableScanChannels(int band) { in getAvailableScanChannels() argument 126 if (band <= WIFI_BAND_UNSPECIFIED || band > WIFI_BAND_ALL) { in getAvailableScanChannels() 133 if ((band & (1 << index)) != 0 && mBandsToChannels[index].length > 0) { in getAvailableScanChannels() 164 if (settings.band == WIFI_BAND_UNSPECIFIED) { in estimateScanDuration() 167 WifiScanner.ChannelSpec[][] channels = getAvailableScanChannels(settings.band); in estimateScanDuration() 205 private @WifiBandIndex int getIndexForBand(@WifiBandBasic int band) { in getIndexForBand() argument 206 switch (band) { in getIndexForBand() 225 @WifiBandBasic int band; in settingsContainChannel() local 227 if (settings.band == WIFI_BAND_UNSPECIFIED) { in settingsContainChannel() 231 band = getBandFromChannel(channel); in settingsContainChannel() [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 240 for (short band = 0; band < mEQNumBands; band++) { in initEffectsPreferences() 241 mEQCenterFreq[band] = equalizerEffect.getCenterFreq(band); in initEffectsPreferences() 249 for (short band = 0; band < mEQNumBands; band++) { in initEffectsPreferences() 250 mEQPresetOpenSLESBandLevel[preset][band] = equalizerEffect in initEffectsPreferences() 251 .getBandLevel(band); in initEffectsPreferences() 302 for (short band = 0; band < mEQNumBands; band++) { in initEffectsPreferences() 306 bandLevel[band] = mEQPresetOpenSLESBandLevel[eQPreset][band]; in initEffectsPreferences() 309 bandLevel[band] = eQPresetCIExtremeBandLevel[band]; in initEffectsPreferences() 312 bandLevel[band] = (short) prefs.getInt( in initEffectsPreferences() 313 Key.eq_preset_user_band_level.toString() + band, in initEffectsPreferences() [all …]
|
D | ActivityMusic.java | 691 for (int band = 0; band < mNumberEqualizerBands; band++) { in equalizerBandsInit() 693 final int centerFreq = centerFreqs[band] / 1000; in equalizerBandsInit() 700 ((TextView) eqcontainer.findViewById(EQViewElementIds[band][0])).setText( in equalizerBandsInit() 702 mEqualizerSeekBar[band] = (SeekBar) eqcontainer in equalizerBandsInit() 703 .findViewById(EQViewElementIds[band][1]); in equalizerBandsInit() 704 eqcontainer.findViewById(EQViewElementIds[band][0]) in equalizerBandsInit() 705 .setLabelFor(EQViewElementIds[band][1]); in equalizerBandsInit() 706 mEqualizerSeekBar[band].setMax(mEqualizerMaxBandLevel - mEqualizerMinBandLevel); in equalizerBandsInit() 707 mEqualizerSeekBar[band].setOnSeekBarChangeListener(this); in equalizerBandsInit() 711 for (int band = mNumberEqualizerBands; band < EQUALIZER_MAX_BANDS; band++) { in equalizerBandsInit() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ApConfigUtil.java | 103 public static String bandToString(int band) { in bandToString() argument 106 if ((band & SoftApConfiguration.BAND_2GHZ) != 0) { in bandToString() 109 band &= ~SoftApConfiguration.BAND_2GHZ; in bandToString() 111 if ((band & SoftApConfiguration.BAND_5GHZ) != 0) { in bandToString() 114 band &= ~SoftApConfiguration.BAND_5GHZ; in bandToString() 116 if ((band & SoftApConfiguration.BAND_6GHZ) != 0) { in bandToString() 119 band &= ~SoftApConfiguration.BAND_6GHZ; in bandToString() 121 if ((band & SoftApConfiguration.BAND_60GHZ) != 0) { in bandToString() 124 band &= ~SoftApConfiguration.BAND_60GHZ; in bandToString() 125 if (band != 0) { in bandToString() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MultiInternetManager.java | 137 @Nullable private WorkSource getRequestorWorkSource(int band) { in getRequestorWorkSource() argument 138 if (!mNetworkConnectionStates.contains(band)) { in getRequestorWorkSource() 141 return mNetworkConnectionStates.get(band).requestorWorkSource; in getRequestorWorkSource() 218 final int band = ScanResult.toBand(info.getFrequency()); in onInternetValidated() local 219 if (mNetworkConnectionStates.contains(band)) { in onInternetValidated() 220 mNetworkConnectionStates.get(band).setValidated(true); in onInternetValidated() 234 final int band = findUnconnectedRequestBand(); in onInternetValidated() local 235 if (band != ScanResult.UNSPECIFIED) { in onInternetValidated() 237 mConnectionStatusListener.onStartScan(getRequestorWorkSource(band)); in onInternetValidated() 260 final int band = getSecondaryConnectedNetworkBand(); in onL3Connected() local [all …]
|
D | MultiInternetWifiNetworkFactory.java | 159 final int band = wns.getBand(); in acceptRequest() local 161 localLog("Accepted network request with specifier for band " + band); in acceptRequest() 172 final int band = wns.getBand(); in needNetworkFor() local 187 mNetworkRequestStates.put(band, nrs); in needNetworkFor() 193 if (mConnectionReqCount.contains(band)) { in needNetworkFor() 194 reqCount = mConnectionReqCount.get(band); in needNetworkFor() 198 + networkRequest.getRequestorPackageName() + " for band " + band in needNetworkFor() 202 band, new WorkSource(networkRequest.getRequestorUid(), in needNetworkFor() 205 mConnectionReqCount.put(band, reqCount + 1); in needNetworkFor() 214 final int band = ((WifiNetworkSpecifier) networkRequest.getNetworkSpecifier()).getBand(); in releaseNetworkFor() local [all …]
|
D | HostapdHalAidlImp.java | 636 @BandType int band, SoftApConfiguration config) { in prepareAcsChannelFreqRangesMhz() argument 638 if ((band & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 641 if ((band & SoftApConfiguration.BAND_5GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 644 if ((band & SoftApConfiguration.BAND_6GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 654 private List<FrequencyRange> toAcsFreqRanges(@BandType int band, SoftApConfiguration config) { in toAcsFreqRanges() argument 658 if (!ApConfigUtil.isBandValid(band) || ApConfigUtil.isMultiband(band)) { in toAcsFreqRanges() 659 Log.e(TAG, "Invalid band : " + band); in toAcsFreqRanges() 664 switch (band) { in toAcsFreqRanges() 681 allowedChannelList = ApConfigUtil.collectAllowedAcsChannels(band, oemConfig, in toAcsFreqRanges() 683 ? config.getAllowedAcsChannels(band) : new int[] {}); in toAcsFreqRanges() [all …]
|
D | HostapdHalHidlImp.java | 812 ifaceParamsV1_0.channelParams.band = getHalBand(config.getBand()); in prepareIfaceParamsV1_0() 823 ifaceParamsV10.channelParams.band = getHalBand(config.getBand()); in prepareIfaceParamsV1_1() 1034 @BandType int band, SoftApConfiguration config) { in prepareAcsChannelFreqRangesMhz() argument 1035 if ((band & SoftApConfiguration.BAND_2GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 1039 if ((band & SoftApConfiguration.BAND_5GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 1043 if ((band & SoftApConfiguration.BAND_6GHZ) != 0) { in prepareAcsChannelFreqRangesMhz() 1053 toAcsFreqRanges(@BandType int band, SoftApConfiguration config) { in toAcsFreqRanges() argument 1058 if (!ApConfigUtil.isBandValid(band) || ApConfigUtil.isMultiband(band)) { in toAcsFreqRanges() 1059 Log.e(TAG, "Invalid band : " + band); in toAcsFreqRanges() 1064 switch (band) { in toAcsFreqRanges() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/ |
D | CoexUtils.java | 150 private static int getChannelEdgeKhz(int channel, @WifiAnnotations.WifiBandBasic int band, in getChannelEdgeKhz() argument 152 int centerFreqMhz = ScanResult.convertChannelToFrequencyMhzIfSupported(channel, band); in getChannelEdgeKhz() 158 if (band == WIFI_BAND_24_GHZ) { in getChannelEdgeKhz() 160 } else if (band == WIFI_BAND_5_GHZ) { in getChannelEdgeKhz() 180 /* package */ static int getLowerFreqKhz(int channel, @WifiAnnotations.WifiBandBasic int band) { in getLowerFreqKhz() argument 181 return getChannelEdgeKhz(channel, band, true); in getLowerFreqKhz() 186 /* package */ static int getUpperFreqKhz(int channel, @WifiAnnotations.WifiBandBasic int band) { in getUpperFreqKhz() argument 187 return getChannelEdgeKhz(channel, band, false); in getUpperFreqKhz() 199 final int band = WIFI_BAND_24_GHZ; in get2gHighestOverlapChannel() local 200 if (upperEdgeKhz > getLowerFreqKhz(14, band)) { in get2gHighestOverlapChannel() [all …]
|
/packages/apps/Car/Radio/src/com/android/car/radio/bands/ |
D | AMFMProgramType.java | 61 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 …]
|
D | RegionConfig.java | 54 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 64 request.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in createRequest() 73 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest() argument 75 return createRequest(WifiScanner.SCAN_TYPE_HIGH_ACCURACY, band, period, 0, 0, in createRequest() 79 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest() argument 81 return createRequest(WifiScanner.SCAN_TYPE_HIGH_ACCURACY, band, period, 0, 0, batch, in createRequest() 88 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest() argument 92 request.band = band; in createRequest() 165 int period, int reportEvents, int band) { in addBucketWithBand() argument 168 bucket.band = band; in addBucketWithBand() 187 bucket.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in addBucketWithChannels() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SoftApConfiguration.java | 140 private static boolean isBandValid(@BandType int band) { in isBandValid() argument 142 return ((band != 0) && ((band & ~bandAny) == 0)); in isBandValid() 171 private static boolean isChannelBandPairValid(int channel, @BandType int band) { in isChannelBandPairValid() argument 172 switch (band) { in isChannelBandPairValid() 1053 public int[] getAllowedAcsChannels(@BandType int band) { in getAllowedAcsChannels() argument 1057 switch(band) { in getAllowedAcsChannels() 1065 throw new IllegalArgumentException("getAllowedAcsChannels: Invalid band: " + band); in getAllowedAcsChannels() 1556 public Builder setBand(@BandType int band) { in setBand() argument 1557 if (!isBandValid(band)) { in setBand() 1558 throw new IllegalArgumentException("Invalid band type: " + band); in setBand() [all …]
|
D | CoexUnsafeChannel.java | 56 public CoexUnsafeChannel(@WifiAnnotations.WifiBandBasic int band, int channel) { in CoexUnsafeChannel() argument 60 mBand = band; in CoexUnsafeChannel() 71 public CoexUnsafeChannel(@WifiAnnotations.WifiBandBasic int band, int channel, in CoexUnsafeChannel() argument 76 mBand = band; in CoexUnsafeChannel() 152 final int band = in.readInt(); 155 return new CoexUnsafeChannel(band, channel, powerCapDbm);
|
D | WifiNetworkSpecifier.java | 88 public static boolean validateBand(@WifiBand int band) { in validateBand() argument 89 switch (band) { in validateBand() 421 public @NonNull Builder setBand(@WifiBand int band) { in setBand() argument 422 if (!validateBand(band)) { in setBand() 423 throw new IllegalArgumentException("Unexpected band in setBand : " + band); in setBand() 425 mBand = band; in setBand() 669 @WifiBand int band, in WifiNetworkSpecifier() argument 677 this.mBand = band; in WifiNetworkSpecifier() 697 int band = in.readInt(); 699 return new WifiNetworkSpecifier(ssidPatternMatcher, bssidPatternMatcher, band,
|
D | SoftApCapability.java | 248 public boolean setSupportedChannelList(@BandType int band, in setSupportedChannelList() argument 251 switch (band) { in setSupportedChannelList() 265 throw new IllegalArgumentException("Invalid band: " + band); in setSupportedChannelList() 286 public int[] getSupportedChannelList(@BandType int band) { in getSupportedChannelList() argument 287 switch (band) { in getSupportedChannelList() 297 throw new IllegalArgumentException("Invalid band: " + band); in getSupportedChannelList()
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | ConfigRequest.java | 356 public Builder setDiscoveryWindowInterval(int band, int interval) { in setDiscoveryWindowInterval() argument 357 if (band != NAN_BAND_24GHZ && band != NAN_BAND_5GHZ && band != NAN_BAND_6GHZ) { in setDiscoveryWindowInterval() 360 if ((band == NAN_BAND_24GHZ && (interval < 1 || interval > 5)) in setDiscoveryWindowInterval() 361 || (band == NAN_BAND_5GHZ && (interval < 0 || interval > 5)) in setDiscoveryWindowInterval() 362 || (band == NAN_BAND_6GHZ && (interval < 0 || interval > 5))) { in setDiscoveryWindowInterval() 367 mDiscoveryWindowInterval[band] = interval; in setDiscoveryWindowInterval()
|
D | PublishConfig.java | 102 band, WifiAwareDataPathSecurityConfig securityConfig) { in PublishConfig() 111 mBand = band; in PublishConfig() 169 int band = in.readInt(); 175 band, securityConfig); 484 @WifiScanner.WifiBand int band) { in setInstantCommunicationModeEnabled() argument 488 if (band != WifiScanner.WIFI_BAND_24_GHZ && band != WifiScanner.WIFI_BAND_5_GHZ) { in setInstantCommunicationModeEnabled() 491 mBand = band; in setInstantCommunicationModeEnabled()
|
D | SubscribeConfig.java | 107 int maxDistanceMm, boolean enableInstantMode, @WifiScanner.WifiBand int band) { in SubscribeConfig() argument 119 mBand = band; in SubscribeConfig() 183 int band = in.readInt(); 187 maxDistanceMm, enableInstantMode, band); 556 @WifiScanner.WifiBand int band) { in setInstantCommunicationModeEnabled() argument 560 if (band != WifiScanner.WIFI_BAND_24_GHZ && band != WifiScanner.WIFI_BAND_5_GHZ) { in setInstantCommunicationModeEnabled() 563 mBand = band; in setInstantCommunicationModeEnabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherMaximizeCompatibilityPreferenceController.java | 103 final int band = config.getBand(); in isMaximizeCompatibilityEnabled() local 104 Log.d(TAG, "getBand:" + band); in isMaximizeCompatibilityEnabled() 105 return band == SoftApConfiguration.BAND_2GHZ; in isMaximizeCompatibilityEnabled() 130 int band = enabled in setupMaximizeCompatibility() local 133 Log.d(TAG, "setBand:" + band); in setupMaximizeCompatibility() 134 builder.setBand(band); in setupMaximizeCompatibility()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiFrequencyPreferenceController.java | 52 String band = null; in updateState() local 54 band = getContext().getResources().getString(R.string.wifi_band_24ghz); in updateState() 56 band = getContext().getResources().getString(R.string.wifi_band_5ghz); in updateState() 62 preference.setDetailText(band); in updateState()
|
/packages/apps/Car/systemlibs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/ |
D | BrowseTree.java | 204 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()
|