/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaDeviceUpdateWorker.java | 69 LocalMediaManager mLocalMediaManager; field in MediaDeviceUpdateWorker 82 if (mLocalMediaManager == null || !TextUtils.equals(mPackageName, in onSlicePinned() 83 mLocalMediaManager.getPackageName())) { in onSlicePinned() 84 mLocalMediaManager = new LocalMediaManager(mContext, mPackageName); in onSlicePinned() 92 mLocalMediaManager.registerCallback(this); in onSlicePinned() 95 mLocalMediaManager.startScan(); in onSlicePinned() 100 mLocalMediaManager.unregisterCallback(this); in onSliceUnpinned() 102 mLocalMediaManager.stopScan(); in onSliceUnpinned() 107 mLocalMediaManager = null; in close() 142 if (mLocalMediaManager.connectDevice(device)) { in connectDevice() [all …]
|
D | MediaOutputIndicatorWorker.java | 66 LocalMediaManager mLocalMediaManager; field in MediaOutputIndicatorWorker 93 if (mLocalMediaManager == null || !TextUtils.equals(mPackageName, in onSlicePinned() 94 mLocalMediaManager.getPackageName())) { in onSlicePinned() 95 mLocalMediaManager = new LocalMediaManager(mContext, mPackageName); in onSlicePinned() 97 mLocalMediaManager.registerCallback(this); in onSlicePinned() 98 mLocalMediaManager.startScan(); in onSlicePinned() 104 if (mLocalMediaManager != null) { in onSliceUnpinned() 105 mLocalMediaManager.unregisterCallback(this); in onSliceUnpinned() 106 mLocalMediaManager.stopScan(); in onSliceUnpinned() 120 mLocalMediaManager = null; in close() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputIndicatorWorkerTest.java | 83 private LocalMediaManager mLocalMediaManager; field in MediaOutputIndicatorWorkerTest 117 mMediaOutputIndicatorWorker.mLocalMediaManager = mLocalMediaManager; in onSlicePinned_registerCallback() 122 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_registerCallback() 128 verify(mLocalMediaManager).registerCallback(mMediaOutputIndicatorWorker); in onSlicePinned_registerCallback() 129 verify(mLocalMediaManager).startScan(); in onSlicePinned_registerCallback() 134 mMediaOutputIndicatorWorker.mLocalMediaManager = mLocalMediaManager; in onSlicePinned_packageUpdated_checkPackageName() 139 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName() 143 assertThat(mMediaOutputIndicatorWorker.mLocalMediaManager.getPackageName()).matches( in onSlicePinned_packageUpdated_checkPackageName() 147 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME2); in onSlicePinned_packageUpdated_checkPackageName() 151 assertThat(mMediaOutputIndicatorWorker.mLocalMediaManager.getPackageName()).matches( in onSlicePinned_packageUpdated_checkPackageName() [all …]
|
D | MediaDeviceUpdateWorkerTest.java | 190 mMediaDeviceUpdateWorker.mLocalMediaManager = mock(LocalMediaManager.class); in onReceive_inCallState_shouldNotifyChange() 204 mMediaDeviceUpdateWorker.mLocalMediaManager = mock(LocalMediaManager.class); in onReceive_notInCallState_doNothing() 218 mMediaDeviceUpdateWorker.mLocalMediaManager = mock(LocalMediaManager.class); in getActiveRemoteMediaSession_verifyList() 223 when(mMediaDeviceUpdateWorker.mLocalMediaManager.getRemoteRoutingSessions()) in getActiveRemoteMediaSession_verifyList() 237 mMediaDeviceUpdateWorker.mLocalMediaManager = mock(LocalMediaManager.class); in onSlicePinned_packageUpdated_checkPackageName() 238 when(mMediaDeviceUpdateWorker.mLocalMediaManager.getPackageName()) in onSlicePinned_packageUpdated_checkPackageName() 242 assertThat(mMediaDeviceUpdateWorker.mLocalMediaManager.getPackageName()).matches( in onSlicePinned_packageUpdated_checkPackageName() 247 mMediaDeviceUpdateWorker.mLocalMediaManager = mock(LocalMediaManager.class); in onSlicePinned_packageUpdated_checkPackageName() 248 when(mMediaDeviceUpdateWorker.mLocalMediaManager.getPackageName()) in onSlicePinned_packageUpdated_checkPackageName() 252 assertThat(mMediaDeviceUpdateWorker.mLocalMediaManager.getPackageName()).matches( in onSlicePinned_packageUpdated_checkPackageName()
|
D | RemoteMediaSliceTest.java | 76 private LocalMediaManager mLocalMediaManager; field in RemoteMediaSliceTest 94 sMediaDeviceUpdateWorker.mLocalMediaManager = mLocalMediaManager; in setUp()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RemoteVolumeGroupController.java | 63 LocalMediaManager mLocalMediaManager; field in RemoteVolumeGroupController 70 if (mLocalMediaManager == null) { in RemoteVolumeGroupController() 71 mLocalMediaManager = new LocalMediaManager(mContext, /* packageName= */ null); in RemoteVolumeGroupController() 72 mLocalMediaManager.registerCallback(this); in RemoteVolumeGroupController() 73 mLocalMediaManager.startScan(); in RemoteVolumeGroupController() 85 mLocalMediaManager = localMediaManager; in RemoteVolumeGroupController() 87 mLocalMediaManager.registerCallback(this); in RemoteVolumeGroupController() 88 mLocalMediaManager.startScan(); in RemoteVolumeGroupController() 109 mRoutingSessionInfos.addAll(mLocalMediaManager.getRemoteRoutingSessions()); in initRemoteMediaSession() 114 mLocalMediaManager.unregisterCallback(this); in onDestroy() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | MediaControlHelperTest.java | 64 @Mock private LocalMediaManager mLocalMediaManager; field in MediaControlHelperTest 74 ShadowLocalMediaManager.setUseMock(mLocalMediaManager); in setUp() 88 verify(mLocalMediaManager, never()).startScan(); in testStart_noBluetoothManager_doNothing() 96 verify(mLocalMediaManager, never()).startScan(); in testStart_noConnectedDevice_doNothing() 104 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(null); in testStart_isStopped_onDeviceListUpdate_shouldNotStopMedia() 118 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(null); in testStart_isPlaying_onDeviceListUpdate_noDevice_shouldNotStopMedia() 132 when(mLocalMediaManager.getCurrentConnectedDevice()).thenReturn(mBluetoothMediaDevice); in testStart_isPlaying_onDeviceListUpdate_deviceMatch_shouldStopMedia()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RemoteVolumeGroupControllerTest.java | 78 private LocalMediaManager mLocalMediaManager; field in RemoteVolumeGroupControllerTest 108 mContext, KEY_REMOTE_VOLUME_GROUP, mLocalMediaManager, mRouterManager); in setUp() 124 when(mLocalMediaManager.getRemoteRoutingSessions()).thenReturn(mRoutingSessionInfos); in setUp()
|