summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Panicker <apanicke@google.com>2016-03-23 19:32:21 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-03-23 19:32:21 +0000
commit2f07b366ba0e42f37029e2ba79913fc5ea1a340b (patch)
treefd9c3c1ff44bec18f4918465528df5a8b5c6b626
parentcd03335b0e429a1851d84d238408eb6712c5f755 (diff)
parente90db937c008f365f47e7199d6d86f9eb13bed1e (diff)
downloadandroid_packages_apps_Bluetooth-2f07b366ba0e42f37029e2ba79913fc5ea1a340b.tar.gz
android_packages_apps_Bluetooth-2f07b366ba0e42f37029e2ba79913fc5ea1a340b.tar.bz2
android_packages_apps_Bluetooth-2f07b366ba0e42f37029e2ba79913fc5ea1a340b.zip
Add scan results to scan stats
am: e90db93 * commit 'e90db937c008f365f47e7199d6d86f9eb13bed1e': Add scan results to scan stats
-rw-r--r--src/com/android/bluetooth/gatt/GattService.java7
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());