Home
last modified time | relevance | path

Searched refs:bluetoothSocket (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowBluetoothSocketTest.java20 BluetoothSocket bluetoothSocket; field in ShadowBluetoothSocketTest
26 bluetoothSocket = Shadow.newInstanceOf(BluetoothSocket.class); in setUp()
31 shadowOf(bluetoothSocket).getInputStreamFeeder().write(DATA); in getInputStreamFeeder()
33 InputStream inputStream = bluetoothSocket.getInputStream(); in getInputStreamFeeder()
41 bluetoothSocket.getOutputStream().write(DATA); in getOutputStreamSink()
44 int len = shadowOf(bluetoothSocket).getOutputStreamSink().read(b); in getOutputStreamSink()
60 shadowOf(bluetoothSocket).setOutputStream(socketVerifier); in setOutputStream_withWrite_observable()
62 bluetoothSocket.getOutputStream().write(DATA); in setOutputStream_withWrite_observable()
69 bluetoothSocket.close(); in close()
72 bluetoothSocket.connect(); in close()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBluetoothSocketTest.java17 BluetoothSocket bluetoothSocket; field in ShadowBluetoothSocketTest
23 bluetoothSocket = Shadow.newInstanceOf(BluetoothSocket.class); in setUp()
28 shadowOf(bluetoothSocket).getInputStreamFeeder().write(DATA); in getInputStreamFeeder()
30 InputStream inputStream = bluetoothSocket.getInputStream(); in getInputStreamFeeder()
38 bluetoothSocket.getOutputStream().write(DATA); in getOutputStreamSink()
41 int len = shadowOf(bluetoothSocket).getOutputStreamSink().read(b); in getOutputStreamSink()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBluetoothDevice.java54 bluetoothSocket = null; in reset()
57 private static BluetoothSocket bluetoothSocket = null; field in ShadowBluetoothDevice
289 if (bluetoothSocket == null) { in createRfcommSocketToServiceRecord()
290 bluetoothSocket = Shadow.newInstanceOf(BluetoothSocket.class); in createRfcommSocketToServiceRecord()
293 return bluetoothSocket; in createRfcommSocketToServiceRecord()