Loading bluetooth/audio/2.2/IBluetoothAudioProvider.hal +8 −0 Original line number Diff line number Diff line Loading @@ -69,4 +69,12 @@ interface IBluetoothAudioProvider extends @2.1::IBluetoothAudioProvider { * encoding. */ updateAudioConfiguration(AudioConfiguration audioConfig); /** * Called when the supported latency mode is updated. * * @param allowed If the peripheral devices can't keep up with low latency * mode, the API will be called with supported is false. */ setLowLatencyModeAllowed(bool allowed); }; bluetooth/audio/2.2/default/BluetoothAudioProvider.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -209,6 +209,18 @@ Return<void> BluetoothAudioProvider::updateAudioConfiguration( return Void(); } Return<void> BluetoothAudioProvider::setLowLatencyModeAllowed(bool allowed) { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_); if (stack_iface_ == nullptr) { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_) << " has NO session"; return Void(); } LOG(INFO) << __func__ << " allowed: " << allowed; return Void(); } } // namespace implementation } // namespace V2_2 } // namespace audio Loading bluetooth/audio/2.2/default/BluetoothAudioProvider.h +2 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ class BluetoothAudioProvider : public IBluetoothAudioProvider { Return<void> updateAudioConfiguration( const AudioConfiguration& audioConfig) override; Return<void> setLowLatencyModeAllowed(bool allowed) override; protected: sp<BluetoothAudioDeathRecipient> death_recipient_; Loading Loading
bluetooth/audio/2.2/IBluetoothAudioProvider.hal +8 −0 Original line number Diff line number Diff line Loading @@ -69,4 +69,12 @@ interface IBluetoothAudioProvider extends @2.1::IBluetoothAudioProvider { * encoding. */ updateAudioConfiguration(AudioConfiguration audioConfig); /** * Called when the supported latency mode is updated. * * @param allowed If the peripheral devices can't keep up with low latency * mode, the API will be called with supported is false. */ setLowLatencyModeAllowed(bool allowed); };
bluetooth/audio/2.2/default/BluetoothAudioProvider.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -209,6 +209,18 @@ Return<void> BluetoothAudioProvider::updateAudioConfiguration( return Void(); } Return<void> BluetoothAudioProvider::setLowLatencyModeAllowed(bool allowed) { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_); if (stack_iface_ == nullptr) { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_) << " has NO session"; return Void(); } LOG(INFO) << __func__ << " allowed: " << allowed; return Void(); } } // namespace implementation } // namespace V2_2 } // namespace audio Loading
bluetooth/audio/2.2/default/BluetoothAudioProvider.h +2 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ class BluetoothAudioProvider : public IBluetoothAudioProvider { Return<void> updateAudioConfiguration( const AudioConfiguration& audioConfig) override; Return<void> setLowLatencyModeAllowed(bool allowed) override; protected: sp<BluetoothAudioDeathRecipient> death_recipient_; Loading