Loading system/bta/test/common/mock_stack_acl.cc +4 −0 Original line number Diff line number Diff line Loading @@ -215,6 +215,10 @@ uint16_t btm_get_acl_disc_reason_code(void) { mock_function_count_map[__func__]++; return 0; } uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { mock_function_count_map[__func__]++; return 0; } uint8_t BTM_SetTraceLevel(uint8_t new_level) { mock_function_count_map[__func__]++; return 0; Loading system/stack/acl/btm_acl.cc +22 −0 Original line number Diff line number Diff line Loading @@ -1236,6 +1236,28 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, return HCI_INVALID_HANDLE; } /******************************************************************************* * * Function BTM_GetPeerSCA * * Description This function is called to get peer sleep clock accuracy * * Returns SCA or 0xFF if SCA was never previously requested, request * is not supported by peer device or ACL does not exist * ******************************************************************************/ uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { tACL_CONN* p; p = internal_.btm_bda_to_acl(remote_bda, transport); if (p != (tACL_CONN*)NULL) { return (p->sca); } LOG_WARN("Unable to find active acl"); /* If here, no BD Addr found */ return (0xFF); } /******************************************************************************* * * Function btm_rejectlist_role_change_device Loading system/stack/include/btm_api.h +13 −0 Original line number Diff line number Diff line Loading @@ -750,6 +750,19 @@ 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_GetPeerSCA * * Description This function is called to get peer sleep clock accuracy * * Returns SCA or 0xFF if SCA was never previously requested, request * is not supported by peer device or ACL does not exist * ******************************************************************************/ extern uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_DeleteStoredLinkKey Loading Loading
system/bta/test/common/mock_stack_acl.cc +4 −0 Original line number Diff line number Diff line Loading @@ -215,6 +215,10 @@ uint16_t btm_get_acl_disc_reason_code(void) { mock_function_count_map[__func__]++; return 0; } uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { mock_function_count_map[__func__]++; return 0; } uint8_t BTM_SetTraceLevel(uint8_t new_level) { mock_function_count_map[__func__]++; return 0; Loading
system/stack/acl/btm_acl.cc +22 −0 Original line number Diff line number Diff line Loading @@ -1236,6 +1236,28 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, return HCI_INVALID_HANDLE; } /******************************************************************************* * * Function BTM_GetPeerSCA * * Description This function is called to get peer sleep clock accuracy * * Returns SCA or 0xFF if SCA was never previously requested, request * is not supported by peer device or ACL does not exist * ******************************************************************************/ uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { tACL_CONN* p; p = internal_.btm_bda_to_acl(remote_bda, transport); if (p != (tACL_CONN*)NULL) { return (p->sca); } LOG_WARN("Unable to find active acl"); /* If here, no BD Addr found */ return (0xFF); } /******************************************************************************* * * Function btm_rejectlist_role_change_device Loading
system/stack/include/btm_api.h +13 −0 Original line number Diff line number Diff line Loading @@ -750,6 +750,19 @@ 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_GetPeerSCA * * Description This function is called to get peer sleep clock accuracy * * Returns SCA or 0xFF if SCA was never previously requested, request * is not supported by peer device or ACL does not exist * ******************************************************************************/ extern uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_DeleteStoredLinkKey Loading