Loading system/bta/test/common/mock_stack_acl.cc +3 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,9 @@ void BTM_ReadConnectionAddr(const RawAddress& remote_bda, tBLE_ADDR_TYPE* p_addr_type) { mock_function_count_map[__func__]++; } void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { mock_function_count_map[__func__]++; } void BTM_acl_after_controller_started(const controller_t* controller) { mock_function_count_map[__func__]++; } Loading system/stack/acl/btm_acl.cc +19 −0 Original line number Diff line number Diff line Loading @@ -1236,6 +1236,25 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, return HCI_INVALID_HANDLE; } /******************************************************************************* * * Function BTM_RequestPeerSCA * * Description This function is called to request sleep clock accuracy * from peer device * ******************************************************************************/ void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { tACL_CONN* p; p = internal_.btm_bda_to_acl(remote_bda, transport); if (p == (tACL_CONN*)NULL) { LOG_WARN("Unable to find active acl"); return; } btsnd_hcic_req_peer_sca(p->hci_handle); } /******************************************************************************* * * Function BTM_GetPeerSCA Loading system/stack/include/btm_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -750,6 +750,17 @@ tBTM_STATUS BTM_SetSsrParams(const RawAddress& remote_bda, uint16_t max_lat, uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_RequestPeerSCA * * Description This function is called to request sleep clock accuracy * from peer device * ******************************************************************************/ extern void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_GetPeerSCA Loading Loading
system/bta/test/common/mock_stack_acl.cc +3 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,9 @@ void BTM_ReadConnectionAddr(const RawAddress& remote_bda, tBLE_ADDR_TYPE* p_addr_type) { mock_function_count_map[__func__]++; } void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { mock_function_count_map[__func__]++; } void BTM_acl_after_controller_started(const controller_t* controller) { mock_function_count_map[__func__]++; } Loading
system/stack/acl/btm_acl.cc +19 −0 Original line number Diff line number Diff line Loading @@ -1236,6 +1236,25 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, return HCI_INVALID_HANDLE; } /******************************************************************************* * * Function BTM_RequestPeerSCA * * Description This function is called to request sleep clock accuracy * from peer device * ******************************************************************************/ void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { tACL_CONN* p; p = internal_.btm_bda_to_acl(remote_bda, transport); if (p == (tACL_CONN*)NULL) { LOG_WARN("Unable to find active acl"); return; } btsnd_hcic_req_peer_sca(p->hci_handle); } /******************************************************************************* * * Function BTM_GetPeerSCA Loading
system/stack/include/btm_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -750,6 +750,17 @@ tBTM_STATUS BTM_SetSsrParams(const RawAddress& remote_bda, uint16_t max_lat, uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_RequestPeerSCA * * Description This function is called to request sleep clock accuracy * from peer device * ******************************************************************************/ extern void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_GetPeerSCA Loading