Searched refs:bluetoothAdapter (Results 1 – 9 of 9) sorted by relevance
65 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in GattServer() local67 if (bluetoothAdapter == null) { in GattServer()71 if (!bluetoothAdapter.isEnabled()) { in GattServer()73 bluetoothAdapter.enable(); in GattServer()74 if (!bluetoothAdapter.isEnabled()) { in GattServer()105 mBleAdvertiser = new MyBleAdvertiser(bluetoothAdapter); in GattServer()208 MyBleAdvertiser(BluetoothAdapter bluetoothAdapter) { in MyBleAdvertiser() argument210 mAdvertiser = bluetoothAdapter.getBluetoothLeAdvertiser(); in MyBleAdvertiser()
319 MyBleScanner(BluetoothAdapter bluetoothAdapter) { in MyBleScanner() argument321 mBLEScanner = bluetoothAdapter.getBluetoothLeScanner(); in MyBleScanner()
64 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in doUnoptimizedBleScan() local65 if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled() ) { in doUnoptimizedBleScan()69 BluetoothLeScanner bleScanner = bluetoothAdapter.getBluetoothLeScanner(); in doUnoptimizedBleScan()
125 public BluetoothDeviceManager(Context context, BluetoothAdapterProxy bluetoothAdapter) { in BluetoothDeviceManager() argument126 if (bluetoothAdapter != null) { in BluetoothDeviceManager()127 mBluetoothAdapterProxy = bluetoothAdapter; in BluetoothDeviceManager()128 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()130 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
43 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onReceive() local44 Set<BluetoothDevice> pairedDevices = bluetoothAdapter == null ? Collections.emptySet() in onReceive()45 : bluetoothAdapter.getBondedDevices(); in onReceive()
69 BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter(); in FastPairProvider() local70 if (bluetoothAdapter != null) { in FastPairProvider()71 mBluetoothLeAdvertiser = bluetoothAdapter.getBluetoothLeAdvertiser(); in FastPairProvider()
191 public static BluetoothDevice getTestDevice(BluetoothAdapter bluetoothAdapter, int id) { in getTestDevice() argument193 Assert.assertNotNull(bluetoothAdapter); in getTestDevice()195 bluetoothAdapter.getRemoteDevice(String.format("00:01:02:03:04:%02X", id)); in getTestDevice()
323 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start() local324 if (!bluetoothAdapter.isEnabled()) { in start()343 bluetoothAdapter.enable(); in start()
470 BluetoothAdapterProxy bluetoothAdapter, in BluetoothPhoneServiceImpl() argument479 mBluetoothAdapter = bluetoothAdapter; in BluetoothPhoneServiceImpl()