Merge "Unifying source of statsd BleScan calls and cleaning it up."
am: 056a095dd3
Change-Id: I5ddc0d20c96439328c37d0a49f7fa6c4c90d6e14
This commit is contained in:
@@ -272,9 +272,9 @@ message BleScanStateChanged {
|
||||
* Logs reporting of a ble scan finding results.
|
||||
*
|
||||
* Logged from:
|
||||
* frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java
|
||||
* packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
||||
*/
|
||||
// TODO: Consider changing to tracking per-scanner-id (log from AppScanStats).
|
||||
// TODO: Consider also tracking per-scanner-id.
|
||||
message BleScanResultReceived {
|
||||
repeated AttributionNode attribution_node = 1;
|
||||
|
||||
|
||||
@@ -5800,8 +5800,6 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
for (int i = 0; i < N; i++) {
|
||||
int uid = mapUid(ws.get(i));
|
||||
getUidStatsLocked(uid).noteBluetoothScanResultsLocked(numNewResults);
|
||||
StatsLog.write_non_chained(StatsLog.BLE_SCAN_RESULT_RECEIVED, ws.get(i), ws.getName(i),
|
||||
numNewResults);
|
||||
}
|
||||
|
||||
final List<WorkChain> workChains = ws.getWorkChains();
|
||||
@@ -5810,8 +5808,6 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
final WorkChain wc = workChains.get(i);
|
||||
int uid = mapUid(wc.getAttributionUid());
|
||||
getUidStatsLocked(uid).noteBluetoothScanResultsLocked(numNewResults);
|
||||
StatsLog.write(StatsLog.BLE_SCAN_RESULT_RECEIVED,
|
||||
wc.getUids(), wc.getTags(), numNewResults);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user