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

Commit c77b0202 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

am: 18852e36

Change-Id: Ifcc5f22a921f6f4d50eb47a329aa2e3db61410ef
parents eb72ec64 18852e36
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -432,9 +432,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
@@ -5758,8 +5758,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();
@@ -5768,8 +5766,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);
            }
        }
    }