Loading system/binder/android/bluetooth/BufferConstraints.aidl 0 → 100644 +3 −0 Original line number Diff line number Diff line package android.bluetooth; parcelable BufferConstraints; system/binder/android/bluetooth/IBluetoothA2dp.aidl +4 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.bluetooth; import android.bluetooth.BluetoothCodecConfig; import android.bluetooth.BluetoothCodecStatus; import android.bluetooth.BluetoothDevice; import android.bluetooth.BufferConstraints; /** * APIs for Bluetooth A2DP service Loading Loading @@ -52,5 +53,8 @@ interface IBluetoothA2dp { int supportsOptionalCodecs(in BluetoothDevice device); int getOptionalCodecsEnabled(in BluetoothDevice device); oneway void setOptionalCodecsEnabled(in BluetoothDevice device, int value); int getDynamicBufferSupport(); BufferConstraints getBufferConstraints(); boolean setBufferMillis(int codec, int size); int getPriority(in BluetoothDevice device); } system/btif/include/btif_a2dp_source.h +4 −0 Original line number Diff line number Diff line Loading @@ -126,4 +126,8 @@ BT_HDR* btif_a2dp_source_audio_readbuf(void); // information. void btif_a2dp_source_debug_dump(int fd); // Set the dynamic audio buffer size void btif_a2dp_source_set_dynamic_audio_buffer_size( uint8_t dynamic_audio_buffer_size); #endif /* BTIF_A2DP_SOURCE_H */ system/btif/include/btif_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -378,4 +378,15 @@ bt_status_t btif_config_hci_snoop_log(uint8_t enable); ******************************************************************************/ void btif_debug_bond_event_dump(int fd); /******************************************************************************* * * Function btif_set_dynamic_audio_buffer_size * * Description Set dynamic audio buffer size * * Returns BT_STATUS_SUCCESS on success * ******************************************************************************/ bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size); #endif /* BTIF_API_H */ system/btif/include/btif_av.h +7 −0 Original line number Diff line number Diff line Loading @@ -216,4 +216,11 @@ bool btif_av_is_a2dp_offload_running(void); */ bool btif_av_is_peer_silenced(const RawAddress& peer_address); /** * Set the dynamic audio buffer size * * @param dynamic_audio_buffer_size to set */ void btif_av_set_dynamic_audio_buffer_size(uint8_t dynamic_audio_buffer_size); #endif /* BTIF_AV_H */ Loading
system/binder/android/bluetooth/BufferConstraints.aidl 0 → 100644 +3 −0 Original line number Diff line number Diff line package android.bluetooth; parcelable BufferConstraints;
system/binder/android/bluetooth/IBluetoothA2dp.aidl +4 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.bluetooth; import android.bluetooth.BluetoothCodecConfig; import android.bluetooth.BluetoothCodecStatus; import android.bluetooth.BluetoothDevice; import android.bluetooth.BufferConstraints; /** * APIs for Bluetooth A2DP service Loading Loading @@ -52,5 +53,8 @@ interface IBluetoothA2dp { int supportsOptionalCodecs(in BluetoothDevice device); int getOptionalCodecsEnabled(in BluetoothDevice device); oneway void setOptionalCodecsEnabled(in BluetoothDevice device, int value); int getDynamicBufferSupport(); BufferConstraints getBufferConstraints(); boolean setBufferMillis(int codec, int size); int getPriority(in BluetoothDevice device); }
system/btif/include/btif_a2dp_source.h +4 −0 Original line number Diff line number Diff line Loading @@ -126,4 +126,8 @@ BT_HDR* btif_a2dp_source_audio_readbuf(void); // information. void btif_a2dp_source_debug_dump(int fd); // Set the dynamic audio buffer size void btif_a2dp_source_set_dynamic_audio_buffer_size( uint8_t dynamic_audio_buffer_size); #endif /* BTIF_A2DP_SOURCE_H */
system/btif/include/btif_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -378,4 +378,15 @@ bt_status_t btif_config_hci_snoop_log(uint8_t enable); ******************************************************************************/ void btif_debug_bond_event_dump(int fd); /******************************************************************************* * * Function btif_set_dynamic_audio_buffer_size * * Description Set dynamic audio buffer size * * Returns BT_STATUS_SUCCESS on success * ******************************************************************************/ bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size); #endif /* BTIF_API_H */
system/btif/include/btif_av.h +7 −0 Original line number Diff line number Diff line Loading @@ -216,4 +216,11 @@ bool btif_av_is_a2dp_offload_running(void); */ bool btif_av_is_peer_silenced(const RawAddress& peer_address); /** * Set the dynamic audio buffer size * * @param dynamic_audio_buffer_size to set */ void btif_av_set_dynamic_audio_buffer_size(uint8_t dynamic_audio_buffer_size); #endif /* BTIF_AV_H */