Home
last modified time | relevance | path

Searched refs:BluetoothDevice (Results 1 – 25 of 49) 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;
90 boolean allowIncomingProfileConnect(in BluetoothDevice device, boolean value); in allowIncomingProfileConnect()
97 boolean connectInputDevice(in BluetoothDevice device); in connectInputDevice()
98 boolean disconnectInputDevice(in BluetoothDevice device); in disconnectInputDevice()
99 List<BluetoothDevice> getConnectedInputDevices(); in getConnectedInputDevices()
100 List<BluetoothDevice> getInputDevicesMatchingConnectionStates(in int[] states); in getInputDevicesMatchingConnectionStates()
101 int getInputDeviceConnectionState(in BluetoothDevice device); in getInputDeviceConnectionState()
102 boolean setInputDevicePriority(in BluetoothDevice device, int priority); in setInputDevicePriority()
103 int getInputDevicePriority(in BluetoothDevice device); in getInputDevicePriority()
107 int getPanDeviceConnectionState(in BluetoothDevice device); in getPanDeviceConnectionState()
[all …]
DBluetoothHeadset.java273 public boolean connect(BluetoothDevice device) { in connect()
314 public boolean disconnect(BluetoothDevice device) { in disconnect()
332 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
339 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
343 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
349 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
356 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
360 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
366 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
396 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothA2dp.java158 public boolean connect(BluetoothDevice device) { in connect()
199 public boolean disconnect(BluetoothDevice device) { in disconnect()
217 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
224 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
228 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
234 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
241 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
245 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
251 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
281 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothInputDevice.java145 public boolean connect(BluetoothDevice device) { in connect()
186 public boolean disconnect(BluetoothDevice device) { in disconnect()
204 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
211 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
215 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
221 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
228 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
232 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
238 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
268 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothPan.java164 public boolean connect(BluetoothDevice device) { in connect()
205 public boolean disconnect(BluetoothDevice device) { in disconnect()
223 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
230 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
234 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
240 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
247 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
251 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
257 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
296 private boolean isValidDevice(BluetoothDevice device) { in isValidDevice()
DBluetoothDeviceProfileState.java118 private BluetoothDevice mDevice;
132 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
140 setTrust(BluetoothDevice.CONNECTION_ACCESS_YES);
156 setTrust(BluetoothDevice.CONNECTION_ACCESS_YES);
173 setTrust(BluetoothDevice.CONNECTION_ACCESS_YES);
183 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
187 } else if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY)) {
189 int val = intent.getIntExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
190 BluetoothDevice.CONNECTION_ACCESS_NO);
194 } 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.java66 public final class BluetoothDevice implements Parcelable { class
484 synchronized (BluetoothDevice.class) { in getService()
505 /*package*/ BluetoothDevice(String address) { in BluetoothDevice() method in BluetoothDevice
516 if (o instanceof BluetoothDevice) { in equals()
517 return mAddress.equals(((BluetoothDevice)o).getAddress()); in equals()
544 public static final Parcelable.Creator<BluetoothDevice> CREATOR =
545 new Parcelable.Creator<BluetoothDevice>() {
546 public BluetoothDevice createFromParcel(Parcel in) {
547 return new BluetoothDevice(in.readString());
549 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.java93 private final BluetoothDevice mDevice; /* remote device */
131 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { in BluetoothSocket()
177 this(type, fd, auth, encrypt, new BluetoothDevice(address), port, null); in BluetoothSocket()
256 public BluetoothDevice getRemoteDevice() { in getRemoteDevice()
371 private final BluetoothDevice device;
374 public SdpHelper(BluetoothDevice device, ParcelUuid uuid) { in SdpHelper()
375 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 …]
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 …]
DBluetoothA2dpService.java27 import android.bluetooth.BluetoothDevice;
66 private HashMap<BluetoothDevice, Integer> mAudioDevices;
71 private BluetoothDevice mPlayingA2dpDevice;
81 BluetoothDevice device =
82 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
94 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
104 List<BluetoothDevice> sinks = getConnectedDevices();
124 private boolean isPhoneDocked(BluetoothDevice device) { in isPhoneDocked()
130 BluetoothDevice dockDevice = i.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in isPhoneDocked()
161 mIntentFilter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED); in BluetoothA2dpService()
[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;
395 for (BluetoothDevice device: getConnectedInputDevices()) { in disconnectDevices()
399 for (BluetoothDevice device: getConnectedPanDevices()) { in disconnectDevices()
409 for (String address : mBondState.listInState(BluetoothDevice.BOND_BONDING)) { in finishDisable()
410 mBondState.setBondState(address, BluetoothDevice.BOND_NONE, in finishDisable()
411 BluetoothDevice.UNBOND_REASON_AUTH_CANCELED); in finishDisable()
415 for (String address : mBondState.listInState(BluetoothDevice.BOND_BONDED)) { in finishDisable()
684 setPin(address, BluetoothDevice.convertPinToBytes("0000")); in attemptAutoPair()
696 if (result == BluetoothDevice.BOND_SUCCESS) { in onCreatePairedDeviceResult()
697 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.java156 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair()
182 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair()
209 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp()
242 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectHeadset()
275 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectInput()
308 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectPan()
338 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testIncomingPanConnection()
372 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testStartStopSco()

12