Loading src/com/android/bluetooth/gatt/GattService.java +18 −2 Original line number Diff line number Diff line Loading @@ -1302,7 +1302,15 @@ public class GattService extends ProfileService { scanClient.hasPeersMacAddressPermission = Utils.checkCallerHasPeersMacAddressPermission( this); scanClient.legacyForegroundApp = Utils.isLegacyForegroundApp(this, callingPackage); mClientMap.getAppScanStatsById(appIf).recordScanStart(settings); AppScanStats app = null; if (isServer) { app = mServerMap.getAppScanStatsById(appIf); } else { app = mClientMap.getAppScanStatsById(appIf); } if (app != null) app.recordScanStart(settings); mScanManager.startScan(scanClient); } Loading @@ -1317,7 +1325,15 @@ public class GattService extends ProfileService { int scanQueueSize = mScanManager.getBatchScanQueue().size() + mScanManager.getRegularScanQueue().size(); if (DBG) Log.d(TAG, "stopScan() - queue size =" + scanQueueSize); mClientMap.getAppScanStatsById(client.clientIf).recordScanStop(); AppScanStats app = null; if (client.isServer) { app = mServerMap.getAppScanStatsById(client.clientIf); } else { app = mClientMap.getAppScanStatsById(client.clientIf); } if (app != null) app.recordScanStop(); mScanManager.stopScan(client); } Loading Loading
src/com/android/bluetooth/gatt/GattService.java +18 −2 Original line number Diff line number Diff line Loading @@ -1302,7 +1302,15 @@ public class GattService extends ProfileService { scanClient.hasPeersMacAddressPermission = Utils.checkCallerHasPeersMacAddressPermission( this); scanClient.legacyForegroundApp = Utils.isLegacyForegroundApp(this, callingPackage); mClientMap.getAppScanStatsById(appIf).recordScanStart(settings); AppScanStats app = null; if (isServer) { app = mServerMap.getAppScanStatsById(appIf); } else { app = mClientMap.getAppScanStatsById(appIf); } if (app != null) app.recordScanStart(settings); mScanManager.startScan(scanClient); } Loading @@ -1317,7 +1325,15 @@ public class GattService extends ProfileService { int scanQueueSize = mScanManager.getBatchScanQueue().size() + mScanManager.getRegularScanQueue().size(); if (DBG) Log.d(TAG, "stopScan() - queue size =" + scanQueueSize); mClientMap.getAppScanStatsById(client.clientIf).recordScanStop(); AppScanStats app = null; if (client.isServer) { app = mServerMap.getAppScanStatsById(client.clientIf); } else { app = mClientMap.getAppScanStatsById(client.clientIf); } if (app != null) app.recordScanStop(); mScanManager.stopScan(client); } Loading