Searched refs:bluetoothAdapter (Results 1 – 4 of 4) 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()
76 private BluetoothAdapter bluetoothAdapter; field in AppRTCBluetoothManager249 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()
45 private Object bluetoothAdapter = newInstanceOf("android.bluetooth.BluetoothAdapter"); field in ShadowApplication181 return bluetoothAdapter; in getBluetoothAdapter()