Home
last modified time | relevance | path

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

/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()
142 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onNotifyChange() local
143 if (!isBluetoothEnabled(btAdapter)) { in onNotifyChange()
145 btAdapter.enable(); in onNotifyChange()
361 private boolean isBluetoothEnabled(BluetoothAdapter btAdapter) { in isBluetoothEnabled() argument
362 switch (btAdapter.getState()) { in isBluetoothEnabled()
/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/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.factoryReset(); in resetNetwork()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoriesFragment.java78 LocalBluetoothAdapter btAdapter = mLocalBtManager.getBluetoothAdapter(); in updateAccessories() local
79 if (btAdapter == null) { in updateAccessories()
84 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in updateAccessories()
DBluetoothDevicesService.java271 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getDevices() local
272 if (btAdapter != null) { in getDevices()
273 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/Settings/src/com/android/settings/
DResetNetworkConfirm.java139 BluetoothAdapter btAdapter = btManager.getAdapter(); in doInBackground() local
140 if (btAdapter != null) { in doInBackground()
141 btAdapter.factoryReset(); in doInBackground()