/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BluetoothUtil.java | 28 import android.bluetooth.BluetoothProfile; 36 if (profile == BluetoothProfile.HEADSET) return "HEADSET"; in profileToString() 37 if (profile == BluetoothProfile.A2DP) return "A2DP"; in profileToString() 38 if (profile == BluetoothProfile.AVRCP_CONTROLLER) return "AVRCP_CONTROLLER"; in profileToString() 43 if (state == BluetoothProfile.STATE_CONNECTED) return "STATE_CONNECTED"; in profileStateToString() 44 if (state == BluetoothProfile.STATE_CONNECTING) return "STATE_CONNECTING"; in profileStateToString() 45 if (state == BluetoothProfile.STATE_DISCONNECTED) return "STATE_DISCONNECTED"; in profileStateToString() 46 if (state == BluetoothProfile.STATE_DISCONNECTING) return "STATE_DISCONNECTING"; in profileStateToString() 97 if (BluetoothUuid.AudioSink.equals(uuid)) return BluetoothProfile.A2DP; in uuidToProfile() 98 if (BluetoothUuid.AdvAudioDist.equals(uuid)) return BluetoothProfile.A2DP; in uuidToProfile() [all …]
|
D | BluetoothControllerImpl.java | 31 import android.bluetooth.BluetoothProfile; 32 import android.bluetooth.BluetoothProfile.ServiceListener; 199 final boolean connected = profileState == BluetoothProfile.STATE_CONNECTED; in connect() 208 public void onServiceConnected(int profile, BluetoothProfile proxy) { in connect()
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 20 import android.bluetooth.BluetoothProfile; 221 case BluetoothProfile.A2DP: in ConnectProfileReceiver() 224 case BluetoothProfile.HEADSET: in ConnectProfileReceiver() 227 case BluetoothProfile.INPUT_DEVICE: in ConnectProfileReceiver() 230 case BluetoothProfile.PAN: in ConnectProfileReceiver() 245 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() 248 case BluetoothProfile.STATE_DISCONNECTED: in onReceive() 251 case BluetoothProfile.STATE_CONNECTING: in onReceive() 254 case BluetoothProfile.STATE_CONNECTED: in onReceive() 257 case BluetoothProfile.STATE_DISCONNECTING: in onReceive() [all …]
|
D | BluetoothStressTest.java | 215 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.A2DP, null); in testConnectA2dp() 219 mTestUtils.connectProfile(adapter, device, BluetoothProfile.A2DP, in testConnectA2dp() 221 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.A2DP, in testConnectA2dp() 248 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.HEADSET, null); in testConnectHeadset() 252 mTestUtils.connectProfile(adapter, device, BluetoothProfile.HEADSET, in testConnectHeadset() 254 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.HEADSET, in testConnectHeadset() 281 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.INPUT_DEVICE, null); in testConnectInput() 285 mTestUtils.connectProfile(adapter, device, BluetoothProfile.INPUT_DEVICE, in testConnectInput() 287 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.INPUT_DEVICE, in testConnectInput() 378 mTestUtils.disconnectProfile(adapter, device, BluetoothProfile.HEADSET, null); in testStartStopSco() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothManager.java | 98 return BluetoothProfile.STATE_CONNECTED; in getConnectionState() 102 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 122 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { in getConnectedDevices() 134 new int[] { BluetoothProfile.STATE_CONNECTED }); in getConnectedDevices() 167 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { in getDevicesMatchingConnectionStates()
|
D | BluetoothAdapter.java | 1050 if (getState() != STATE_ON) return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState() 1058 return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState() 1312 public boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener, in getProfileProxy() 1316 if (profile == BluetoothProfile.HEADSET) { in getProfileProxy() 1319 } else if (profile == BluetoothProfile.A2DP) { in getProfileProxy() 1322 } else if (profile == BluetoothProfile.A2DP_SINK) { in getProfileProxy() 1325 } else if (profile == BluetoothProfile.AVRCP_CONTROLLER) { in getProfileProxy() 1328 } else if (profile == BluetoothProfile.INPUT_DEVICE) { in getProfileProxy() 1331 } else if (profile == BluetoothProfile.PAN) { in getProfileProxy() 1334 } else if (profile == BluetoothProfile.HEALTH) { in getProfileProxy() [all …]
|
D | BluetoothA2dp.java | 45 public final class BluetoothA2dp implements BluetoothProfile { 327 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 331 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 353 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 354 priority != BluetoothProfile.PRIORITY_ON){ in setPriority() 389 return BluetoothProfile.PRIORITY_OFF; in getPriority() 393 return BluetoothProfile.PRIORITY_OFF; in getPriority() 528 mServiceListener.onServiceConnected(BluetoothProfile.A2DP, BluetoothA2dp.this); 535 mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP);
|
D | BluetoothInputDevice.java | 44 public final class BluetoothInputDevice implements BluetoothProfile { 412 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 416 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 437 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 438 priority != BluetoothProfile.PRIORITY_ON) { in setPriority() 472 return BluetoothProfile.PRIORITY_OFF; in getPriority() 476 return BluetoothProfile.PRIORITY_OFF; in getPriority() 485 … mServiceListener.onServiceConnected(BluetoothProfile.INPUT_DEVICE, BluetoothInputDevice.this); 492 mServiceListener.onServiceDisconnected(BluetoothProfile.INPUT_DEVICE);
|
D | BluetoothMap.java | 33 public final class BluetoothMap implements BluetoothProfile { 309 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 313 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 331 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 332 priority != BluetoothProfile.PRIORITY_ON) { in setPriority() 376 mServiceListener.onServiceConnected(BluetoothProfile.MAP, BluetoothMap.this); 383 mServiceListener.onServiceDisconnected(BluetoothProfile.MAP);
|
D | BluetoothAvrcpController.java | 40 public final class BluetoothAvrcpController implements BluetoothProfile { 205 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 209 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 232 mServiceListener.onServiceConnected(BluetoothProfile.AVRCP_CONTROLLER, 240 mServiceListener.onServiceDisconnected(BluetoothProfile.AVRCP_CONTROLLER);
|
D | BluetoothProfile.java | 29 public interface BluetoothProfile { interface 203 public void onServiceConnected(int profile, BluetoothProfile proxy); in onServiceConnected()
|
D | BluetoothA2dpSink.java | 40 public final class BluetoothA2dpSink implements BluetoothProfile { 340 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 344 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 404 mServiceListener.onServiceConnected(BluetoothProfile.A2DP_SINK, 412 mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP_SINK);
|
D | BluetoothPan.java | 43 public final class BluetoothPan implements BluetoothProfile { 327 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 331 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 359 mServiceListener.onServiceConnected(BluetoothProfile.PAN, 367 mServiceListener.onServiceDisconnected(BluetoothProfile.PAN);
|
D | BluetoothHeadset.java | 46 public final class BluetoothHeadset implements BluetoothProfile { 445 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 449 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 471 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 472 priority != BluetoothProfile.PRIORITY_ON) { in setPriority() 939 … mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, BluetoothHeadset.this); 946 mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET);
|
D | BluetoothHeadsetClient.java | 40 public final class BluetoothHeadsetClient implements BluetoothProfile { 576 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 580 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 592 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 593 priority != BluetoothProfile.PRIORITY_ON) { in setPriority() 1138 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET_CLIENT, 1147 mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET_CLIENT);
|
D | BluetoothHealth.java | 57 public final class BluetoothHealth implements BluetoothProfile { 528 mServiceListener.onServiceConnected(BluetoothProfile.HEALTH, BluetoothHealth.this); 535 mServiceListener.onServiceDisconnected(BluetoothProfile.HEALTH);
|
D | BluetoothGattServer.java | 21 import android.bluetooth.BluetoothProfile; 42 public final class BluetoothGattServer implements BluetoothProfile { 101 connected ? BluetoothProfile.STATE_CONNECTED : 102 BluetoothProfile.STATE_DISCONNECTED);
|
D | BluetoothGatt.java | 39 public final class BluetoothGatt implements BluetoothProfile { 153 BluetoothProfile.STATE_DISCONNECTED); 178 int profileState = connected ? BluetoothProfile.STATE_CONNECTED : 179 BluetoothProfile.STATE_DISCONNECTED;
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 23 import android.bluetooth.BluetoothProfile; 159 BluetoothProfile.HEADSET); in onCreate() 174 btAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mBluetoothHeadset); in onDestroy() 655 private BluetoothProfile.ServiceListener mBluetoothProfileServiceListener = 656 new BluetoothProfile.ServiceListener() { 658 public void onServiceConnected(int profile, BluetoothProfile proxy) { 689 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 21 import android.bluetooth.BluetoothProfile; 512 BluetoothProfile.HEADSET); in noteBluetoothOn() 524 private BluetoothProfile.ServiceListener mBluetoothProfileServiceListener = 525 new BluetoothProfile.ServiceListener() { 526 public void onServiceConnected(int profile, BluetoothProfile proxy) {
|
/frameworks/base/media/java/android/media/ |
D | AudioService.java | 33 import android.bluetooth.BluetoothProfile; 670 BluetoothProfile.A2DP); in onSystemReady() 2669 BluetoothProfile.HEADSET); in getBluetoothHeadset() 2727 private BluetoothProfile.ServiceListener mBluetoothProfileServiceListener = 2728 new BluetoothProfile.ServiceListener() { 2729 public void onServiceConnected(int profile, BluetoothProfile proxy) { 2733 case BluetoothProfile.A2DP: 2755 case BluetoothProfile.A2DP_SINK: 2771 case BluetoothProfile.HEADSET: 2833 case BluetoothProfile.A2DP: [all …]
|
/frameworks/base/docs/html/guide/topics/connectivity/ |
D | bluetooth.jd | 123 <dt>{@link android.bluetooth.BluetoothProfile}</dt> <dd>An interface that 153 <dt>{@link android.bluetooth.BluetoothProfile.ServiceListener}</dt> 155 <dd>An interface that notifies {@link android.bluetooth.BluetoothProfile} IPC 901 <p>You can implement the interface {@link android.bluetooth.BluetoothProfile} to write 944 android.bluetooth.BluetoothProfile.ServiceListener, int) getProfileProxy()} to 949 <li>Set up a {@link android.bluetooth.BluetoothProfile.ServiceListener}. This 950 listener notifies {@link android.bluetooth.BluetoothProfile} IPC clients when 954 android.bluetooth.BluetoothProfile.ServiceListener#onServiceConnected(int, 955 android.bluetooth.BluetoothProfile) onServiceConnected()}, get a handle 973 mBluetoothAdapter.getProfileProxy(context, mProfileListener, BluetoothProfile.HEADSET); [all …]
|
D | bluetooth-le.jd | 387 if (newState == BluetoothProfile.STATE_CONNECTED) { 395 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
|
/frameworks/base/docs/html/about/versions/ |
D | android-3.0.jd | 333 <p>You can initialize the respective {@link android.bluetooth.BluetoothProfile} by calling {@link 335 android.bluetooth.BluetoothProfile#A2DP} or {@link android.bluetooth.BluetoothProfile#HEADSET} 336 profile constant and a {@link android.bluetooth.BluetoothProfile.ServiceListener} to receive
|
D | android-4.0.jd | 717 android.bluetooth.BluetoothProfile.ServiceListener} and the {@link 718 android.bluetooth.BluetoothProfile#HEALTH} profile type to establish a connection with the profile
|