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

Commit 2c2128a2 authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Use the correct ContextMap for scan statistics

Test: "adb shell dumpsys bluetooth_manager" after scanning with an LE app
Change-Id: Id8c16aa171d9ceee9b3ce83ae5afbefa0d6fd9ed
parent 2254d79e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1327,7 +1327,7 @@ public class GattService extends ProfileService {
        scanClient.legacyForegroundApp = Utils.isLegacyForegroundApp(this, callingPackage);

        AppScanStats app = null;
        app = mClientMap.getAppScanStatsById(scannerId);
        app = mScannerMap.getAppScanStatsById(scannerId);

        if (app != null) {
            if (app.isScanningTooFrequently() &&
@@ -2171,7 +2171,10 @@ public class GattService extends ProfileService {

        println(sb, "mMaxScanFilters: " + mMaxScanFilters);

        sb.append("\nGATT Client Map\n");
        sb.append("\nGATT Scanner Map\n");
        mScannerMap.dump(sb);

        sb.append("GATT Client Map\n");
        mClientMap.dump(sb);

        sb.append("GATT Server Map\n");