14248c4ce8cb2a4e156006a868ef6f0ad0d41fa6 |
|
09-Dec-2016 |
Jack He <siyuanh@google.com> |
Fix A2DP metrics session duration * Fixed A2DP duration counting. It is now counting from music play start to music play end. * Start logging a2dp connection as Bluetooth sessions. Currently, only A2DP connections are logged. Thus the bluetooth session length will be the total connection length and the length within A2DP session message will be the audio connection length. * Add a audio_duration_millis field in A2DPSession to record audio duration * Add bonded memory constraint for metrics entries * Use a builder mechanism to only build metrics upon dumping * Refactor metrics module into BluetoothMetricsLogger class * Created unit test for BluetoothMetricsLogger Bug: 33694310 Test: Code compilation, Unit test, BtFunhausMetricsTest Merged-In: Iea2a997c4ea074687a5d50860e9229f0e1b82659 Change-Id: Iea2a997c4ea074687a5d50860e9229f0e1b82659 (cherry picked from commit f3175629208a64b190dde4dcf5f92cacef70d3e9)
/system/bt/osi/test/metrics_test.cpp
|