/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
Utils.java | 3 import android.bluetooth.BluetoothProfile; 16 case BluetoothProfile.STATE_CONNECTED: 18 case BluetoothProfile.STATE_CONNECTING: 20 case BluetoothProfile.STATE_DISCONNECTED: 22 case BluetoothProfile.STATE_DISCONNECTING:
|
A2dpProfile.java | 23 import android.bluetooth.BluetoothProfile; 57 implements BluetoothProfile.ServiceListener { 59 public void onServiceConnected(int profile, BluetoothProfile proxy) { 72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); 95 BluetoothProfile.A2DP); 109 new int[] {BluetoothProfile.STATE_CONNECTED, 110 BluetoothProfile.STATE_CONNECTING, 111 BluetoothProfile.STATE_DISCONNECTING}); 128 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ 129 mService.setPriority(device, BluetoothProfile.PRIORITY_ON) [all...] |
HidProfile.java | 23 import android.bluetooth.BluetoothProfile; 52 implements BluetoothProfile.ServiceListener { 54 public void onServiceConnected(int profile, BluetoothProfile proxy) { 67 device.onProfileStateChanged(HidProfile.this, BluetoothProfile.STATE_CONNECTED); 90 BluetoothProfile.INPUT_DEVICE); 113 return BluetoothProfile.STATE_DISCONNECTED; 119 : BluetoothProfile.STATE_DISCONNECTED; 124 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; 128 if (mService == null) return BluetoothProfile.PRIORITY_OFF; 135 if (mService.getPriority(device) < BluetoothProfile.PRIORITY_ON) [all...] |
MapProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 62 public void onServiceConnected(int profile, BluetoothProfile proxy) { 76 BluetoothProfile.STATE_CONNECTED); 103 BluetoothProfile.MAP); 123 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { 124 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); 133 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; 139 : BluetoothProfile.STATE_DISCONNECTED; 144 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF [all...] |
HeadsetProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 62 public void onServiceConnected(int profile, BluetoothProfile proxy) { 76 BluetoothProfile.STATE_CONNECTED); 102 BluetoothProfile.HEADSET); 133 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { 134 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); 144 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; 153 return BluetoothProfile.STATE_DISCONNECTED; 158 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF [all...] |
SapProfile.java | 23 import android.bluetooth.BluetoothProfile; 59 implements BluetoothProfile.ServiceListener { 61 public void onServiceConnected(int profile, BluetoothProfile proxy) { 75 BluetoothProfile.STATE_CONNECTED); 101 BluetoothProfile.SAP); 127 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { 128 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); 137 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; 142 : BluetoothProfile.STATE_DISCONNECTED; 147 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF [all...] |
OppProfile.java | 23 import android.bluetooth.BluetoothProfile; 52 return BluetoothProfile.STATE_DISCONNECTED; // Settings app doesn't handle OPP 60 return BluetoothProfile.PRIORITY_OFF; // Settings app doesn't handle OPP
|
PanProfile.java | 23 import android.bluetooth.BluetoothProfile; 53 implements BluetoothProfile.ServiceListener { 55 public void onServiceConnected(int profile, BluetoothProfile proxy) { 74 BluetoothProfile.PAN); 103 return BluetoothProfile.STATE_DISCONNECTED; 139 case BluetoothProfile.STATE_DISCONNECTED: 142 case BluetoothProfile.STATE_CONNECTED: 175 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.PAN, mService);
|
PbapServerProfile.java | 22 import android.bluetooth.BluetoothProfile; 97 return BluetoothProfile.STATE_DISCONNECTED; 100 return BluetoothProfile.STATE_CONNECTED; 102 return BluetoothProfile.STATE_DISCONNECTED;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpStateMachine.java | 34 import android.bluetooth.BluetoothProfile; 148 (getConnectionState(mTargetDevice) == BluetoothProfile.STATE_CONNECTING)) { 150 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_DISCONNECTED, 151 BluetoothProfile.STATE_CONNECTING); 178 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 179 BluetoothProfile.STATE_DISCONNECTED); 182 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, 183 BluetoothProfile.STATE_CONNECTING); 229 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 230 BluetoothProfile.STATE_DISCONNECTED) [all...] |
A2dpSinkStateMachine.java | 35 import android.bluetooth.BluetoothProfile; 184 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 185 BluetoothProfile.STATE_DISCONNECTED); 188 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, 189 BluetoothProfile.STATE_CONNECTING); 238 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 239 BluetoothProfile.STATE_DISCONNECTED); 260 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, 261 BluetoothProfile.STATE_DISCONNECTED); 312 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED [all...] |
A2dpSinkService.java | 21 import android.bluetooth.BluetoothProfile; 109 if (connectionState == BluetoothProfile.STATE_CONNECTED || 110 connectionState == BluetoothProfile.STATE_CONNECTING) { 122 if (connectionState != BluetoothProfile.STATE_CONNECTED && 123 connectionState != BluetoothProfile.STATE_CONNECTING) { 203 if (service == null) return BluetoothProfile.STATE_DISCONNECTED;
|
A2dpService.java | 20 import android.bluetooth.BluetoothProfile; 132 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { 143 if (connectionState == BluetoothProfile.STATE_CONNECTED || 144 connectionState == BluetoothProfile.STATE_CONNECTING) { 156 if (connectionState != BluetoothProfile.STATE_CONNECTED && 157 connectionState != BluetoothProfile.STATE_CONNECTING) { 195 BluetoothProfile.PRIORITY_UNDEFINED); 275 if (service == null) return BluetoothProfile.STATE_DISCONNECTED; 287 if (service == null) return BluetoothProfile.PRIORITY_UNDEFINED;
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothManager.java | 90 * {@link BluetoothProfile#STATE_CONNECTED}, {@link BluetoothProfile#STATE_CONNECTING}, 91 * {@link BluetoothProfile#STATE_DISCONNECTED}, 92 * {@link BluetoothProfile#STATE_DISCONNECTING} 101 return BluetoothProfile.STATE_CONNECTED; 105 return BluetoothProfile.STATE_DISCONNECTED; 111 * <p> Return the set of devices which are in state {@link BluetoothProfile#STATE_CONNECTED} 126 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { 138 new int[] { BluetoothProfile.STATE_CONNECTED }) [all...] |
BluetoothProfile.java | 32 public interface BluetoothProfile { 203 * An interface for notifying BluetoothProfile IPC clients when they have 215 public void onServiceConnected(int profile, BluetoothProfile proxy);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothInputDeviceConnector.java | 22 import android.bluetooth.BluetoothProfile; 42 private BluetoothProfile.ServiceListener mServiceConnection = 43 new BluetoothProfile.ServiceListener() { 54 public void onServiceConnected(int profile, BluetoothProfile proxy) { 71 mInputProxy.setPriority(mTarget, BluetoothProfile.PRIORITY_AUTO_CONNECT); 136 adapter.closeProfileProxy(BluetoothProfile.INPUT_DEVICE, mInputProxy); 157 if (!adapter.getProfileProxy(mContext, mServiceConnection, BluetoothProfile.INPUT_DEVICE)) {
|
BluetoothA2dpConnector.java | 22 import android.bluetooth.BluetoothProfile; 77 private BluetoothProfile.ServiceListener mServiceConnection = 78 new BluetoothProfile.ServiceListener() { 89 public void onServiceConnected(int profile, BluetoothProfile proxy) { 107 mA2dpProfile.setPriority(mTarget, BluetoothProfile.PRIORITY_AUTO_CONNECT); 126 if (!adapter.getProfileProxy(mContext, mServiceConnection, BluetoothProfile.A2DP)) { 135 adapter.closeProfileProxy(BluetoothProfile.A2DP, mA2dpProfile);
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
BluetoothPeripheralHandover.java | 24 import android.bluetooth.BluetoothProfile; 52 public class BluetoothPeripheralHandover implements BluetoothProfile.ServiceListener { 222 != BluetoothProfile.STATE_DISCONNECTED) { 232 != BluetoothProfile.STATE_DISCONNECTED) { 239 != BluetoothProfile.STATE_DISCONNECTED) { 283 if (!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.INPUT_DEVICE)) 286 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET)) 289 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP)) 328 != BluetoothProfile.STATE_CONNECTED) { 338 BluetoothProfile.STATE_CONNECTED) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
HeadsetClientService.java | 21 import android.bluetooth.BluetoothProfile; 187 return BluetoothProfile.STATE_DISCONNECTED; 205 return BluetoothProfile.PRIORITY_UNDEFINED; 443 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { 448 if (connectionState == BluetoothProfile.STATE_CONNECTED || 449 connectionState == BluetoothProfile.STATE_CONNECTING) { 461 if (connectionState != BluetoothProfile.STATE_CONNECTED && 462 connectionState != BluetoothProfile.STATE_CONNECTING) { 503 BluetoothProfile.PRIORITY_UNDEFINED); 510 if (connectionState != BluetoothProfile.STATE_CONNECTED & [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
AvrcpControllerService.java | 22 import android.bluetooth.BluetoothProfile; 142 if (states[i] == BluetoothProfile.STATE_CONNECTED) { 151 return (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED 152 : BluetoothProfile.STATE_DISCONNECTED); 207 if (service == null) return BluetoothProfile.STATE_DISCONNECTED; 242 int oldState = (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED 243 : BluetoothProfile.STATE_DISCONNECTED); 244 int newState = (connected ? BluetoothProfile.STATE_CONNECTED 245 : BluetoothProfile.STATE_DISCONNECTED); 246 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, oldState) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
AdapterProperties.java | 21 import android.bluetooth.BluetoothProfile; 342 return BluetoothProfile.STATE_DISCONNECTED; 386 return (state == BluetoothProfile.STATE_DISCONNECTED || 387 state == BluetoothProfile.STATE_CONNECTING || 388 state == BluetoothProfile.STATE_CONNECTED || 389 state == BluetoothProfile.STATE_DISCONNECTING); 395 case BluetoothProfile.STATE_DISCONNECTED: 397 case BluetoothProfile.STATE_DISCONNECTING: 399 case BluetoothProfile.STATE_CONNECTED: 401 case BluetoothProfile.STATE_CONNECTING [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
BluetoothTestUtils.java | 20 import android.bluetooth.BluetoothProfile; 222 case BluetoothProfile.A2DP: 225 case BluetoothProfile.HEADSET: 228 case BluetoothProfile.INPUT_DEVICE: 231 case BluetoothProfile.PAN: 246 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); 249 case BluetoothProfile.STATE_DISCONNECTED: 252 case BluetoothProfile.STATE_CONNECTING: 255 case BluetoothProfile.STATE_CONNECTED: 258 case BluetoothProfile.STATE_DISCONNECTING [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
PanService.java | 22 import android.bluetooth.BluetoothProfile; 123 handlePanDeviceStateChange(dev, mPanIfName, BluetoothProfile.STATE_DISCONNECTED, 143 handlePanDeviceStateChange(device, null, BluetoothProfile.STATE_CONNECTING, 146 BluetoothProfile.STATE_DISCONNECTED, BluetoothPan.LOCAL_PANU_ROLE, 157 BluetoothProfile.STATE_DISCONNECTING, BluetoothPan.LOCAL_PANU_ROLE, 160 BluetoothProfile.STATE_DISCONNECTED, BluetoothPan.LOCAL_PANU_ROLE, 260 if (getConnectionState(device) != BluetoothProfile.STATE_DISCONNECTED) { 317 new int[] {BluetoothProfile.STATE_CONNECTED}); 371 return BluetoothProfile.STATE_CONNECTED; 373 return BluetoothProfile.STATE_CONNECTING [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
DockEventReceiver.java | 24 import android.bluetooth.BluetoothProfile; 86 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, 87 BluetoothProfile.STATE_CONNECTED); 88 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 0); 102 if (newState == BluetoothProfile.STATE_DISCONNECTED && 103 oldState != BluetoothProfile.STATE_DISCONNECTING) {
|
Utils.java | 20 import android.bluetooth.BluetoothProfile; 47 case BluetoothProfile.STATE_CONNECTED: 49 case BluetoothProfile.STATE_CONNECTING: 51 case BluetoothProfile.STATE_DISCONNECTED: 53 case BluetoothProfile.STATE_DISCONNECTING:
|