Home
last modified time | relevance | path

Searched refs:getCurrentConnectedDevice (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java208 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(infoDevice); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
227 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(remoteDevice); in onSessionReleased_shouldUpdateConnectedDevice()
234 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(systemRoute); in onSessionReleased_shouldUpdateConnectedDevice()
263 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(infoDevice); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
300 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(infoDevice); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
326 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(infoDevice); in onRoutesChanged_getAvailableRoutes_shouldFilterDevice()
551 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(infoDevice); in onRoutesRemoved_getAvailableRoutes_shouldAddMediaDevice()
768 MediaDevice mediaDevice = mInfoMediaManager.getCurrentConnectedDevice(); in onTransferred_getAvailableRoutes_shouldAddMediaDevice()
782 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(infoDevice); in onTransferred_getAvailableRoutes_shouldAddMediaDevice()
892 assertThat(mInfoMediaManager.getCurrentConnectedDevice()).isEqualTo(device); in onRoutesUpdated_setsFirstSelectedRouteAsCurrentConnectedDevice()
DLocalMediaManagerTest.java350 assertThat(mLocalMediaManager.getCurrentConnectedDevice()).isEqualTo(device2); in onConnectedDeviceChanged_connectedAndCurrentDeviceAreDifferent_notifyThemChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputBroadcastDialogTest.java179 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(null); in startBroadcastWithConnectedDevices_noConnectedMediaDevice_failToAddSource()
194 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mBluetoothMediaDevice); in startBroadcastWithConnectedDevices_hasBroadcastSource_failToAddSource()
216 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mBluetoothMediaDevice); in startBroadcastWithConnectedDevices_noBroadcastSource_failToAddSource()
390 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mBluetoothMediaDevice); in addSourceToAllConnectedDevices()
DMediaOutputControllerTest.java499 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice1); in advanced_onDeviceListUpdateWithConnectedDeviceRemote_verifyItemSize()
616 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice2); in isActiveItem_deviceNotConnected_returnsFalse()
663 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice1); in isCurrentConnectedDeviceRemote_containsFeatures_returnsTrue()
817 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice2); in onSelectedDeviceStateChanged_verifyCallback()
840 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice1); in onRequestFailed_verifyCallback()
1094 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice2); in getDeviceIconCompat_deviceIconIsNotNull_returnsIcon()
1103 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice2); in getDeviceIconCompat_deviceIconIsNull_returnsIcon()
1164 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice1); in setTemporaryAllowListExceptionIfNeeded_fromRemoteToBluetooth_addsAllowList()
DMediaOutputDialogTest.java161 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java319 public MediaDevice getCurrentConnectedDevice() { in getCurrentConnectedDevice() method in LocalMediaManager
541 final MediaDevice infoMediaDevice = mInfoMediaManager.getCurrentConnectedDevice(); in onDeviceListAdded()
DInfoMediaManager.java381 MediaDevice getCurrentConnectedDevice() { in getCurrentConnectedDevice() method in InfoMediaManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java515 boolean isConnected = mLocalMediaManager.getCurrentConnectedDevice().getId().equals( in isActiveItem()
822 return mLocalMediaManager.getCurrentConnectedDevice(); in getCurrentConnectedMediaDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManagerTest.kt152 whenever(lmm.getCurrentConnectedDevice()).thenReturn(device) in setUp()