Lines Matching defs:BluetoothAdapter
45 * Represents the local device Bluetooth adapter. The {@link BluetoothAdapter}
52 * <p>To get a {@link BluetoothAdapter} representing the local Bluetooth
81 public final class BluetoothAdapter {
82 private static final String TAG = "BluetoothAdapter";
90 * <p><code>Intent.getIntExtra(BluetoothAdapter.EXTRA_STATE,
91 * BluetoothAdapter.ERROR)</code>
362 private static BluetoothAdapter sAdapter;
377 public static synchronized BluetoothAdapter getDefaultAdapter() {
382 sAdapter = new BluetoothAdapter(managerService);
391 * Use {@link #getDefaultAdapter} to get the BluetoothAdapter instance.
393 BluetoothAdapter(IBluetoothManager managerService) {
708 * BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE})
772 * {@link BluetoothAdapter#cancelDiscovery()} even if it
889 if (getState() != STATE_ON) return BluetoothAdapter.STATE_DISCONNECTED;
895 return BluetoothAdapter.STATE_DISCONNECTED;
1451 * by the {@link BluetoothAdapter#startLeScan} function.
1556 private WeakReference<BluetoothAdapter> mBluetoothAdapter;
1558 public GattCallbackWrapper(BluetoothAdapter bluetoothAdapter,
1560 mBluetoothAdapter = new WeakReference<BluetoothAdapter>(bluetoothAdapter);
1592 BluetoothAdapter adapter = mBluetoothAdapter.get();
1602 Log.e(TAG, "stopLeScan, BluetoothAdapter is null");
1624 BluetoothAdapter adapter = mBluetoothAdapter.get();
1637 Log.e(TAG, "onClientRegistered, BluetoothAdapter null");
1680 BluetoothAdapter adapter = mBluetoothAdapter.get();
1682 Log.d(TAG, "onScanResult, BluetoothAdapter null");