Fix A2DP Metrics Logging Capacity
* Set the maximum number of wake events logged to 1000 * Stop logging wake log name as it takes too much memory * Add counters for each of the repeated values in BluetoothLog so that the true number of events can be determined while oldest event get dropped * Log Bluetooth session disconnect reasons using enum instead of string in order to save memory usage * Apply other branch changes to bluetooth.proto on system/bt Bug: 33694310 Test: Code compilation and unit tests Change-Id: I2cc6f9304725938b63b211d615eb1941eac60edf (cherry picked from commit 7ab4b59672013eddcb706e288962ab7309a75628)
Showing
- system/btif/src/btif_a2dp_source.cc 2 additions, 2 deletionssystem/btif/src/btif_a2dp_source.cc
- system/osi/include/metrics.h 15 additions, 1 deletionsystem/osi/include/metrics.h
- system/osi/src/metrics.cc 44 additions, 18 deletionssystem/osi/src/metrics.cc
- system/osi/src/protos/bluetooth.proto 30 additions, 1 deletionsystem/osi/src/protos/bluetooth.proto
- system/osi/src/wakelock.cc 2 additions, 2 deletionssystem/osi/src/wakelock.cc
- system/osi/test/metrics_test.cc 75 additions, 22 deletionssystem/osi/test/metrics_test.cc
Loading
Please register or sign in to comment