Searched refs:mMediaOutputController (Results 1 – 8 of 8) sorted by relevance
169 private MediaOutputController mMediaOutputController; field in MediaOutputControllerTest197 mMediaOutputController = in setUp()214 mLocalMediaManager = spy(mMediaOutputController.mLocalMediaManager); in setUp()216 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()256 mMediaOutputController.start(mCb); in start_verifyLocalMediaManagerInit()258 verify(mLocalMediaManager).registerCallback(mMediaOutputController); in start_verifyLocalMediaManagerInit()264 mMediaOutputController.start(mCb); in stop_verifyLocalMediaManagerDeinit()267 mMediaOutputController.stop(); in stop_verifyLocalMediaManagerDeinit()269 verify(mLocalMediaManager).unregisterCallback(mMediaOutputController); in stop_verifyLocalMediaManagerDeinit()275 mMediaOutputController.start(mCb); in start_notificationNotFound_mediaControllerInitFromSession()[all …]
80 private MediaOutputController mMediaOutputController = mock(MediaOutputController.class); field in MediaOutputAdapterTest98 when(mMediaOutputController.getMediaItemList()).thenReturn(mMediaItems); in setUp()99 when(mMediaOutputController.hasAdjustVolumeUserRestriction()).thenReturn(false); in setUp()100 when(mMediaOutputController.isAnyDeviceTransferring()).thenReturn(false); in setUp()101 when(mMediaOutputController.getDeviceIconCompat(mMediaDevice1)).thenReturn(mIconCompat); in setUp()102 when(mMediaOutputController.getDeviceIconCompat(mMediaDevice2)).thenReturn(mIconCompat); in setUp()103 when(mMediaOutputController.getCurrentConnectedMediaDevice()).thenReturn(mMediaDevice1); in setUp()104 when(mMediaOutputController.isActiveRemoteDevice(mMediaDevice1)).thenReturn(true); in setUp()119 mMediaOutputAdapter = new MediaOutputAdapter(mMediaOutputController); in setUp()145 mMediaOutputAdapter = new MediaOutputAdapter(mMediaOutputController); in onBindViewHolder_bindPairNew_verifyView()[all …]
101 private MediaOutputController mMediaOutputController; field in MediaOutputBaseDialogTest126 mMediaOutputController = 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()151 mMediaOutputController); in setUp()169 when(mMediaOutputBaseAdapter.getController()).thenReturn(mMediaOutputController); in refresh_withIconCompat_iconIsVisible()256 assertThat(mMediaOutputController.isRefreshing()).isFalse(); in refresh_inDragging_directSetRefreshingToFalse()
116 private MediaOutputController mMediaOutputController; field in MediaOutputDialogTest140 mMediaOutputController = in setUp()157 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()158 mMediaOutputDialog = makeTestDialog(mMediaOutputController); in setUp()423 withTestDialog(mMediaOutputController, testDialog -> {}); in onCreate_ShouldLogVisibility()
116 private MediaOutputController mMediaOutputController; field in MediaOutputBroadcastDialogTest127 mMediaOutputController = in setUp()144 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()146 mBroadcastSender, mMediaOutputController); in setUp()
56 mAdapter = new MediaOutputAdapter(mMediaOutputController); in MediaOutputDialog()75 return mMediaOutputController.getHeaderIcon(); in getHeaderIcon()86 return mMediaOutputController.getHeaderTitle(); in getHeaderText()91 return mMediaOutputController.getHeaderSubTitle(); in getHeaderSubtitle()96 return mMediaOutputController.getNotificationSmallIcon(); in getAppSourceIcon()102 if (mMediaOutputController.getCurrentConnectedMediaDevice() != null) { in getStopButtonVisibility()103 isActiveRemoteDevice = mMediaOutputController.isActiveRemoteDevice( in getStopButtonVisibility()104 mMediaOutputController.getCurrentConnectedMediaDevice()); in getStopButtonVisibility()106 boolean showBroadcastButton = isBroadcastSupported() && mMediaOutputController.isPlaying(); in getStopButtonVisibility()118 if (mMediaOutputController.getCurrentConnectedMediaDevice() != null) { in isBroadcastSupported()[all …]
245 mAdapter = new MediaOutputAdapter(mMediaOutputController); in MediaOutputBroadcastDialog()265 mMediaOutputController.registerLeBroadcastAssistantServiceCallback(mExecutor, in start()279 mMediaOutputController.unregisterLeBroadcastAssistantServiceCallback( in stop()291 return mMediaOutputController.getHeaderIcon(); in getHeaderIcon()302 return mMediaOutputController.getHeaderTitle(); in getHeaderText()307 return mMediaOutputController.getHeaderSubTitle(); in getHeaderSubtitle()312 return mMediaOutputController.getNotificationSmallIcon(); in getAppSourceIcon()322 mMediaOutputController.stopBluetoothLeBroadcast(); in onStopButtonClick()329 return mMediaOutputController.getBroadcastName(); in getBroadcastMetadataInfo()331 return mMediaOutputController.getBroadcastCode(); in getBroadcastMetadataInfo()[all …]
85 final MediaOutputController mMediaOutputController; field in MediaOutputBaseDialog215 mMediaOutputController.setRefreshing(false); in onLayoutCompleted()216 mMediaOutputController.refreshDataSetIfNeeded(); in onLayoutCompleted()230 mMediaOutputController = mediaOutputController; in MediaOutputBaseDialog()282 mAppButton.setOnClickListener(mMediaOutputController::tryToLaunchMediaApplication); in onCreate()284 mMediaOutputController::tryToLaunchMediaApplication); in onCreate()301 mMediaOutputController.start(this); in start()303 mMediaOutputController.registerLeBroadcastServiceCallback(mExecutor, in start()314 if (mMediaOutputController.isBroadcastSupported() && mIsLeBroadcastCallbackRegistered) { in stop()315 mMediaOutputController.unregisterLeBroadcastServiceCallback(mBroadcastCallback); in stop()[all …]