Searched refs:btAdapter (Results 1 – 9 of 9) sorted by relevance
193 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in isActiveAudioOutput() local194 if (btAdapter != null) { in isActiveAudioOutput()195 return btAdapter.getActiveDevices(BluetoothProfile.A2DP).contains(device); in isActiveAudioOutput()208 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in setActiveAudioOutput() local209 if (btAdapter != null) { in setActiveAudioOutput()211 return btAdapter.removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_AUDIO); in setActiveAudioOutput()213 return btAdapter.setActiveDevice(device, BluetoothAdapter.ACTIVE_DEVICE_AUDIO); in setActiveAudioOutput()
77 LocalBluetoothAdapter btAdapter = mLocalBtManager.getBluetoothAdapter(); in updateAccessories() local78 if (btAdapter == null) { in updateAccessories()83 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in updateAccessories()
293 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getDevices() local294 if (btAdapter != null) { in getDevices()295 return new ArrayList<>(btAdapter.getBondedDevices()); in getDevices()
134 BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local135 if (btAdapter != null) { in onCreate()136 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in onCreate()
54 BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in setDeviceName() local55 if (btAdapter != null) { in setDeviceName()56 btAdapter.setName(name); in setDeviceName()
99 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getSlice() local100 if (btAdapter == null) { in getSlice()109 if (!isBluetoothEnabled(btAdapter) && !sBluetoothEnabling) { in getSlice()148 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onNotifyChange() local149 if (!isBluetoothEnabled(btAdapter)) { in onNotifyChange()151 btAdapter.enable(); in onNotifyChange()368 private boolean isBluetoothEnabled(BluetoothAdapter btAdapter) { in isBluetoothEnabled() argument369 switch (btAdapter.getState()) { in isBluetoothEnabled()
108 BluetoothAdapter btAdapter = btManager.getAdapter(); in resetNetwork() local109 if (btAdapter != null) { in resetNetwork()110 btAdapter.clearBluetooth(); in resetNetwork()
194 BluetoothAdapter btAdapter = btManager.getAdapter(); in resetBluetoothManager()195 if (btAdapter != null) { in resetBluetoothManager()196 btAdapter.clearBluetooth(); in resetBluetoothManager()