summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothPan.java
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2012-01-25 16:16:48 -0800
committerMatthew Xie <mattx@google.com>2012-07-13 22:22:51 -0700
commit884452306d321a159f432fbec2573d2f37e513c5 (patch)
treed15234fc6fd37591f0ab4241a3351b0bc70595ca /framework/java/android/bluetooth/BluetoothPan.java
parent6da63327768636eea96a996e16176fd7833dce2a (diff)
Changes for new Bluetooth APIs.
Changes to Bluetooth Adapter, Device and IBluetooth interfaces for new Bluetooth APIs. Delete AudioGateway. Change-Id: Ib51b31187eafde261441b9311b5e7e13c8bff82f
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothPan.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothPan.java29
1 files changed, 22 insertions, 7 deletions
diff --git a/framework/java/android/bluetooth/BluetoothPan.java b/framework/java/android/bluetooth/BluetoothPan.java
index 5d9d8bea8e..13526e81fa 100644
--- a/framework/java/android/bluetooth/BluetoothPan.java
+++ b/framework/java/android/bluetooth/BluetoothPan.java
@@ -165,12 +165,14 @@ public final class BluetoothPan implements BluetoothProfile {
if (DBG) log("connect(" + device + ")");
if (mService != null && isEnabled() &&
isValidDevice(device)) {
+ //TODO(BT
+ /*
try {
return mService.connectPanDevice(device);
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
return false;
- }
+ }*/
}
if (mService == null) Log.w(TAG, "Proxy not attached to service");
return false;
@@ -206,12 +208,14 @@ public final class BluetoothPan implements BluetoothProfile {
if (DBG) log("disconnect(" + device + ")");
if (mService != null && isEnabled() &&
isValidDevice(device)) {
+ //TODO(BT
+ /*
try {
return mService.disconnectPanDevice(device);
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
return false;
- }
+ }*/
}
if (mService == null) Log.w(TAG, "Proxy not attached to service");
return false;
@@ -223,12 +227,14 @@ public final class BluetoothPan implements BluetoothProfile {
public List<BluetoothDevice> getConnectedDevices() {
if (DBG) log("getConnectedDevices()");
if (mService != null && isEnabled()) {
+ //TODO(BT
+ /*
try {
return mService.getConnectedPanDevices();
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
return new ArrayList<BluetoothDevice>();
- }
+ }*/
}
if (mService == null) Log.w(TAG, "Proxy not attached to service");
return new ArrayList<BluetoothDevice>();
@@ -240,12 +246,14 @@ public final class BluetoothPan implements BluetoothProfile {
public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) {
if (DBG) log("getDevicesMatchingStates()");
if (mService != null && isEnabled()) {
+ //TODO(BT
+ /*
try {
return mService.getPanDevicesMatchingConnectionStates(states);
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
return new ArrayList<BluetoothDevice>();
- }
+ }*/
}
if (mService == null) Log.w(TAG, "Proxy not attached to service");
return new ArrayList<BluetoothDevice>();
@@ -258,12 +266,14 @@ public final class BluetoothPan implements BluetoothProfile {
if (DBG) log("getState(" + device + ")");
if (mService != null && isEnabled()
&& isValidDevice(device)) {
+ //TODO(BT
+ /*
try {
return mService.getPanDeviceConnectionState(device);
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
return BluetoothProfile.STATE_DISCONNECTED;
- }
+ }*/
}
if (mService == null) Log.w(TAG, "Proxy not attached to service");
return BluetoothProfile.STATE_DISCONNECTED;
@@ -271,21 +281,26 @@ public final class BluetoothPan implements BluetoothProfile {
public void setBluetoothTethering(boolean value) {
if (DBG) log("setBluetoothTethering(" + value + ")");
+ //TODO(BT
+ /*
try {
mService.setBluetoothTethering(value);
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
- }
+ }*/
}
public boolean isTetheringOn() {
if (DBG) log("isTetheringOn()");
+ //TODO(BT
+ /*
try {
return mService.isTetheringOn();
} catch (RemoteException e) {
Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
return false;
- }
+ }*/
+ return false;
}
private boolean isEnabled() {