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

Commit 6f451f04 authored by Andy Hung's avatar Andy Hung
Browse files

AudioTrack: Enable logSessionId for original proto

Test: Modified atest AudioTrackTest#testSetLogSessionId
Test: adb shell dumpsys media.metrics
Bug: 180543764
Change-Id: I1db9269f3f9c620b605ce531301eec4ef97a1fab
parent 5530dd3d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -218,6 +218,7 @@ void AudioTrack::MediaMetrics::gather(const AudioTrack *track)
    mMetricsItem->setCString(MM_PREFIX "encoding", toString(track->mFormat).c_str());
    mMetricsItem->setInt32(MM_PREFIX "frameCount", (int32_t)track->mFrameCount);
    mMetricsItem->setCString(MM_PREFIX "attributes", toString(track->mAttributes).c_str());
    mMetricsItem->setCString(MM_PREFIX "logSessionId", track->mLogSessionId.c_str());
}

// hand the user a snapshot of the metrics.