diff options
| author | Prerepa Viswanadham <dham@google.com> | 2014-07-02 12:30:38 -0700 |
|---|---|---|
| committer | Prerepa Viswanadham <dham@google.com> | 2014-07-02 21:24:37 +0000 |
| commit | 0c116e1573184f33883bc3722277ecc6560ebca9 (patch) | |
| tree | e9e3ea46fbb2ba0ce127c6b3e8b5017b4b8a8239 /core/java/android/bluetooth/BluetoothAdapter.java | |
| parent | ecf4d09664a5c96e97a4cf24cf1b31ba1499c1eb (diff) | |
Obtain capabilities from chipset for it's support of various features
Change-Id: I01bdb31136be63e4e46fb4e054c902eddc5647ab
Diffstat (limited to 'core/java/android/bluetooth/BluetoothAdapter.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 22872465b732..d75304feefe7 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -1039,6 +1039,54 @@ public final class BluetoothAdapter { } /** + * Return true if the multi advertisement is supported by the chipset + * + * @hide + * @return true if Multiple Advertisement feature is supported + */ + public boolean isMultipleAdvertisementSupported() { + if (getState() != STATE_ON) return false; + try { + return mService.isMultiAdvertisementSupported(); + } catch (RemoteException e) { + Log.e(TAG, "failed to get isMultipleAdvertisementSupported, error: ", e); + } + return false; + } + + /** + * Return true if offloaded filters are supported + * + * @hide + * @return true if chipset supports on-chip filtering + */ + public boolean isOffloadedFilteringSupported() { + if (getState() != STATE_ON) return false; + try { + return mService.isOffloadedFilteringSupported(); + } catch (RemoteException e) { + Log.e(TAG, "failed to get isOffloadedFilteringSupported, error: ", e); + } + return false; + } + + /** + * Return true if offloaded scan batching is supported + * + * @hide + * @return true if chipset supports on-chip scan batching + */ + public boolean isOffloadedScanBatchingSupported() { + if (getState() != STATE_ON) return false; + try { + return mService.isOffloadedScanBatchingSupported(); + } catch (RemoteException e) { + Log.e(TAG, "failed to get isOffloadedScanBatchingSupported, error: ", e); + } + return false; + } + + /** * Returns whether BLE is currently advertising. * <p>Requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED}. * |
