Home
last modified time | relevance | path

Searched refs:BluetoothDevice (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/base/core/java/android/bluetooth/
DIBluetoothHeadsetClient.aidl19 import android.bluetooth.BluetoothDevice;
29 boolean connect(in BluetoothDevice device); in connect()
30 boolean disconnect(in BluetoothDevice device); in disconnect()
32 boolean acceptIncomingConnect(in BluetoothDevice device); in acceptIncomingConnect()
33 boolean rejectIncomingConnect(in BluetoothDevice device); in rejectIncomingConnect()
35 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
36 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
37 int getConnectionState(in BluetoothDevice device); in getConnectionState()
38 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
39 int getPriority(in BluetoothDevice device); in getPriority()
[all …]
DIBluetooth.aidl22 import android.bluetooth.BluetoothDevice;
57 BluetoothDevice[] getBondedDevices(); in getBondedDevices()
58 boolean createBond(in BluetoothDevice device, in int transport); in createBond()
59 boolean cancelBondProcess(in BluetoothDevice device); in cancelBondProcess()
60 boolean removeBond(in BluetoothDevice device); in removeBond()
61 int getBondState(in BluetoothDevice device); in getBondState()
62 int getConnectionState(in BluetoothDevice device); in getConnectionState()
64 String getRemoteName(in BluetoothDevice device); in getRemoteName()
65 int getRemoteType(in BluetoothDevice device); in getRemoteType()
66 String getRemoteAlias(in BluetoothDevice device); in getRemoteAlias()
[all …]
DIBluetoothHeadset.aidl19 import android.bluetooth.BluetoothDevice;
28 boolean connect(in BluetoothDevice device); in connect()
29 boolean disconnect(in BluetoothDevice device); in disconnect()
30 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
31 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
32 int getConnectionState(in BluetoothDevice device); in getConnectionState()
33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
34 int getPriority(in BluetoothDevice device); in getPriority()
35 boolean startVoiceRecognition(in BluetoothDevice device); in startVoiceRecognition()
36 boolean stopVoiceRecognition(in BluetoothDevice device); in stopVoiceRecognition()
[all …]
DIBluetoothInputDevice.aidl19 import android.bluetooth.BluetoothDevice;
28 boolean connect(in BluetoothDevice device); in connect()
29 boolean disconnect(in BluetoothDevice device); in disconnect()
30 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
31 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
32 int getConnectionState(in BluetoothDevice device); in getConnectionState()
33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
34 int getPriority(in BluetoothDevice device); in getPriority()
38 boolean getProtocolMode(in BluetoothDevice device); in getProtocolMode()
42 boolean virtualUnplug(in BluetoothDevice device); in virtualUnplug()
[all …]
DIBluetoothSap.aidl19 import android.bluetooth.BluetoothDevice;
28 BluetoothDevice getClient(); in getClient()
29 boolean connect(in BluetoothDevice device); in connect()
30 boolean disconnect(in BluetoothDevice device); in disconnect()
31 boolean isConnected(in BluetoothDevice device); in isConnected()
32 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
33 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
34 int getConnectionState(in BluetoothDevice device); in getConnectionState()
35 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
36 int getPriority(in BluetoothDevice device); in getPriority()
DIBluetoothMap.aidl19 import android.bluetooth.BluetoothDevice;
28 BluetoothDevice getClient(); in getClient()
29 boolean connect(in BluetoothDevice device); in connect()
30 boolean disconnect(in BluetoothDevice device); in disconnect()
31 boolean isConnected(in BluetoothDevice device); in isConnected()
32 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
33 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
34 int getConnectionState(in BluetoothDevice device); in getConnectionState()
35 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
36 int getPriority(in BluetoothDevice device); in getPriority()
DIBluetoothA2dp.aidl19 import android.bluetooth.BluetoothDevice;
28 boolean connect(in BluetoothDevice device); in connect()
29 boolean disconnect(in BluetoothDevice device); in disconnect()
30 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
31 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
32 int getConnectionState(in BluetoothDevice device); in getConnectionState()
33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
34 int getPriority(in BluetoothDevice device); in getPriority()
38 boolean isA2dpPlaying(in BluetoothDevice device); in isA2dpPlaying()
DBluetoothGattServerCallback.java19 import android.bluetooth.BluetoothDevice;
35 public void onConnectionStateChange(BluetoothDevice device, int status, in onConnectionStateChange()
60 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, in onCharacteristicReadRequest()
79 public void onCharacteristicWriteRequest(BluetoothDevice device, int requestId, in onCharacteristicWriteRequest()
96 public void onDescriptorReadRequest(BluetoothDevice device, int requestId, in onDescriptorReadRequest()
115 public void onDescriptorWriteRequest(BluetoothDevice device, int requestId, in onDescriptorWriteRequest()
132 public void onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) { in onExecuteWrite()
146 public void onNotificationSent(BluetoothDevice device, int status) { in onNotificationSent()
158 public void onMtuChanged(BluetoothDevice device, int mtu) { in onMtuChanged()
DIBluetoothA2dpSink.aidl20 import android.bluetooth.BluetoothDevice;
28 boolean connect(in BluetoothDevice device); in connect()
29 boolean disconnect(in BluetoothDevice device); in disconnect()
30 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
31 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
32 int getConnectionState(in BluetoothDevice device); in getConnectionState()
33 BluetoothAudioConfig getAudioConfig(in BluetoothDevice device); in getAudioConfig()
DIBluetoothHealth.aidl19 import android.bluetooth.BluetoothDevice;
34 …boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration confi… in connectChannelToSource()
35 … boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, in connectChannelToSink()
37 …boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, in… in disconnectChannel()
38 …ParcelFileDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguratio… in getMainChannelFd()
39 List<BluetoothDevice> getConnectedHealthDevices(); in getConnectedHealthDevices()
40 List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(in int[] states); in getHealthDevicesMatchingConnectionStates()
41 int getHealthDeviceConnectionState(in BluetoothDevice device); in getHealthDeviceConnectionState()
DIBluetoothPan.aidl19 import android.bluetooth.BluetoothDevice;
30 boolean connect(in BluetoothDevice device); in connect()
31 boolean disconnect(in BluetoothDevice device); in disconnect()
32 List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
33 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates()
34 int getConnectionState(in BluetoothDevice device); in getConnectionState()
DBluetoothHeadsetClient.java479 public boolean connect(BluetoothDevice device) { in connect()
503 public boolean disconnect(BluetoothDevice device) { in disconnect()
524 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
531 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
535 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
547 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
554 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
558 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
568 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
588 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothManager.java95 public int getConnectionState(BluetoothDevice device, int profile) { in getConnectionState()
98 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile); in getConnectionState()
99 for(BluetoothDevice connectedDevice : connectedDevices) { in getConnectionState()
124 public List<BluetoothDevice> getConnectedDevices(int profile) { in getConnectedDevices()
130 List<BluetoothDevice> connectedDevices = new ArrayList<BluetoothDevice>(); in getConnectedDevices()
169 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int profile, int[] states) { in getDevicesMatchingConnectionStates()
176 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
203 return (openGattServer (context, callback, BluetoothDevice.TRANSPORT_AUTO)); in openGattServer()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java21 import android.bluetooth.BluetoothDevice;
57 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive()
93 addHandler(BluetoothDevice.ACTION_FOUND, new DeviceFoundHandler()); in BluetoothEventManager()
94 addHandler(BluetoothDevice.ACTION_DISAPPEARED, new DeviceDisappearedHandler()); in BluetoothEventManager()
95 addHandler(BluetoothDevice.ACTION_NAME_CHANGED, new NameChangedHandler()); in BluetoothEventManager()
96 addHandler(BluetoothDevice.ACTION_ALIAS_CHANGED, new NameChangedHandler()); in BluetoothEventManager()
99 addHandler(BluetoothDevice.ACTION_BOND_STATE_CHANGED, new BondStateChangedHandler()); in BluetoothEventManager()
100 addHandler(BluetoothDevice.ACTION_PAIRING_CANCEL, new PairingCancelHandler()); in BluetoothEventManager()
103 addHandler(BluetoothDevice.ACTION_CLASS_CHANGED, new ClassChangedHandler()); in BluetoothEventManager()
104 addHandler(BluetoothDevice.ACTION_UUID, new UuidChangedHandler()); in BluetoothEventManager()
[all …]
DLocalBluetoothProfile.java20 import android.bluetooth.BluetoothDevice;
38 boolean connect(BluetoothDevice device); in connect()
40 boolean disconnect(BluetoothDevice device); in disconnect()
42 int getConnectionStatus(BluetoothDevice device); in getConnectionStatus()
44 boolean isPreferred(BluetoothDevice device); in isPreferred()
46 int getPreferred(BluetoothDevice device); in getPreferred()
48 void setPreferred(BluetoothDevice device, boolean preferred); in setPreferred()
59 int getNameResource(BluetoothDevice device); in getNameResource()
68 int getSummaryResourceForDevice(BluetoothDevice device); in getSummaryResourceForDevice()
DPanProfile.java21 import android.bluetooth.BluetoothDevice;
43 private final HashMap<BluetoothDevice, Integer> mDeviceRoleMap =
44 new HashMap<BluetoothDevice, Integer>();
85 public boolean connect(BluetoothDevice device) { in connect()
87 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in connect()
89 for (BluetoothDevice sink : sinks) { in connect()
96 public boolean disconnect(BluetoothDevice device) { in disconnect()
101 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
108 public boolean isPreferred(BluetoothDevice device) { in isPreferred()
112 public int getPreferred(BluetoothDevice device) { in getPreferred()
[all …]
DHeadsetProfile.java21 import android.bluetooth.BluetoothDevice;
66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
68 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
113 public boolean connect(BluetoothDevice device) { in connect()
115 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in connect()
117 for (BluetoothDevice sink : sinks) { in connect()
124 public boolean disconnect(BluetoothDevice device) { in disconnect()
126 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
128 for (BluetoothDevice dev : deviceList) { in disconnect()
143 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
[all …]
DOppProfile.java22 import android.bluetooth.BluetoothDevice;
43 public boolean connect(BluetoothDevice device) { in connect()
47 public boolean disconnect(BluetoothDevice device) { in disconnect()
51 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
55 public boolean isPreferred(BluetoothDevice device) { in isPreferred()
59 public int getPreferred(BluetoothDevice device) { in getPreferred()
63 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred()
78 public int getNameResource(BluetoothDevice device) { in getNameResource()
82 public int getSummaryResourceForDevice(BluetoothDevice device) { in getSummaryResourceForDevice()
DSapProfile.java21 import android.bluetooth.BluetoothDevice;
65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
67 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
112 public boolean connect(BluetoothDevice device) { in connect()
114 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in connect()
116 for (BluetoothDevice sink : sinks) { in connect()
123 public boolean disconnect(BluetoothDevice device) { in disconnect()
125 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
136 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
138 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
[all …]
DA2dpProfile.java22 import android.bluetooth.BluetoothDevice;
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
65 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
106 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
107 if (mService == null) return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
114 public boolean connect(BluetoothDevice device) { in connect()
116 List<BluetoothDevice> sinks = getConnectedDevices(); in connect()
118 for (BluetoothDevice sink : sinks) { in connect()
125 public boolean disconnect(BluetoothDevice device) { in disconnect()
134 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
[all …]
DMapProfile.java21 import android.bluetooth.BluetoothDevice;
66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
68 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
114 public boolean connect(BluetoothDevice device) { in connect()
119 public boolean disconnect(BluetoothDevice device) { in disconnect()
121 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
132 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
134 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
142 public boolean isPreferred(BluetoothDevice device) { in isPreferred()
147 public int getPreferred(BluetoothDevice device) { in getPreferred()
[all …]
DCachedBluetoothDevice.java20 import android.bluetooth.BluetoothDevice;
52 private final BluetoothDevice mDevice;
163 BluetoothDevice device) { in CachedBluetoothDevice()
285 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired()
318 if (state == BluetoothDevice.BOND_BONDING) { in unpair()
322 if (state != BluetoothDevice.BOND_NONE) { in unpair()
323 final BluetoothDevice dev = mDevice; in unpair()
371 public BluetoothDevice getDevice() { in getDevice()
473 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy()
550 if (bondState == BluetoothDevice.BOND_NONE) { in onBondingStateChanged()
[all …]
DPbapServerProfile.java20 import android.bluetooth.BluetoothDevice;
84 public boolean connect(BluetoothDevice device) { in connect()
90 public boolean disconnect(BluetoothDevice device) { in disconnect()
95 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
105 public boolean isPreferred(BluetoothDevice device) { in isPreferred()
109 public int getPreferred(BluetoothDevice device) { in getPreferred()
113 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred()
125 public int getNameResource(BluetoothDevice device) { in getNameResource()
129 public int getSummaryResourceForDevice(BluetoothDevice device) { in getSummaryResourceForDevice()
DHidProfile.java21 import android.bluetooth.BluetoothDevice;
58 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
60 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
101 public boolean connect(BluetoothDevice device) { in connect()
106 public boolean disconnect(BluetoothDevice device) { in disconnect()
111 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
115 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
122 public boolean isPreferred(BluetoothDevice device) { in isPreferred()
127 public int getPreferred(BluetoothDevice device) { in getPreferred()
132 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred()
[all …]
DCachedBluetoothDeviceManager.java20 import android.bluetooth.BluetoothDevice;
51 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE; in onDeviceDisappeared()
54 public void onDeviceNameUpdated(BluetoothDevice device) { in onDeviceNameUpdated()
71 public CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice()
88 BluetoothDevice device) { in addDevice()
104 public String getName(BluetoothDevice device) { in getName()
121 if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in clearNonBondedDevices()
138 public synchronized void onBtClassChanged(BluetoothDevice device) { in onBtClassChanged()
145 public synchronized void onUuidChanged(BluetoothDevice device) { in onUuidChanged()
158 if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()

1234