Searched refs:btAdapter (Results 1 – 7 of 7) sorted by relevance
99 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getSlice() local100 if (btAdapter == null) { in getSlice()109 if (!isBluetoothEnabled(btAdapter) && !sBluetoothEnabling) { in getSlice()142 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onNotifyChange() local143 if (!isBluetoothEnabled(btAdapter)) { in onNotifyChange()145 btAdapter.enable(); in onNotifyChange()361 private boolean isBluetoothEnabled(BluetoothAdapter btAdapter) { in isBluetoothEnabled() argument362 switch (btAdapter.getState()) { in isBluetoothEnabled()
54 BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in setDeviceName() local55 if (btAdapter != null) { in setDeviceName()56 btAdapter.setName(name); in setDeviceName()
108 BluetoothAdapter btAdapter = btManager.getAdapter(); in resetNetwork() local109 if (btAdapter != null) { in resetNetwork()110 btAdapter.factoryReset(); in resetNetwork()
78 LocalBluetoothAdapter btAdapter = mLocalBtManager.getBluetoothAdapter(); in updateAccessories() local79 if (btAdapter == null) { in updateAccessories()84 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in updateAccessories()
271 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getDevices() local272 if (btAdapter != null) { in getDevices()273 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()
139 BluetoothAdapter btAdapter = btManager.getAdapter(); in doInBackground() local140 if (btAdapter != null) { in doInBackground()141 btAdapter.factoryReset(); in doInBackground()