Loading system/stack/btm/btm_inq.cc +16 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ #include "osi/include/osi.h" #include "osi/include/properties.h" #include "osi/include/stack_power_telemetry.h" #include "stack/btm/btm_dev.h" #include "stack/btm/btm_int_types.h" #include "stack/btm/btm_sec.h" #include "stack/include/acl_api.h" Loading @@ -61,6 +60,22 @@ #include "types/bluetooth/uuid.h" #include "types/raw_address.h" /* MACRO to set the service bit mask in a bit stream */ #define BTM_EIR_SET_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] |= \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to clear the service bit mask in a bit stream */ #define BTM_EIR_CLR_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] &= \ ~((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to check the service bit mask in a bit stream */ #define BTM_EIR_HAS_SERVICE(p, service) \ ((((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] & \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) >> \ (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS)) namespace { constexpr char kBtmLogTag[] = "SCAN"; Loading system/stack/include/btm_api_types.h +0 −16 Original line number Diff line number Diff line Loading @@ -82,22 +82,6 @@ typedef void(tBTM_VSC_CMPL_CB)(tBTM_VSC_CMPL* p1); (((uint32_t)BTM_EIR_MAX_SERVICES / BTM_EIR_ARRAY_BITS) + \ (((uint32_t)BTM_EIR_MAX_SERVICES % BTM_EIR_ARRAY_BITS) ? 1 : 0)) /* MACRO to set the service bit mask in a bit stream */ #define BTM_EIR_SET_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] |= \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to clear the service bit mask in a bit stream */ #define BTM_EIR_CLR_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] &= \ ~((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to check the service bit mask in a bit stream */ #define BTM_EIR_HAS_SERVICE(p, service) \ ((((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] & \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) >> \ (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS)) /* start of EIR in HCI buffer, 4 bytes = HCI Command(2) + Length(1) + FEC_Req(1) */ #define BTM_HCI_EIR_OFFSET (BT_HDR_SIZE + 4) Loading Loading
system/stack/btm/btm_inq.cc +16 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ #include "osi/include/osi.h" #include "osi/include/properties.h" #include "osi/include/stack_power_telemetry.h" #include "stack/btm/btm_dev.h" #include "stack/btm/btm_int_types.h" #include "stack/btm/btm_sec.h" #include "stack/include/acl_api.h" Loading @@ -61,6 +60,22 @@ #include "types/bluetooth/uuid.h" #include "types/raw_address.h" /* MACRO to set the service bit mask in a bit stream */ #define BTM_EIR_SET_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] |= \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to clear the service bit mask in a bit stream */ #define BTM_EIR_CLR_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] &= \ ~((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to check the service bit mask in a bit stream */ #define BTM_EIR_HAS_SERVICE(p, service) \ ((((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] & \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) >> \ (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS)) namespace { constexpr char kBtmLogTag[] = "SCAN"; Loading
system/stack/include/btm_api_types.h +0 −16 Original line number Diff line number Diff line Loading @@ -82,22 +82,6 @@ typedef void(tBTM_VSC_CMPL_CB)(tBTM_VSC_CMPL* p1); (((uint32_t)BTM_EIR_MAX_SERVICES / BTM_EIR_ARRAY_BITS) + \ (((uint32_t)BTM_EIR_MAX_SERVICES % BTM_EIR_ARRAY_BITS) ? 1 : 0)) /* MACRO to set the service bit mask in a bit stream */ #define BTM_EIR_SET_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] |= \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to clear the service bit mask in a bit stream */ #define BTM_EIR_CLR_SERVICE(p, service) \ (((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] &= \ ~((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) /* MACRO to check the service bit mask in a bit stream */ #define BTM_EIR_HAS_SERVICE(p, service) \ ((((uint32_t*)(p))[(((uint32_t)(service)) / BTM_EIR_ARRAY_BITS)] & \ ((uint32_t)1 << (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS))) >> \ (((uint32_t)(service)) % BTM_EIR_ARRAY_BITS)) /* start of EIR in HCI buffer, 4 bytes = HCI Command(2) + Length(1) + FEC_Req(1) */ #define BTM_HCI_EIR_OFFSET (BT_HDR_SIZE + 4) Loading