/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | MapProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 62 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 76 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 103 BluetoothProfile.MAP); in MapProfile() 123 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect() 124 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect() 133 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 139 : BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 144 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred() [all …]
|
D | SapProfile.java | 23 import android.bluetooth.BluetoothProfile; 59 implements BluetoothProfile.ServiceListener { 61 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 101 BluetoothProfile.SAP); in SapProfile() 127 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect() 128 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect() 137 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 142 : BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 147 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred() [all …]
|
D | A2dpSinkProfile.java | 23 import android.bluetooth.BluetoothProfile; 57 implements BluetoothProfile.ServiceListener { 59 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 72 … device.onProfileStateChanged(A2dpSinkProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 95 BluetoothProfile.A2DP_SINK); in A2dpSinkProfile() 109 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 110 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices() 111 BluetoothProfile.STATE_DISCONNECTING}); in getConnectedDevices() 135 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect() 136 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect() [all …]
|
D | HfpClientProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 63 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 77 HfpClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 102 BluetoothProfile.HEADSET_CLIENT); in HfpClientProfile() 118 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 119 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices() 120 BluetoothProfile.STATE_DISCONNECTING}); in getConnectedDevices() 148 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect() 149 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect() [all …]
|
D | A2dpProfile.java | 23 import android.bluetooth.BluetoothProfile; 57 implements BluetoothProfile.ServiceListener { 59 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 95 BluetoothProfile.A2DP); in A2dpProfile() 109 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 110 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices() 111 BluetoothProfile.STATE_DISCONNECTING}); in getConnectedDevices() 128 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect() 129 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect() [all …]
|
D | HeadsetProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 62 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 76 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 102 BluetoothProfile.HEADSET); in HeadsetProfile() 133 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect() 134 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect() 144 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 153 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 158 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred() [all …]
|
D | HidProfile.java | 23 import android.bluetooth.BluetoothProfile; 52 implements BluetoothProfile.ServiceListener { 54 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 67 device.onProfileStateChanged(HidProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 90 BluetoothProfile.INPUT_DEVICE); in HidProfile() 113 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 119 : BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 124 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred() 128 if (mService == null) return BluetoothProfile.PRIORITY_OFF; in getPreferred() 135 if (mService.getPriority(device) < BluetoothProfile.PRIORITY_ON) { in setPreferred() [all …]
|
D | PbapClientProfile.java | 23 import android.bluetooth.BluetoothProfile; 57 implements BluetoothProfile.ServiceListener { 59 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 74 … device.onProfileStateChanged(PbapClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 110 BluetoothProfile.PBAP_CLIENT); in PbapClientProfile() 126 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 127 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices() 128 BluetoothProfile.STATE_DISCONNECTING}); in getConnectedDevices() 168 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 177 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; in isPreferred() [all …]
|
D | PanProfile.java | 23 import android.bluetooth.BluetoothProfile; 53 implements BluetoothProfile.ServiceListener { 55 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() 74 BluetoothProfile.PAN); in PanProfile() 103 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 139 case BluetoothProfile.STATE_DISCONNECTED: in getSummaryResourceForDevice() 142 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice() 175 … BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.PAN, mService); in finalize()
|
D | Utils.java | 3 import android.bluetooth.BluetoothProfile; 16 case BluetoothProfile.STATE_CONNECTED: in getConnectionStateSummary() 18 case BluetoothProfile.STATE_CONNECTING: in getConnectionStateSummary() 20 case BluetoothProfile.STATE_DISCONNECTED: in getConnectionStateSummary() 22 case BluetoothProfile.STATE_DISCONNECTING: in getConnectionStateSummary()
|
D | CachedBluetoothDevice.java | 21 import android.bluetooth.BluetoothProfile; 135 if (newProfileState == BluetoothProfile.STATE_CONNECTED) { in onProfileStateChanged() 148 newProfileState == BluetoothProfile.STATE_DISCONNECTED) { in onProfileStateChanged() 152 newProfileState == BluetoothProfile.STATE_DISCONNECTED) { in onProfileStateChanged() 180 if (PbapProfile.getConnectionStatus(mDevice) == BluetoothProfile.STATE_CONNECTED) in disconnect() 354 mProfileConnectionState.put(profile, BluetoothProfile.STATE_DISCONNECTED); in clearProfileConnectionState() 451 if (status == BluetoothProfile.STATE_CONNECTED) { in isConnected() 461 return status == BluetoothProfile.STATE_CONNECTED; in isConnectedProfile() 468 if (status == BluetoothProfile.STATE_CONNECTING in isBusy() 469 || status == BluetoothProfile.STATE_DISCONNECTING) { in isBusy() [all …]
|
D | PbapServerProfile.java | 22 import android.bluetooth.BluetoothProfile; 97 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 100 return BluetoothProfile.STATE_CONNECTED; in getConnectionStatus() 102 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
|
D | OppProfile.java | 23 import android.bluetooth.BluetoothProfile; 52 return BluetoothProfile.STATE_DISCONNECTED; // Settings app doesn't handle OPP in getConnectionStatus() 60 return BluetoothProfile.PRIORITY_OFF; // Settings app doesn't handle OPP in getPreferred()
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 20 import android.bluetooth.BluetoothProfile; 222 case BluetoothProfile.A2DP: in ConnectProfileReceiver() 225 case BluetoothProfile.HEADSET: in ConnectProfileReceiver() 228 case BluetoothProfile.INPUT_DEVICE: in ConnectProfileReceiver() 231 case BluetoothProfile.PAN: in ConnectProfileReceiver() 246 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() 249 case BluetoothProfile.STATE_DISCONNECTED: in onReceive() 252 case BluetoothProfile.STATE_CONNECTING: in onReceive() 255 case BluetoothProfile.STATE_CONNECTED: in onReceive() 258 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/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
D | CarBatteryController.java | 22 import android.bluetooth.BluetoothProfile; 23 import android.bluetooth.BluetoothProfile.ServiceListener; 82 BluetoothProfile.HEADSET_CLIENT); in CarBatteryController() 149 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() 152 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() 209 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon() 231 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateBatteryIcon() 262 public void onServiceConnected(int profile, BluetoothProfile proxy) { 263 if (profile == BluetoothProfile.HEADSET_CLIENT) { 270 if (profile == BluetoothProfile.HEADSET_CLIENT) {
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothManager.java | 101 return BluetoothProfile.STATE_CONNECTED; in getConnectionState() 105 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 126 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { in getConnectedDevices() 138 new int[] { BluetoothProfile.STATE_CONNECTED }); in getConnectedDevices() 172 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { in getDevicesMatchingConnectionStates()
|
D | BluetoothAdapter.java | 1540 if (getState() != STATE_ON) return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState() 1549 return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState() 1891 public boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener, in getProfileProxy() 1895 if (profile == BluetoothProfile.HEADSET) { in getProfileProxy() 1898 } else if (profile == BluetoothProfile.A2DP) { in getProfileProxy() 1901 } else if (profile == BluetoothProfile.A2DP_SINK) { in getProfileProxy() 1904 } else if (profile == BluetoothProfile.AVRCP_CONTROLLER) { in getProfileProxy() 1907 } else if (profile == BluetoothProfile.INPUT_DEVICE) { in getProfileProxy() 1910 } else if (profile == BluetoothProfile.PAN) { in getProfileProxy() 1913 } else if (profile == BluetoothProfile.HEALTH) { in getProfileProxy() [all …]
|
D | BluetoothA2dpSink.java | 40 public final class BluetoothA2dpSink implements BluetoothProfile { 340 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 344 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 392 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 393 priority != BluetoothProfile.PRIORITY_ON){ in setPriority() 428 return BluetoothProfile.PRIORITY_OFF; in getPriority() 432 return BluetoothProfile.PRIORITY_OFF; in getPriority() 487 mServiceListener.onServiceConnected(BluetoothProfile.A2DP_SINK, 495 mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP_SINK);
|
D | BluetoothA2dp.java | 48 public final class BluetoothA2dp implements BluetoothProfile { 331 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 335 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 357 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 358 priority != BluetoothProfile.PRIORITY_ON){ in setPriority() 394 return BluetoothProfile.PRIORITY_OFF; in getPriority() 398 return BluetoothProfile.PRIORITY_OFF; in getPriority() 540 mServiceListener.onServiceConnected(BluetoothProfile.A2DP, BluetoothA2dp.this); 547 mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP);
|
D | BluetoothPbapClient.java | 33 public final class BluetoothPbapClient implements BluetoothProfile { 277 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 283 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 293 … mServiceListener.onServiceConnected(BluetoothProfile.PBAP_CLIENT, BluetoothPbapClient.this); 302 mServiceListener.onServiceDisconnected(BluetoothProfile.PBAP_CLIENT); 347 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 348 priority != BluetoothProfile.PRIORITY_ON) { in setPriority()
|
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 | BluetoothSap.java | 42 public final class BluetoothSap implements BluetoothProfile { 335 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 339 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 356 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority() 357 priority != BluetoothProfile.PRIORITY_ON) { in setPriority() 398 mServiceListener.onServiceConnected(BluetoothProfile.SAP, BluetoothSap.this); 405 mServiceListener.onServiceDisconnected(BluetoothProfile.SAP);
|
D | BluetoothPan.java | 43 public final class BluetoothPan implements BluetoothProfile { 336 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 340 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 374 mServiceListener.onServiceConnected(BluetoothProfile.PAN, 382 mServiceListener.onServiceDisconnected(BluetoothProfile.PAN);
|