diff options
author | Wei Wang <weiwa@google.com> | 2014-08-08 04:08:23 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-08 04:08:23 +0000 |
commit | 2089b17c9113c75e3e06e0bf60b5bba3662623cb (patch) | |
tree | 922a45a16c07342fef0dc5aedf6895c6d3e33d23 | |
parent | c612d59e896c21ff7effff2f0733e5f6243634bc (diff) | |
parent | bd57e46e58c60c32566099064bd01d835dcd896e (diff) | |
download | android_packages_apps_Bluetooth-2089b17c9113c75e3e06e0bf60b5bba3662623cb.tar.gz android_packages_apps_Bluetooth-2089b17c9113c75e3e06e0bf60b5bba3662623cb.tar.bz2 android_packages_apps_Bluetooth-2089b17c9113c75e3e06e0bf60b5bba3662623cb.zip |
am bd57e46e: am 97af9506: am 0d8f1ae3: Merge "fix build." into lmp-dev
* commit 'bd57e46e58c60c32566099064bd01d835dcd896e':
fix build.
-rw-r--r-- | src/com/android/bluetooth/gatt/GattService.java | 9 | ||||
-rw-r--r-- | src/com/android/bluetooth/gatt/ScanClient.java | 18 |
2 files changed, 18 insertions, 9 deletions
diff --git a/src/com/android/bluetooth/gatt/GattService.java b/src/com/android/bluetooth/gatt/GattService.java index 116d60480..2e4615f1c 100644 --- a/src/com/android/bluetooth/gatt/GattService.java +++ b/src/com/android/bluetooth/gatt/GattService.java @@ -27,6 +27,7 @@ import android.bluetooth.IBluetoothGattServerCallback; import android.bluetooth.le.AdvertiseCallback; import android.bluetooth.le.AdvertiseData; import android.bluetooth.le.AdvertiseSettings; +import android.bluetooth.le.ResultStorageDescriptor; import android.bluetooth.le.ScanFilter; import android.bluetooth.le.ScanRecord; import android.bluetooth.le.ScanResult; @@ -300,10 +301,10 @@ public class GattService extends ProfileService { @Override public void startScan(int appIf, boolean isServer, ScanSettings settings, - List<ScanFilter> filters) { + List<ScanFilter> filters, List storages) { GattService service = getService(); if (service == null) return; - service.startScan(appIf, isServer, settings, filters); + service.startScan(appIf, isServer, settings, filters, storages); } public void stopScan(int appIf, boolean isServer) { @@ -1278,10 +1279,10 @@ public class GattService extends ProfileService { } void startScan(int appIf, boolean isServer, ScanSettings settings, - List<ScanFilter> filters) { + List<ScanFilter> filters, List<List<ResultStorageDescriptor>> storages) { if (DBG) Log.d(TAG, "start scan with filters"); enforceAdminPermission(); - mScanManager.startScan(new ScanClient(appIf, isServer, settings, filters)); + mScanManager.startScan(new ScanClient(appIf, isServer, settings, filters, storages)); } void flushPendingBatchResults(int clientIf, boolean isServer) { diff --git a/src/com/android/bluetooth/gatt/ScanClient.java b/src/com/android/bluetooth/gatt/ScanClient.java index 03708121e..f73a52740 100644 --- a/src/com/android/bluetooth/gatt/ScanClient.java +++ b/src/com/android/bluetooth/gatt/ScanClient.java @@ -16,6 +16,7 @@ package com.android.bluetooth.gatt; +import android.bluetooth.le.ResultStorageDescriptor; import android.bluetooth.le.ScanFilter; import android.bluetooth.le.ScanSettings; @@ -34,31 +35,38 @@ import java.util.UUID; UUID[] uuids; ScanSettings settings; List<ScanFilter> filters; + List<List<ResultStorageDescriptor>> storages; private static final ScanSettings DEFAULT_SCAN_SETTINGS = new ScanSettings.Builder() .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); ScanClient(int appIf, boolean isServer) { - this(appIf, isServer, new UUID[0], DEFAULT_SCAN_SETTINGS, null); + this(appIf, isServer, new UUID[0], DEFAULT_SCAN_SETTINGS, null, null); } ScanClient(int appIf, boolean isServer, UUID[] uuids) { - this(appIf, isServer, uuids, DEFAULT_SCAN_SETTINGS, null); + this(appIf, isServer, uuids, DEFAULT_SCAN_SETTINGS, null, null); } ScanClient(int appIf, boolean isServer, ScanSettings settings, List<ScanFilter> filters) { - this(appIf, isServer, new UUID[0], settings, filters); + this(appIf, isServer, new UUID[0], settings, filters, null); + } + + + ScanClient(int appIf, boolean isServer, ScanSettings settings, + List<ScanFilter> filters, List<List<ResultStorageDescriptor>> storages) { + this(appIf, isServer, new UUID[0], settings, filters, storages); } private ScanClient(int appIf, boolean isServer, UUID[] uuids, ScanSettings settings, - List<ScanFilter> filters) { + List<ScanFilter> filters, List<List<ResultStorageDescriptor>> storages) { this.clientIf = appIf; this.isServer = isServer; this.uuids = uuids; this.settings = settings; this.filters = filters; - + this.storages = storages; } @Override |