Home
last modified time | relevance | path

Searched refs:mLocalBluetoothLeBroadcast (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputDialogTest.java94 private final LocalBluetoothLeBroadcast mLocalBluetoothLeBroadcast = mock( field in MediaOutputDialogTest
196 mLocalBluetoothLeBroadcast); in getStopButtonVisibility_remoteBLEDevice_returnVisible()
197 when(mLocalBluetoothLeBroadcast.isEnabled(any())).thenReturn(false); in getStopButtonVisibility_remoteBLEDevice_returnVisible()
208 mLocalBluetoothLeBroadcast); in getStopButtonVisibility_remoteNonBLEDevice_returnGone()
209 when(mLocalBluetoothLeBroadcast.isEnabled(any())).thenReturn(false); in getStopButtonVisibility_remoteNonBLEDevice_returnGone()
229 mLocalBluetoothLeBroadcast); in isBroadcastSupported_flagOnAndConnectBleDevice_returnsTrue()
230 when(mLocalBluetoothLeBroadcast.isEnabled(any())).thenReturn(false); in isBroadcastSupported_flagOnAndConnectBleDevice_returnsTrue()
242 mLocalBluetoothLeBroadcast); in isBroadcastSupported_flagOnAndNoBleDevice_returnsFalse()
243 when(mLocalBluetoothLeBroadcast.isEnabled(any())).thenReturn(false); in isBroadcastSupported_flagOnAndNoBleDevice_returnsFalse()
264 mLocalBluetoothLeBroadcast); in isBroadcastSupported_flagOffAndConnectToBleDevice_returnsTrue()
[all …]
DMediaOutputBroadcastDialogTest.java89 private final LocalBluetoothLeBroadcast mLocalBluetoothLeBroadcast = mock( field in MediaOutputBroadcastDialogTest
123 when(mLocalBluetoothLeBroadcast.getProgramInfo()).thenReturn(BROADCAST_NAME_TEST); in setUp()
124 when(mLocalBluetoothLeBroadcast.getBroadcastCode()).thenReturn( in setUp()
161 mLocalBluetoothLeBroadcast); in startBroadcastWithConnectedDevices_noBroadcastMetadata_failToAddSource()
162 when(mLocalBluetoothLeBroadcast.getLatestBluetoothLeBroadcastMetadata()).thenReturn(null); in startBroadcastWithConnectedDevices_noBroadcastMetadata_failToAddSource()
174 mLocalBluetoothLeBroadcast); in startBroadcastWithConnectedDevices_noConnectedMediaDevice_failToAddSource()
175 when(mLocalBluetoothLeBroadcast.getLatestBluetoothLeBroadcastMetadata()).thenReturn( in startBroadcastWithConnectedDevices_noConnectedMediaDevice_failToAddSource()
189 mLocalBluetoothLeBroadcast); in startBroadcastWithConnectedDevices_hasBroadcastSource_failToAddSource()
190 when(mLocalBluetoothLeBroadcast.getLatestBluetoothLeBroadcastMetadata()).thenReturn( in startBroadcastWithConnectedDevices_hasBroadcastSource_failToAddSource()
211 mLocalBluetoothLeBroadcast); in startBroadcastWithConnectedDevices_noBroadcastSource_failToAddSource()
[all …]
DMediaOutputBaseDialogTest.java84 private final LocalBluetoothLeBroadcast mLocalBluetoothLeBroadcast = mock( field in MediaOutputBaseDialogTest
278 mLocalBluetoothLeBroadcast); in whenBroadcasting_verifyLeBroadcastServiceCallBackIsRegisteredAndUnregistered()
282 verify(mLocalBluetoothLeBroadcast).registerServiceCallBack(any(), any()); in whenBroadcasting_verifyLeBroadcastServiceCallBackIsRegisteredAndUnregistered()
285 verify(mLocalBluetoothLeBroadcast).unregisterServiceCallBack(any()); in whenBroadcasting_verifyLeBroadcastServiceCallBackIsRegisteredAndUnregistered()
292 mLocalBluetoothLeBroadcast); in whenNotBroadcasting_verifyLeBroadcastServiceCallBackIsNotRegisteredOrUnregistered()
298 verify(mLocalBluetoothLeBroadcast, never()).registerServiceCallBack(any(), any()); in whenNotBroadcasting_verifyLeBroadcastServiceCallBackIsNotRegisteredOrUnregistered()
299 verify(mLocalBluetoothLeBroadcast, never()).unregisterServiceCallBack(any()); in whenNotBroadcasting_verifyLeBroadcastServiceCallBackIsNotRegisteredOrUnregistered()
306 mLocalBluetoothLeBroadcast); in whenNotBroadcasting_verifyLeBroadcastServiceCallBackIsUnregisteredIfProfileEnabled()
310 verify(mLocalBluetoothLeBroadcast).registerServiceCallBack(any(), any()); in whenNotBroadcasting_verifyLeBroadcastServiceCallBackIsUnregisteredIfProfileEnabled()
314 verify(mLocalBluetoothLeBroadcast).unregisterServiceCallBack(any()); in whenNotBroadcasting_verifyLeBroadcastServiceCallBackIsUnregisteredIfProfileEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/
DBroadcastDialogDelegateTest.java71 private final LocalBluetoothLeBroadcast mLocalBluetoothLeBroadcast = mock( field in BroadcastDialogDelegateTest
163 mLocalBluetoothLeBroadcast); in onClick_withSwitchBroadcast_stopCurrentBroadcast()
167 verify(mLocalBluetoothLeBroadcast).stopLatestBroadcast(); in onClick_withSwitchBroadcast_stopCurrentBroadcast()
193 mLocalBluetoothLeBroadcast); in handleLeBroadcastStopped_withBroadcastProfile_doStartBroadcast()
197 verify(mLocalBluetoothLeBroadcast).startBroadcast(eq(SWITCH_APP), any()); in handleLeBroadcastStopped_withBroadcastProfile_doStartBroadcast()