aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2014-06-12 11:23:40 -0700
committerMike Lockwood <lockwood@google.com>2014-06-13 09:06:35 -0700
commitf48a72776380b9691c85aba73012bd3d69cebe01 (patch)
tree1924a8d8678ca3be9e9171f9cc10de27f18b99cd /framework/java/android/bluetooth/BluetoothAdapter.java
parent67a995ada9ae181651c436130a56d46699a120c1 (diff)
Rename BluetoothHandsfreeClient to BluetoothHeadsetClient
This makes our terminology consistent with the existing BluetoothHeadset profile Also updated arguments to Context.bindService() Change-Id: I27cc5a6fde256b1f5dccca53a7a15ec8f58691c2
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothAdapter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java
index 8b8629ea75..6daa61d79a 100644
--- a/framework/java/android/bluetooth/BluetoothAdapter.java
+++ b/framework/java/android/bluetooth/BluetoothAdapter.java
@@ -1402,8 +1402,8 @@ public final class BluetoothAdapter {
} else if (profile == BluetoothProfile.MAP) {
BluetoothMap map = new BluetoothMap(context, listener);
return true;
- } else if (profile == BluetoothProfile.HANDSFREE_CLIENT) {
- BluetoothHandsfreeClient hfpclient = new BluetoothHandsfreeClient(context, listener);
+ } else if (profile == BluetoothProfile.HEADSET_CLIENT) {
+ BluetoothHeadsetClient headsetClient = new BluetoothHeadsetClient(context, listener);
return true;
} else {
return false;
@@ -1457,9 +1457,9 @@ public final class BluetoothAdapter {
BluetoothMap map = (BluetoothMap)proxy;
map.close();
break;
- case BluetoothProfile.HANDSFREE_CLIENT:
- BluetoothHandsfreeClient hfpclient = (BluetoothHandsfreeClient)proxy;
- hfpclient.close();
+ case BluetoothProfile.HEADSET_CLIENT:
+ BluetoothHeadsetClient headsetClient = (BluetoothHeadsetClient)proxy;
+ headsetClient.close();
break;
}
}