/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/ |
D | BluetoothStateInteractorTest.kt | 50 @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()
|
D | BluetoothAutoOnInteractorTest.kt | 47 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>()
|
D | BluetoothAutoOnRepositoryTest.kt | 46 @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()
|
D | BluetoothTileDialogRepositoryTest.kt | 46 @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()
|
D | BluetoothTileDialogViewModelTest.kt | 94 @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/ |
D | BluetoothRepositoryImplTest.kt | 47 @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/ |
D | BluetoothTileDialogRepository.kt | 31 private val bluetoothAdapter: BluetoothAdapter? = BluetoothAdapter.getDefaultAdapter() constant in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogRepository 37 bluetoothAdapter == null || 38 !bluetoothAdapter.isEnabled
|
D | BluetoothAutoOnRepository.kt | 49 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>()
|
D | BluetoothStateInteractor.kt | 83 localBluetoothManager?.bluetoothAdapter?.isEnabled == true in isBluetoothEnabled() 89 localBluetoothManager?.bluetoothAdapter?.apply { in setBluetoothEnabled()
|
D | DeviceItemInteractor.kt | 51 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/ |
D | StylusManagerTest.kt | 61 @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/ |
D | AudioOutputInteractorKosmos.kt | 20 import com.android.systemui.bluetooth.bluetoothAdapter 37 bluetoothAdapter, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/ |
D | AudioOutputInteractor.kt | 60 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/ |
D | BluetoothDeviceRoutesManager.java | 91 @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()
|
D | BluetoothProfileMonitor.java | 51 @NonNull BluetoothAdapter bluetoothAdapter) { in BluetoothProfileMonitor() argument 53 mBluetoothAdapter = Objects.requireNonNull(bluetoothAdapter); in BluetoothProfileMonitor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/ |
D | StylusManager.kt | 54 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/ |
D | BluetoothAdapterKosmos.kt | 23 var Kosmos.bluetoothAdapter: BluetoothAdapter by Kosmos.Fixture { mock {} } in <lambda>() variable
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/bluetooth/ |
D | BluetoothRepository.kt | 74 localBluetoothManager?.bluetoothAdapter?.connectionState in fetchConnectionStatusInBackground()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/ |
D | AudioOutputInteractorTest.kt | 28 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/ |
D | BluetoothControllerImpl.java | 101 @Nullable BluetoothAdapter bluetoothAdapter) { in BluetoothControllerImpl() argument 117 mAdapter = bluetoothAdapter; in BluetoothControllerImpl()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/ |
D | SatelliteController.java | 649 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in initializeSatelliteModeRadios() local 650 if (bluetoothAdapter != null) { in initializeSatelliteModeRadios() 652 mBTStateEnabled = bluetoothAdapter.isEnabled(); in initializeSatelliteModeRadios()
|