Home
last modified time | relevance | path

Searched refs:bluetoothAdapter (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattServer.java65 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in GattServer() local
67 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() argument
210 mAdvertiser = bluetoothAdapter.getBluetoothLeAdvertiser(); in MyBleAdvertiser()
DGattClientListener.java319 MyBleScanner(BluetoothAdapter bluetoothAdapter) { in MyBleScanner() argument
321 mBLEScanner = bluetoothAdapter.getBluetoothLeScanner(); in MyBleScanner()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java64 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in doUnoptimizedBleScan() local
65 if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled() ) { in doUnoptimizedBleScan()
69 BluetoothLeScanner bleScanner = bluetoothAdapter.getBluetoothLeScanner(); in doUnoptimizedBleScan()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java125 public BluetoothDeviceManager(Context context, BluetoothAdapterProxy bluetoothAdapter) { in BluetoothDeviceManager() argument
126 if (bluetoothAdapter != null) { in BluetoothDeviceManager()
127 mBluetoothAdapterProxy = bluetoothAdapter; in BluetoothDeviceManager()
128 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
130 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DBluetoothBondedListReceiver.java43 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onReceive() local
44 Set<BluetoothDevice> pairedDevices = bluetoothAdapter == null ? Collections.emptySet() in onReceive()
45 : bluetoothAdapter.getBondedDevices(); in onReceive()
/packages/services/Car/service/src/com/android/car/
DFastPairProvider.java69 BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter(); in FastPairProvider() local
70 if (bluetoothAdapter != null) { in FastPairProvider()
71 mBluetoothLeAdvertiser = bluetoothAdapter.getBluetoothLeAdvertiser(); in FastPairProvider()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java191 public static BluetoothDevice getTestDevice(BluetoothAdapter bluetoothAdapter, int id) { in getTestDevice() argument
193 Assert.assertNotNull(bluetoothAdapter); in getTestDevice()
195 bluetoothAdapter.getRemoteDevice(String.format("00:01:02:03:04:%02X", id)); in getTestDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java323 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start() local
324 if (!bluetoothAdapter.isEnabled()) { in start()
343 bluetoothAdapter.enable(); in start()
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothPhoneServiceImpl.java470 BluetoothAdapterProxy bluetoothAdapter, in BluetoothPhoneServiceImpl() argument
479 mBluetoothAdapter = bluetoothAdapter; in BluetoothPhoneServiceImpl()