Home
last modified time | relevance | path

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

12

/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothPairingHelper.java19 import android.bluetooth.BluetoothDevice;
48 BluetoothDevice mDevice = intent.getParcelableExtra( in onReceive()
49 BluetoothDevice.EXTRA_DEVICE); in onReceive()
50 if (action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) { in onReceive()
51 mDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onReceive()
53 BluetoothDevice.ACCESS_ALLOWED); in onReceive()
55 BluetoothDevice.EXTRA_PAIRING_VARIANT, in onReceive()
56 BluetoothDevice.ERROR); in onReceive()
58 int pin = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_KEY, 0); in onReceive()
66 if (type == BluetoothDevice.PAIRING_VARIANT_CONSENT) { in onReceive()
[all …]
DBluetoothHfpClientFacade.java21 import android.bluetooth.BluetoothDevice;
75 public Boolean hfpClientConnect(BluetoothDevice device) { in hfpClientConnect()
85 public Boolean hfpClientDisconnect(BluetoothDevice device) { in hfpClientDisconnect()
112 BluetoothDevice device = in bluetoothHfpClientSetPriority()
131 BluetoothDevice device = BluetoothFacade.getDevice( in bluetoothHfpClientGetPriority()
149 BluetoothDevice device = BluetoothFacade.getDevice( in bluetoothHfpClientConnect()
173 BluetoothDevice device = BluetoothFacade.getDevice( in bluetoothHfpClientDisconnect()
189 public List<BluetoothDevice> bluetoothHfpClientGetConnectedDevices() { in bluetoothHfpClientGetConnectedDevices()
190 if (sHfpClientProfile == null) return new ArrayList<BluetoothDevice>(); in bluetoothHfpClientGetConnectedDevices()
207 List<BluetoothDevice> deviceList = in bluetoothHfpClientGetConnectionStatus()
[all …]
DBluetoothConnectionFacade.java23 import android.bluetooth.BluetoothDevice;
124 mDiscoverConnectFilter = new IntentFilter(BluetoothDevice.ACTION_FOUND); in BluetoothConnectionFacade()
125 mDiscoverConnectFilter.addAction(BluetoothDevice.ACTION_UUID); in BluetoothConnectionFacade()
128 mPairingFilter = new IntentFilter(BluetoothDevice.ACTION_PAIRING_REQUEST); in BluetoothConnectionFacade()
129 mPairingFilter.addAction(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST); in BluetoothConnectionFacade()
130 mPairingFilter.addAction(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); in BluetoothConnectionFacade()
133 mBondFilter = new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED); in BluetoothConnectionFacade()
134 mBondFilter.addAction(BluetoothDevice.ACTION_FOUND); in BluetoothConnectionFacade()
174 private BluetoothDevice mDevice;
191 if (action.equals(BluetoothDevice.ACTION_FOUND)) { in onReceive()
[all …]
DBluetoothHidDeviceFacade.java21 import android.bluetooth.BluetoothDevice;
177 public void onAppStatusChanged(BluetoothDevice pluggedDevice, boolean registered) {
186 public void onConnectionStateChanged(BluetoothDevice device, int state) {
194 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) {
205 public void onSetReport(BluetoothDevice device, byte type, byte id, byte[] data) {
215 public void onSetProtocol(BluetoothDevice device, byte protocol) {
223 public void onInterruptData(BluetoothDevice device, byte reportId, byte[] data) {
232 public void onVirtualCableUnplug(BluetoothDevice device) {
284 public Boolean hidDeviceConnect(BluetoothDevice device) { in hidDeviceConnect()
288 public Boolean hidDeviceDisconnect(BluetoothDevice device) { in hidDeviceDisconnect()
[all …]
DBluetoothPbapClientFacade.java21 import android.bluetooth.BluetoothDevice;
77 public Boolean pbapClientConnect(BluetoothDevice device) { in pbapClientConnect()
87 public Boolean pbapClientDisconnect(BluetoothDevice device) { in pbapClientDisconnect()
113 BluetoothDevice device = in bluetoothPbapClientSetPriority()
133 BluetoothDevice device = in bluetoothPbapClientGetPriority()
151 BluetoothDevice device = in bluetoothPbapClientConnect()
176 BluetoothDevice device = in bluetoothPbapClientDisconnect()
193 public List<BluetoothDevice> bluetoothPbapClientGetConnectedDevices() { in bluetoothPbapClientGetConnectedDevices()
194 if (sPbapClientProfile == null) return new ArrayList<BluetoothDevice>(); in bluetoothPbapClientGetConnectedDevices()
210 List<BluetoothDevice> deviceList = in bluetoothPbapClientGetConnectionStatus()
[all …]
DBluetoothA2dpSinkFacade.java22 import android.bluetooth.BluetoothDevice;
71 public Boolean a2dpSinkConnect(BluetoothDevice device) { in a2dpSinkConnect()
81 public Boolean a2dpSinkDisconnect(BluetoothDevice device) { in a2dpSinkDisconnect()
99 BluetoothDevice device = in bluetoothA2dpSinkSetPriority()
118 BluetoothDevice device = in bluetoothA2dpSinkGetPriority()
144 BluetoothDevice device = in bluetoothA2dpSinkConnect()
162 BluetoothDevice device = null; in bluetoothA2dpSinkDisconnect()
179 public List<BluetoothDevice> bluetoothA2dpSinkGetConnectedDevices() { in bluetoothA2dpSinkGetConnectedDevices()
180 if (sA2dpSinkProfile == null) return new ArrayList<BluetoothDevice>(); in bluetoothA2dpSinkGetConnectedDevices()
197 List<BluetoothDevice> deviceList = sA2dpSinkProfile.getConnectedDevices(); in bluetoothA2dpSinkGetConnectionStatus()
[all …]
DBluetoothDiscoveryHelper.java20 import android.bluetooth.BluetoothDevice;
72 if (BluetoothDevice.ACTION_FOUND.equals(action)) { in onReceive()
74 BluetoothDevice device = intent.getParcelableExtra( in onReceive()
75 BluetoothDevice.EXTRA_DEVICE); in onReceive()
78 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in onReceive()
97 Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices(); in startDiscovery()
98 for (BluetoothDevice device : pairedDevices) { in startDiscovery()
102 IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND); in startDiscovery()
DBluetoothHidFacade.java21 import android.bluetooth.BluetoothDevice;
153 public Boolean hidConnect(BluetoothDevice device) { in hidConnect()
163 public Boolean hidDisconnect(BluetoothDevice device) { in hidDisconnect()
189 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothHidConnect()
208 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothHidDisconnect()
218 public List<BluetoothDevice> bluetoothHidGetConnectedDevices() { in bluetoothHidGetConnectedDevices()
236 List<BluetoothDevice> deviceList = sHidProfile.getConnectedDevices(); in bluetoothHidGetConnectionStatus()
237 BluetoothDevice device; in bluetoothHidGetConnectionStatus()
261 BluetoothDevice device = BluetoothFacade.getDevice( in bluetoothHidSetReport()
287 BluetoothDevice device = BluetoothFacade.getDevice( in bluetoothHidGetReport()
[all …]
DBluetoothHspFacade.java21 import android.bluetooth.BluetoothDevice;
72 public Boolean hspConnect(BluetoothDevice device) { in hspConnect()
82 public Boolean hspDisconnect(BluetoothDevice device) { in hspDisconnect()
122 BluetoothDevice device = BluetoothFacade.getDevice( in bluetoothHspSetPriority()
139 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothHspConnect()
156 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothHspDisconnect()
166 public List<BluetoothDevice> bluetoothHspGetConnectedDevices() { in bluetoothHspGetConnectedDevices()
184 List<BluetoothDevice> deviceList = sHspProfile.getConnectedDevices(); in bluetoothHspGetConnectionStatus()
185 BluetoothDevice device; in bluetoothHspGetConnectionStatus()
226 BluetoothDevice device = null; in bluetoothHspConnectAudio()
[all …]
DBluetoothFacade.java22 import android.bluetooth.BluetoothDevice;
63 public static ConcurrentHashMap<String, BluetoothDevice> DiscoveredDevices;
77 DiscoveredDevices = new ConcurrentHashMap<String, BluetoothDevice>(); in BluetoothFacade()
78 discoveryFilter = new IntentFilter(BluetoothDevice.ACTION_FOUND); in BluetoothFacade()
90 if (action.equals(BluetoothDevice.ACTION_FOUND)) { in onReceive()
91 BluetoothDevice device = intent.getParcelableExtra( in onReceive()
92 BluetoothDevice.EXTRA_DEVICE); in onReceive()
163 public static boolean deviceMatch(BluetoothDevice device, String deviceID) { in deviceMatch()
174 public static <T> BluetoothDevice getDevice( in getDevice()
178 return (BluetoothDevice) devices.get(device); in getDevice()
[all …]
DBluetoothA2dpFacade.java24 import android.bluetooth.BluetoothDevice;
114 public Boolean a2dpConnect(BluetoothDevice device) { in a2dpConnect()
115 List<BluetoothDevice> sinks = sA2dpProfile.getConnectedDevices(); in a2dpConnect()
117 for (BluetoothDevice sink : sinks) { in a2dpConnect()
130 public Boolean a2dpDisconnect(BluetoothDevice device) { in a2dpDisconnect()
162 BluetoothDevice device = in bluetoothA2dpSetPriority()
185 BluetoothDevice mDevice = in bluetoothA2dpConnect()
207 List<BluetoothDevice> connectedA2dpDevices = in bluetoothA2dpDisconnect()
210 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothA2dpDisconnect()
222 public List<BluetoothDevice> bluetoothA2dpGetConnectedDevices() { in bluetoothA2dpGetConnectedDevices()
[all …]
DBluetoothMapFacade.java21 import android.bluetooth.BluetoothDevice;
73 public Boolean mapDisconnect(BluetoothDevice device) { in mapDisconnect()
100 List<BluetoothDevice> connectedMapDevices = in bluetoothMapDisconnect()
103 BluetoothDevice mDevice = BluetoothFacade.getDevice(connectedMapDevices, deviceID); in bluetoothMapDisconnect()
121 public List<BluetoothDevice> bluetoothMapGetConnectedDevices() { in bluetoothMapGetConnectedDevices()
135 public BluetoothDevice bluetoothMapGetClient() { in bluetoothMapGetClient()
DBluetoothMapClientFacade.java22 import android.bluetooth.BluetoothDevice;
102 public Boolean mapClientConnect(BluetoothDevice device) { in mapClientConnect()
107 public Boolean mapClientDisconnect(BluetoothDevice device) { in mapClientDisconnect()
120 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothMapClientConnect()
137 BluetoothDevice device = in mapSendMessage()
159 public Boolean mapDisconnect(BluetoothDevice device) { in mapDisconnect()
178 List<BluetoothDevice> connectedMapDevices = in bluetoothMapClientDisconnect()
181 BluetoothDevice mDevice = BluetoothFacade.getDevice( in bluetoothMapClientDisconnect()
195 public List<BluetoothDevice> bluetoothMapClientGetConnectedDevices() { in bluetoothMapClientGetConnectedDevices()
DGattServerFacade.java21 import android.bluetooth.BluetoothDevice;
59 private final HashMap<Integer, List<BluetoothDevice>> mGattServerDiscoveredDevicesList;
84 mGattServerDiscoveredDevicesList = new HashMap<Integer, List<BluetoothDevice>>(); in GattServerFacade()
154 public List<BluetoothDevice> gattServerGetConnectedDevices( in gattServerGetConnectedDevices()
159 List<BluetoothDevice> connectedDevices = in gattServerGetConnectedDevices()
189 List<BluetoothDevice> connectedDevices = in gattServerSendResponse()
191 BluetoothDevice bluetoothDevice = connectedDevices.get(bluetoothDeviceIndex); in gattServerSendResponse()
218 List<BluetoothDevice> connectedDevices = in gattServerNotifyCharacteristicChanged()
225 BluetoothDevice bluetoothDevice = connectedDevices.get(bluetoothDeviceIndex); in gattServerNotifyCharacteristicChanged()
261 List<BluetoothDevice> connectedDevices = in gattServerNotifyCharacteristicChangedByInstanceId()
[all …]
DBluetoothPanFacade.java21 import android.bluetooth.BluetoothDevice;
74 public Boolean panConnect(BluetoothDevice device) { in panConnect()
79 public Boolean panDisconnect(BluetoothDevice device) { in panDisconnect()
90 public List<BluetoothDevice> bluetoothPanGetConnectedDevices() { in bluetoothPanGetConnectedDevices()
DBluetoothBroadcastHelper.java20 import android.bluetooth.BluetoothDevice;
31 private final String[] mActions = {BluetoothDevice.ACTION_FOUND,
32 BluetoothDevice.ACTION_UUID,
DBluetoothAvrcpFacade.java23 import android.bluetooth.BluetoothDevice;
82 public List<BluetoothDevice> bluetoothAvrcpGetConnectedDevices() { in bluetoothAvrcpGetConnectedDevices()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBluetoothDeviceTest.java3 import static android.bluetooth.BluetoothDevice.BOND_BONDED;
4 import static android.bluetooth.BluetoothDevice.BOND_NONE;
10 import android.bluetooth.BluetoothDevice;
28 BluetoothDevice bluetoothDevice = ShadowBluetoothDevice.newInstance(MOCK_MAC_ADDRESS); in canCreateBluetoothDeviceViaNewInstance()
34 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(MOCK_MAC_ADDRESS); in canSetAndGetUuids()
47 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(MOCK_MAC_ADDRESS); in getUuids_setUuidsNotCalled_shouldReturnNull()
53 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(MOCK_MAC_ADDRESS); in canSetAndGetBondState()
63 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(MOCK_MAC_ADDRESS); in canSetAndGetCreatedBond()
73 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(MOCK_MAC_ADDRESS); in canSetAndGetFetchUuidsWithSdpResult()
82 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(MOCK_MAC_ADDRESS); in getCorrectFetchUuidsWithSdpCount()
[all …]
DShadowBluetoothGattTest.java6 import android.bluetooth.BluetoothDevice;
22 BluetoothDevice bluetoothDevice = ShadowBluetoothDevice.newInstance(MOCK_MAC_ADDRESS); in canCreateBluetoothGattViaNewInstance()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBluetoothDevice.java3 import static android.bluetooth.BluetoothDevice.BOND_NONE;
7 import android.bluetooth.BluetoothDevice;
18 @Implements(BluetoothDevice.class)
21 public static BluetoothDevice newInstance(String address) { in newInstance()
23 BluetoothDevice.class, ReflectionHelpers.ClassParameter.from(String.class, address)); in newInstance()
26 @RealObject private BluetoothDevice realBluetoothDevice;
44 return directlyOn(BluetoothDevice.class, "getService"); in getService()
DShadowBluetoothGatt.java9 import android.bluetooth.BluetoothDevice;
22 public static BluetoothGatt newInstance(BluetoothDevice device) { in newInstance()
34 BluetoothDevice.class, in newInstance()
45 iBluetoothGattClass, BluetoothDevice.class, Integer.TYPE, Integer.TYPE in newInstance()
53 Context.class, iBluetoothGattClass, BluetoothDevice.class, Integer.TYPE in newInstance()
60 new Class<?>[] {Context.class, iBluetoothGattClass, BluetoothDevice.class}, in newInstance()
DShadowBluetoothAdapter.java8 import android.bluetooth.BluetoothDevice;
27 private Set<BluetoothDevice> bondedDevices = new HashSet<BluetoothDevice>();
44 protected Set<BluetoothDevice> getBondedDevices() { in getBondedDevices()
48 public void setBondedDevices(Set<BluetoothDevice> bluetoothDevices) { in setBondedDevices()
/external/autotest/server/cros/multimedia/
Dbluetooth_facade_adapter.py6 from autotest_lib.server.cros.bluetooth.bluetooth_device import BluetoothDevice
9 class BluetoothFacadeRemoteAdapter(BluetoothDevice):
/external/webrtc/examples/androidjunit/src/org/appspot/apprtc/
DBluetoothManagerTest.java23 import android.bluetooth.BluetoothDevice;
58 private BluetoothDevice mockedBluetoothDevice;
59 private List<BluetoothDevice> mockedBluetoothDeviceList;
72 mockedBluetoothDevice = mock(BluetoothDevice.class); in setUp()
73 mockedBluetoothDeviceList = new ArrayList<BluetoothDevice>(); in setUp()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCBluetoothManager.java15 import android.bluetooth.BluetoothDevice;
80 private BluetoothDevice bluetoothDevice;
378 List<BluetoothDevice> devices = bluetoothHeadset.getConnectedDevices(); in updateDevice()
430 Set<BluetoothDevice> pairedDevices = localAdapter.getBondedDevices(); in logBluetoothAdapterInfo()
433 for (BluetoothDevice device : pairedDevices) { in logBluetoothAdapterInfo()
477 List<BluetoothDevice> devices = bluetoothHeadset.getConnectedDevices(); in bluetoothTimeout()

12