Home
last modified time | relevance | path

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

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java20 import android.bluetooth.BluetoothProfile;
220 case BluetoothProfile.A2DP: in ConnectProfileReceiver()
223 case BluetoothProfile.HEADSET: in ConnectProfileReceiver()
226 case BluetoothProfile.INPUT_DEVICE: in ConnectProfileReceiver()
229 case BluetoothProfile.PAN: in ConnectProfileReceiver()
244 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
247 case BluetoothProfile.STATE_DISCONNECTED: in onReceive()
250 case BluetoothProfile.STATE_CONNECTING: in onReceive()
253 case BluetoothProfile.STATE_CONNECTED: in onReceive()
256 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()
DBluetoothA2dp.java45 public final class BluetoothA2dp implements BluetoothProfile {
314 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
318 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
340 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority()
341 priority != BluetoothProfile.PRIORITY_ON){ in setPriority()
376 return BluetoothProfile.PRIORITY_OFF; in getPriority()
380 return BluetoothProfile.PRIORITY_OFF; in getPriority()
455 mServiceListener.onServiceConnected(BluetoothProfile.A2DP, BluetoothA2dp.this);
462 mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP);
DBluetoothAdapter.java895 if (getState() != STATE_ON) return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState()
903 return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState()
1157 public boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener, in getProfileProxy()
1161 if (profile == BluetoothProfile.HEADSET) { in getProfileProxy()
1164 } else if (profile == BluetoothProfile.A2DP) { in getProfileProxy()
1167 } else if (profile == BluetoothProfile.INPUT_DEVICE) { in getProfileProxy()
1170 } else if (profile == BluetoothProfile.PAN) { in getProfileProxy()
1173 } else if (profile == BluetoothProfile.HEALTH) { in getProfileProxy()
1192 public void closeProfileProxy(int profile, BluetoothProfile proxy) { in closeProfileProxy()
1196 case BluetoothProfile.HEADSET: in closeProfileProxy()
[all …]
DBluetoothInputDevice.java45 public final class BluetoothInputDevice implements BluetoothProfile {
388 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
392 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
413 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority()
414 priority != BluetoothProfile.PRIORITY_ON) { in setPriority()
448 return BluetoothProfile.PRIORITY_OFF; in getPriority()
452 return BluetoothProfile.PRIORITY_OFF; in getPriority()
461 … mServiceListener.onServiceConnected(BluetoothProfile.INPUT_DEVICE, BluetoothInputDevice.this);
468 mServiceListener.onServiceDisconnected(BluetoothProfile.INPUT_DEVICE);
DBluetoothProfile.java29 public interface BluetoothProfile { interface
179 public void onServiceConnected(int profile, BluetoothProfile proxy); in onServiceConnected()
DBluetoothPan.java44 public final class BluetoothPan implements BluetoothProfile {
311 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
315 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
343 mServiceListener.onServiceConnected(BluetoothProfile.PAN,
351 mServiceListener.onServiceDisconnected(BluetoothProfile.PAN);
DBluetoothHeadset.java46 public final class BluetoothHeadset implements BluetoothProfile {
432 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
436 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
458 if (priority != BluetoothProfile.PRIORITY_OFF && in setPriority()
459 priority != BluetoothProfile.PRIORITY_ON) { in setPriority()
863 … mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, BluetoothHeadset.this);
870 mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET);
DBluetoothTetheringDataTracker.java121 adapter.getProfileProxy(mContext, mProfileServiceListener, BluetoothProfile.PAN); in startMonitoring()
126 private BluetoothProfile.ServiceListener mProfileServiceListener =
127 new BluetoothProfile.ServiceListener() {
128 public void onServiceConnected(int profile, BluetoothProfile proxy) {
DBluetoothGattServer.java21 import android.bluetooth.BluetoothProfile;
22 import android.bluetooth.BluetoothProfile.ServiceListener;
51 public final class BluetoothGattServer implements BluetoothProfile {
108 connected ? BluetoothProfile.STATE_CONNECTED :
109 BluetoothProfile.STATE_DISCONNECTED);
DBluetoothHealth.java58 public final class BluetoothHealth implements BluetoothProfile {
521 mServiceListener.onServiceConnected(BluetoothProfile.HEALTH, BluetoothHealth.this);
528 mServiceListener.onServiceDisconnected(BluetoothProfile.HEALTH);
DBluetoothGatt.java20 import android.bluetooth.BluetoothProfile;
21 import android.bluetooth.BluetoothProfile.ServiceListener;
50 public final class BluetoothGatt implements BluetoothProfile {
140 BluetoothProfile.STATE_DISCONNECTED);
165 int profileState = connected ? BluetoothProfile.STATE_CONNECTED :
166 BluetoothProfile.STATE_DISCONNECTED;
/frameworks/base/services/java/com/android/server/am/
DBatteryStatsService.java21 import android.bluetooth.BluetoothProfile;
312 BluetoothProfile.HEADSET); in noteBluetoothOn()
324 private BluetoothProfile.ServiceListener mBluetoothProfileServiceListener =
325 new BluetoothProfile.ServiceListener() {
326 public void onServiceConnected(int profile, BluetoothProfile proxy) {
/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()
641 private BluetoothProfile.ServiceListener mBluetoothProfileServiceListener =
642 new BluetoothProfile.ServiceListener() {
644 public void onServiceConnected(int profile, BluetoothProfile proxy) {
675 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
/frameworks/base/docs/html/guide/topics/connectivity/
Dbluetooth.jd124 <dt>{@link android.bluetooth.BluetoothProfile}</dt> <dd>An interface that
154 <dt>{@link android.bluetooth.BluetoothProfile.ServiceListener}</dt>
156 <dd>An interface that notifies {@link android.bluetooth.BluetoothProfile} IPC
906 <p>You can implement the interface {@link android.bluetooth.BluetoothProfile} to write
949 android.bluetooth.BluetoothProfile.ServiceListener, int) getProfileProxy()} to
954 <li>Set up a {@link android.bluetooth.BluetoothProfile.ServiceListener}. This
955 listener notifies {@link android.bluetooth.BluetoothProfile} IPC clients when
959 android.bluetooth.BluetoothProfile.ServiceListener#onServiceConnected(int,
960 android.bluetooth.BluetoothProfile) onServiceConnected()}, get a handle
978 mBluetoothAdapter.getProfileProxy(context, mProfileListener, BluetoothProfile.HEADSET);
[all …]
/frameworks/base/media/java/android/media/
DAudioService.java35 import android.bluetooth.BluetoothProfile;
2186 BluetoothProfile.HEADSET); in getBluetoothHeadset()
2244 private BluetoothProfile.ServiceListener mBluetoothProfileServiceListener =
2245 new BluetoothProfile.ServiceListener() {
2246 public void onServiceConnected(int profile, BluetoothProfile proxy) {
2250 case BluetoothProfile.A2DP:
2270 case BluetoothProfile.HEADSET:
2326 case BluetoothProfile.A2DP:
2335 case BluetoothProfile.HEADSET:
3734 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onSetA2dpConnectionState()
[all …]
/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.jd714 android.bluetooth.BluetoothProfile.ServiceListener} and the {@link
715 android.bluetooth.BluetoothProfile#HEALTH} profile type to establish a connection with the profile
/frameworks/base/docs/html/
Dsitemap.txt3000 http://developer.android.com/reference/android/bluetooth/BluetoothProfile.html
3001 http://developer.android.com/reference/android/bluetooth/BluetoothProfile.ServiceListener.html
6147 http://developer.android.com/sdk/api_diff/14/changes/android.bluetooth.BluetoothProfile.html
/frameworks/base/api/
Dcurrent.txt4606 public final class BluetoothA2dp implements android.bluetooth.BluetoothProfile {
4621 method public void closeProfileProxy(int, android.bluetooth.BluetoothProfile);
4629 … boolean getProfileProxy(android.content.Context, android.bluetooth.BluetoothProfile.ServiceListen…
4907 public final class BluetoothGatt implements android.bluetooth.BluetoothProfile {
5021 public final class BluetoothGattServer implements android.bluetooth.BluetoothProfile {
5064 public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
5088 public final class BluetoothHealth implements android.bluetooth.BluetoothProfile {
5134 public abstract interface BluetoothProfile {
5151 public static abstract interface BluetoothProfile.ServiceListener {
5152 method public abstract void onServiceConnected(int, android.bluetooth.BluetoothProfile);