Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothStateInteractorTest.kt50 @Mock private lateinit var bluetoothAdapter: LocalBluetoothAdapter variable in com.android.systemui.bluetooth.qsdialog.BluetoothStateInteractorTest
63 `when`(localBluetoothManager.bluetoothAdapter).thenReturn(bluetoothAdapter) in setUp()
69 `when`(bluetoothAdapter.isEnabled).thenReturn(true) in testGet_isBluetoothEnabled()
78 `when`(bluetoothAdapter.isEnabled).thenReturn(false) in testGet_isBluetoothDisabled()
87 `when`(bluetoothAdapter.isEnabled).thenReturn(false) in testSet_bluetoothEnabled()
90 verify(bluetoothAdapter).enable() in testSet_bluetoothEnabled()
99 `when`(bluetoothAdapter.isEnabled).thenReturn(false) in testSet_bluetoothNoChange()
102 verify(bluetoothAdapter, never()).enable() in testSet_bluetoothNoChange()
DBluetoothAutoOnInteractorTest.kt47 private val bluetoothAdapter = in <lambda>() constant in com.android.systemui.bluetooth.qsdialog.BluetoothAutoOnInteractorTest
66 bluetoothAdapter, in <lambda>()
76 whenever(bluetoothAdapter.isAutoOnSupported).thenReturn(false) in <lambda>()
81 assertFalse(bluetoothAdapter.isAutoOnEnabled) in <lambda>()
88 whenever(bluetoothAdapter.isAutoOnSupported).thenReturn(true) in <lambda>()
93 assertTrue(bluetoothAdapter.isAutoOnEnabled) in <lambda>()
DBluetoothAutoOnRepositoryTest.kt46 @Mock private lateinit var bluetoothAdapter: BluetoothAdapter variable in com.android.systemui.bluetooth.qsdialog.BluetoothAutoOnRepositoryTest
58 bluetoothAdapter, in setUp()
67 whenever(bluetoothAdapter.isAutoOnEnabled).thenReturn(false) in testIsAutoOn_returnFalse()
79 whenever(bluetoothAdapter.isAutoOnEnabled).thenReturn(true) in testIsAutoOn_returnTrue()
91 whenever(bluetoothAdapter.isAutoOnSupported).thenReturn(true) in testIsAutoOnSupported_returnTrue()
DBluetoothTileDialogRepositoryTest.kt46 @Mock private lateinit var bluetoothAdapter: BluetoothAdapter variable in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogRepositoryTest
59 repository = BluetoothTileDialogRepository(localBluetoothManager, bluetoothAdapter) in setUp()
64 `when`(bluetoothAdapter.isEnabled).thenReturn(false) in testCachedDevices_bluetoothOff_emptyList()
73 `when`(bluetoothAdapter.isEnabled).thenReturn(true) in testCachedDevices_bluetoothOn_returnDevice()
DBluetoothTileDialogViewModelTest.kt94 @Mock private lateinit var bluetoothAdapter: BluetoothAdapter variable in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogViewModelTest
135 bluetoothAdapter, in setUp()
260 whenever(bluetoothAdapter.isAutoOnSupported).thenReturn(true) in testIsAutoOnToggleFeatureAvailable_returnTrue()
270 whenever(bluetoothAdapter.isAutoOnSupported).thenReturn(false) in testIsAutoOnToggleFeatureAvailable_returnFalse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/
DBluetoothRepositoryImplTest.kt47 @Mock private lateinit var bluetoothAdapter: LocalBluetoothAdapter in <lambda>() variable in com.android.systemui.statusbar.policy.bluetooth.BluetoothRepositoryImplTest
52 whenever(localBluetoothManager.bluetoothAdapter).thenReturn(bluetoothAdapter) in <lambda>()
64 whenever(bluetoothAdapter.connectionState).thenReturn(BluetoothProfile.STATE_CONNECTING) in <lambda>()
74 whenever(bluetoothAdapter.connectionState).thenReturn(BluetoothProfile.STATE_CONNECTING) in <lambda>()
89 whenever(bluetoothAdapter.connectionState).thenReturn(BluetoothProfile.STATE_CONNECTING) in <lambda>()
106 whenever(bluetoothAdapter.connectionState).thenReturn(BluetoothProfile.STATE_DISCONNECTED) in <lambda>()
119 whenever(bluetoothAdapter.connectionState).thenReturn(BluetoothProfile.STATE_DISCONNECTED) in <lambda>()
139 whenever(bluetoothAdapter.connectionState).thenReturn(BluetoothProfile.STATE_CONNECTING) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogRepository.kt31 private val bluetoothAdapter: BluetoothAdapter? = BluetoothAdapter.getDefaultAdapter() constant in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogRepository
37 bluetoothAdapter == null ||
38 !bluetoothAdapter.isEnabled
DBluetoothAutoOnRepository.kt49 private val bluetoothAdapter: BluetoothAdapter?, in <lambda>() constant
95 bluetoothAdapter?.isAutoOnSupported ?: false in <lambda>()
111 bluetoothAdapter?.setAutoOnEnabled(value) in <lambda>()
126 bluetoothAdapter?.isAutoOnEnabled ?: false in <lambda>()
DBluetoothStateInteractor.kt83 localBluetoothManager?.bluetoothAdapter?.isEnabled == true in isBluetoothEnabled()
89 localBluetoothManager?.bluetoothAdapter?.apply { in setBluetoothEnabled()
DDeviceItemInteractor.kt51 private val bluetoothAdapter: BluetoothAdapter? = BluetoothAdapter.getDefaultAdapter(), in <lambda>() constant in com.android.systemui.bluetooth.qsdialog.DeviceItemInteractor
139 .sort(displayPriority, bluetoothAdapter?.mostRecentlyConnectedDevices) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
DStylusManagerTest.kt61 @Mock lateinit var bluetoothAdapter: BluetoothAdapter in <lambda>() variable in com.android.systemui.stylus.StylusManagerTest
91 bluetoothAdapter, in <lambda>()
118 whenever(bluetoothAdapter.getRemoteDevice(STYLUS_BT_ADDRESS)).thenReturn(bluetoothDevice) in <lambda>()
141 bluetoothAdapter, in <lambda>()
161 bluetoothAdapter, in <lambda>()
170 verify(bluetoothAdapter, times(1)) in <lambda>()
187 bluetoothAdapter, in <lambda>()
276 bluetoothAdapter, in <lambda>()
349 bluetoothAdapter, in <lambda>()
410 verify(bluetoothAdapter, times(1)).addOnMetadataChangedListener(any(), any(), any()) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractorKosmos.kt20 import com.android.systemui.bluetooth.bluetoothAdapter
37 bluetoothAdapter, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractor.kt60 private val bluetoothAdapter: BluetoothAdapter?, in <lambda>() constant
90 bluetoothAdapter != null in <lambda>()
92 val remoteDevice = bluetoothAdapter.getRemoteDevice(address) in <lambda>()
/frameworks/base/services/core/java/com/android/server/media/
DBluetoothDeviceRoutesManager.java91 @NonNull BluetoothAdapter bluetoothAdapter, in BluetoothDeviceRoutesManager() argument
96 bluetoothAdapter, in BluetoothDeviceRoutesManager()
97 new BluetoothProfileMonitor(context, bluetoothAdapter), in BluetoothDeviceRoutesManager()
105 @NonNull BluetoothAdapter bluetoothAdapter, in BluetoothDeviceRoutesManager() argument
110 mBluetoothAdapter = Objects.requireNonNull(bluetoothAdapter); in BluetoothDeviceRoutesManager()
DBluetoothProfileMonitor.java51 @NonNull BluetoothAdapter bluetoothAdapter) { in BluetoothProfileMonitor() argument
53 mBluetoothAdapter = Objects.requireNonNull(bluetoothAdapter); in BluetoothProfileMonitor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
DStylusManager.kt54 private val bluetoothAdapter: BluetoothAdapter?, in <lambda>() constant in com.android.systemui.stylus.StylusManager
222 val device: BluetoothDevice = bluetoothAdapter?.getRemoteDevice(btAddress) ?: return in <lambda>()
224 bluetoothAdapter.addOnMetadataChangedListener(device, executor, this) in <lambda>()
232 val device: BluetoothDevice = bluetoothAdapter?.getRemoteDevice(btAddress) ?: return in <lambda>()
234 bluetoothAdapter.removeOnMetadataChangedListener(device, this) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/bluetooth/
DBluetoothAdapterKosmos.kt23 var Kosmos.bluetoothAdapter: BluetoothAdapter by Kosmos.Fixture { mock {} } in <lambda>() variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/bluetooth/
DBluetoothRepository.kt74 localBluetoothManager?.bluetoothAdapter?.connectionState in fetchConnectionStatusInBackground()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractorTest.kt28 import com.android.systemui.bluetooth.bluetoothAdapter
142 whenever(bluetoothAdapter.getRemoteDevice(eq(btDevice.address))) in inCall_bluetooth_returnsCommunicationDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java101 @Nullable BluetoothAdapter bluetoothAdapter) { in BluetoothControllerImpl() argument
117 mAdapter = bluetoothAdapter; in BluetoothControllerImpl()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/
DSatelliteController.java649 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in initializeSatelliteModeRadios() local
650 if (bluetoothAdapter != null) { in initializeSatelliteModeRadios()
652 mBTStateEnabled = bluetoothAdapter.isEnabled(); in initializeSatelliteModeRadios()