diff options
author | Jack He <siyuanh@google.com> | 2016-12-22 12:30:26 -0800 |
---|---|---|
committer | Jack He <siyuanh@google.com> | 2017-01-05 19:00:31 -0800 |
commit | be82cf8b0006b9d1da7a5b1bbd6303c954459959 (patch) | |
tree | 298ad1ab3379934ee09aadf2151c160bc2aa7a24 | |
parent | e1ed7832d5c22b1fd52e9efa1d2efc323a2699cc (diff) | |
download | android_packages_apps_Bluetooth-be82cf8b0006b9d1da7a5b1bbd6303c954459959.tar.gz android_packages_apps_Bluetooth-be82cf8b0006b9d1da7a5b1bbd6303c954459959.tar.bz2 android_packages_apps_Bluetooth-be82cf8b0006b9d1da7a5b1bbd6303c954459959.zip |
Fix A2DP metrics session duration
* Add one extra item in the A2DPSession message to keep track of audio
playback time for A2DP source
Bug: 33694310
Test: code compilation
Merged-In: Iee1e47997bf9cf9ba3f7f812c965eab36f19c0f4
Change-Id: Iee1e47997bf9cf9ba3f7f812c965eab36f19c0f4
(cherry picked from commit 4308e8f5f34b668f48cb50fbbdac77e45d04e432)
-rw-r--r-- | src/com/android/bluetooth/btservice/bluetooth.proto | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/btservice/bluetooth.proto b/src/com/android/bluetooth/btservice/bluetooth.proto index 77ded7807..871a13a4b 100644 --- a/src/com/android/bluetooth/btservice/bluetooth.proto +++ b/src/com/android/bluetooth/btservice/bluetooth.proto @@ -82,7 +82,7 @@ message BluetoothSession { // The information about the RFComm session. optional RFCommSession rfcomm_session = 6; - // The information about the A2DP session. + // The information about the A2DP audio session. optional A2DPSession a2dp_session = 7; } @@ -95,7 +95,7 @@ message RFCommSession { optional int32 tx_bytes = 2; } -// Session information that gets logged for every A2DP session. +// Session information that gets logged for A2DP session. message A2DPSession { // Media timer in milliseconds. @@ -118,6 +118,9 @@ message A2DPSession { // Buffer underruns count. optional int32 buffer_underruns_count = 7; + + // Total audio time in this A2DP session + optional int64 audio_duration_millis = 8; } message PairEvent { |