Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2401)

Unified Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java

Issue 1765773002: bluetooth: Refactor GetDescriptorForUUID to GetDescriptorsForUUID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-notify-tommyt-
Patch Set: addressed ortuno's comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
index b61c7cdcf781b60fbe06a081d294db8f28c77047..2cc705d22253d5a993bd2581f333c082b6478d4f 100644
--- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
+++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
@@ -517,22 +517,6 @@ class Wrappers {
mDeviceWrapper = deviceWrapper;
}
- public BluetoothGattDescriptorWrapper getDescriptor(UUID uuid) {
- BluetoothGattDescriptor descriptor = mCharacteristic.getDescriptor(uuid);
- if (descriptor == null) {
- return null;
- }
-
- BluetoothGattDescriptorWrapper descriptorWrapper =
- mDeviceWrapper.mDescriptorsToWrappers.get(descriptor);
-
- if (descriptorWrapper == null) {
- descriptorWrapper = new BluetoothGattDescriptorWrapper(descriptor, mDeviceWrapper);
- mDeviceWrapper.mDescriptorsToWrappers.put(descriptor, descriptorWrapper);
- }
- return descriptorWrapper;
- }
-
public List<BluetoothGattDescriptorWrapper> getDescriptors() {
List<BluetoothGattDescriptor> descriptors = mCharacteristic.getDescriptors();

Powered by Google App Engine
This is Rietveld 408576698