From 9354790fa199a316eba1a2e52b789a3ebe28726b Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Tue, 23 Aug 2011 12:21:55 -0700 Subject: Make profile connection state API public. Change-Id: I1f2810d4e820142435f7bbda051c98ec3e3cf3eb --- core/java/android/bluetooth/BluetoothAdapter.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'core/java/android/bluetooth') diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 264db19..2236928 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -777,23 +777,24 @@ public final class BluetoothAdapter { * Get the current connection state of a profile. * This function can be used to check whether the local Bluetooth adapter * is connected to any remote device for a specific profile. - * Profile can be one of {@link BluetoothProfile.HEADSET}, - * {@link BluetoothProfile.A2DP}. + * Profile can be one of {@link BluetoothProfile#HEADSET}, + * {@link BluetoothProfile#A2DP}. * *

Requires {@link android.Manifest.permission#BLUETOOTH}. * *

Return value can be one of - * {@link * BluetoothProfile.STATE_DISCONNECTED}, - * {@link * BluetoothProfile.STATE_CONNECTING}, - * {@link * BluetoothProfile.STATE_CONNECTED}, - * {@link * BluetoothProfile.STATE_DISCONNECTING} - * @hide + * {@link BluetoothProfile#STATE_DISCONNECTED}, + * {@link BluetoothProfile#STATE_CONNECTING}, + * {@link BluetoothProfile#STATE_CONNECTED}, + * {@link BluetoothProfile#STATE_DISCONNECTING} */ public int getProfileConnectionState(int profile) { if (getState() != STATE_ON) return BluetoothProfile.STATE_DISCONNECTED; try { return mService.getProfileConnectionState(profile); - } catch (RemoteException e) {Log.e(TAG, "getProfileConnectionState:", e);} + } catch (RemoteException e) { + Log.e(TAG, "getProfileConnectionState:", e); + } return BluetoothProfile.STATE_DISCONNECTED; } -- cgit v1.1