diff options
author | Michael Wright <michaelwr@google.com> | 2015-09-03 17:57:01 +0100 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2015-10-12 15:21:37 +0100 |
commit | 9209c9cd9a6f779d0d9d86f9b2e368df564fa6bb (patch) | |
tree | ccee5b1af2c31841fec6fa3cbce9a3aa277549eb /packages/SettingsLib | |
parent | 4e4d59eeef86fa8560d35c00168869b0a066f962 (diff) | |
download | frameworks_base-9209c9cd9a6f779d0d9d86f9b2e368df564fa6bb.zip frameworks_base-9209c9cd9a6f779d0d9d86f9b2e368df564fa6bb.tar.gz frameworks_base-9209c9cd9a6f779d0d9d86f9b2e368df564fa6bb.tar.bz2 |
Add SystemUI component to watch for keyboard attachment.
Add a new SystemUI component to watch for keyboard attachment /
detachment. If the config specifies the name of a keyboard that is
packaged with the device, then SystemUI will ask the user if they
would like to enable BT (if disabled) and then attempt to pair to the
device.
Bug: 22876536
Change-Id: I786db35524d49706d5e61d8b8bc71194d50113f3
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothAdapter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothAdapter.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothAdapter.java index 0380e21..f935f31 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothAdapter.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothAdapter.java @@ -19,6 +19,7 @@ package com.android.settingslib.bluetooth; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothProfile; +import android.bluetooth.le.BluetoothLeScanner; import android.content.Context; import android.os.ParcelUuid; import android.util.Log; @@ -106,6 +107,10 @@ public final class LocalBluetoothAdapter { return mAdapter.getScanMode(); } + public BluetoothLeScanner getBluetoothLeScanner() { + return mAdapter.getBluetoothLeScanner(); + } + public int getState() { return mAdapter.getState(); } |