Lines Matching refs:result
171 uint16_t result = AVDT_SUCCESS; in AVDT_CreateStream() local
179 result = AVDT_BAD_PARAMS; in AVDT_CreateStream()
185 result = AVDT_NO_RESOURCES; in AVDT_CreateStream()
191 if (result != AVDT_SUCCESS) { in AVDT_CreateStream()
192 AVDT_TRACE_ERROR("%s: result=%d peer_id=%d scb_index=%d", __func__, result, in AVDT_CreateStream()
196 return result; in AVDT_CreateStream()
214 uint16_t result = AVDT_SUCCESS; in AVDT_RemoveStream() local
222 result = AVDT_BAD_HANDLE; in AVDT_RemoveStream()
228 if (result != AVDT_SUCCESS) { in AVDT_RemoveStream()
229 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_RemoveStream()
232 return result; in AVDT_RemoveStream()
265 uint16_t result = AVDT_SUCCESS; in AVDT_DiscoverReq() local
276 result = AVDT_NO_RESOURCES; in AVDT_DiscoverReq()
280 if (result == AVDT_SUCCESS) { in AVDT_DiscoverReq()
283 result = AVDT_BUSY; in AVDT_DiscoverReq()
294 if (result != AVDT_SUCCESS) { in AVDT_DiscoverReq()
295 AVDT_TRACE_ERROR("%s: result=%d address=%s", __func__, result, in AVDT_DiscoverReq()
298 return result; in AVDT_DiscoverReq()
314 uint16_t result = AVDT_SUCCESS; in avdt_get_cap_req() local
322 result = AVDT_BAD_PARAMS; in avdt_get_cap_req()
331 result = AVDT_NO_RESOURCES; in avdt_get_cap_req()
336 if (result == AVDT_SUCCESS) { in avdt_get_cap_req()
339 result = AVDT_BUSY; in avdt_get_cap_req()
347 if (result != AVDT_SUCCESS) { in avdt_get_cap_req()
348 AVDT_TRACE_ERROR("%s: result=%d address=%s", __func__, result, in avdt_get_cap_req()
351 return result; in avdt_get_cap_req()
382 uint16_t result = AVDT_SUCCESS; in AVDT_GetCapReq() local
394 result = avdt_get_cap_req(bd_addr, channel_index, &getcap); in AVDT_GetCapReq()
396 if (result != AVDT_SUCCESS) { in AVDT_GetCapReq()
397 AVDT_TRACE_ERROR("%s: result=%d address=%s", __func__, result, in AVDT_GetCapReq()
400 return result; in AVDT_GetCapReq()
416 uint16_t result = AVDT_SUCCESS; in AVDT_DelayReport() local
425 result = AVDT_BAD_HANDLE; in AVDT_DelayReport()
434 if (result != AVDT_SUCCESS) { in AVDT_DelayReport()
435 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d seid=%d", __func__, result, in AVDT_DelayReport()
438 return result; in AVDT_DelayReport()
460 uint16_t result = AVDT_SUCCESS; in AVDT_OpenReq() local
468 result = AVDT_BAD_PARAMS; in AVDT_OpenReq()
474 result = AVDT_BAD_HANDLE; in AVDT_OpenReq()
483 result = AVDT_NO_RESOURCES; in AVDT_OpenReq()
490 if (result == AVDT_SUCCESS) { in AVDT_OpenReq()
501 result, bd_addr.ToString().c_str(), handle); in AVDT_OpenReq()
504 return result; in AVDT_OpenReq()
523 uint16_t result = AVDT_SUCCESS; in AVDT_ConfigRsp() local
532 result = AVDT_BAD_HANDLE; in AVDT_ConfigRsp()
538 result = AVDT_BAD_HANDLE; in AVDT_ConfigRsp()
553 if (result != AVDT_SUCCESS) { in AVDT_ConfigRsp()
554 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_ConfigRsp()
556 return result; in AVDT_ConfigRsp()
577 uint16_t result = AVDT_SUCCESS; in AVDT_StartReq() local
583 result = AVDT_BAD_PARAMS; in AVDT_StartReq()
589 result = AVDT_BAD_HANDLE; in AVDT_StartReq()
595 if (result == AVDT_SUCCESS) { in AVDT_StartReq()
597 result = AVDT_BAD_HANDLE; in AVDT_StartReq()
606 if (result != AVDT_SUCCESS) { in AVDT_StartReq()
608 AVDT_TRACE_ERROR("%s: result=%d num_handles=%d invalid", __func__, result, in AVDT_StartReq()
612 "%s: result=%d avdt_handle=%d", __func__, result, in AVDT_StartReq()
616 return result; in AVDT_StartReq()
637 uint16_t result = AVDT_SUCCESS; in AVDT_SuspendReq() local
643 result = AVDT_BAD_PARAMS; in AVDT_SuspendReq()
649 result = AVDT_BAD_HANDLE; in AVDT_SuspendReq()
655 if (result == AVDT_SUCCESS) { in AVDT_SuspendReq()
657 result = AVDT_BAD_HANDLE; in AVDT_SuspendReq()
666 if (result != AVDT_SUCCESS) { in AVDT_SuspendReq()
668 AVDT_TRACE_ERROR("%s: result=%d num_handles=%d invalid", __func__, result, in AVDT_SuspendReq()
672 "%s: result=%d avdt_handle=%d", __func__, result, in AVDT_SuspendReq()
676 return result; in AVDT_SuspendReq()
695 uint16_t result = AVDT_SUCCESS; in AVDT_CloseReq() local
702 result = AVDT_BAD_HANDLE; in AVDT_CloseReq()
709 if (result != AVDT_SUCCESS) { in AVDT_CloseReq()
710 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_CloseReq()
712 return result; in AVDT_CloseReq()
734 uint16_t result = AVDT_SUCCESS; in AVDT_ReconfigReq() local
742 result = AVDT_BAD_HANDLE; in AVDT_ReconfigReq()
752 if (result != AVDT_SUCCESS) { in AVDT_ReconfigReq()
753 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_ReconfigReq()
755 return result; in AVDT_ReconfigReq()
774 uint16_t result = AVDT_SUCCESS; in AVDT_ReconfigRsp() local
782 result = AVDT_BAD_HANDLE; in AVDT_ReconfigRsp()
792 if (result != AVDT_SUCCESS) { in AVDT_ReconfigRsp()
793 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_ReconfigRsp()
795 return result; in AVDT_ReconfigRsp()
814 uint16_t result = AVDT_SUCCESS; in AVDT_SecurityReq() local
822 result = AVDT_BAD_HANDLE; in AVDT_SecurityReq()
831 if (result != AVDT_SUCCESS) { in AVDT_SecurityReq()
832 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_SecurityReq()
834 return result; in AVDT_SecurityReq()
854 uint16_t result = AVDT_SUCCESS; in AVDT_SecurityRsp() local
863 result = AVDT_BAD_HANDLE; in AVDT_SecurityRsp()
874 if (result != AVDT_SUCCESS) { in AVDT_SecurityRsp()
875 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_SecurityRsp()
877 return result; in AVDT_SecurityRsp()
921 uint16_t result = AVDT_SUCCESS; in AVDT_WriteReqOpt() local
929 result = AVDT_BAD_HANDLE; in AVDT_WriteReqOpt()
938 AVDT_TRACE_DEBUG("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_WriteReqOpt()
939 return result; in AVDT_WriteReqOpt()
999 uint16_t result = AVDT_SUCCESS; in AVDT_ConnectReq() local
1011 result = AVDT_NO_RESOURCES; in AVDT_ConnectReq()
1017 result = AVDT_BUSY; in AVDT_ConnectReq()
1020 if (result == AVDT_SUCCESS) { in AVDT_ConnectReq()
1028 bd_addr.ToString().c_str(), result); in AVDT_ConnectReq()
1030 return result; in AVDT_ConnectReq()
1048 uint16_t result = AVDT_SUCCESS; in AVDT_DisconnectReq() local
1056 result = AVDT_BAD_PARAMS; in AVDT_DisconnectReq()
1059 if (result == AVDT_SUCCESS) { in AVDT_DisconnectReq()
1065 bd_addr.ToString().c_str(), result); in AVDT_DisconnectReq()
1068 return result; in AVDT_DisconnectReq()
1112 uint16_t result = AVDT_BAD_PARAMS; in AVDT_SendReport() local
1127 result = AVDT_NO_RESOURCES; in AVDT_SendReport()
1185 result = AVDT_SUCCESS; in AVDT_SendReport()
1189 if (result != AVDT_SUCCESS) { in AVDT_SendReport()
1190 AVDT_TRACE_WARNING("%s: result=%d avdt_handle=%d", __func__, result, in AVDT_SendReport()
1194 return result; in AVDT_SendReport()