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

Commit 18852e36 authored by Bookatz's avatar Bookatz Committed by android-build-merger
Browse files

Merge "Unifying source of statsd BleScan calls and cleaning it up." am: 056a095d

am: 7ed01476

Change-Id: Ied0f4683311276d2c643e882f57f8a21943aebe3
parents 3b03a305 7ed01476
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;

+0 −4
Original line number Diff line number Diff line
@@ -5802,8 +5802,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();
@@ -5812,8 +5810,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);
            }
        }
    }