/packages/modules/Bluetooth/android/pandora/server/src/ |
D | HfpHandsfree.kt | 50 private val bluetoothAdapter = bluetoothManager.adapter constant 65 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET_CLIENT, bluetoothHfpClient) in close() 75 request.connection.toBluetoothDevice(bluetoothAdapter), in answerCallAsHandsfree() 89 request.connection.toBluetoothDevice(bluetoothAdapter) in endCallAsHandsfree() 92 request.connection.toBluetoothDevice(bluetoothAdapter), in endCallAsHandsfree() 105 bluetoothHfpClient.rejectCall(request.connection.toBluetoothDevice(bluetoothAdapter)) in declineCallAsHandsfree() 115 bluetoothHfpClient.connectAudio(request.connection.toBluetoothDevice(bluetoothAdapter)) in connectToAudioAsHandsfree() 126 request.connection.toBluetoothDevice(bluetoothAdapter) in disconnectFromAudioAsHandsfree() 138 request.connection.toBluetoothDevice(bluetoothAdapter), in makeCallAsHandsfree() 151 request.connection.toBluetoothDevice(bluetoothAdapter) in callTransferAsHandsfree() [all …]
|
D | Host.kt | 114 private val bluetoothAdapter = bluetoothManager.adapter constant 153 if (bluetoothAdapter.isEnabled) { in rebootBluetooth() 154 bluetoothAdapter.disable() in rebootBluetooth() 158 bluetoothAdapter.enable() in rebootBluetooth() 167 for (device in bluetoothAdapter.bondedDevices) { in factoryReset() 180 bluetoothAdapter.clearBluetooth() in factoryReset() 212 val localMacAddress = MacAddress.fromString(bluetoothAdapter.getAddress()) in readLocalAddress() 289 var bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in waitConnection() 293 if (!bluetoothAdapter.isEnabled) { in waitConnection() 316 val bluetoothDevice = request.connection.toBluetoothDevice(bluetoothAdapter) in waitDisconnection() [all …]
|
D | A2dp.kt | 58 private val bluetoothAdapter = bluetoothManager.adapter constant 73 bluetoothAdapter.closeProfileProxy(BluetoothProfile.A2DP, bluetoothA2dp) in close() 82 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in openSource() 120 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in waitSource() 157 val device = bluetoothAdapter.getRemoteDevice(request.source.cookie.toString("UTF-8")) in start() 184 val device = bluetoothAdapter.getRemoteDevice(request.source.cookie.toString("UTF-8")) in suspend() 212 val device = bluetoothAdapter.getRemoteDevice(request.source.cookie.toString("UTF-8")) in isSuspended() 227 val device = bluetoothAdapter.getRemoteDevice(request.source.cookie.toString("UTF-8")) in close() 304 val device = bluetoothAdapter.getRemoteDevice(request.source.cookie.toString("UTF-8")) in getAudioEncoding()
|
D | Hfp.kt | 57 private val bluetoothAdapter = bluetoothManager.adapter constant 80 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET, bluetoothHfp) in close() 93 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in enableSlc() 103 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in disableSlc() 213 request.connection.toBluetoothDevice(bluetoothAdapter) in setVoiceRecognition() 217 request.connection.toBluetoothDevice(bluetoothAdapter) in setVoiceRecognition()
|
D | A2dpSink.kt | 51 private val bluetoothAdapter = bluetoothManager.adapter constant 64 bluetoothAdapter.closeProfileProxy(BluetoothProfile.A2DP_SINK, bluetoothA2dpSink) in close() 73 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in waitSink() 105 val device = bluetoothAdapter.getRemoteDevice(request.sink.cookie.toString("UTF-8")) in close()
|
D | Opp.kt | 62 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.Opp 91 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in openRfcommChannel() 102 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in openL2capChannel() 141 bluetoothAdapter.startDiscovery() in waitBluetoothDevice() 148 bluetoothAdapter.cancelDiscovery() in waitBluetoothDevice()
|
D | L2cap.kt | 55 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.L2cap 89 bluetoothAdapter.listenUsingL2capChannel() in listenL2CAPChannel() 91 bluetoothAdapter.listenUsingInsecureL2capChannel() in listenL2CAPChannel() 132 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in createLECreditBasedChannel()
|
D | Server.kt | 38 val bluetoothAdapter = context.getSystemService(BluetoothManager::class.java)!!.adapter constant 71 .filter { bluetoothAdapter.isEnabled } in <lambda>() 72 .filter { bluetoothAdapter.getSupportedProfiles().contains(it.key) == true } in <lambda>()
|
D | Pan.kt | 45 private val bluetoothAdapter = bluetoothManager.adapter constant 69 bluetoothAdapter.closeProfileProxy(BluetoothProfile.PAN, bluetoothPan) in close() 97 val device = request.address.toBluetoothDevice(bluetoothAdapter) in connectPan()
|
D | LeAudio.kt | 54 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.LeAudio 67 bluetoothAdapter.closeProfileProxy(BluetoothProfile.LE_AUDIO, bluetoothLeAudio) in close() 73 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in open()
|
D | SecurityStorage.kt | 54 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.SecurityStorage 69 val bondedDevices = bluetoothAdapter.getBondedDevices() in isBonded() 96 bluetoothAdapter.getRemoteLeDevice(address.decodeAsMacAddressToString(), type) in deleteBond()
|
D | Hid.kt | 40 private val bluetoothAdapter = bluetoothManager.adapter constant in com.android.pandora.Hid 55 request.address.toBluetoothDevice(bluetoothAdapter), in sendHostReport()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivityTest.kt | 36 private lateinit var bluetoothAdapter: ShadowBluetoothAdapter variable in com.android.settings.bluetooth.RequestPermissionActivityTest 40 bluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()) in setUp() 51 bluetoothAdapter.setState(BluetoothAdapter.STATE_OFF) in requestEnable_whenBluetoothIsOff_showConfirmDialog() 63 bluetoothAdapter.setState(BluetoothAdapter.STATE_ON) in requestEnable_whenBluetoothIsOn_doNothing() 73 bluetoothAdapter.setState(BluetoothAdapter.STATE_OFF) in requestDisable_whenBluetoothIsOff_doNothing() 83 bluetoothAdapter.setState(BluetoothAdapter.STATE_ON) in requestDisable_whenBluetoothIsOn_showConfirmDialog()
|
D | DeviceListPreferenceFragmentTest.kt | 86 private lateinit var bluetoothAdapter: BluetoothAdapter variable in com.android.settings.bluetooth.DeviceListPreferenceFragmentTest 93 bluetoothAdapter = spy(BluetoothAdapter.getDefaultAdapter()) in setUp() 94 fragment.mBluetoothAdapter = bluetoothAdapter in setUp() 201 doReturn(bluetoothLeScanner).`when`(bluetoothAdapter).bluetoothLeScanner in startScanning_setLeScanFilter_shouldStartLeScan()
|
/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/Bluetooth/framework/tests/metrics/device/android/bluetooth/ |
D | BluetoothMetricsHelperTest.kt | 77 private val bluetoothAdapter: BluetoothAdapter = constant in android.bluetooth.BluetoothMetricsHelperTest 79 private val adapterState = MutableStateFlow(bluetoothAdapter.state) 118 bluetoothAdapter.enable() in setUp() 146 val localMacAddress = MacAddress.fromString(bluetoothAdapter.getAddress()) in incomingClassicConnectionTest() 163 bluetoothAdapter.disable() in <lambda>() 165 bluetoothAdapter.enable() in <lambda>()
|
/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/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePairer.java | 344 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start() local 345 if (!bluetoothAdapter.isEnabled()) { in start() 364 bluetoothAdapter.enable(); in start() 375 final int scanMode = bluetoothAdapter.getScanMode(); in start() 380 bluetoothAdapter.setDiscoverableTimeout(Duration.ZERO); in start() 381 bluetoothAdapter.setScanMode( in start() 418 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in dispose() local 420 && mDefaultScanMode != bluetoothAdapter.getScanMode()) { in dispose() 422 bluetoothAdapter.setScanMode(mDefaultScanMode); in dispose()
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | DckTestRule.kt | 60 private val bluetoothAdapter = bluetoothManager.adapter constant in android.bluetooth.DckTestRule 61 private val leScanner = bluetoothAdapter.bluetoothLeScanner 270 if (bluetoothAdapter.isEnabled()) { in <lambda>() 272 bluetoothAdapter.disable() in <lambda>() 278 bluetoothAdapter.enable() in <lambda>() 315 bluetoothAdapter.getRemoteLeDevice( in <lambda>()
|
D | DckGattTest.kt | 59 private val bluetoothAdapter = bluetoothManager.adapter constant 60 private val leScanner = bluetoothAdapter.bluetoothLeScanner 96 bluetoothAdapter.getRemoteLeDevice( in setUp() 174 bluetoothAdapter.getRemoteLeDevice( in testDiscoverDkGattService()
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | BluetoothProxy.java | 55 private final BluetoothAdapter bluetoothAdapter; field in BluetoothProxy 570 bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothProxy() 850 bluetoothAdapter.getProfileProxy( in initCsisProxy() 858 bluetoothAdapter.closeProfileProxy(BluetoothProfile.LE_AUDIO, bluetoothCsis); in cleanupCsisProxy() 865 bluetoothAdapter.getProfileProxy( in initLeAudioProxy() 879 bluetoothAdapter.closeProfileProxy(BluetoothProfile.LE_AUDIO, bluetoothLeAudio); in cleanupLeAudioProxy() 886 bluetoothAdapter.getProfileProxy( in initVolumeControlProxy() 899 bluetoothAdapter.closeProfileProxy( in cleanupVolumeControlProxy() 907 bluetoothAdapter.getProfileProxy( in initHapProxy() 922 bluetoothAdapter.closeProfileProxy(BluetoothProfile.HAP_CLIENT, bluetoothHapClient); in cleanupHapProxy() [all …]
|
/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/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()
|
/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()
|