diff options
-rw-r--r-- | src/com/android/bluetooth/gatt/GattService.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/gatt/GattService.java b/src/com/android/bluetooth/gatt/GattService.java index 53d36a3b9..d207bb529 100644 --- a/src/com/android/bluetooth/gatt/GattService.java +++ b/src/com/android/bluetooth/gatt/GattService.java @@ -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()); |