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

Commit 34f88136 authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Add scan results to scan stats am: e90db937

am: 2f07b366

* commit '2f07b366':
  Add scan results to scan stats
parents 6c356ce0 2f07b366
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -135,6 +135,13 @@ public class GattService extends ProfileService {
    private Map<Integer, List<BluetoothGattService>> gattClientDatabases =
            new HashMap<Integer, List<BluetoothGattService>>();

    static final int NUM_SCAN_EVENTS_KEPT = 20;
    /**
     * Internal list of scan events to use with the proto
     */
    ArrayList<BluetoothProto.ScanEvent> mScanEvents =
        new ArrayList<BluetoothProto.ScanEvent>(NUM_SCAN_EVENTS_KEPT);

    private ServiceDeclaration addDeclaration() {
        synchronized (mServiceDeclarations) {
            mServiceDeclarations.add(new ServiceDeclaration());