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

Commit 436b7170 authored by Marie Janssen's avatar Marie Janssen
Browse files

btif: Pass UIDs changed up to the Java layer

Previously we were simply responding with an INTERIM response and
leaving it at that.

Test: connect to BMW kit and check that interim is sent from Java
Bug: 62775732
Change-Id: Idb7de4417438f0c9697ee5c838b511cdd2223e80
(cherry picked from commit 3d7c99dc6db3f2a0392a0b273140eb03e0050ee5)
parent e49c2157
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
@@ -860,20 +860,6 @@ void handle_rc_vendorunique_rsp(tBTA_AV_REMOTE_RSP* p_remote_rsp) {
  }
}

void handle_uid_changed_notification(btif_rc_device_cb_t* p_dev, uint8_t label,
                                     tAVRC_COMMAND* pavrc_command) {
  tAVRC_RESPONSE avrc_rsp = {0};
  avrc_rsp.rsp.pdu = pavrc_command->pdu;
  avrc_rsp.rsp.status = AVRC_STS_NO_ERROR;
  avrc_rsp.rsp.opcode = pavrc_command->cmd.opcode;

  avrc_rsp.reg_notif.event_id = pavrc_command->reg_notif.event_id;
  avrc_rsp.reg_notif.param.uid_counter = 0;

  send_metamsg_rsp(p_dev, -1, label, AVRC_RSP_INTERIM, &avrc_rsp);
  send_metamsg_rsp(p_dev, -1, label, AVRC_RSP_CHANGED, &avrc_rsp);
}

/***************************************************************************
 *  Function       handle_rc_metamsg_cmd
 *
@@ -963,11 +949,6 @@ void handle_rc_metamsg_cmd(tBTA_AV_META_MSG* pmeta_msg) {
          pmeta_msg->code);
      p_dev->rc_notif[event_id - 1].bNotify = true;
      p_dev->rc_notif[event_id - 1].label = pmeta_msg->label;

      if (event_id == AVRC_EVT_UIDS_CHANGE) {
        handle_uid_changed_notification(p_dev, pmeta_msg->label, &avrc_command);
        return;
      }
    }

    BTIF_TRACE_EVENT("%s: Passing received metamsg command to app. pdu: %s",