/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 336 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 …]
|
D | AudioManagerWrapperTest.java | 238 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()
|
D | CarAudioServiceUnitTest.java | 4643 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/ |
D | CarZonesAudioFocusExclusiveTest.java | 178 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()
|
D | CarZonesAudioFocusConcurrentTest.java | 196 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()
|
D | CarZonesAudioFocusTest.java | 95 .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()
|
D | CarZonesAudioFocusUsageTest.java | 119 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusClient), in requestAndAbandonFocus_forEveryUsage_abandonSucceeds()
|
D | CarZonesAudioFocusTestBase.java | 241 verify(mMockAudioManager, never()).dispatchAudioFocusChange(eq(audioFocusClient), in abandonFocusAndAssertIfAbandonNotGranted()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | AudioManagerWrapper.java | 112 int dispatchAudioFocusChange(AudioFocusInfo info, int focusChange, AudioPolicy policy) { in dispatchAudioFocusChange() method in AudioManagerWrapper 113 return mAudioManager.dispatchAudioFocusChange(info, focusChange, policy); in dispatchAudioFocusChange()
|
D | CarAudioFocus.java | 212 result = mAudioManager.dispatchAudioFocusChange(loser, lossType, mAudioPolicy); in sendFocusLossLocked() 880 int result = mAudioManager.dispatchAudioFocusChange(afi, AUDIOFOCUS_GAIN, mAudioPolicy); in dispatchFocusGainedLocked()
|