Home
last modified time | relevance | path

Searched refs:bluetoothAdapter (Results 1 – 8 of 8) 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.java115 public BluetoothDeviceManager(Context context, BluetoothAdapterProxy bluetoothAdapter) { in BluetoothDeviceManager() argument
116 if (bluetoothAdapter != null) { in BluetoothDeviceManager()
117 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
119 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
/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.java466 BluetoothAdapterProxy bluetoothAdapter, in BluetoothPhoneServiceImpl() argument
475 mBluetoothAdapter = bluetoothAdapter; in BluetoothPhoneServiceImpl()