Lines Matching refs:bluetoothAdapter
19 import android.bluetooth.BluetoothAdapter;
63 } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
70 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
72 if (bluetoothAdapter.isDiscovering()) {
73 bluetoothAdapter.cancelDiscovery();
76 Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();
82 filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
85 if (!bluetoothAdapter.isEnabled()) {
86 bluetoothAdapter.enable();
89 bluetoothAdapter.startDiscovery();