Home
last modified time | relevance | path

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

12

/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.java170 int sampleRate = sampleRates[0]; in getMaxSampleRate() local
172 if (sampleRates[i] > sampleRate) { in getMaxSampleRate()
173 sampleRate = sampleRates[i]; in getMaxSampleRate()
176 return sampleRate; in getMaxSampleRate()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DBluetoothSampleRateDialogPreferenceController.java102 for (int sampleRate : SAMPLE_RATES) { in getSelectableIndex()
103 if ((configs & sampleRate) != 0) { in getSelectableIndex()
104 selectableIndex.add(convertCfgToBtnIndex(sampleRate)); in getSelectableIndex()
/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/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioDeviceInfoTest.java119 int sampleRate = info.getSampleRate(); in getSampleRate_withMultipleSampleRates_returnsMax() local
121 assertThat(sampleRate).isEqualTo(96000); in getSampleRate_withMultipleSampleRates_returnsMax()
130 int sampleRate = info.getSampleRate(); in getSampleRate_withNullSampleRate_returnsDefault() local
132 assertThat(sampleRate).isEqualTo(CarAudioDeviceInfo.DEFAULT_SAMPLE_RATE); in getSampleRate_withNullSampleRate_returnsDefault()
/packages/services/Car/vehicle-hal-support-lib/test/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()
/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.java555 private void onAudioConfigChanged(byte[] address, int sampleRate, int channelCount) { in onAudioConfigChanged() argument
556 StackEvent event = StackEvent.audioConfigChanged(getAnonymousDevice(address), sampleRate, in onAudioConfigChanged()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java372 opts.sampleRate = samplingRateHz; in subscribeProperty()
556 return opts.sampleRate; in getSampleRate()
816 float sampleRate, long timeDurationInSec) { in injectContinuousVhalEvent() argument
824 if (sampleRate <= 0) { in injectContinuousVhalEvent()
825 Slog.e(CarLog.TAG_HAL, "Inject events at an invalid sample rate: " + sampleRate); in injectContinuousVhalEvent()
828 long period = (long) (1000 / sampleRate); in injectContinuousVhalEvent()
/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()
DCarPropertyServiceTest.java133 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
137 + property + " sampleRate " + sampleRate); in onPropertySubscribe()
DCarCabinManagerTest.java196 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
197 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
DCarHvacManagerTest.java282 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
283 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
DCarPropertyManagerTest.java810 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
812 + property + " sampleRate " + sampleRate); in onPropertySubscribe()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyListAdapter.java168 void addPropertySelectedSampleRate(Integer propId, Float sampleRate) { in addPropertySelectedSampleRate() argument
169 mPropSampleRate.put(propId, sampleRate); in addPropertySelectedSampleRate()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DFileSampleExtractor.java150 int sampleRate = in createFormat() local
174 sampleRate, in createFormat()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java302 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
303 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
/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/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java124 expectedOptions.sampleRate = ANY_SAMPLING_RATE; in testSubscribeProperty_registeringReadWriteAndOnChangeProperty()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java2050 String sampleRate = PARAM_INJECT_EVENT_DEFAULT_RATE;
2064 sampleRate = args[++i];
2073 float sampleRateFloat = Float.parseFloat(sampleRate);
2076 + "SampleRate must be greater than 0.\n", sampleRate);
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java399 public void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument

12