Home
last modified time | relevance | path

Searched refs:dispatchAudioFocusChange (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioFocusUnitTest.java336 verify(mMockAudioManager).dispatchAudioFocusChange(initialFocusInfo, in onAudioFocusRequest_concurrentRequestWithoutDucking_holderLosesFocus()
436 verify(mMockAudioManager, times(0)).dispatchAudioFocusChange(eq(initialFocusInfo), in onAudioFocusRequest_concurrentRequestMayDuck_holderRetainsFocus()
460 verify(mMockAudioManager).dispatchAudioFocusChange(initialFocusInfo, in onAudioFocusRequest_exclusiveRequest_holderLosesFocus()
511 verify(mMockAudioManager).dispatchAudioFocusChange(initialFocusInfo, in onAudioFocusRequest_exclusiveRequestMayDuck_holderLosesFocusTransiently()
536 verify(mMockAudioManager, times(0)).dispatchAudioFocusChange(eq(initialFocusInfo), in onAudioFocus_rejectRequest_holderRetainsFocus()
562 verify(mMockAudioManager).dispatchAudioFocusChange(initialFocusInfo, in onAudioFocus_exclusiveWithSystemUsage_holderLosesFocus()
604 verify(mMockAudioManager, times(0)).dispatchAudioFocusChange(eq(initialFocusInfo), in onAudioFocus_concurrentWithSystemUsageAndConcurrent_holderRetainsFocus()
654 .dispatchAudioFocusChange(callFocusInfo, AUDIOFOCUS_LOSS, mAudioPolicy); in requestAudioFocusWithDelayed_whileInCall_thenConcurrentNav_delayedFocusNotChanged()
656 .dispatchAudioFocusChange(delayedFocusInfo, AUDIOFOCUS_LOSS, mAudioPolicy); in requestAudioFocusWithDelayed_whileInCall_thenConcurrentNav_delayedFocusNotChanged()
677 .dispatchAudioFocusChange(secondConcurrentRequest, AUDIOFOCUS_LOSS, mAudioPolicy); in requestAudioFocusWithDelayed_whileInCallAndNav_thenCallStop_delayedFocusGained()
[all …]
DAudioManagerWrapperTest.java238 public void dispatchAudioFocusChange() { in dispatchAudioFocusChange() method in AudioManagerWrapperTest
240 when(mAudioManagerWrapper.dispatchAudioFocusChange(any(), anyInt(), any())) in dispatchAudioFocusChange()
243 int results = mAudioManagerWrapper.dispatchAudioFocusChange(info, AUDIOFOCUS_GAIN, in dispatchAudioFocusChange()
248 verify(mAudioManager).dispatchAudioFocusChange(info, AUDIOFOCUS_GAIN, mAudioPolicy); in dispatchAudioFocusChange()
DCarAudioServiceUnitTest.java4643 verify(mAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusInfo), anyInt(), in switchZoneToConfig_withCurrentZoneConfigAndPendingFocus_notLoseAndRegainFocus()
6757 verify(mAudioManager, atLeastOnce()).dispatchAudioFocusChange(eq(info), captor.capture(), in getFocusChanges()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarZonesAudioFocusExclusiveTest.java178 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in testExclusiveNonTransientInteractions()
181 when(mMockAudioManager.dispatchAudioFocusChange(excludedAudioFocusInfo, in testExclusiveNonTransientInteractions()
185 verify(mMockAudioManager, never()).dispatchAudioFocusChange(excludedAudioFocusInfo, in testExclusiveNonTransientInteractions()
210 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in testExclusiveTransientInteractions()
213 when(mMockAudioManager.dispatchAudioFocusChange(excludedAudioFocusInfo, in testExclusiveTransientInteractions()
217 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in testExclusiveTransientInteractions()
DCarZonesAudioFocusConcurrentTest.java196 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusLossSent()
224 verify(mMockAudioManager, never()).dispatchAudioFocusChange(excludedAudioFocusInfo, in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusNotGained()
269 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(excludedAudioFocusInfo), in concurrentInteractionsTransientMayDuckNoPause_requestGrantedAndFocusLossSent()
295 verify(mMockAudioManager, never()).dispatchAudioFocusChange(excludedAudioFocusInfo, in concurrentInteractionsTransientMayDuckNoPause_abandonSucceedAndFocusNotGained()
320 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in concurrentInteractionsTransientMayDuckPause_requestGrantedAndFocusLossSent()
346 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in concurrentInteractionsTransientMayDuckPause_abandonSucceedAndFocusGained()
371 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in testRequestForConcurrentTransientInteractions()
397 when(mMockAudioManager.dispatchAudioFocusChange(excludedAudioFocusInfo, in testAbandonForConcurrentTransientInteractions()
401 verify(mMockAudioManager).dispatchAudioFocusChange(excludedAudioFocusInfo, in testAbandonForConcurrentTransientInteractions()
DCarZonesAudioFocusTest.java95 .dispatchAudioFocusChange(eq(audioFocusInfoClient1), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_requestGranted()
98 .dispatchAudioFocusChange(eq(audioFocusInfoClient2), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_requestGranted()
118 .dispatchAudioFocusChange(eq(audioFocusInfoClient1), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted()
136 .dispatchAudioFocusChange(eq(audioFocusInfoClient), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_withBundleFocusRequest_requestGranted()
157 .dispatchAudioFocusChange(eq(audioFocusInfoMediaClient), in onAudioFocusRequest_repeatForSameZone_requestGranted()
161 .dispatchAudioFocusChange(eq(audioFocusInfoNavClient), in onAudioFocusRequest_repeatForSameZone_requestGranted()
268 when(mMockAudioManager.dispatchAudioFocusChange(audioFocusMediaClient, in onAudioFocusAbandon_forCallWhileOnMediaWithDelayedFocus_focusGained()
272 verify(mMockAudioManager).dispatchAudioFocusChange(eq(audioFocusMediaClient), in onAudioFocusAbandon_forCallWhileOnMediaWithDelayedFocus_focusGained()
294 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusMediaClient), in onAudioFocusAbandon_forMediaWithDelayedFocusWhileOnCall_abandonSucceeds()
319 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusMediaClient), in onAudioFocusAbandon_forCallAfterAbandonMediaWithDelayedFocus_delayedFocusNotGained()
DCarZonesAudioFocusUsageTest.java119 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusClient), in requestAndAbandonFocus_forEveryUsage_abandonSucceeds()
DCarZonesAudioFocusTestBase.java241 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusClient), in abandonFocusAndAssertIfAbandonNotGranted()
/packages/services/Car/service/src/com/android/car/audio/
DAudioManagerWrapper.java112 int dispatchAudioFocusChange(AudioFocusInfo info, int focusChange, AudioPolicy policy) { in dispatchAudioFocusChange() method in AudioManagerWrapper
113 return mAudioManager.dispatchAudioFocusChange(info, focusChange, policy); in dispatchAudioFocusChange()
DCarAudioFocus.java212 result = mAudioManager.dispatchAudioFocusChange(loser, lossType, mAudioPolicy); in sendFocusLossLocked()
880 int result = mAudioManager.dispatchAudioFocusChange(afi, AUDIOFOCUS_GAIN, mAudioPolicy); in dispatchFocusGainedLocked()