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

Commit c7e3a874 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Use main/shim/dumpsys::PRIVATE_CELL am: 5c20d011 am: e44e9409 am: 0b71c281

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1553555

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I86d4c4bd4730a13e6c5b2b9b338eeb1615e010af
parents 87f27981 0b71c281
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -47,6 +47,10 @@
#include "common/metrics.h"
#include "main/shim/dumpsys.h"

namespace {
constexpr char kBtmLogTag[] = "HFP";
}

namespace bluetooth {
namespace headset {

@@ -1149,7 +1153,7 @@ bt_status_t HeadsetInterface::PhoneStateChange(
  /* if all indicators are 0, send end call and return */
  if (num_active == 0 && num_held == 0 &&
      call_setup_state == BTHF_CALL_STATE_IDLE) {
    BTM_LogHistory("HFP", raw_address, "Call Ended");
    BTM_LogHistory(kBtmLogTag, raw_address, "Call Ended");
    BTA_AgResult(control_block.handle, BTA_AG_END_CALL_RES,
                 tBTA_AG_RES_DATA::kEmpty);
    /* if held call was present, reset that as well */
@@ -1287,6 +1291,9 @@ bt_status_t HeadsetInterface::PhoneStateChange(
          }
          snprintf(ag_res.str, sizeof(ag_res.str), "%s",
                   call_number_stream.str().c_str());
          std::string number(call_number_stream.str());
          BTM_LogHistory(kBtmLogTag, raw_address, "Call Incoming",
                         base::StringPrintf("number:%s", PRIVATE_CELL(number)));
        }
        break;
      case BTHF_CALL_STATE_DIALING: