Home
last modified time | relevance | path

Searched refs:cachedBluetoothDevice (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DDeviceItemActionInteractorTest.kt70 @Mock private lateinit var cachedBluetoothDevice: CachedBluetoothDevice variable in com.android.systemui.bluetooth.qsdialog.DeviceItemActionInteractorTest
79 cachedBluetoothDevice = cachedBluetoothDevice, in setUp()
88 cachedBluetoothDevice = cachedBluetoothDevice, in setUp()
97 cachedBluetoothDevice = cachedBluetoothDevice, in setUp()
106 cachedBluetoothDevice = cachedBluetoothDevice, in setUp()
124 whenever(cachedBluetoothDevice.address).thenReturn(DEVICE_ADDRESS) in testOnClick_connectedMedia_setActive()
127 verify(cachedBluetoothDevice).setActive() in testOnClick_connectedMedia_setActive()
130 cachedBluetoothDevice.address, in testOnClick_connectedMedia_setActive()
141 whenever(cachedBluetoothDevice.address).thenReturn(DEVICE_ADDRESS) in testOnClick_activeMedia_disconnect()
144 verify(cachedBluetoothDevice).disconnect() in testOnClick_activeMedia_disconnect()
[all …]
DAudioSharingInteractorTest.kt54 @Mock private lateinit var cachedBluetoothDevice: CachedBluetoothDevice variable in com.android.systemui.bluetooth.qsdialog.AudioSharingInteractorTest
126 whenever(deviceItem.cachedBluetoothDevice).thenReturn(cachedBluetoothDevice) in testButtonStateUpdate_hasSource_returnGone()
129 cachedBluetoothDevice, in testButtonStateUpdate_hasSource_returnGone()
148 whenever(deviceItem.cachedBluetoothDevice).thenReturn(cachedBluetoothDevice) in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
151 cachedBluetoothDevice, in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
156 whenever(BluetoothUtils.isActiveLeAudioDevice(cachedBluetoothDevice)).thenReturn(true) in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
DBluetoothTileDialogDelegateTest.kt72 @Mock private lateinit var cachedBluetoothDevice: CachedBluetoothDevice variable in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogDelegateTest
139 cachedBluetoothDevice = cachedBluetoothDevice, in setUp()
145 `when`(cachedBluetoothDevice.isBusy).thenReturn(false) in setUp()
DBluetoothTileDialogViewModelTest.kt88 @Mock private lateinit var cachedBluetoothDevice: CachedBluetoothDevice variable in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogViewModelTest
210 whenever(deviceItem.cachedBluetoothDevice).thenReturn(cachedBluetoothDevice) in testStartSettingsActivity_activityLaunched_dialogDismissed()
DDeviceItemInteractorTest.kt98 `when`(deviceItem1.cachedBluetoothDevice).thenReturn(cachedDevice1) in <lambda>()
99 `when`(deviceItem2.cachedBluetoothDevice).thenReturn(cachedDevice2) in <lambda>()
DDeviceItemFactoryTest.kt305 assertThat(deviceItem.cachedBluetoothDevice).isEqualTo(cachedDevice) in assertDeviceItem()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractor.kt156 getAudioDeviceAttributesByBluetoothProfile(cachedBluetoothDevice) in <lambda>()
162 cachedBluetoothDevice.address, in <lambda>()
167 cachedBluetoothDevice.address, in <lambda>()
172 cachedBluetoothDevice.address, in <lambda>()
177 cachedBluetoothDevice.address, in <lambda>()
182 cachedBluetoothDevice.address, in <lambda>()
193 cachedBluetoothDevice: CachedBluetoothDevice in <lambda>()
196 cachedBluetoothDevice.profiles in <lambda>()
198 it.profileId in audioProfiles && it.isEnabled(cachedBluetoothDevice.device) in <lambda>()
208 cachedBluetoothDevice.address in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DDeviceItemActionInteractor.kt80 logger.logDeviceClick(deviceItem.cachedBluetoothDevice.address, deviceItem.type) in <lambda>()
96 launchSettings(deviceItem.cachedBluetoothDevice.device, dialog) in <lambda>()
100 deviceItem.cachedBluetoothDevice.apply { in <lambda>()
183 deviceItem.cachedBluetoothDevice, in <lambda>()
286 cachedBluetoothDevice.profiles.any { profile -> in <lambda>()
287 profile is LeAudioProfile && profile.isEnabled(cachedBluetoothDevice.device) in <lambda>()
300 cachedBluetoothDevice.connectableProfiles.any { in <lambda>()
DAudioSharingInteractor.kt81 it.cachedBluetoothDevice, in getButtonState()
86 deviceItem.any { BluetoothUtils.isActiveLeAudioDevice(it.cachedBluetoothDevice) } -> in getButtonState()
DDeviceItem.kt48 val cachedBluetoothDevice: CachedBluetoothDevice, constant in com.android.systemui.bluetooth.qsdialog.DeviceItem
DBluetoothTileDialogDelegate.kt324 return deviceItem1.cachedBluetoothDevice == deviceItem2.cachedBluetoothDevice in <lambda>()
332 deviceItem1.cachedBluetoothDevice == deviceItem2.cachedBluetoothDevice && in <lambda>()
DDeviceItemInteractor.kt165 mostRecentlyConnectedDevices?.indexOf(it.cachedBluetoothDevice.device) ?: 0 in <lambda>()
DDeviceItemFactory.kt63 cachedBluetoothDevice = cachedDevice, in isFilterMatched()
DBluetoothTileDialogViewModel.kt261 putString("device_address", deviceItem.cachedBluetoothDevice.address) in onDeviceItemGearClicked()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DTestMediaDevicesFactory.kt69 val cachedBluetoothDevice: CachedBluetoothDevice = mock { in bluetoothMediaDevice() constant
79 whenever(cachedDevice).thenReturn(cachedBluetoothDevice) in bluetoothMediaDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/model/
DAudioOutputDevice.kt44 val cachedBluetoothDevice: CachedBluetoothDevice, constant in com.android.systemui.volume.domain.model.AudioOutputDevice.Bluetooth
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractor.kt98 cachedBluetoothDevice = device, in <lambda>()
121 cachedBluetoothDevice = cachedDevice, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/
DSpatialAudioAvailabilityCriteriaTest.kt68 val cachedBluetoothDevice: CachedBluetoothDevice = mock { in setup() constant
76 whenever(cachedDevice).thenReturn(cachedBluetoothDevice) in setup()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java1572 CachedBluetoothDevice cachedBluetoothDevice = in deviceName_testAliasNameAvailable() local
1575 assertThat(cachedBluetoothDevice.getName()).isEqualTo(DEVICE_ALIAS); in deviceName_testAliasNameAvailable()
1577 assertThat(cachedBluetoothDevice.hasHumanReadableName()).isTrue(); in deviceName_testAliasNameAvailable()
1582 CachedBluetoothDevice cachedBluetoothDevice = in deviceName_testNameNotAvailable() local
1585 assertThat(cachedBluetoothDevice.getName()).isEqualTo(DEVICE_ADDRESS); in deviceName_testNameNotAvailable()
1587 assertThat(cachedBluetoothDevice.hasHumanReadableName()).isFalse(); in deviceName_testNameNotAvailable()
1599 CachedBluetoothDevice cachedBluetoothDevice = in deviceName_testRenameDevice() local
1602 assertThat(cachedBluetoothDevice.getName()).isEqualTo(DEVICE_ALIAS); in deviceName_testRenameDevice()
1604 cachedBluetoothDevice.setName(null); in deviceName_testRenameDevice()
1607 cachedBluetoothDevice.setName(DEVICE_ALIAS_NEW); in deviceName_testRenameDevice()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogDelegate.java202 CachedBluetoothDevice cachedBluetoothDevice = deviceItem.getCachedBluetoothDevice(); in onDeviceItemOnClicked() local
205 cachedBluetoothDevice.disconnect(); in onDeviceItemOnClicked()
206 case AVAILABLE_MEDIA_BLUETOOTH_DEVICE -> cachedBluetoothDevice.setActive(); in onDeviceItemOnClicked()
207 case SAVED_BLUETOOTH_DEVICE -> cachedBluetoothDevice.connect(); in onDeviceItemOnClicked()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java390 public synchronized void onActiveDeviceChanged(CachedBluetoothDevice cachedBluetoothDevice) { in onActiveDeviceChanged() argument
391 if (cachedBluetoothDevice.isHearingAidDevice()) { in onActiveDeviceChanged()
392 mHearingAidDeviceManager.onActiveDeviceChanged(cachedBluetoothDevice); in onActiveDeviceChanged()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractorTest.kt86 val cachedBluetoothDevice: CachedBluetoothDevice = mock { in setup() constant
95 whenever(cachedDevice).thenReturn(cachedBluetoothDevice) in setup()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractorTest.kt137 val cachedBluetoothDevice: CachedBluetoothDevice = mock { in inCall_bluetooth_returnsCommunicationDevice() constant
145 .thenReturn(cachedBluetoothDevice) in inCall_bluetooth_returnsCommunicationDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/anc/domain/interactor/
DAncSliceInteractor.kt81 device = outputDevice.cachedBluetoothDevice.device, in <lambda>()