Home
last modified time | relevance | path

Searched refs:mAssistant (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHandlerTest.java110 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDialogHandlerTest
149 when(mLocalBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setup()
189 when(mAssistant.getDevicesMatchingConnectionStates( in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive()
192 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of()); in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive()
202 when(mAssistant.getDevicesMatchingConnectionStates( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
205 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of(mState)); in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
241 when(mAssistant.getDevicesMatchingConnectionStates( in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive()
244 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of()); in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive()
254 when(mAssistant.getDevicesMatchingConnectionStates( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
257 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of()); in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
[all …]
DAudioSharingCallAudioPreferenceControllerTest.java126 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingCallAudioPreferenceControllerTest
170 when(mBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
173 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
203 verify(mAssistant, never()) in onStart_flagOff_doNothing()
217 verify(mAssistant) in onStart_flagOn_registerCallback()
228 verify(mAssistant, never()) in onStop_flagOff_doNothing()
239 verify(mAssistant, never()) in onStop_flagOn_notRegistered_doNothing()
250 verify(mAssistant) in onStop_flagOn_registered_unregisterCallback()
322 when(mAssistant.getDevicesMatchingConnectionStates( in onProfileConnectionStateChanged_noDeviceInSharing_updateSummary()
343 when(mAssistant.getDevicesMatchingConnectionStates( in onFallbackDeviceChanged_updateSummary()
[all …]
DAudioSharingSwitchBarControllerTest.java126 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingSwitchBarControllerTest
169 when(mBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
180 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
182 .when(mAssistant) in setUp()
186 .when(mAssistant) in setUp()
276 verify(mAssistant, never()) in onStart_flagOff_doNothing()
295 verify(mAssistant, never()) in onStart_flagOnProfileNotReady_registerProfileCallback()
315 verify(mAssistant) in onStart_flagOn_registerCallback()
330 verify(mAssistant, never()) in onStop_flagOff_doNothing()
346 verify(mAssistant, never()) in onStop_flagOn_notRegistered_doNothing()
[all …]
DAudioSharingDeviceVolumeGroupControllerTest.java122 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDeviceVolumeGroupControllerTest
158 when(mProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
161 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
203 verify(mAssistant, never()) in onStart_flagOff_doNothing()
220 verify(mAssistant) in onStart_flagOn_registerCallbacks()
237 verify(mAssistant) in onAudioSharingProfilesConnected_flagOn_registerCallbacks()
254 verify(mAssistant, never()) in onStop_flagOff_doNothing()
267 verify(mAssistant, never()) in onStop_flagOn_callbacksNotRegistered_doNothing()
280 verify(mAssistant) in onStop_flagOn_callbacksRegistered_unregisterCallbacks()
DAudioSharingBluetoothDeviceUpdaterTest.java101 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingBluetoothDeviceUpdaterTest
124 when(mLocalBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
176 when(mAssistant.getAllSources(mBluetoothDevice)).thenReturn(ImmutableList.of()); in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref()
280 when(mAssistant.getAllSources(mBluetoothDevice)).thenReturn(ImmutableList.of(mState)); in setupPreferenceMapWithDevice()
DAudioSharingDevicePreferenceControllerTest.java120 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDevicePreferenceControllerTest
157 when(mProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
160 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
195 verify(mAssistant, never()) in onStart_flagOff_doNothing()
208 verify(mAssistant) in onStart_flagOn_registerCallbacks()
221 verify(mAssistant, never()) in onStop_flagOff_doNothing()
232 verify(mAssistant) in onStop_flagOn_unregisterCallbacks()
DAudioSharingDeviceVolumeControlUpdaterTest.java99 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDeviceVolumeControlUpdaterTest
118 when(mLocalBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
168 when(mAssistant.getAllSources(mBluetoothDevice)).thenReturn(ImmutableList.of()); in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref()
364 when(mAssistant.getAllSources(mBluetoothDevice)).thenReturn(ImmutableList.of(mState)); in setupPreferenceMapWithDevice()
DStreamSettingsCategoryControllerTest.java86 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in StreamSettingsCategoryControllerTest
111 when(mBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
114 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
DAudioSharingCompatibilityPreferenceControllerTest.java97 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingCompatibilityPreferenceControllerTest
123 when(mBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
126 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHandler.java61 @Nullable private final LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDialogHandler
153 mAssistant = in AudioSharingDialogHandler()
257 if (mAssistant != null && mBroadcast != null) { in handleLeAudioDeviceConnected()
258 mAssistant.addSource( in handleLeAudioDeviceConnected()
452 if (mAssistant == null) { in removeSourceForGroup()
466 mAssistant.getAllSources(device)) { in removeSourceForGroup()
467 mAssistant.removeSource(device, source.getSourceId()); in removeSourceForGroup()
474 if (mBroadcast == null || mAssistant == null) { in addSourceForGroup()
487 mAssistant.addSource( in addSourceForGroup()
DAudioSharingSwitchBarController.java98 @Nullable private final LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingSwitchBarController
278 mAssistant = in AudioSharingSwitchBarController()
324 if (mAssistant == null || mBroadcast == null || isBroadcasting) { in onCheckedChanged()
337 && mAssistant in onCheckedChanged()
404 if (mBroadcast == null || mAssistant == null) { in registerCallbacks()
412 mAssistant.registerServiceCallBack(mExecutor, mBroadcastAssistantCallback); in registerCallbacks()
422 if (mBroadcast == null || mAssistant == null) { in unregisterCallbacks()
430 mAssistant.unregisterServiceCallBack(mBroadcastAssistantCallback); in unregisterCallbacks()
DAudioSharingDevicePreferenceController.java81 @Nullable private final LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDevicePreferenceController
181 mAssistant = in AudioSharingDevicePreferenceController()
200 || mAssistant == null in onStart()
208 mAssistant.registerServiceCallBack(mExecutor, mBroadcastAssistantCallback); in onStart()
224 || mAssistant == null in onStop()
232 mAssistant.unregisterServiceCallBack(mBroadcastAssistantCallback); in onStop()
327 if (mDialogHandler == null || mAssistant == null || mFragment == null) { in onProfileConnectionStateChanged()
DAudioSharingCallAudioPreferenceController.java84 @Nullable private final LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingCallAudioPreferenceController
156 mAssistant = in AudioSharingCallAudioPreferenceController()
290 if (mEventManager == null || mContentResolver == null || mAssistant == null) { in registerCallbacks()
306 mAssistant.registerServiceCallBack(mExecutor, mBroadcastAssistantCallback); in registerCallbacks()
316 if (mEventManager == null || mContentResolver == null || mAssistant == null) { in unregisterCallbacks()
324 mAssistant.unregisterServiceCallBack(mBroadcastAssistantCallback); in unregisterCallbacks()
DAudioSharingDeviceVolumeGroupController.java71 @Nullable private final LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioSharingDeviceVolumeGroupController
184 mAssistant = in AudioSharingDeviceVolumeGroupController()
358 if (mAssistant == null in registerCallbacks()
368 mAssistant.registerServiceCallBack(mExecutor, mBroadcastAssistantCallback); in registerCallbacks()
384 if (mAssistant == null in unregisterCallbacks()
394 mAssistant.unregisterServiceCallBack(mBroadcastAssistantCallback); in unregisterCallbacks()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupController.java76 @Nullable private LocalBluetoothLeBroadcastAssistant mAssistant; field in AvailableMediaDeviceGroupController
188 mAssistant = in AvailableMediaDeviceGroupController()
367 if (mAssistant != null) { in registerAudioSharingCallbacks()
368 mAssistant.registerServiceCallBack(mExecutor, mAssistantCallback); in registerAudioSharingCallbacks()
379 if (mAssistant != null) { in unregisterAudioSharingCallbacks()
380 mAssistant.unregisterServiceCallBack(mAssistantCallback); in unregisterAudioSharingCallbacks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdaterTest.java86 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AvailableMediaBluetoothDeviceUpdaterTest
104 when(mProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
277 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of(mBroadcastReceiveState)); in onProfileConnectionStateChanged_leaConnected_notInCallSharingFlagOff_addsPreference()
298 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of()); in onProfileConnectionStateChanged_leaConnected_notInCallNotInSharing_addsPreference()
315 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of(mBroadcastReceiveState)); in onProfileConnectionStateChanged_leaConnected_inCallSharingFlagOff_addsPreference()
335 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of()); in onProfileConnectionStateChanged_leaConnected_inCallNotInSharing_addsPreference()
354 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of(mBroadcastReceiveState)); in onProfileConnectionStateChanged_leaDeviceConnected_notInCallInSharing_removesPref()
375 when(mAssistant.getAllSources(any())).thenReturn(ImmutableList.of(mBroadcastReceiveState)); in onProfileConnectionStateChanged_leaDeviceConnected_inCallInSharing_removesPref()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamConfirmDialogTest.java84 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioStreamConfirmDialogTest
103 .thenReturn(mAssistant); in setUp()
106 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
198 when(mAssistant.getDevicesMatchingConnectionStates(any())).thenReturn(devices); in showDialog_noMetadata()
240 when(mAssistant.getDevicesMatchingConnectionStates(any())).thenReturn(devices); in showDialog_invalidMetadata()
285 when(mAssistant.getDevicesMatchingConnectionStates(any())).thenReturn(devices); in showDialog_confirmListen()
DAudioStreamsCategoryControllerTest.java85 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AudioStreamsCategoryControllerTest
114 when(mBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
117 when(mAssistant.isProfileReady()).thenReturn(true); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupControllerTest.java124 @Mock private LocalBluetoothLeBroadcastAssistant mAssistant; field in AvailableMediaDeviceGroupControllerTest
234 verify(mAssistant, times(0)) in testRegister_audioSharingFlagOff()
254 verify(mAssistant) in testRegister_audioSharingFlagOn()
270 verify(mAssistant, times(0)) in testUnregister_audioSharingFlagOff()
284 verify(mAssistant) in testUnregister_audioSharingFlagOn()
431 when(mLocalBtProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUpBroadcast()