Home
last modified time | relevance | path

Searched refs:bluetoothAdapter (Results 1 – 17 of 17) 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/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java326 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start() local
327 if (!bluetoothAdapter.isEnabled()) { in start()
346 bluetoothAdapter.enable(); in start()
357 final int scanMode = bluetoothAdapter.getScanMode(); in start()
361 bluetoothAdapter.setScanMode( in start()
399 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in dispose() local
401 && mDefaultScanMode != bluetoothAdapter.getScanMode()) { in dispose()
403 bluetoothAdapter.setScanMode(mDefaultScanMode); in dispose()
/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/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java129 performBleAction((bluetoothAdapter, bleScanner) -> { in testBleScanInterrupted() argument
166 bluetoothAdapter.disable(); in testBleScanInterrupted()
170 if (!bluetoothAdapter.enable()) { in testBleScanInterrupted()
204 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in performBleAction() local
205 if (bluetoothAdapter == null) { in performBleAction()
210 if (!bluetoothAdapter.isEnabled()) { in performBleAction()
211 if (!bluetoothAdapter.enable()) { in performBleAction()
218 BluetoothLeScanner bleScanner = bluetoothAdapter.getBluetoothLeScanner(); in performBleAction()
224 actions.accept(bluetoothAdapter, bleScanner); in performBleAction()
228 bluetoothAdapter.disable(); in performBleAction()
[all …]
/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DBluetoothDeviceFragment.java93 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in checkAllDevices() local
94 if (bluetoothAdapter == null) { in checkAllDevices()
99 Set<BluetoothDevice> bondedDevices = bluetoothAdapter.getBondedDevices(); in checkAllDevices()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothAddressPreferenceController.java46 BluetoothAdapter bluetoothAdapter) { in BluetoothAddressPreferenceController() argument
48 mBluetoothAdapter = bluetoothAdapter; in BluetoothAddressPreferenceController()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DBluetoothMacAddressPreferenceController.java45 BluetoothAdapter bluetoothAdapter) { in BluetoothMacAddressPreferenceController() argument
47 mBluetoothAdapter = bluetoothAdapter; in BluetoothMacAddressPreferenceController()
/packages/apps/Car/Dialer/src/com/android/car/dialer/bluetooth/
DBluetoothPairListLiveData.java62 @Nullable BluetoothAdapter bluetoothAdapter) { in BluetoothPairListLiveData() argument
64 mBluetoothAdapter = bluetoothAdapter; in BluetoothPairListLiveData()
DHfpDeviceListLiveData.java57 @Nullable BluetoothAdapter bluetoothAdapter, in HfpDeviceListLiveData() argument
60 mBluetoothAdapter = bluetoothAdapter; in HfpDeviceListLiveData()
DBluetoothStateLiveData.java57 @Nullable BluetoothAdapter bluetoothAdapter) { in BluetoothStateLiveData() argument
59 mBluetoothAdapter = bluetoothAdapter; in BluetoothStateLiveData()
DPhoneAccountManager.java46 @Nullable BluetoothAdapter bluetoothAdapter) { in PhoneAccountManager() argument
48 mBluetoothAdapter = bluetoothAdapter; in PhoneAccountManager()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java192 public static BluetoothDevice getTestDevice(BluetoothAdapter bluetoothAdapter, int id) { in getTestDevice() argument
194 Assert.assertNotNull(bluetoothAdapter); in getTestDevice()
196 bluetoothAdapter.getRemoteDevice(String.format("00:01:02:03:04:%02X", id)); in getTestDevice()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/warning/
DBluetoothErrorStringLiveData.java62 @Nullable BluetoothAdapter bluetoothAdapter) { in BluetoothErrorStringLiveData() argument
65 if (bluetoothAdapter == null) { in BluetoothErrorStringLiveData()
/packages/apps/Bluetooth/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java293 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onBind() local
294 if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) { in onBind()
/packages/services/Car/service/src/com/android/car/
DCarInputService.java269 InputCaptureClientController captureController, BluetoothAdapter bluetoothAdapter) { in CarInputService() argument
289 mBluetoothAdapter = bluetoothAdapter; in CarInputService()