Loading system/bta/av/bta_av_api.cc +0 −20 Original line number Original line Diff line number Diff line Loading @@ -268,26 +268,6 @@ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) { bta_sys_sendmsg(p_buf); bta_sys_sendmsg(p_buf); } } /******************************************************************************* * * Function BTA_AvOffloadStartRsp * * Description Response from vendor lib for A2DP Offload Start request. * * Returns void * ******************************************************************************/ void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) { tBTA_AV_API_STATUS_RSP* p_buf = (tBTA_AV_API_STATUS_RSP*)osi_malloc(sizeof(tBTA_AV_API_STATUS_RSP)); p_buf->hdr.event = BTA_AV_API_OFFLOAD_START_RSP_EVT; p_buf->hdr.layer_specific = hndl; p_buf->status = status; bta_sys_sendmsg(p_buf); } /******************************************************************************* /******************************************************************************* * * * Function BTA_AvStop * Function BTA_AvStop Loading system/bta/include/bta_av_api.h +0 −12 Original line number Original line Diff line number Diff line Loading @@ -706,18 +706,6 @@ void BTA_AvSetLatency(tBTA_AV_HNDL handle, bool is_low_latency); ******************************************************************************/ ******************************************************************************/ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl); void BTA_AvOffloadStart(tBTA_AV_HNDL hndl); /******************************************************************************* * * Function BTA_AvOffloadStartRsp * * Description Response from vendor library indicating response for * OffloadStart. * * Returns void * ******************************************************************************/ void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status); /** /** * Obtain the Channel Index for a peer. * Obtain the Channel Index for a peer. * If the peer already has associated internal state, the corresponding * If the peer already has associated internal state, the corresponding Loading system/test/mock/mock_bta_av_api.cc +0 −5 Original line number Original line Diff line number Diff line Loading @@ -45,7 +45,6 @@ struct BTA_AvEnable BTA_AvEnable; struct BTA_AvMetaCmd BTA_AvMetaCmd; struct BTA_AvMetaCmd BTA_AvMetaCmd; struct BTA_AvMetaRsp BTA_AvMetaRsp; struct BTA_AvMetaRsp BTA_AvMetaRsp; struct BTA_AvOffloadStart BTA_AvOffloadStart; struct BTA_AvOffloadStart BTA_AvOffloadStart; struct BTA_AvOffloadStartRsp BTA_AvOffloadStartRsp; struct BTA_AvOpen BTA_AvOpen; struct BTA_AvOpen BTA_AvOpen; struct BTA_AvOpenRc BTA_AvOpenRc; struct BTA_AvOpenRc BTA_AvOpenRc; struct BTA_AvProtectReq BTA_AvProtectReq; struct BTA_AvProtectReq BTA_AvProtectReq; Loading Loading @@ -111,10 +110,6 @@ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) { inc_func_call_count(__func__); inc_func_call_count(__func__); test::mock::bta_av_api::BTA_AvOffloadStart(hndl); test::mock::bta_av_api::BTA_AvOffloadStart(hndl); } } void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) { inc_func_call_count(__func__); test::mock::bta_av_api::BTA_AvOffloadStartRsp(hndl, status); } void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, uint16_t uuid) { uint16_t uuid) { inc_func_call_count(__func__); inc_func_call_count(__func__); Loading system/test/mock/mock_bta_av_api.h +0 −12 Original line number Original line Diff line number Diff line Loading @@ -147,18 +147,6 @@ struct BTA_AvOffloadStart { }; }; extern struct BTA_AvOffloadStart BTA_AvOffloadStart; extern struct BTA_AvOffloadStart BTA_AvOffloadStart; // Name: BTA_AvOffloadStartRsp // Params: tBTA_AV_HNDL hndl, tBTA_AV_STATUS status // Return: void struct BTA_AvOffloadStartRsp { std::function<void(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status)> body{ [](tBTA_AV_HNDL /* hndl */, tBTA_AV_STATUS /* status */) {}}; void operator()(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) { body(hndl, status); }; }; extern struct BTA_AvOffloadStartRsp BTA_AvOffloadStartRsp; // Name: BTA_AvOpen // Name: BTA_AvOpen // Params: const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, uint16_t // Params: const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, uint16_t // uuid Return: void // uuid Return: void Loading Loading
system/bta/av/bta_av_api.cc +0 −20 Original line number Original line Diff line number Diff line Loading @@ -268,26 +268,6 @@ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) { bta_sys_sendmsg(p_buf); bta_sys_sendmsg(p_buf); } } /******************************************************************************* * * Function BTA_AvOffloadStartRsp * * Description Response from vendor lib for A2DP Offload Start request. * * Returns void * ******************************************************************************/ void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) { tBTA_AV_API_STATUS_RSP* p_buf = (tBTA_AV_API_STATUS_RSP*)osi_malloc(sizeof(tBTA_AV_API_STATUS_RSP)); p_buf->hdr.event = BTA_AV_API_OFFLOAD_START_RSP_EVT; p_buf->hdr.layer_specific = hndl; p_buf->status = status; bta_sys_sendmsg(p_buf); } /******************************************************************************* /******************************************************************************* * * * Function BTA_AvStop * Function BTA_AvStop Loading
system/bta/include/bta_av_api.h +0 −12 Original line number Original line Diff line number Diff line Loading @@ -706,18 +706,6 @@ void BTA_AvSetLatency(tBTA_AV_HNDL handle, bool is_low_latency); ******************************************************************************/ ******************************************************************************/ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl); void BTA_AvOffloadStart(tBTA_AV_HNDL hndl); /******************************************************************************* * * Function BTA_AvOffloadStartRsp * * Description Response from vendor library indicating response for * OffloadStart. * * Returns void * ******************************************************************************/ void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status); /** /** * Obtain the Channel Index for a peer. * Obtain the Channel Index for a peer. * If the peer already has associated internal state, the corresponding * If the peer already has associated internal state, the corresponding Loading
system/test/mock/mock_bta_av_api.cc +0 −5 Original line number Original line Diff line number Diff line Loading @@ -45,7 +45,6 @@ struct BTA_AvEnable BTA_AvEnable; struct BTA_AvMetaCmd BTA_AvMetaCmd; struct BTA_AvMetaCmd BTA_AvMetaCmd; struct BTA_AvMetaRsp BTA_AvMetaRsp; struct BTA_AvMetaRsp BTA_AvMetaRsp; struct BTA_AvOffloadStart BTA_AvOffloadStart; struct BTA_AvOffloadStart BTA_AvOffloadStart; struct BTA_AvOffloadStartRsp BTA_AvOffloadStartRsp; struct BTA_AvOpen BTA_AvOpen; struct BTA_AvOpen BTA_AvOpen; struct BTA_AvOpenRc BTA_AvOpenRc; struct BTA_AvOpenRc BTA_AvOpenRc; struct BTA_AvProtectReq BTA_AvProtectReq; struct BTA_AvProtectReq BTA_AvProtectReq; Loading Loading @@ -111,10 +110,6 @@ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) { inc_func_call_count(__func__); inc_func_call_count(__func__); test::mock::bta_av_api::BTA_AvOffloadStart(hndl); test::mock::bta_av_api::BTA_AvOffloadStart(hndl); } } void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) { inc_func_call_count(__func__); test::mock::bta_av_api::BTA_AvOffloadStartRsp(hndl, status); } void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, uint16_t uuid) { uint16_t uuid) { inc_func_call_count(__func__); inc_func_call_count(__func__); Loading
system/test/mock/mock_bta_av_api.h +0 −12 Original line number Original line Diff line number Diff line Loading @@ -147,18 +147,6 @@ struct BTA_AvOffloadStart { }; }; extern struct BTA_AvOffloadStart BTA_AvOffloadStart; extern struct BTA_AvOffloadStart BTA_AvOffloadStart; // Name: BTA_AvOffloadStartRsp // Params: tBTA_AV_HNDL hndl, tBTA_AV_STATUS status // Return: void struct BTA_AvOffloadStartRsp { std::function<void(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status)> body{ [](tBTA_AV_HNDL /* hndl */, tBTA_AV_STATUS /* status */) {}}; void operator()(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) { body(hndl, status); }; }; extern struct BTA_AvOffloadStartRsp BTA_AvOffloadStartRsp; // Name: BTA_AvOpen // Name: BTA_AvOpen // Params: const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, uint16_t // Params: const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc, uint16_t // uuid Return: void // uuid Return: void Loading