summaryrefslogtreecommitdiffstats
path: root/core/java/android/bluetooth/BluetoothGattServerCallback.java
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2013-03-01 18:41:02 -0800
committerMatthew Xie <mattx@google.com>2013-03-28 15:36:10 -0700
commitddf7e4756c31d0ed90802f98abeaa79df6d16b2a (patch)
treed50a602db913c46bd83905631cb1d36d3cb9ecec /core/java/android/bluetooth/BluetoothGattServerCallback.java
parentdc1975ea717cdafb914fd00ea781fd314e1ac478 (diff)
downloadframeworks_base-ddf7e4756c31d0ed90802f98abeaa79df6d16b2a.zip
frameworks_base-ddf7e4756c31d0ed90802f98abeaa79df6d16b2a.tar.gz
frameworks_base-ddf7e4756c31d0ed90802f98abeaa79df6d16b2a.tar.bz2
Unhide Bluetooth Low Energy public APIs
Updated API headers. Add BluetoothManager to be retrieved by context.getSystemService(Context.BLUETOOTH_SERVICE). LE scan functions are placed in BluetoothAdapter The GATT API are device driven instead of a profile-driver. bug 8450158 Change-Id: I424a4cedaac3ef8120a05996500008dd210d2553
Diffstat (limited to 'core/java/android/bluetooth/BluetoothGattServerCallback.java')
-rw-r--r--core/java/android/bluetooth/BluetoothGattServerCallback.java36
1 files changed, 7 insertions, 29 deletions
diff --git a/core/java/android/bluetooth/BluetoothGattServerCallback.java b/core/java/android/bluetooth/BluetoothGattServerCallback.java
index 4f608ff..f9f1d97 100644
--- a/core/java/android/bluetooth/BluetoothGattServerCallback.java
+++ b/core/java/android/bluetooth/BluetoothGattServerCallback.java
@@ -22,30 +22,8 @@ import android.util.Log;
/**
* This abstract class is used to implement {@link BluetoothGattServer} callbacks.
- * @hide
*/
public abstract class BluetoothGattServerCallback {
- /**
- * Callback to inform change in registration state of the application.
- *
- * @param status Returns {@link BluetoothGatt#GATT_SUCCESS} if the application
- * was successfully registered.
- */
- public void onAppRegistered(int status) {
- }
-
- /**
- * Callback reporting an LE device found during a device scan initiated
- * by the {@link BluetoothGattServer#startScan} function.
- *
- * @param device Identifies the remote device
- * @param rssi The RSSI value for the remote device as reported by the
- * Bluetooth hardware. 0 if no RSSI value is available.
- * @param scanRecord The content of the advertisement record offered by
- * the remote device.
- */
- public void onScanResult(BluetoothDevice device, int rssi, byte[] scanRecord) {
- }
/**
* Callback indicating when a remote device has been connected or disconnected.
@@ -101,9 +79,9 @@ public abstract class BluetoothGattServerCallback {
* @param value The value the client wants to assign to the characteristic
*/
public void onCharacteristicWriteRequest(BluetoothDevice device, int requestId,
- BluetoothGattCharacteristic characteristic,
- boolean preparedWrite, boolean responseNeeded,
- int offset, byte[] value) {
+ BluetoothGattCharacteristic characteristic,
+ boolean preparedWrite, boolean responseNeeded,
+ int offset, byte[] value) {
}
/**
@@ -118,7 +96,7 @@ public abstract class BluetoothGattServerCallback {
* @param descriptor Descriptor to be read
*/
public void onDescriptorReadRequest(BluetoothDevice device, int requestId,
- int offset, BluetoothGattDescriptor descriptor) {
+ int offset, BluetoothGattDescriptor descriptor) {
}
/**
@@ -137,9 +115,9 @@ public abstract class BluetoothGattServerCallback {
* @param value The value the client wants to assign to the descriptor
*/
public void onDescriptorWriteRequest(BluetoothDevice device, int requestId,
- BluetoothGattDescriptor descriptor,
- boolean preparedWrite, boolean responseNeeded,
- int offset, byte[] value) {
+ BluetoothGattDescriptor descriptor,
+ boolean preparedWrite, boolean responseNeeded,
+ int offset, byte[] value) {
}
/**