Loading system/bta/hf_client/bta_hf_client_at.cc +5 −5 Original line number Diff line number Diff line Loading @@ -789,8 +789,8 @@ void bta_hf_client_unknown_response(tBTA_HF_CLIENT_CB* client_cb, tBTA_HF_CLIENT evt = {}; strlcpy(evt.unknown.event_string, evt_buffer, BTA_HF_CLIENT_UNKOWN_EVENT_LEN + 1); evt.unknown.event_string[BTA_HF_CLIENT_UNKOWN_EVENT_LEN] = '\0'; BTA_HF_CLIENT_UNKNOWN_EVENT_LEN + 1); evt.unknown.event_string[BTA_HF_CLIENT_UNKNOWN_EVENT_LEN] = '\0'; evt.unknown.bd_addr = client_cb->peer_addr; bta_hf_client_app_callback(BTA_HF_CLIENT_UNKNOWN_EVT, &evt); Loading Loading @@ -1552,14 +1552,14 @@ static char* bta_hf_client_process_unknown(tBTA_HF_CLIENT_CB* client_cb, int evt_size = end - start + 1; char tmp_buf[BTA_HF_CLIENT_UNKOWN_EVENT_LEN]; if (evt_size < BTA_HF_CLIENT_UNKOWN_EVENT_LEN) { char tmp_buf[BTA_HF_CLIENT_UNKNOWN_EVENT_LEN]; if (evt_size < BTA_HF_CLIENT_UNKNOWN_EVENT_LEN) { strlcpy(tmp_buf, start, evt_size); bta_hf_client_unknown_response(client_cb, tmp_buf); AT_CHECK_RN(end); } else { LOG_ERROR("%s: exceed event buffer size. (%d, %d)", __func__, evt_size, BTA_HF_CLIENT_UNKOWN_EVENT_LEN); BTA_HF_CLIENT_UNKNOWN_EVENT_LEN); } LOG_VERBOSE("%s: %s", __func__, buffer); Loading system/bta/include/bta_hf_client_api.h +2 −2 Original line number Diff line number Diff line Loading @@ -249,10 +249,10 @@ typedef struct { } tBTA_HF_CLIENT_VAL; /* data associated with BTA_HF_CLIENT_UNKNOWN_EVT event */ #define BTA_HF_CLIENT_UNKOWN_EVENT_LEN 32 #define BTA_HF_CLIENT_UNKNOWN_EVENT_LEN 32 typedef struct { RawAddress bd_addr; char event_string[BTA_HF_CLIENT_UNKOWN_EVENT_LEN + 1]; char event_string[BTA_HF_CLIENT_UNKNOWN_EVENT_LEN + 1]; } tBTA_HF_CLIENT_UNKNOWN; /* union of data associated with AG callback */ Loading system/btif/src/btif_storage.cc +1 −1 Original line number Diff line number Diff line Loading @@ -418,7 +418,7 @@ static bool cfg2prop(const RawAddress* remote_bd_addr, bt_property_t* prop) { } break; default: LOG_ERROR("Unknow prop type:%d", prop->type); LOG_ERROR("Unknown prop type:%d", prop->type); return false; } return ret; Loading system/stack/avrc/avrc_sdp.cc +3 −3 Original line number Diff line number Diff line Loading @@ -269,7 +269,7 @@ uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, /* If we support browsing then add the list */ if (browse_supported) { LOG_VERBOSE( "%s: Add Browsing PSM to additonal protocol descriptor" "%s: Add Browsing PSM to additional protocol descriptor" " lists", __func__); num_additional_protocols++; Loading @@ -293,7 +293,7 @@ uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET && cover_art_psm > 0) { LOG_VERBOSE( "%s: Add AVRCP BIP PSM to additonal protocol descriptor" "%s: Add AVRCP BIP PSM to additional protocol descriptor" " lists, psm: 0x%x", __func__, cover_art_psm); num_additional_protocols++; Loading @@ -312,7 +312,7 @@ uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, /* Add the additional lists if we support any */ if (num_additional_protocols > 0) { LOG_VERBOSE("%s: Add %d additonal protocol descriptor lists", __func__, LOG_VERBOSE("%s: Add %d additional protocol descriptor lists", __func__, num_additional_protocols); result &= get_legacy_stack_sdp_api()->handle.SDP_AddAdditionProtoLists( sdp_handle, num_additional_protocols, avrc_add_proto_desc_lists); Loading system/stack/bnep/bnep_api.cc +1 −1 Original line number Diff line number Diff line Loading @@ -240,7 +240,7 @@ tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) { else resp_code = BNEP_SETUP_CONN_NOT_ALLOWED; bnep_send_conn_responce(p_bcb, resp_code); bnep_send_conn_response(p_bcb, resp_code); p_bcb->con_flags &= (~BNEP_FLAGS_SETUP_RCVD); if (resp == BNEP_SUCCESS) Loading Loading
system/bta/hf_client/bta_hf_client_at.cc +5 −5 Original line number Diff line number Diff line Loading @@ -789,8 +789,8 @@ void bta_hf_client_unknown_response(tBTA_HF_CLIENT_CB* client_cb, tBTA_HF_CLIENT evt = {}; strlcpy(evt.unknown.event_string, evt_buffer, BTA_HF_CLIENT_UNKOWN_EVENT_LEN + 1); evt.unknown.event_string[BTA_HF_CLIENT_UNKOWN_EVENT_LEN] = '\0'; BTA_HF_CLIENT_UNKNOWN_EVENT_LEN + 1); evt.unknown.event_string[BTA_HF_CLIENT_UNKNOWN_EVENT_LEN] = '\0'; evt.unknown.bd_addr = client_cb->peer_addr; bta_hf_client_app_callback(BTA_HF_CLIENT_UNKNOWN_EVT, &evt); Loading Loading @@ -1552,14 +1552,14 @@ static char* bta_hf_client_process_unknown(tBTA_HF_CLIENT_CB* client_cb, int evt_size = end - start + 1; char tmp_buf[BTA_HF_CLIENT_UNKOWN_EVENT_LEN]; if (evt_size < BTA_HF_CLIENT_UNKOWN_EVENT_LEN) { char tmp_buf[BTA_HF_CLIENT_UNKNOWN_EVENT_LEN]; if (evt_size < BTA_HF_CLIENT_UNKNOWN_EVENT_LEN) { strlcpy(tmp_buf, start, evt_size); bta_hf_client_unknown_response(client_cb, tmp_buf); AT_CHECK_RN(end); } else { LOG_ERROR("%s: exceed event buffer size. (%d, %d)", __func__, evt_size, BTA_HF_CLIENT_UNKOWN_EVENT_LEN); BTA_HF_CLIENT_UNKNOWN_EVENT_LEN); } LOG_VERBOSE("%s: %s", __func__, buffer); Loading
system/bta/include/bta_hf_client_api.h +2 −2 Original line number Diff line number Diff line Loading @@ -249,10 +249,10 @@ typedef struct { } tBTA_HF_CLIENT_VAL; /* data associated with BTA_HF_CLIENT_UNKNOWN_EVT event */ #define BTA_HF_CLIENT_UNKOWN_EVENT_LEN 32 #define BTA_HF_CLIENT_UNKNOWN_EVENT_LEN 32 typedef struct { RawAddress bd_addr; char event_string[BTA_HF_CLIENT_UNKOWN_EVENT_LEN + 1]; char event_string[BTA_HF_CLIENT_UNKNOWN_EVENT_LEN + 1]; } tBTA_HF_CLIENT_UNKNOWN; /* union of data associated with AG callback */ Loading
system/btif/src/btif_storage.cc +1 −1 Original line number Diff line number Diff line Loading @@ -418,7 +418,7 @@ static bool cfg2prop(const RawAddress* remote_bd_addr, bt_property_t* prop) { } break; default: LOG_ERROR("Unknow prop type:%d", prop->type); LOG_ERROR("Unknown prop type:%d", prop->type); return false; } return ret; Loading
system/stack/avrc/avrc_sdp.cc +3 −3 Original line number Diff line number Diff line Loading @@ -269,7 +269,7 @@ uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, /* If we support browsing then add the list */ if (browse_supported) { LOG_VERBOSE( "%s: Add Browsing PSM to additonal protocol descriptor" "%s: Add Browsing PSM to additional protocol descriptor" " lists", __func__); num_additional_protocols++; Loading @@ -293,7 +293,7 @@ uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET && cover_art_psm > 0) { LOG_VERBOSE( "%s: Add AVRCP BIP PSM to additonal protocol descriptor" "%s: Add AVRCP BIP PSM to additional protocol descriptor" " lists, psm: 0x%x", __func__, cover_art_psm); num_additional_protocols++; Loading @@ -312,7 +312,7 @@ uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, /* Add the additional lists if we support any */ if (num_additional_protocols > 0) { LOG_VERBOSE("%s: Add %d additonal protocol descriptor lists", __func__, LOG_VERBOSE("%s: Add %d additional protocol descriptor lists", __func__, num_additional_protocols); result &= get_legacy_stack_sdp_api()->handle.SDP_AddAdditionProtoLists( sdp_handle, num_additional_protocols, avrc_add_proto_desc_lists); Loading
system/stack/bnep/bnep_api.cc +1 −1 Original line number Diff line number Diff line Loading @@ -240,7 +240,7 @@ tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) { else resp_code = BNEP_SETUP_CONN_NOT_ALLOWED; bnep_send_conn_responce(p_bcb, resp_code); bnep_send_conn_response(p_bcb, resp_code); p_bcb->con_flags &= (~BNEP_FLAGS_SETUP_RCVD); if (resp == BNEP_SUCCESS) Loading