Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3354f9ed authored by Myles Watson's avatar Myles Watson
Browse files

btif: Fixup clang-format

In src/btif_sock_l2cap.cc:
Move a comment before the define and run clang-format again.

Fix formatting in comments that were more than 80-characters wide.

Test: mma -j32
Change-Id: I17465a1425d1de9a28f0675fe65c8529359a87af
parent 3f68a751
Loading
Loading
Loading
Loading
+10 −14
Original line number Diff line number Diff line
@@ -43,17 +43,16 @@ void bta_ag_co_init(void) { BTM_WriteVoiceSettings(AG_VOICE_SETTINGS); }
 * Function         bta_ag_co_audio_state
 *
 * Description      This function is called by the AG before the audio
 *connection
 *                  is brought up, after it comes up, and after it goes down.
 *                  connection is brought up, after it comes up, and
 *                  after it goes down.
 *
 * Parameters       handle - handle of the AG instance
 *                  state - Audio state
 *                  codec - if WBS support is compiled in, codec to going to be
 *used is provided
 *                      and when in SCO_STATE_SETUP, BTM_I2SPCMConfig() must be
 *called with
 *                      the correct platform parameters.
 *                      in the other states codec type should not be ignored
 *                      used is provided and when in SCO_STATE_SETUP,
 *                      BTM_I2SPCMConfig() must be called with the correct
 *                      platform parameters.
 *                      In the other states, codec type should not be ignored.
 *
 * Returns          void
 *
@@ -108,12 +107,10 @@ void bta_ag_co_audio_state(uint16_t handle, uint8_t app_id, uint8_t state)
 * Function         bta_ag_co_data_open
 *
 * Description      This function is executed by AG when a service level
 *connection
 *                  is opened.  The phone can use this function to set
 *                  up data paths or perform any required initialization or
 *                  connection is opened.  The phone can use this function to
 *                  set up data paths or perform any required initialization or
 *                  set up particular to the connected service.
 *
 *
 * Returns          void
 *
 ******************************************************************************/
