Home
last modified time | relevance | path

Searched refs:mMediaOutputController (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputControllerTest.java169 private MediaOutputController mMediaOutputController; field in MediaOutputControllerTest
197 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 …]
DMediaOutputAdapterTest.java80 private MediaOutputController mMediaOutputController = mock(MediaOutputController.class); field in MediaOutputAdapterTest
98 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 …]
DMediaOutputBaseDialogTest.java101 private MediaOutputController mMediaOutputController; field in MediaOutputBaseDialogTest
126 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()
DMediaOutputDialogTest.java116 private MediaOutputController mMediaOutputController; field in MediaOutputDialogTest
140 mMediaOutputController = in setUp()
157 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()
158 mMediaOutputDialog = makeTestDialog(mMediaOutputController); in setUp()
423 withTestDialog(mMediaOutputController, testDialog -> {}); in onCreate_ShouldLogVisibility()
DMediaOutputBroadcastDialogTest.java116 private MediaOutputController mMediaOutputController; field in MediaOutputBroadcastDialogTest
127 mMediaOutputController = in setUp()
144 mMediaOutputController.mLocalMediaManager = mLocalMediaManager; in setUp()
146 mBroadcastSender, mMediaOutputController); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputDialog.java56 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 …]
DMediaOutputBroadcastDialog.java245 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 …]
DMediaOutputBaseDialog.java85 final MediaOutputController mMediaOutputController; field in MediaOutputBaseDialog
215 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 …]