Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5de1829 authored by Henri Chataing's avatar Henri Chataing
Browse files

system: Fix common typos

Bug: 305066880
Test: m com.android.btservices
Change-Id: Id7d310b352384a8ec94926e74ad7199b285a0a6d
parent 0a9dd103
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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);
@@ -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);
+2 −2
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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;
+3 −3
Original line number Diff line number Diff line
@@ -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++;
@@ -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++;
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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