Searched refs:btAdapter (Results 1 – 3 of 3) sorted by relevance
92 private final BluetoothAdapter btAdapter; field in BluetoothScanner.Receiver99 btAdapter = BluetoothAdapter.getDefaultAdapter(); in Receiver()137 if (btAdapter.isDiscovering()) { in scanNow()138 btAdapter.cancelDiscovery(); in scanNow()141 btAdapter.startDiscovery(); in scanNow()154 if (btAdapter != null) { in stopNow()155 btAdapter.cancelDiscovery(); in stopNow()
346 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in isActiveAudioOutput() local347 if (btAdapter != null) { in isActiveAudioOutput()348 return btAdapter.getActiveDevices(BluetoothProfile.A2DP).contains(device); in isActiveAudioOutput()361 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in setActiveAudioOutput() local362 if (btAdapter != null) { in setActiveAudioOutput()364 return btAdapter.removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_AUDIO); in setActiveAudioOutput()366 return btAdapter.setActiveDevice(device, BluetoothAdapter.ACTIVE_DEVICE_AUDIO); in setActiveAudioOutput()
198 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getDevices() local199 if (btAdapter != null) { in getDevices()200 Set<BluetoothDevice> devices = btAdapter.getBondedDevices(); in getDevices()