/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/ |
D | HfpHandsfree.kt | 57 private val bluetoothAdapter = bluetoothManager.adapter constant 71 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET_CLIENT, bluetoothHfpClient) in deinit() 80 …bluetoothHfpClient.acceptCall(request.connection.toBluetoothDevice(bluetoothAdapter), BluetoothHea… in answerCallAsHandsfree() 90 …ll in bluetoothHfpClient.getCurrentCalls(request.connection.toBluetoothDevice(bluetoothAdapter))) { in endCallAsHandsfree() 91 … bluetoothHfpClient.terminateCall(request.connection.toBluetoothDevice(bluetoothAdapter), call) in endCallAsHandsfree() 102 bluetoothHfpClient.rejectCall(request.connection.toBluetoothDevice(bluetoothAdapter)) in declineCallAsHandsfree() 112 bluetoothHfpClient.connectAudio(request.connection.toBluetoothDevice(bluetoothAdapter)) in connectToAudioAsHandsfree() 122 bluetoothHfpClient.disconnectAudio(request.connection.toBluetoothDevice(bluetoothAdapter)) in disconnectFromAudioAsHandsfree() 132 … bluetoothHfpClient.dial(request.connection.toBluetoothDevice(bluetoothAdapter), request.number) in makeCallAsHandsfree() 142 … bluetoothHfpClient.explicitCallTransfer(request.connection.toBluetoothDevice(bluetoothAdapter)) in callTransferAsHandsfree() [all …]
|
D | Host.kt | 79 private val bluetoothAdapter = bluetoothManager.adapter constant 117 if (bluetoothAdapter.isEnabled) { in rebootBluetooth() 118 bluetoothAdapter.disable() in rebootBluetooth() 125 bluetoothAdapter.enable() in rebootBluetooth() 138 bluetoothAdapter.clearBluetooth() in factoryReset() 165 val localMacAddress = MacAddress.fromString(bluetoothAdapter.getAddress()) in readLocalAddress() 229 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in waitConnection() 233 if (!bluetoothAdapter.isEnabled) { in waitConnection() 252 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in connect() 256 bluetoothAdapter.cancelDiscovery() in connect() [all …]
|
D | A2dp.kt | 54 private val bluetoothAdapter = bluetoothManager.adapter constant 69 bluetoothAdapter.closeProfileProxy(BluetoothProfile.A2DP, bluetoothA2dp) in deinit() 78 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in openSource() 117 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in waitSource() 155 val device = request.source.connection.toBluetoothDevice(bluetoothAdapter) in start() 180 val device = request.source.connection.toBluetoothDevice(bluetoothAdapter) in suspend() 210 val device = request.source.connection.toBluetoothDevice(bluetoothAdapter) in isSuspended() 225 val device = request.source.connection.toBluetoothDevice(bluetoothAdapter) in close() 299 val device = request.source.connection.toBluetoothDevice(bluetoothAdapter) in getAudioEncoding()
|
D | Hfp.kt | 56 private val bluetoothAdapter = bluetoothManager.adapter constant 79 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET, bluetoothHfp) in deinit() 92 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in enableSlc() 102 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in disableSlc() 209 bluetoothHfp.startVoiceRecognition(request.connection.toBluetoothDevice(bluetoothAdapter)) in setVoiceRecognition() 211 bluetoothHfp.stopVoiceRecognition(request.connection.toBluetoothDevice(bluetoothAdapter)) in setVoiceRecognition()
|
D | A2dpSink.kt | 51 private val bluetoothAdapter = bluetoothManager.adapter constant 64 bluetoothAdapter.closeProfileProxy(BluetoothProfile.A2DP_SINK, bluetoothA2dpSink) in deinit() 73 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in waitSink() 107 request.sink.connection.toBluetoothDevice(bluetoothAdapter) in close()
|
D | L2cap.kt | 39 private val bluetoothAdapter = bluetoothManager.adapter constant 73 bluetoothAdapter.listenUsingL2capChannel() in listenL2CAPChannel() 75 bluetoothAdapter.listenUsingInsecureL2capChannel() in listenL2CAPChannel() 114 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in createLECreditBasedChannel()
|
D | SecurityStorage.kt | 53 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.SecurityStorage 69 val bluetoothDevice = request.public.toBluetoothDevice(bluetoothAdapter) in isBonded() 79 val bluetoothDevice = request.public.toBluetoothDevice(bluetoothAdapter) in deleteBond()
|
D | Server.kt | 76 val bluetoothAdapter = context.getSystemService(BluetoothManager::class.java)!!.adapter constant 77 val is_a2dp_source = bluetoothAdapter.getSupportedProfiles().contains(BluetoothProfile.A2DP) 86 … val is_hfp_hf = bluetoothAdapter.getSupportedProfiles().contains(BluetoothProfile.HEADSET_CLIENT)
|
D | Rfcomm.kt | 49 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.Rfcomm 68 val device = request.address.toBluetoothDevice(bluetoothAdapter) in connectToServer() 116 …val serverSocket = bluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(request.name, UUID.… in startServer()
|
D | Hid.kt | 22 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.Hid 36 request.address.toBluetoothDevice(bluetoothAdapter), in sendHostReport()
|
D | Security.kt | 69 private val bluetoothAdapter = bluetoothManager.adapter in <lambda>() constant in com.android.pandora.Security 87 val bluetoothDevice = request.connection.toBluetoothDevice(bluetoothAdapter) in <lambda>() 158 val device = answer.event.address.toBluetoothDevice(bluetoothAdapter) in <lambda>()
|
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/ |
D | BluetoothController.kt | 38 private val bluetoothAdapter: BluetoothAdapter = constant in android.nearby.fastpair.provider.bluetooth.BluetoothController 46 if (!bluetoothAdapter.isEnabled) { in enableBluetooth() 47 bluetoothAdapter.enable() in enableBluetooth() 68 bluetoothAdapter.ioCapability = ioCapabilityClassic in setIoCapability() 69 bluetoothAdapter.leIoCapability = ioCapabilityBLE in setIoCapability() 84 bluetoothAdapter.disable() in setIoCapability() 100 bluetoothAdapter.enable() in setIoCapability() 139 bluetoothAdapter.getProfileProxy( in getRemoteDevice() 158 fun getScanMode(): Int = bluetoothAdapter.scanMode in getScanMode() 164 fun isPaired(): Boolean = bluetoothAdapter.bondedDevices.contains(remoteDevice) in getScanMode() [all …]
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | GattServer.java | 65 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()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/testability/android/bluetooth/ |
D | BluetoothAdapter.java | 65 private BluetoothAdapter(android.bluetooth.BluetoothAdapter bluetoothAdapter) { in BluetoothAdapter() argument 66 mWrappedBluetoothAdapter = bluetoothAdapter; in BluetoothAdapter() 155 @Nullable android.bluetooth.BluetoothAdapter bluetoothAdapter) { in wrap() 156 if (bluetoothAdapter == null) { in wrap() 159 return new BluetoothAdapter(bluetoothAdapter); in wrap()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePairer.java | 339 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start() local 340 if (!bluetoothAdapter.isEnabled()) { in start() 359 bluetoothAdapter.enable(); in start() 370 final int scanMode = bluetoothAdapter.getScanMode(); in start() 375 bluetoothAdapter.setDiscoverableTimeout(Duration.ZERO); in start() 376 bluetoothAdapter.setScanMode( in start() 413 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in dispose() local 415 && mDefaultScanMode != bluetoothAdapter.getScanMode()) { in dispose() 417 bluetoothAdapter.setScanMode(mDefaultScanMode); in dispose()
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | BluetoothProxy.java | 55 private final BluetoothAdapter bluetoothAdapter; field in BluetoothProxy 494 bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothProxy() 723 bluetoothAdapter.getProfileProxy(this.application, profileListener, in initCsisProxy() 731 bluetoothAdapter.closeProfileProxy(BluetoothProfile.LE_AUDIO, bluetoothCsis); in cleanupCsisProxy() 738 bluetoothAdapter.getProfileProxy(this.application, profileListener, in initLeAudioProxy() 750 bluetoothAdapter.closeProfileProxy(BluetoothProfile.LE_AUDIO, bluetoothLeAudio); in cleanupLeAudioProxy() 757 bluetoothAdapter.getProfileProxy(this.application, profileListener, in initVolumeControlProxy() 768 bluetoothAdapter.closeProfileProxy(BluetoothProfile.VOLUME_CONTROL, in cleanupVolumeControlProxy() 776 bluetoothAdapter.getProfileProxy(this.application, profileListener, in initHapProxy() 789 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HAP_CLIENT, bluetoothHapClient); in cleanupHapProxy() [all …]
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/ |
D | AnomalyActions.java | 64 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/ |
D | AtomTests.java | 129 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/ |
D | BluetoothDeviceManager.java | 198 public BluetoothDeviceManager(Context context, BluetoothAdapter bluetoothAdapter) { in BluetoothDeviceManager() argument 199 if (bluetoothAdapter != null) { in BluetoothDeviceManager() 200 mBluetoothAdapter = bluetoothAdapter; in BluetoothDeviceManager() 201 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager() 203 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager() 205 bluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothDeviceManager()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/testability/ |
D | Testability.java | 34 @Nullable android.bluetooth.BluetoothAdapter bluetoothAdapter) { in wrap() 35 return BluetoothAdapter.wrap(bluetoothAdapter); in wrap()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | BluetoothDeviceFragment.java | 93 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in checkAllDevices() local 94 if (bluetoothAdapter == null) { in checkAllDevices() 99 Set<BluetoothDevice> bondedDevices = bluetoothAdapter.getBondedDevices(); in checkAllDevices()
|
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/ |
D | NearbyManagerTest.java | 163 BluetoothAdapter bluetoothAdapter = manager.getAdapter(); in enableBluetooth() local 164 if (!bluetoothAdapter.isEnabled()) { in enableBluetooth() 165 assertThat(BTAdapterUtils.enableAdapter(bluetoothAdapter, mContext)).isTrue(); in enableBluetooth()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/fastpair/ |
D | FastPairManager.java | 218 BluetoothAdapter bluetoothAdapter = getBluetoothAdapter(context); in pairInternal() local 220 boolean isBluetoothEnabled = bluetoothAdapter != null && bluetoothAdapter.isEnabled(); in pairInternal() 222 if (bluetoothAdapter == null || !bluetoothAdapter.enable()) { in pairInternal()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothAddressPreferenceController.java | 46 BluetoothAdapter bluetoothAdapter) { in BluetoothAddressPreferenceController() argument 48 mBluetoothAdapter = bluetoothAdapter; in BluetoothAddressPreferenceController()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | BluetoothMacAddressPreferenceController.java | 45 BluetoothAdapter bluetoothAdapter) { in BluetoothMacAddressPreferenceController() argument 47 mBluetoothAdapter = bluetoothAdapter; in BluetoothMacAddressPreferenceController()
|