Home
last modified time | relevance | path

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

/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java197 int sampleRate = BluetoothCodecConfig.SAMPLE_RATE_NONE; in processParameters() local
279 sampleRate = Integer.valueOf(tmpStr); in processParameters()
320 || sampleRate == BluetoothCodecConfig.SAMPLE_RATE_NONE in processParameters()
330 if (!setCodecValue(codecType, sampleRate, bitsPerSample, channelMode, in processParameters()
446 private boolean setCodecValue(int codecType, int sampleRate, int bitsPerSample, in setCodecValue() argument
449 Log.d(TAG, "SetCodecValue: Codec Type: " + codecType + " sampleRate: " + sampleRate in setCodecValue()
455 sampleRate, bitsPerSample, channelMode, in setCodecValue()
486 if (verifyCodeConfig(codecType, sampleRate, in setCodecValue()
496 if (!verifyCodeConfig(codecType, sampleRate, in setCodecValue()
512 private boolean verifyCodeConfig(int codecType, int sampleRate, int bitsPerSample, in verifyCodeConfig() argument
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java171 int sampleRate = sampleRates[0]; in getMaxSampleRate() local
173 if (sampleRates[i] > sampleRate) { in getMaxSampleRate()
174 sampleRate = sampleRates[i]; in getMaxSampleRate()
177 return sampleRate; in getMaxSampleRate()
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java198 int sampleRate = track.getAudioSampleRate();
199 if (sampleRate > 0) {
203 int integerPart = sampleRate / 1000;
204 int tenths = (sampleRate % 1000) / 100;
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java52 default void onPropertySubscribe(int property, float sampleRate) {} in onPropertySubscribe() argument
186 handler.onPropertySubscribe(opt.propId, opt.sampleRate); in subscribe()
242 public void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
290 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothA2dpConfigStore.java45 public void setSampleRate(int sampleRate) { in setSampleRate() argument
46 mSampleRate = sampleRate; in setSampleRate()
DBluetoothAudioSampleRatePreferenceController.java87 final int sampleRate = config.getSampleRate(); in getCurrentA2dpSettingIndex() local
89 switch (sampleRate) { in getCurrentA2dpSettingIndex()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DBluetoothA2dpConfigStore.java45 public void setSampleRate(int sampleRate) { in setSampleRate() argument
46 mSampleRate = sampleRate; in setSampleRate()
DBluetoothAudioSampleRatePreferenceController.java87 final int sampleRate = config.getSampleRate(); in getCurrentA2dpSettingIndex() local
89 switch (sampleRate) { in getCurrentA2dpSettingIndex()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DStackEvent.java76 static StackEvent audioConfigChanged(BluetoothDevice device, int sampleRate, in audioConfigChanged() argument
80 event.mSampleRate = sampleRate; in audioConfigChanged()
DA2dpSinkService.java506 private void onAudioConfigChanged(byte[] address, int sampleRate, int channelCount) { in onAudioConfigChanged() argument
507 StackEvent event = StackEvent.audioConfigChanged(getDevice(address), sampleRate, in onAudioConfigChanged()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackWrapper.java118 int sampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); in reconfigure() local
140 mAudioTrack.configure(mimeType, channelCount, sampleRate, pcmEncoding, audioBufferSize); in reconfigure()
/packages/apps/TV/tuner/src/com/google/android/exoplayer/
DMediaFormatUtil.java41 int sampleRate = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_SAMPLE_RATE); in createMediaFormat() local
70 sampleRate, in createMediaFormat()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarProjectionManagerTest.java177 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
178 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
DCarCabinManagerTest.java194 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
195 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
DCarHvacManagerTest.java232 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
233 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
DCarPowerManagementTest.java365 public void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
DCarDiagnosticManagerTest.java142 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DFileSampleExtractor.java150 int sampleRate = in createFormat() local
174 sampleRate, in createFormat()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_a2dp.cpp254 jint sampleRate = env->CallIntMethod( in prepareCodecPreferences() local
273 .sample_rate = static_cast<btav_a2dp_codec_sample_rate_t>(sampleRate), in prepareCodecPreferences()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java669 int sampleRate, int bitsPerSample, int channelMode, boolean invokeNative) { in testCodecParametersChangeHelper() argument
675 sampleRate, bitsPerSample, channelMode, in testCodecParametersChangeHelper()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java263 opts.sampleRate = samplingRateHz; in subscribeProperty()
387 return opts.sampleRate; in getSampleRate()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java214 format.sampleRate, in convertFormat()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunkIoHelper.java261 mediaFormat.setInteger(MediaFormat.KEY_SAMPLE_RATE, format.sampleRate); in getAudioMediaFormat()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java1551 builder.setAudioSampleRate(infoFromPlayer.sampleRate); in notifyAudioTracksUpdated()
DTunerSessionWorker.java1630 builder.setAudioSampleRate(infoFromPlayer.sampleRate); in notifyAudioTracksUpdated()