summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java
diff options
context:
space:
mode:
authorGanesh Ganapathi Batta <ganeshg@broadcom.com>2013-02-05 15:28:33 -0800
committerMatthew Xie <mattx@google.com>2013-02-27 18:08:14 -0800
commit40b98951361157933c2084e855f7cffef0ca7fb7 (patch)
tree17cea117c2c77918e43d81f5e651e04b8a730758 /framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java
parent5c1f303052011bf9b359d55ff39ae2c174a84dad (diff)
Initial version of BLE support for Bluedroid
The API classes are hidden for now. Will unhide after API console approval. Change-Id: I8283dd562fd6189fdd15c866ef2efb8bbdbc4109
Diffstat (limited to 'framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java')
-rw-r--r--framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java b/framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java
new file mode 100644
index 0000000000..e455392087
--- /dev/null
+++ b/framework/java/android/bluetooth/MutableBluetoothGattDescriptor.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.bluetooth;
+
+import java.util.UUID;
+
+/**
+ * Mutable variant of a Bluetooth Gatt Descriptor
+ * @hide
+ */
+public class MutableBluetoothGattDescriptor extends BluetoothGattDescriptor {
+
+ /**
+ * Create a new BluetoothGattDescriptor.
+ * <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission.
+ *
+ * @param uuid The UUID for this descriptor
+ * @param permissions Permissions for this descriptor
+ */
+ public MutableBluetoothGattDescriptor(UUID uuid, int permissions) {
+ super(null, uuid, permissions);
+ }
+
+ /**
+ * Set the back-reference to the associated characteristic
+ * @hide
+ */
+ /*package*/ void setCharacteristic(BluetoothGattCharacteristic characteristic) {
+ mCharacteristic = characteristic;
+ }
+}