@@ -142,9 +139,8 @@ void bta_ag_co_data_close(uint16_t handle) {
 **
 ** Description      This function is called by the AG to send data to the
 **                  phone when the AG is configured for AT command
 *pass-through.
 **                  The implementation of this function must copy the data to
 **                  the phones memory.
 **                  pass-through. The implementation of this function must copy
 **                  the data to the phones memory.
 **
 ** Returns          void
 **
+10 −14
Original line number Diff line number Diff line
@@ -494,8 +494,7 @@ tA2DP_STATUS bta_av_co_audio_getconfig(tBTA_AV_HNDL hndl, uint8_t* p_codec_info,
 ** Function         bta_av_co_audio_setconfig
 **
 ** Description      This callout function is executed by AV to set the codec
 *and
 **                  content protection configuration of the audio stream.
 **                  and content protection configuration of the audio stream.
 **
 **
 ** Returns          void
@@ -614,8 +613,7 @@ void bta_av_co_audio_setconfig(tBTA_AV_HNDL hndl, const uint8_t* p_codec_info,
 ** Function         bta_av_co_audio_open
 **
 ** Description      This function is called by AV when the audio stream
 *connection
 **                  is opened.
 **                  connection is opened.
 **
 **
 ** Returns          void
@@ -643,8 +641,7 @@ void bta_av_co_audio_open(tBTA_AV_HNDL hndl, uint8_t* p_codec_info,
 ** Function         bta_av_co_audio_close
 **
 ** Description      This function is called by AV when the audio stream
 *connection
 **                  is closed.
 **                  connection is closed.
 **
 **
 ** Returns          void
@@ -711,7 +708,7 @@ void bta_av_co_audio_stop(UNUSED_ATTR tBTA_AV_HNDL hndl) {
 **                  the audio codec to AVDTP.
 **
 ** Returns          Pointer to the GKI buffer to send, NULL if no buffer to
 *send
 **                  send
 **
 *******************************************************************************/
void* bta_av_co_audio_src_data_path(const uint8_t* p_codec_info,
@@ -756,9 +753,9 @@ void* bta_av_co_audio_src_data_path(const uint8_t* p_codec_info,
 **
 ** Description      An Audio packet is dropped. .
 **                  It's very likely that the connected headset with this
 *handle
 **                  is moved far away. The implementation may want to reduce
 **                  the encoder bit rate setting to reduce the packet size.
 **                  handle is moved far away. The implementation may want to
 **                  reduce the encoder bit rate setting to reduce the packet
 **                  size.
 **
 ** Returns          void
 **
@@ -772,9 +769,8 @@ void bta_av_co_audio_drop(tBTA_AV_HNDL hndl) {
 ** Function         bta_av_co_audio_delay
 **
 ** Description      This function is called by AV when the audio stream
 *connection
 **                  needs to send the initial delay report to the connected
 *SRC.
 **                  connection needs to send the initial delay report to the
 **                  connected SRC.
 **
 **
 ** Returns          void
@@ -915,7 +911,7 @@ static const tBTA_AV_CO_SINK* bta_av_co_find_peer_src_supports_codec(
 **                  configuration and content protection
 **
 ** Returns          true if all opened devices support this codec, false
 *otherwise
 **                  otherwise
 **
 *******************************************************************************/
static bool bta_av_co_audio_codec_supported(void) {
+13 −16
Original line number Diff line number Diff line
@@ -64,8 +64,8 @@ bool bta_dm_co_get_compress_memory(tBTA_SYS_ID id, uint8_t** memory_p,
 * Function         bta_dm_co_io_req
 *
 * Description      This callout function is executed by DM to get IO
 *capabilities
 *                  of the local device for the Simple Pairing process
 *                  capabilities of the local device for the Simple Pairing
 *                  process.
 *
 * Parameters       bd_addr  - The peer device
 *                  *p_io_cap - The local Input/Output capabilities
@@ -93,8 +93,8 @@ void bta_dm_co_io_req(BD_ADDR bd_addr, tBTA_IO_CAP* p_io_cap,
 * Function         bta_dm_co_io_rsp
 *
 * Description      This callout function is executed by DM to report IO
 *capabilities
 *                  of the peer device for the Simple Pairing process
 *                  capabilities of the peer device for the Simple Pairing
 *                  process.
 *
 * Parameters       bd_addr  - The peer device
 *                  io_cap - The remote Input/Output capabilities
@@ -198,8 +198,7 @@ static void btui_sco_codec_callback(uint16_t event, uint16_t sco_handle) {
 *
 * Description      This function can be used by the phone to initialize audio
 *                  codec or for other initialization purposes before SCO
 *connection
 *                  is opened.
 *                  connection is opened.
 *
 *
 * Returns          tBTA_DM_SCO_ROUTE_TYPE: SCO routing configuration type.
@@ -346,8 +345,7 @@ void bta_dm_co_le_io_key_req(BD_ADDR bd_addr, uint8_t* p_max_key_size,
 * Function         bta_dm_co_ble_local_key_reload
 *
 * Description      This callout function is to load the local BLE keys if
 *available
 *                  on the device.
 *                  available on the device.
 *
 * Parameters       none
 *
@@ -369,8 +367,7 @@ void bta_dm_co_ble_load_local_keys(tBTA_DM_BLE_LOCAL_KEY_MASK* p_key_mask,
 * Function         bta_dm_co_ble_io_req
 *
 * Description      This callout function is executed by DM to get BLE IO
 *capabilities
 *                  before SMP pairing gets going.
 *                  capabilities before SMP pairing gets going.
 *
 * Parameters       bd_addr  - The peer device
 *                  *p_io_cap - The local Input/Output capabilities
+4 −7
Original line number Diff line number Diff line
@@ -93,8 +93,7 @@ void btif_gatts_add_bonded_dev_from_nv(BD_ADDR bda) {
 * Function         bta_gatts_co_update_handle_range
 *
 * Description      This callout function is executed by GATTS when a GATT
 *server
 *                  handle range ios to be added or removed.
 *                  server handle range ios to be added or removed.
 *
 * Parameter        is_add: true is to add a handle range; otherwise is to
 *                          delete.
@@ -115,8 +114,7 @@ void bta_gatts_co_update_handle_range(bool is_add,
 *
 * Description      This call-out is to read/write/remove service change related
 *                  informaiton. The request consists of the cmd and p_req and
 *the
 *                  response is returned in p_rsp
 *                  the response is returned in p_rsp
 *
 * Parameter        cmd - request command
 *                  p_req - request paramters
@@ -142,8 +140,7 @@ bool bta_gatts_co_srv_chg(tBTA_GATTS_SRV_CHG_CMD cmd,
 * Function         bta_gatts_co_load_handle_range
 *
 * Description      This callout function is executed by GATTS when a GATT
 *server
 *                  handle range is requested to be loaded from NV.
 *                  server handle range is requested to be loaded from NV.
 *
 * Parameter
 *
+5 −7
Original line number Diff line number Diff line
@@ -390,8 +390,7 @@ void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) {
 * Function         bta_hh_co_data
 *
 * Description      This function is executed by BTA when HID host receive a
 *data
 *                  report.
 *                  data report.
 *
 * Parameters       dev_handle  - device handle
 *                  *p_rpt      - pointer to the report data
@@ -552,10 +551,9 @@ void bta_hh_le_co_rpt_info(BD_ADDR remote_bda, tBTA_HH_RPT_CACHE_ENTRY* p_entry,
 * Function         bta_hh_le_co_cache_load
 *
 * Description      This callout function is to request the application to load
 *the
 *                  cached HOGP report if there is any. When cache reading is
 *completed,
 *                  bta_hh_le_ci_cache_load() is called by the application.
 *                  the cached HOGP report if there is any. When cache reading
 *                  is completed, bta_hh_le_ci_cache_load() is called by the
 *                  application.
 *
 * Parameters       remote_bda  - remote device address
 *                  p_num_rpt: number of cached report
Loading