Home
last modified time | relevance | path

Searched refs:mLocalMediaManager (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java98 private LocalMediaManager mLocalMediaManager; field in LocalMediaManagerTest
140 mLocalMediaManager = in setUp()
143 mLocalMediaManager.mAudioManager = mAudioManager; in setUp()
144 mLocalMediaManager.registerCallback(mCallback); in setUp()
151 mLocalMediaManager.mMediaDevices.add(device); in onDeviceListAdded_shouldClearDeviceList()
152 assertThat(mLocalMediaManager.mMediaDevices).hasSize(1); in onDeviceListAdded_shouldClearDeviceList()
153 mLocalMediaManager.mMediaDeviceCallback.onDeviceListAdded(Collections.emptyList()); in onDeviceListAdded_shouldClearDeviceList()
154 assertThat(mLocalMediaManager.mMediaDevices).isEmpty(); in onDeviceListAdded_shouldClearDeviceList()
161 mLocalMediaManager.mMediaDevices.add(currentDevice); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
162 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputControllerTest.java170 private LocalMediaManager mLocalMediaManager; field in MediaOutputControllerTest
214 mLocalMediaManager = spy(mMediaOutputController.mLocalMediaManager); in setUp()
215 when(mLocalMediaManager.isPreferenceRouteListingExist()).thenReturn(false); in setUp()
216 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()
258 verify(mLocalMediaManager).registerCallback(mMediaOutputController); in start_verifyLocalMediaManagerInit()
259 verify(mLocalMediaManager).startScan(); in start_verifyLocalMediaManagerInit()
265 reset(mLocalMediaManager); in stop_verifyLocalMediaManagerDeinit()
269 verify(mLocalMediaManager).unregisterCallback(mMediaOutputController); in stop_verifyLocalMediaManagerDeinit()
270 verify(mLocalMediaManager).stopScan(); in stop_verifyLocalMediaManagerDeinit()
394 when(mLocalMediaManager.getLinkedItemComponentName()).thenReturn( in tryToLaunchInAppRoutingIntent_componentNameNotNull_startActivity()
[all …]
DMediaOutputBroadcastDialogTest.java99 private final LocalMediaManager mLocalMediaManager = mock(LocalMediaManager.class); field in MediaOutputBroadcastDialogTest
144 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()
179 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()
DMediaOutputDialogTest.java98 private final LocalMediaManager mLocalMediaManager = mock(LocalMediaManager.class); field in MediaOutputDialogTest
157 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()
161 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice); in setUp()
DMediaOutputBaseDialogTest.java146 mMediaOutputController.mLocalMediaManager = mock(LocalMediaManager.class); in setUp()
147 doNothing().when(mMediaOutputController.mLocalMediaManager).startScan(); in setUp()
148 doNothing().when(mMediaOutputController.mLocalMediaManager).stopScan(); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java156 LocalMediaManager mLocalMediaManager; field in MediaOutputController
212 mLocalMediaManager = new LocalMediaManager(mContext, lbm, imm, packageName); in MediaOutputController()
272 mLocalMediaManager.registerCallback(this); in start()
273 mLocalMediaManager.startScan(); in start()
293 mLocalMediaManager.unregisterCallback(this); in stop()
294 mLocalMediaManager.stopScan(); in stop()
428 ComponentName componentName = mLocalMediaManager.getLinkedItemComponentName(); in tryToLaunchInAppRoutingIntent()
515 boolean isConnected = mLocalMediaManager.getCurrentConnectedDevice().getId().equals( in isActiveItem()
644 if (!mLocalMediaManager.isPreferenceRouteListingExist()) { in buildMediaItems()
813 mLocalMediaManager.connectDevice(device); in connectDevice()
[all …]