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

Commit 1c161365 authored by Chris Manton's avatar Chris Manton
Browse files

Add API check_cod_hid

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I81a5f03cf3b4a200076acae0c61025ac2734131c
parent ac77df2a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -105,4 +105,5 @@ void btif_dm_update_ble_remote_properties(const RawAddress& bd_addr,
                                          BD_NAME bd_name,
                                          tBT_DEVICE_TYPE dev_type);

bool check_cod_hid(const RawAddress& bd_addr);
#endif
+4 −0
Original line number Diff line number Diff line
@@ -394,6 +394,10 @@ bool check_cod_hid(const RawAddress* remote_bdaddr) {
  return (get_cod(remote_bdaddr) & COD_HID_MASK) == COD_HID_MAJOR;
}

bool check_cod_hid(const RawAddress& bd_addr) {
  return (get_cod(&bd_addr) & COD_HID_MASK) == COD_HID_MAJOR;
}

/*****************************************************************************
 *
 * Function        check_sdp_bl
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@

extern bool bta_dm_check_if_only_hd_connected(const RawAddress& peer_addr);
extern bool check_cod_hid(const RawAddress* remote_bdaddr);
extern bool check_cod_hid(const RawAddress& bd_addr);
extern void btif_hh_service_registration(bool enable);

/* HD request events */
+4 −0
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@ bool check_cod_hid(const RawAddress* remote_bdaddr) {
  mock_function_count_map[__func__]++;
  return false;
}
bool check_cod_hid(const RawAddress& remote_bdaddr) {
  mock_function_count_map[__func__]++;
  return false;
}
bool check_sdp_bl(const RawAddress* remote_bdaddr) {
  mock_function_count_map[__func__]++;
  return false;
+4 −0
Original line number Diff line number Diff line
@@ -49,6 +49,10 @@ bool check_cod_hid(const RawAddress* remote_bdaddr) {
  mock_function_count_map[__func__]++;
  return false;
}
bool check_cod_hid(const RawAddress& remote_bdaddr) {
  mock_function_count_map[__func__]++;
  return false;
}
bool check_sdp_bl(const RawAddress* remote_bdaddr) {
  mock_function_count_map[__func__]++;
  return false;