Home
last modified time | relevance | path

Searched refs:btAdapter (Results 1 – 3 of 3) sorted by relevance

/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/pairing/
DBluetoothScanner.java92 private final BluetoothAdapter btAdapter; field in BluetoothScanner.Receiver
99 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()
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/
DBluetoothUtils.java346 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in isActiveAudioOutput() local
347 if (btAdapter != null) { in isActiveAudioOutput()
348 return btAdapter.getActiveDevices(BluetoothProfile.A2DP).contains(device); in isActiveAudioOutput()
361 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in setActiveAudioOutput() local
362 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()
DBluetoothDeviceService.java198 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getDevices() local
199 if (btAdapter != null) { in getDevices()
200 Set<BluetoothDevice> devices = btAdapter.getBondedDevices(); in getDevices()