Loading system/btif/src/btif_ble_scanner.cc +5 −4 Original line number Diff line number Diff line Loading @@ -252,9 +252,10 @@ class BleScannerInterfaceImpl : public BleScannerInterface { client_if)); } do_in_main_thread( FROM_HERE, base::Bind(&BTM_BleAdvFilterParamSetup, action, filt_index, base::Passed(&filt_param), do_in_main_thread(FROM_HERE, base::Bind(&BTM_BleAdvFilterParamSetup, static_cast<tBTM_BLE_SCAN_COND_OP>(action), filt_index, base::Passed(&filt_param), jni_thread_wrapper(FROM_HERE, std::move(cb)))); } Loading system/btif/src/btif_dm.cc +3 −2 Original line number Diff line number Diff line Loading @@ -226,8 +226,9 @@ static void btif_dm_ble_key_nc_req_evt(tBTA_DM_SP_KEY_NOTIF* p_notif_req); static void btif_dm_ble_oob_req_evt(tBTA_DM_SP_RMT_OOB* req_oob_type); static void btif_dm_ble_sc_oob_req_evt(tBTA_DM_SP_RMT_OOB* req_oob_type); static void bte_scan_filt_param_cfg_evt(uint8_t action_type, uint8_t avbl_space, uint8_t ref_value, uint8_t btm_status); static void bte_scan_filt_param_cfg_evt(tBTM_BLE_SCAN_COND_OP action_type, uint8_t avbl_space, uint8_t ref_value, uint8_t btm_status); static char* btif_get_default_local_name(); Loading system/main/shim/btm_api.cc +1 −1 Original line number Diff line number Diff line Loading @@ -1180,7 +1180,7 @@ void bluetooth::shim::BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index, } void bluetooth::shim::BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb) { LOG_INFO("UNIMPLEMENTED %s", __func__); Loading system/main/shim/btm_api.h +1 −1 Original line number Diff line number Diff line Loading @@ -814,7 +814,7 @@ void BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index, * ******************************************************************************/ void BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb); Loading system/stack/btm/btm_ble_adv_filter.cc +8 −6 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ static void btm_flt_update_cb(uint8_t expected_ocf, tBTM_BLE_PF_CFG_CBACK cb, tBTM_STATUS btm_status = (status == 0) ? BTM_SUCCESS : BTM_ERR_PROCESSING; if (op_subcode == BTM_BLE_META_PF_FEAT_SEL) { cb.Run(num_avail, action, btm_status); cb.Run(num_avail, static_cast<tBTM_BLE_SCAN_COND_OP>(action), btm_status); return; } Loading @@ -168,16 +168,18 @@ static void btm_flt_update_cb(uint8_t expected_ocf, tBTM_BLE_PF_CFG_CBACK cb, expected_ocf, action, status, num_avail); if (HCI_SUCCESS == status) { if (btm_ble_adv_filt_cb.cur_filter_target.bda.IsEmpty()) btm_ble_cs_update_pf_counter(action, cond_type, NULL, num_avail); btm_ble_cs_update_pf_counter(static_cast<tBTM_BLE_SCAN_COND_OP>(action), cond_type, NULL, num_avail); else btm_ble_cs_update_pf_counter( action, cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); static_cast<tBTM_BLE_SCAN_COND_OP>(action), cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); } /* send ADV PF operation complete */ btm_ble_adv_filt_cb.op_type = 0; cb.Run(num_avail, action, btm_status); cb.Run(num_avail, static_cast<tBTM_BLE_SCAN_COND_OP>(action), btm_status); } /******************************************************************************* Loading Loading @@ -591,7 +593,7 @@ void BTM_LE_PF_set(tBTM_BLE_PF_FILT_INDEX filt_index, return; } int action = BTM_BLE_SCAN_COND_ADD; tBTM_BLE_SCAN_COND_OP action = BTM_BLE_SCAN_COND_ADD; for (const ApcfCommand& cmd : commands) { /* If data is passed, both mask and data have to be the same length */ if (cmd.data.size() != cmd.data_mask.size() && cmd.data.size() != 0 && Loading Loading @@ -774,7 +776,7 @@ void BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index, * ******************************************************************************/ void BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb) { tBTM_BLE_PF_COUNT* p_bda_filter = NULL; Loading Loading
system/btif/src/btif_ble_scanner.cc +5 −4 Original line number Diff line number Diff line Loading @@ -252,9 +252,10 @@ class BleScannerInterfaceImpl : public BleScannerInterface { client_if)); } do_in_main_thread( FROM_HERE, base::Bind(&BTM_BleAdvFilterParamSetup, action, filt_index, base::Passed(&filt_param), do_in_main_thread(FROM_HERE, base::Bind(&BTM_BleAdvFilterParamSetup, static_cast<tBTM_BLE_SCAN_COND_OP>(action), filt_index, base::Passed(&filt_param), jni_thread_wrapper(FROM_HERE, std::move(cb)))); } Loading
system/btif/src/btif_dm.cc +3 −2 Original line number Diff line number Diff line Loading @@ -226,8 +226,9 @@ static void btif_dm_ble_key_nc_req_evt(tBTA_DM_SP_KEY_NOTIF* p_notif_req); static void btif_dm_ble_oob_req_evt(tBTA_DM_SP_RMT_OOB* req_oob_type); static void btif_dm_ble_sc_oob_req_evt(tBTA_DM_SP_RMT_OOB* req_oob_type); static void bte_scan_filt_param_cfg_evt(uint8_t action_type, uint8_t avbl_space, uint8_t ref_value, uint8_t btm_status); static void bte_scan_filt_param_cfg_evt(tBTM_BLE_SCAN_COND_OP action_type, uint8_t avbl_space, uint8_t ref_value, uint8_t btm_status); static char* btif_get_default_local_name(); Loading
system/main/shim/btm_api.cc +1 −1 Original line number Diff line number Diff line Loading @@ -1180,7 +1180,7 @@ void bluetooth::shim::BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index, } void bluetooth::shim::BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb) { LOG_INFO("UNIMPLEMENTED %s", __func__); Loading
system/main/shim/btm_api.h +1 −1 Original line number Diff line number Diff line Loading @@ -814,7 +814,7 @@ void BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index, * ******************************************************************************/ void BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb); Loading
system/stack/btm/btm_ble_adv_filter.cc +8 −6 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ static void btm_flt_update_cb(uint8_t expected_ocf, tBTM_BLE_PF_CFG_CBACK cb, tBTM_STATUS btm_status = (status == 0) ? BTM_SUCCESS : BTM_ERR_PROCESSING; if (op_subcode == BTM_BLE_META_PF_FEAT_SEL) { cb.Run(num_avail, action, btm_status); cb.Run(num_avail, static_cast<tBTM_BLE_SCAN_COND_OP>(action), btm_status); return; } Loading @@ -168,16 +168,18 @@ static void btm_flt_update_cb(uint8_t expected_ocf, tBTM_BLE_PF_CFG_CBACK cb, expected_ocf, action, status, num_avail); if (HCI_SUCCESS == status) { if (btm_ble_adv_filt_cb.cur_filter_target.bda.IsEmpty()) btm_ble_cs_update_pf_counter(action, cond_type, NULL, num_avail); btm_ble_cs_update_pf_counter(static_cast<tBTM_BLE_SCAN_COND_OP>(action), cond_type, NULL, num_avail); else btm_ble_cs_update_pf_counter( action, cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); static_cast<tBTM_BLE_SCAN_COND_OP>(action), cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); } /* send ADV PF operation complete */ btm_ble_adv_filt_cb.op_type = 0; cb.Run(num_avail, action, btm_status); cb.Run(num_avail, static_cast<tBTM_BLE_SCAN_COND_OP>(action), btm_status); } /******************************************************************************* Loading Loading @@ -591,7 +593,7 @@ void BTM_LE_PF_set(tBTM_BLE_PF_FILT_INDEX filt_index, return; } int action = BTM_BLE_SCAN_COND_ADD; tBTM_BLE_SCAN_COND_OP action = BTM_BLE_SCAN_COND_ADD; for (const ApcfCommand& cmd : commands) { /* If data is passed, both mask and data have to be the same length */ if (cmd.data.size() != cmd.data_mask.size() && cmd.data.size() != 0 && Loading Loading @@ -774,7 +776,7 @@ void BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index, * ******************************************************************************/ void BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb) { tBTM_BLE_PF_COUNT* p_bda_filter = NULL; Loading