Home
last modified time | relevance | path

Searched refs:bluetoothAdapter (Results 1 – 3 of 3) 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/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()