Home
last modified time | relevance | path

Searched refs:bluetoothAdapter (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBluetoothAdapterTest.java23 private BluetoothAdapter bluetoothAdapter; field in ShadowBluetoothAdapterTest
31 bluetoothAdapter = Shadow.newInstanceOf(BluetoothAdapter.class); in setUp()
32 shadowBluetoothAdapter = shadowOf(bluetoothAdapter); in setUp()
37 assertThat(bluetoothAdapter.isEnabled()).isFalse(); in testAdapterDefaultsDisabled()
43 assertThat(bluetoothAdapter.isEnabled()).isTrue(); in testAdapterCanBeEnabled_forTesting()
68 bluetoothAdapter.enable(); in canEnable_withAndroidApi()
69 assertThat(bluetoothAdapter.isEnabled()).isTrue(); in canEnable_withAndroidApi()
75 bluetoothAdapter.disable(); in canDisable_withAndroidApi()
76 assertThat(bluetoothAdapter.isEnabled()).isFalse(); in canDisable_withAndroidApi()
82 assertThat(bluetoothAdapter.getName()).isNotNull(); in name_getAndSet()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothDiscoveryHelper.java91 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in startDiscovery() local
93 if (bluetoothAdapter.isDiscovering()) { in startDiscovery()
94 bluetoothAdapter.cancelDiscovery(); in startDiscovery()
97 Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices(); in startDiscovery()
106 if (!bluetoothAdapter.isEnabled()) { in startDiscovery()
107 bluetoothAdapter.enable(); in startDiscovery()
110 bluetoothAdapter.startDiscovery(); in startDiscovery()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCBluetoothManager.java76 private BluetoothAdapter bluetoothAdapter; field in AppRTCBluetoothManager
249 bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start()
250 if (bluetoothAdapter == null) { in start()
259 logBluetoothAdapterInfo(bluetoothAdapter); in start()
275 + stateToString(bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET))); in start()
285 if (bluetoothAdapter == null) { in stop()
297 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET, bluetoothHeadset); in stop()
300 bluetoothAdapter = null; in stop()
413 return bluetoothAdapter.getProfileProxy(context, listener, profile); in getBluetoothProfileProxy()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplication.java45 private Object bluetoothAdapter = newInstanceOf("android.bluetooth.BluetoothAdapter"); field in ShadowApplication
181 return bluetoothAdapter; in getBluetoothAdapter()