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

Commit 308a3b66 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Use get_btm_client_interface().eir.BTM_GetEirUuidList

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

Change-Id: If9786b4befaa3bfa69a0ec2c4bcb7ed40808da23
parent 373cef9e
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -33,6 +33,7 @@
#include "stack/btm/btm_sec.h"
#include "stack/btm/btm_sec.h"
#include "stack/include/bt_octets.h"
#include "stack/include/bt_octets.h"
#include "stack/include/btm_api.h"
#include "stack/include/btm_api.h"
#include "stack/include/btm_client_interface.h"
#include "stack/include/btu.h"  // do_in_main_thread
#include "stack/include/btu.h"  // do_in_main_thread
#include "types/bluetooth/uuid.h"
#include "types/bluetooth/uuid.h"
#include "types/raw_address.h"
#include "types/raw_address.h"
@@ -287,8 +288,8 @@ void BTA_GetEirService(uint8_t* p_eir, size_t eir_len,
  uint16_t* p_uuid16 = (uint16_t*)uuid_list;
  uint16_t* p_uuid16 = (uint16_t*)uuid_list;
  tBTA_SERVICE_MASK mask;
  tBTA_SERVICE_MASK mask;


  BTM_GetEirUuidList(p_eir, eir_len, Uuid::kNumBytes16, &num_uuid, uuid_list,
  get_btm_client_interface().eir.BTM_GetEirUuidList(
                     max_num_uuid);
      p_eir, eir_len, Uuid::kNumBytes16, &num_uuid, uuid_list, max_num_uuid);
  for (xx = 0; xx < num_uuid; xx++) {
  for (xx = 0; xx < num_uuid; xx++) {
    mask = 1;
    mask = 1;
    for (yy = 0; yy < BTA_MAX_SERVICE_ID; yy++) {
    for (yy = 0; yy < BTA_MAX_SERVICE_ID; yy++) {
+0 −12
Original line number Original line Diff line number Diff line
@@ -936,18 +936,6 @@ uint8_t bluetooth::shim::BTM_GetEirSupportedServices(uint32_t* p_eir_uuid,
  return BTM_NO_RESOURCES;
  return BTM_NO_RESOURCES;
}
}


uint8_t bluetooth::shim::BTM_GetEirUuidList(uint8_t* p_eir, size_t eir_len,
                                            uint8_t uuid_size,
                                            uint8_t* p_num_uuid,
                                            uint8_t* p_uuid_list,
                                            uint8_t max_num_uuid) {
  LOG_INFO("UNIMPLEMENTED %s", __func__);
  CHECK(p_eir != nullptr);
  CHECK(p_num_uuid != nullptr);
  CHECK(p_uuid_list != nullptr);
  return 0;
}

void bluetooth::shim::BTM_SecAddBleDevice(const RawAddress& bd_addr,
void bluetooth::shim::BTM_SecAddBleDevice(const RawAddress& bd_addr,
                                          tBT_DEVICE_TYPE dev_type,
                                          tBT_DEVICE_TYPE dev_type,
                                          tBLE_ADDR_TYPE addr_type) {
                                          tBLE_ADDR_TYPE addr_type) {
+0 −27
Original line number Original line Diff line number Diff line
@@ -384,33 +384,6 @@ uint8_t BTM_GetEirSupportedServices(uint32_t* p_eir_uuid, uint8_t** p,
                                    uint8_t max_num_uuid16,
                                    uint8_t max_num_uuid16,
                                    uint8_t* p_num_uuid16);
                                    uint8_t* p_num_uuid16);


/*******************************************************************************
 *
 * Function         BTM_GetEirUuidList
 *
 * Description      This function parses EIR and returns UUID list.
 *
 * Parameters       p_eir - EIR
 *                  eirl_len - EIR len
 *                  uuid_size - Uuid::kNumBytes16, Uuid::kNumBytes32,
 *                              Uuid::kNumBytes128
 *                  p_num_uuid - return number of UUID in found list
 *                  p_uuid_list - return UUID 16-bit list
 *                  max_num_uuid - maximum number of UUID to be returned
 *
 * Returns          0 - if not found
 *                  HCI_EIR_COMPLETE_16BITS_UUID_TYPE
 *                  HCI_EIR_MORE_16BITS_UUID_TYPE
 *                  HCI_EIR_COMPLETE_32BITS_UUID_TYPE
 *                  HCI_EIR_MORE_32BITS_UUID_TYPE
 *                  HCI_EIR_COMPLETE_128BITS_UUID_TYPE
 *                  HCI_EIR_MORE_128BITS_UUID_TYPE
 *
 ******************************************************************************/
uint8_t BTM_GetEirUuidList(uint8_t* p_eir, size_t eir_len, uint8_t uuid_size,
                           uint8_t* p_num_uuid, uint8_t* p_uuid_list,
                           uint8_t max_num_uuid);

/*******************************************************************************
/*******************************************************************************
 *
 *
 * Function         BTM_SecAddBleDevice
 * Function         BTM_SecAddBleDevice
+0 −8
Original line number Original line Diff line number Diff line
@@ -251,14 +251,6 @@ uint8_t bluetooth::shim::BTM_GetEirSupportedServices(uint32_t* p_eir_uuid,
  mock_function_count_map[__func__]++;
  mock_function_count_map[__func__]++;
  return 0;
  return 0;
}
}
uint8_t bluetooth::shim::BTM_GetEirUuidList(uint8_t* p_eir, size_t eir_len,
                                            uint8_t uuid_size,
                                            uint8_t* p_num_uuid,
                                            uint8_t* p_uuid_list,
                                            uint8_t max_num_uuid) {
  mock_function_count_map[__func__]++;
  return 0;
}
void bluetooth::shim::BTM_AddEirService(uint32_t* p_eir_uuid, uint16_t uuid16) {
void bluetooth::shim::BTM_AddEirService(uint32_t* p_eir_uuid, uint16_t uuid16) {
  mock_function_count_map[__func__]++;
  mock_function_count_map[__func__]++;
}
}