Home
last modified time | relevance | path

Searched refs:BluetoothProfile (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothUtil.java28 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 …]
DBluetoothControllerImpl.java31 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/
DBluetoothTestUtils.java20 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 …]
DBluetoothStressTest.java215 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/
DBluetoothManager.java98 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()
DBluetoothAdapter.java1050 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 …]
DBluetoothA2dp.java45 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);
DBluetoothInputDevice.java44 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);
DBluetoothMap.java33 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);
DBluetoothAvrcpController.java40 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);
DBluetoothProfile.java29 public interface BluetoothProfile { interface
203 public void onServiceConnected(int profile, BluetoothProfile proxy); in onServiceConnected()
DBluetoothA2dpSink.java40 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);
DBluetoothPan.java43 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);
DBluetoothHeadset.java46 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);
DBluetoothHeadsetClient.java40 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);
DBluetoothHealth.java57 public final class BluetoothHealth implements BluetoothProfile {
528 mServiceListener.onServiceConnected(BluetoothProfile.HEALTH, BluetoothHealth.this);
535 mServiceListener.onServiceDisconnected(BluetoothProfile.HEALTH);
DBluetoothGattServer.java21 import android.bluetooth.BluetoothProfile;
42 public final class BluetoothGattServer implements BluetoothProfile {
101 connected ? BluetoothProfile.STATE_CONNECTED :
102 BluetoothProfile.STATE_DISCONNECTED);
DBluetoothGatt.java39 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/
DScoAudioTest.java23 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/
DBatteryStatsService.java21 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/
DAudioService.java33 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/
Dbluetooth.jd123 <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 …]
Dbluetooth-le.jd387 if (newState == BluetoothProfile.STATE_CONNECTED) {
395 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
/frameworks/base/docs/html/about/versions/
Dandroid-3.0.jd333 <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
Dandroid-4.0.jd717 android.bluetooth.BluetoothProfile.ServiceListener} and the {@link
718 android.bluetooth.BluetoothProfile#HEALTH} profile type to establish a connection with the profile

12