Home
last modified time | relevance | path

Searched refs:codecConfig (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java130 BluetoothCodecConfig codecConfig = codecConfigArray[i]; in enableOptionalCodecs() local
131 if (!codecConfig.isMandatoryCodec()) { in enableOptionalCodecs()
151 BluetoothCodecConfig codecConfig = codecConfigArray[i]; in disableOptionalCodecs() local
152 if (codecConfig.isMandatoryCodec()) { in disableOptionalCodecs()
153 codecConfig.setCodecPriority(BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST); in disableOptionalCodecs()
162 private int getPrioitizedCodecType(BluetoothCodecConfig codecConfig, in getPrioitizedCodecType() argument
164 BluetoothCodecConfig prioritizedCodecConfig = codecConfig; in getPrioitizedCodecType()
234 BluetoothCodecConfig codecConfig; in assignCodecConfigPriorities() local
237 codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC, in assignCodecConfigPriorities()
242 codecConfigArray[0] = codecConfig; in assignCodecConfigPriorities()
[all …]
DA2dpService.java728 BluetoothCodecConfig codecConfig) { in setCodecConfigPreference() argument
732 + Objects.toString(codecConfig)); in setCodecConfigPreference()
741 if (codecConfig == null) { in setCodecConfigPreference()
750 mA2dpCodecConfig.setCodecConfigPreference(device, codecStatus, codecConfig); in setCodecConfigPreference()
916 BluetoothCodecConfig codecConfig = codecStatus.getCodecConfig(); in codecConfigUpdated() local
919 mAdapterService.obfuscateAddress(device), codecConfig.getCodecType(), in codecConfigUpdated()
920 codecConfig.getCodecPriority(), codecConfig.getSampleRate(), in codecConfigUpdated()
921 codecConfig.getBitsPerSample(), codecConfig.getChannelMode(), in codecConfigUpdated()
922 codecConfig.getCodecSpecific1(), codecConfig.getCodecSpecific2(), in codecConfigUpdated()
923 codecConfig.getCodecSpecific3(), codecConfig.getCodecSpecific4(), metricId); in codecConfigUpdated()
[all …]
DA2dpStateMachine.java632 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent()
634 Log.d(TAG, "A2DP Codec Local Capability: " + codecConfig); in processCodecConfigEvent()
636 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent()
638 Log.d(TAG, "A2DP Codec Selectable Capability: " + codecConfig); in processCodecConfigEvent()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java401 BluetoothCodecConfig codecConfig = null; in getCodecValue() local
413 codecConfig = codecStatus.getCodecConfig(); in getCodecValue()
418 if (codecConfig == null) return null; in getCodecValue()
420 Log.d(TAG, "GetCodecValue: " + codecConfig.toString()); in getCodecValue()
432 return codecConfig; in getCodecValue()
453 BluetoothCodecConfig codecConfig = in setCodecValue() local
479 mBluetoothA2dp.setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in setCodecValue() local
514 BluetoothCodecConfig codecConfig = null; in verifyCodeConfig() local
515 codecConfig = getCodecValue(false); in verifyCodeConfig()
516 if (codecConfig == null) return false; in verifyCodeConfig()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java633 for (BluetoothCodecConfig codecConfig : sDefaultCodecConfigs) { in getDefaultCodecConfigByType()
634 if (codecConfig.getCodecType() != codecType) { in getDefaultCodecConfigByType()
638 codecConfig.getCodecType(), in getDefaultCodecConfigByType()
640 ? codecPriority : codecConfig.getCodecPriority()), in getDefaultCodecConfigByType()
641 codecConfig.getSampleRate(), codecConfig.getBitsPerSample(), in getDefaultCodecConfigByType()
642 codecConfig.getChannelMode(), codecConfig.getCodecSpecific1(), in getDefaultCodecConfigByType()
643 codecConfig.getCodecSpecific2(), codecConfig.getCodecSpecific3(), in getDefaultCodecConfigByType()
644 codecConfig.getCodecSpecific4()); in getDefaultCodecConfigByType()
DA2dpServiceTest.java585 BluetoothCodecConfig codecConfig = codecConfigSbc; in testProcessAudioStateChangedCodecConfigChangedEvents() local
590 BluetoothCodecStatus codecStatus = new BluetoothCodecStatus(codecConfig, in testProcessAudioStateChangedCodecConfigChangedEvents()
/packages/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java83 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() local
90 setCodecConfigPreference(activeDevice, codecConfig); in onPreferenceChange()
114 BluetoothCodecConfig codecConfig; in updateState() local
116 codecConfig = getCodecConfig(activeDevice); in updateState()
119 final int index = getCurrentA2dpSettingIndex(codecConfig); in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DAbstractBluetoothA2dpPreferenceController.java83 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() local
88 setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in onPreferenceChange() local
116 BluetoothCodecConfig codecConfig; in updateState() local
118 codecConfig = getCodecConfig(activeDevice); // Use current active device in updateState()
121 final int index = getCurrentA2dpSettingIndex(codecConfig); in updateState()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothDialogPreferenceController.java82 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onIndexUpdated() local
85 bluetoothA2dp.setCodecConfigPreference(activeDevice, codecConfig); in onIndexUpdated()
93 final BluetoothCodecConfig codecConfig = getCurrentCodecConfig(); in getCurrentConfigIndex() local
94 if (codecConfig == null) { in getCurrentConfigIndex()
98 return getCurrentIndexByConfig(codecConfig); in getCurrentConfigIndex()