Searched refs:mLocalMediaManager (Results 1 – 6 of 6) sorted by relevance
98 private LocalMediaManager mLocalMediaManager; field in LocalMediaManagerTest140 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 …]
170 private LocalMediaManager mLocalMediaManager; field in MediaOutputControllerTest214 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 …]
99 private final LocalMediaManager mLocalMediaManager = mock(LocalMediaManager.class); field in MediaOutputBroadcastDialogTest144 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()
98 private final LocalMediaManager mLocalMediaManager = mock(LocalMediaManager.class); field in MediaOutputDialogTest157 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()161 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mMediaDevice); in setUp()
146 mMediaOutputController.mLocalMediaManager = mock(LocalMediaManager.class); in setUp()147 doNothing().when(mMediaOutputController.mLocalMediaManager).startScan(); in setUp()148 doNothing().when(mMediaOutputController.mLocalMediaManager).stopScan(); in setUp()
156 LocalMediaManager mLocalMediaManager; field in MediaOutputController212 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 …]