Loading system/audio_hal_interface/a2dp_encoding.cc +10 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,16 @@ void set_audio_low_latency_mode_allowed(bool allowed) { } } // Check if OPUS codec is supported bool is_opus_supported() { // OPUS codec was added after HIDL HAL was frozen if (HalVersionManager::GetHalTransport() == BluetoothAudioHalTransport::AIDL) { return true; } return false; } } // namespace a2dp } // namespace audio } // namespace bluetooth system/audio_hal_interface/a2dp_encoding.h +3 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ size_t read(uint8_t* p_buf, uint32_t len); // Update A2DP delay report to BluetoothAudio HAL void set_remote_delay(uint16_t delay_report); // Check whether OPUS is supported bool is_opus_supported(); } // namespace a2dp } // namespace audio } // namespace bluetooth system/audio_hal_interface/a2dp_encoding_host.cc +3 −0 Original line number Diff line number Diff line Loading @@ -272,6 +272,9 @@ size_t read(uint8_t* p_buf, uint32_t len) { return bytes_read; } // Check if OPUS codec is supported bool is_opus_supported() { return true; } } // namespace a2dp } // namespace audio } // namespace bluetooth system/audio_hal_interface/a2dp_encoding_host.h +2 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ struct PresentationPosition { // Invoked by audio server to check audio presentation position periodically. PresentationPosition GetPresentationPosition(); bool is_opus_supported(); } // namespace a2dp } // namespace audio } // namespace bluetooth system/stack/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -618,6 +618,9 @@ cc_test { "fluoride_defaults", "mts_defaults", ], cflags: [ "-DUNIT_TESTS", ], test_suites: ["device-tests"], host_supported: true, test_options: { Loading Loading
system/audio_hal_interface/a2dp_encoding.cc +10 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,16 @@ void set_audio_low_latency_mode_allowed(bool allowed) { } } // Check if OPUS codec is supported bool is_opus_supported() { // OPUS codec was added after HIDL HAL was frozen if (HalVersionManager::GetHalTransport() == BluetoothAudioHalTransport::AIDL) { return true; } return false; } } // namespace a2dp } // namespace audio } // namespace bluetooth
system/audio_hal_interface/a2dp_encoding.h +3 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ size_t read(uint8_t* p_buf, uint32_t len); // Update A2DP delay report to BluetoothAudio HAL void set_remote_delay(uint16_t delay_report); // Check whether OPUS is supported bool is_opus_supported(); } // namespace a2dp } // namespace audio } // namespace bluetooth
system/audio_hal_interface/a2dp_encoding_host.cc +3 −0 Original line number Diff line number Diff line Loading @@ -272,6 +272,9 @@ size_t read(uint8_t* p_buf, uint32_t len) { return bytes_read; } // Check if OPUS codec is supported bool is_opus_supported() { return true; } } // namespace a2dp } // namespace audio } // namespace bluetooth
system/audio_hal_interface/a2dp_encoding_host.h +2 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ struct PresentationPosition { // Invoked by audio server to check audio presentation position periodically. PresentationPosition GetPresentationPosition(); bool is_opus_supported(); } // namespace a2dp } // namespace audio } // namespace bluetooth
system/stack/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -618,6 +618,9 @@ cc_test { "fluoride_defaults", "mts_defaults", ], cflags: [ "-DUNIT_TESTS", ], test_suites: ["device-tests"], host_supported: true, test_options: { Loading