Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/bluetooth/
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 …]
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()
35 boolean isA2dpPlaying(in BluetoothDevice device); in isA2dpPlaying()
38 boolean suspendSink(in BluetoothDevice device); in suspendSink()
[all …]
DIBluetooth.aidl22 import android.bluetooth.BluetoothDevice;
89 boolean allowIncomingProfileConnect(in BluetoothDevice device, boolean value); in allowIncomingProfileConnect()
96 boolean connectInputDevice(in BluetoothDevice device); in connectInputDevice()
97 boolean disconnectInputDevice(in BluetoothDevice device); in disconnectInputDevice()
98 List<BluetoothDevice> getConnectedInputDevices(); in getConnectedInputDevices()
99 List<BluetoothDevice> getInputDevicesMatchingConnectionStates(in int[] states); in getInputDevicesMatchingConnectionStates()
100 int getInputDeviceConnectionState(in BluetoothDevice device); in getInputDeviceConnectionState()
101 boolean setInputDevicePriority(in BluetoothDevice device, int priority); in setInputDevicePriority()
102 int getInputDevicePriority(in BluetoothDevice device); in getInputDevicePriority()
106 int getPanDeviceConnectionState(in BluetoothDevice device); in getPanDeviceConnectionState()
[all …]
DBluetoothHeadset.java272 public boolean connect(BluetoothDevice device) { in connect()
313 public boolean disconnect(BluetoothDevice device) { in disconnect()
331 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
338 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
342 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
348 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
355 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
359 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
365 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
395 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothA2dp.java154 public boolean connect(BluetoothDevice device) { in connect()
195 public boolean disconnect(BluetoothDevice device) { in disconnect()
213 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
220 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
224 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
230 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
237 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
241 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
247 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
277 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothInputDevice.java141 public boolean connect(BluetoothDevice device) { in connect()
182 public boolean disconnect(BluetoothDevice device) { in disconnect()
200 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
207 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
211 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
217 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
224 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
228 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
234 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
264 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothPan.java160 public boolean connect(BluetoothDevice device) { in connect()
201 public boolean disconnect(BluetoothDevice device) { in disconnect()
219 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
226 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
230 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
236 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
243 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
247 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
253 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
292 private boolean isValidDevice(BluetoothDevice device) { in isValidDevice()
DBluetoothDeviceProfileState.java116 private BluetoothDevice mDevice;
130 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
138 setTrust(BluetoothDevice.CONNECTION_ACCESS_YES);
154 setTrust(BluetoothDevice.CONNECTION_ACCESS_YES);
171 setTrust(BluetoothDevice.CONNECTION_ACCESS_YES);
181 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
185 } else if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY)) {
187 int val = intent.getIntExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
188 BluetoothDevice.CONNECTION_ACCESS_NO);
192 } else if (action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) {
[all …]
DIBluetoothPbap.aidl19 import android.bluetooth.BluetoothDevice;
28 BluetoothDevice getClient(); in getClient()
29 boolean connect(in BluetoothDevice device); in connect()
31 boolean isConnected(in BluetoothDevice device); in isConnected()
DBluetoothHealth.java198 public boolean connectChannelToSource(BluetoothDevice device, in connectChannelToSource()
227 public boolean connectChannelToSink(BluetoothDevice device, in connectChannelToSink()
256 public boolean disconnectChannel(BluetoothDevice device, in disconnectChannel()
285 public ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, in getMainChannelFd()
317 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
345 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
351 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
355 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
377 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
383 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
[all …]
DBluetoothDevice.java60 public final class BluetoothDevice implements Parcelable { class
468 synchronized (BluetoothDevice.class) { in getService()
489 /*package*/ BluetoothDevice(String address) { in BluetoothDevice() method in BluetoothDevice
500 if (o instanceof BluetoothDevice) { in equals()
501 return mAddress.equals(((BluetoothDevice)o).getAddress()); in equals()
528 public static final Parcelable.Creator<BluetoothDevice> CREATOR =
529 new Parcelable.Creator<BluetoothDevice>() {
530 public BluetoothDevice createFromParcel(Parcel in) {
531 return new BluetoothDevice(in.readString());
533 public BluetoothDevice[] newArray(int size) {
[all …]
DBluetoothProfile.java126 public List<BluetoothDevice> getConnectedDevices(); in getConnectedDevices()
142 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states); in getDevicesMatchingConnectionStates()
154 public int getConnectionState(BluetoothDevice device); in getConnectionState()
DBluetoothSocket.java87 private final BluetoothDevice mDevice; /* remote device */
125 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { in BluetoothSocket()
171 this(type, fd, auth, encrypt, new BluetoothDevice(address), port, null); in BluetoothSocket()
250 public BluetoothDevice getRemoteDevice() { in getRemoteDevice()
365 private final BluetoothDevice device;
368 public SdpHelper(BluetoothDevice device, ParcelUuid uuid) { in SdpHelper()
369 service = BluetoothDevice.getService(); in SdpHelper()
DBluetoothProfileState.java53 private BluetoothDevice mPendingDevice;
61 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
83 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
102 filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED); in BluetoothProfileState()
DIBluetoothHealthCallback.aidl19 import android.bluetooth.BluetoothDevice;
30 in BluetoothDevice device, int prevState, int newState, in in onHealthChannelStateChange()
DHeadsetBase.java46 private final BluetoothDevice mRemoteDevice;
78 BluetoothDevice device, int rfcommChannel) { in HeadsetBase()
94 BluetoothDevice device, in HeadsetBase()
258 public BluetoothDevice getRemoteDevice() { in getRemoteDevice()
/frameworks/base/core/java/android/server/
DBluetoothInputProfileHandler.java20 import android.bluetooth.BluetoothDevice;
47 private final HashMap<BluetoothDevice, Integer> mInputDevices;
53 mInputDevices = new HashMap<BluetoothDevice, Integer>(); in BluetoothInputProfileHandler()
64 boolean connectInputDevice(BluetoothDevice device, in connectInputDevice()
82 boolean connectInputDeviceInternal(BluetoothDevice device) { in connectInputDeviceInternal()
92 boolean disconnectInputDevice(BluetoothDevice device, in disconnectInputDevice()
109 boolean disconnectInputDeviceInternal(BluetoothDevice device) { in disconnectInputDeviceInternal()
119 int getInputDeviceConnectionState(BluetoothDevice device) { in getInputDeviceConnectionState()
126 List<BluetoothDevice> getConnectedInputDevices() { in getConnectedInputDevices()
127 List<BluetoothDevice> devices = lookupInputDevicesMatchingStates( in getConnectedInputDevices()
[all …]
DBluetoothA2dpService.java27 import android.bluetooth.BluetoothDevice;
62 private HashMap<BluetoothDevice, Integer> mAudioDevices;
67 private BluetoothDevice mPlayingA2dpDevice;
73 BluetoothDevice device =
74 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
86 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
96 List<BluetoothDevice> sinks = getConnectedDevices();
116 private boolean isPhoneDocked(BluetoothDevice device) { in isPhoneDocked()
122 BluetoothDevice dockDevice = i.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in isPhoneDocked()
148 mIntentFilter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED); in BluetoothA2dpService()
[all …]
DBluetoothEventLoop.java22 import android.bluetooth.BluetoothDevice;
87 String[] devices = mBluetoothService.listInState(BluetoothDevice.BOND_BONDING);
96 BluetoothDevice.BOND_NONE,
97 BluetoothDevice.UNBOND_REASON_REMOTE_AUTH_CANCELED);
194 Intent intent = new Intent(BluetoothDevice.ACTION_FOUND); in addDevice()
195 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in addDevice()
196 intent.putExtra(BluetoothDevice.EXTRA_CLASS, in addDevice()
198 intent.putExtra(BluetoothDevice.EXTRA_RSSI, rssiValue); in addDevice()
199 intent.putExtra(BluetoothDevice.EXTRA_NAME, name); in addDevice()
230 Intent intent = new Intent(BluetoothDevice.ACTION_DISAPPEARED); in onDeviceDisappeared()
[all …]
DBluetoothHealthProfileHandler.java20 import android.bluetooth.BluetoothDevice;
54 private HashMap <BluetoothDevice, Integer> mHealthDevices;
66 private BluetoothDevice mDevice;
72 HealthChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, in HealthChannel()
161 mHealthDevices = new HashMap<BluetoothDevice, Integer>(); in BluetoothHealthProfileHandler()
190 boolean connectChannelToSource(BluetoothDevice device, in connectChannelToSource()
195 private HealthChannel getMainChannel(BluetoothDevice device, in getMainChannel()
205 boolean connectChannel(BluetoothDevice device, in connectChannel()
267 boolean disconnectChannel(BluetoothDevice device, in disconnectChannel()
303 private HealthChannel findChannelByPath(BluetoothDevice device, String path) { in findChannelByPath()
[all …]
DBluetoothBondState.java20 import android.bluetooth.BluetoothDevice;
91 filter.addAction(BluetoothDevice.ACTION_PAIRING_REQUEST); in BluetoothBondState()
126 BluetoothDevice.BOND_BONDED); in loadBondState()
145 if (oldState == BluetoothDevice.BOND_BONDING) { in setBondState()
151 if (state == BluetoothDevice.BOND_BONDED) { in setBondState()
158 } else if (state == BluetoothDevice.BOND_BONDING) { in setBondState()
162 } else if (state == BluetoothDevice.BOND_NONE) { in setBondState()
172 Intent intent = new Intent(BluetoothDevice.ACTION_BOND_STATE_CHANGED); in setBondState()
173 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mService.getRemoteDevice(address)); in setBondState()
174 intent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, state); in setBondState()
[all …]
DBluetoothPanProfileHandler.java20 import android.bluetooth.BluetoothDevice;
58 private final HashMap<BluetoothDevice, BluetoothPanDevice> mPanDevices;
68 mPanDevices = new HashMap<BluetoothDevice, BluetoothPanDevice>(); in BluetoothPanProfileHandler()
122 int getPanDeviceConnectionState(BluetoothDevice device) { in getPanDeviceConnectionState()
130 boolean connectPanDevice(BluetoothDevice device) { in connectPanDevice()
138 for (BluetoothDevice panDevice: mPanDevices.keySet()) { in connectPanDevice()
166 for (BluetoothDevice device: mPanDevices.keySet()) { in disconnectPanServerDevices()
192 List<BluetoothDevice> getConnectedPanDevices() { in getConnectedPanDevices()
193 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); in getConnectedPanDevices()
195 for (BluetoothDevice device: mPanDevices.keySet()) { in getConnectedPanDevices()
[all …]
DBluetoothService.java29 import android.bluetooth.BluetoothDevice;
387 for (BluetoothDevice device: getConnectedInputDevices()) { in disconnectDevices()
391 for (BluetoothDevice device: getConnectedPanDevices()) { in disconnectDevices()
401 for (String address : mBondState.listInState(BluetoothDevice.BOND_BONDING)) { in finishDisable()
402 mBondState.setBondState(address, BluetoothDevice.BOND_NONE, in finishDisable()
403 BluetoothDevice.UNBOND_REASON_AUTH_CANCELED); in finishDisable()
407 for (String address : mBondState.listInState(BluetoothDevice.BOND_BONDED)) { in finishDisable()
633 setPin(address, BluetoothDevice.convertPinToBytes("0000")); in attemptAutoPair()
645 if (result == BluetoothDevice.BOND_SUCCESS) { in onCreatePairedDeviceResult()
646 setBondState(address, BluetoothDevice.BOND_BONDED); in onCreatePairedDeviceResult()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java149 private BluetoothDevice mDevice;
153 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver()
163 if (!mDevice.equals(intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE))) { in onReceive()
167 if (BluetoothDevice.ACTION_PAIRING_REQUEST.equals(intent.getAction())) { in onReceive()
168 int varient = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, -1); in onReceive()
171 case BluetoothDevice.PAIRING_VARIANT_PIN: in onReceive()
174 case BluetoothDevice.PAIRING_VARIANT_PASSKEY: in onReceive()
177 case BluetoothDevice.PAIRING_VARIANT_PASSKEY_CONFIRMATION: in onReceive()
178 case BluetoothDevice.PAIRING_VARIANT_CONSENT: in onReceive()
181 case BluetoothDevice.PAIRING_VARIANT_OOB_CONSENT: in onReceive()
[all …]
DBluetoothStressTest.java154 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair()
180 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair()
207 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp()
240 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectHeadset()
273 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectInput()
306 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectPan()
336 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testIncomingPanConnection()
370 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testStartStopSco()

12