Searched refs:bluetoothAdapter (Results 1 – 3 of 3) sorted by relevance
23 private BluetoothAdapter bluetoothAdapter; field in ShadowBluetoothAdapterTest31 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 …]
91 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in startDiscovery() local93 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()
45 private Object bluetoothAdapter = newInstanceOf("android.bluetooth.BluetoothAdapter"); field in ShadowApplication181 return bluetoothAdapter; in getBluetoothAdapter()