Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoryUtils.java193 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in isActiveAudioOutput() local
194 if (btAdapter != null) { in isActiveAudioOutput()
195 return btAdapter.getActiveDevices(BluetoothProfile.A2DP).contains(device); in isActiveAudioOutput()
208 final BluetoothAdapter btAdapter = getDefaultBluetoothAdapter(); in setActiveAudioOutput() local
209 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()
DAccessoriesFragment.java77 LocalBluetoothAdapter btAdapter = mLocalBtManager.getBluetoothAdapter(); in updateAccessories() local
78 if (btAdapter == null) { in updateAccessories()
83 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in updateAccessories()
DBluetoothDevicesService.java293 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getDevices() local
294 if (btAdapter != null) { in getDevices()
295 return new ArrayList<>(btAdapter.getBondedDevices()); in getDevices()
DBluetoothAccessoryFragment.java134 BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local
135 if (btAdapter != null) { in onCreate()
136 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in onCreate()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DDeviceManager.java54 BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in setDeviceName() local
55 if (btAdapter != null) { in setDeviceName()
56 btAdapter.setName(name); in setDeviceName()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/
DDeviceManager.java54 BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in setDeviceName() local
55 if (btAdapter != null) { in setDeviceName()
56 btAdapter.setName(name); in setDeviceName()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java99 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getSlice() local
100 if (btAdapter == null) { in getSlice()
109 if (!isBluetoothEnabled(btAdapter) && !sBluetoothEnabling) { in getSlice()
148 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onNotifyChange() local
149 if (!isBluetoothEnabled(btAdapter)) { in onNotifyChange()
151 btAdapter.enable(); in onNotifyChange()
368 private boolean isBluetoothEnabled(BluetoothAdapter btAdapter) { in isBluetoothEnabled() argument
369 switch (btAdapter.getState()) { in isBluetoothEnabled()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkConfirmFragment.java108 BluetoothAdapter btAdapter = btManager.getAdapter(); in resetNetwork() local
109 if (btAdapter != null) { in resetNetwork()
110 btAdapter.clearBluetooth(); in resetNetwork()
/packages/apps/Settings/src/com/android/settings/network/
DResetNetworkOperationBuilder.java194 BluetoothAdapter btAdapter = btManager.getAdapter(); in resetBluetoothManager()
195 if (btAdapter != null) { in resetBluetoothManager()
196 btAdapter.clearBluetooth(); in resetBluetoothManager()