Searched refs:bluetoothAdapter (Results 1 – 8 of 8) 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()
115 public BluetoothDeviceManager(Context context, BluetoothAdapterProxy bluetoothAdapter) { in BluetoothDeviceManager() argument116 if (bluetoothAdapter != null) { in BluetoothDeviceManager()117 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()119 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
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()
466 BluetoothAdapterProxy bluetoothAdapter, in BluetoothPhoneServiceImpl() argument475 mBluetoothAdapter = bluetoothAdapter; in BluetoothPhoneServiceImpl()