summaryrefslogtreecommitdiffstats
path: root/core/java/android/bluetooth/BluetoothHeadset.java
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2010-06-02 12:33:53 -0700
committerJaikumar Ganesh <jaikumar@google.com>2010-06-02 16:03:51 -0700
commit740e39be6af3e366a4b82c030b5ea67ab144b42a (patch)
tree7a3f130873dde329ab0f64128a59ee318c13833a /core/java/android/bluetooth/BluetoothHeadset.java
parent9b637e5985f9a86f39d70335c0390ade3716592a (diff)
downloadframeworks_base-740e39be6af3e366a4b82c030b5ea67ab144b42a.zip
frameworks_base-740e39be6af3e366a4b82c030b5ea67ab144b42a.tar.gz
frameworks_base-740e39be6af3e366a4b82c030b5ea67ab144b42a.tar.bz2
Pass BluetoothDevice to the Bluetooth Headset calls.
This is to support multiple headsets at the same time, atleast at the framework level. Change-Id: I91d05c6c2828c9a09d00806d5e79f1e9c9c7cf84
Diffstat (limited to 'core/java/android/bluetooth/BluetoothHeadset.java')
-rw-r--r--core/java/android/bluetooth/BluetoothHeadset.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java
index 9d633fe..4a91a8c 100644
--- a/core/java/android/bluetooth/BluetoothHeadset.java
+++ b/core/java/android/bluetooth/BluetoothHeadset.java
@@ -189,11 +189,11 @@ public final class BluetoothHeadset {
* @return One of the STATE_ return codes, or STATE_ERROR if this proxy
* object is currently not connected to the Headset service.
*/
- public int getState() {
+ public int getState(BluetoothDevice device) {
if (DBG) log("getState()");
if (mService != null) {
try {
- return mService.getState();
+ return mService.getState(device);
} catch (RemoteException e) {Log.e(TAG, e.toString());}
} else {
Log.w(TAG, "Proxy not attached to service");
@@ -271,11 +271,11 @@ public final class BluetoothHeadset {
* be made asynchornous. Returns false if this proxy object is
* not currently connected to the Headset service.
*/
- public boolean disconnectHeadset() {
+ public boolean disconnectHeadset(BluetoothDevice device) {
if (DBG) log("disconnectHeadset()");
if (mService != null) {
try {
- mService.disconnectHeadset();
+ mService.disconnectHeadset(device);
return true;
} catch (RemoteException e) {Log.e(TAG, e.toString());}
} else {