Home
last modified time | relevance | path

Searched refs:mAudioPolicy (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioFocusUnitTest.java129 private AudioPolicy mAudioPolicy; field in CarAudioFocusUnitTest
233 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted()
247 mAudioPolicy); in onAudioFocusRequest_withSameClientIdSameUsage_requestGranted()
263 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withSameCallClientIdDifferentUsage_requestGranted()
265 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withSameCallClientIdDifferentUsage_requestGranted()
313 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in onAudioFocusRequest_withSameClientIdDifferentUsage_requestFailed()
325 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_concurrentRequest_requestGranted()
337 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocusRequest_concurrentRequestWithoutDucking_holderLosesFocus()
355 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy, List.of(concurrentFocusInfo), null); in onAudioFocusRequest_concurrentRequestWithoutDucking_holderLosesFocusWithFade()
374 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy, List.of(concurrentFocusInfo), null); in onAudioFocusRequest_forPrimaryZone_holderLosesFocus_withNullFadeConfig()
[all …]
DAudioManagerWrapperTest.java93 private AudioPolicy mAudioPolicy; field in AudioManagerWrapperTest
232 mAudioManagerWrapper.setFocusRequestResult(info, AUDIOFOCUS_GAIN, mAudioPolicy); in setFocusRequestResult()
234 verify(mAudioManager).setFocusRequestResult(info, AUDIOFOCUS_GAIN, mAudioPolicy); in setFocusRequestResult()
244 mAudioPolicy); in dispatchAudioFocusChange()
248 verify(mAudioManager).dispatchAudioFocusChange(info, AUDIOFOCUS_GAIN, mAudioPolicy); in dispatchAudioFocusChange()
260 mAudioPolicy, activeInfos, config); in dispatchAudioFocusChangeWithFade()
264 verify(mAudioManager).dispatchAudioFocusChangeWithFade(info, AUDIOFOCUS_GAIN, mAudioPolicy, in dispatchAudioFocusChangeWithFade()
DCarZonesAudioFocusUnitTest.java79 private AudioPolicy mAudioPolicy; field in CarZonesAudioFocusUnitTest
415 mCarZonesAudioFocus.setOwningPolicy(/* carAudioService= */ null, mAudioPolicy); in reevaluateAndRegainAudioFocusList_withCarAudioServiceUnavailable()
432 mCarZonesAudioFocus.setOwningPolicy(/* carAudioService= */ null, mAudioPolicy); in reevaluateAndRegainAudioFocus_withCarAudioServiceUnavailable()
549 carZonesAudioFocus.setOwningPolicy(mCarAudioService, mAudioPolicy); in getCarZonesAudioFocus()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
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()
158 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_repeatForSameZone_requestGranted()
162 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_repeatForSameZone_requestGranted()
187 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed()
213 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_forNavigationWhileOnCall_noRejectNavOnCall_requestSucceeds()
229 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_forMediaWithDelayedFocus_requestSucceeds()
249 AUDIOFOCUS_REQUEST_DELAYED, mAudioPolicy); in onAudioFocusRequest_forMediaWithDelayedFocusWhileOnCall_delayedSucceeds()
[all …]
DCarZonesAudioFocusExclusiveTest.java179 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in testExclusiveNonTransientInteractions()
182 AUDIOFOCUS_GAIN, mAudioPolicy)).thenReturn(AUDIOFOCUS_REQUEST_GRANTED); in testExclusiveNonTransientInteractions()
186 AUDIOFOCUS_GAIN, mAudioPolicy); in testExclusiveNonTransientInteractions()
211 AudioManager.AUDIOFOCUS_LOSS_TRANSIENT, mAudioPolicy); in testExclusiveTransientInteractions()
214 AUDIOFOCUS_GAIN, mAudioPolicy)).thenReturn(AUDIOFOCUS_REQUEST_GRANTED); in testExclusiveTransientInteractions()
218 AUDIOFOCUS_GAIN, mAudioPolicy); in testExclusiveTransientInteractions()
DCarZonesAudioFocusConcurrentTest.java197 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusLossSent()
225 AUDIOFOCUS_GAIN, mAudioPolicy); in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusNotGained()
270 anyInt(), eq(mAudioPolicy)); in concurrentInteractionsTransientMayDuckNoPause_requestGrantedAndFocusLossSent()
296 AUDIOFOCUS_GAIN, mAudioPolicy); in concurrentInteractionsTransientMayDuckNoPause_abandonSucceedAndFocusNotGained()
321 AudioManager.AUDIOFOCUS_LOSS_TRANSIENT, mAudioPolicy); in concurrentInteractionsTransientMayDuckPause_requestGrantedAndFocusLossSent()
347 AUDIOFOCUS_GAIN, mAudioPolicy); in concurrentInteractionsTransientMayDuckPause_abandonSucceedAndFocusGained()
372 AudioManager.AUDIOFOCUS_LOSS_TRANSIENT, mAudioPolicy); in testRequestForConcurrentTransientInteractions()
398 AUDIOFOCUS_GAIN, mAudioPolicy)).thenReturn(AUDIOFOCUS_REQUEST_GRANTED); in testAbandonForConcurrentTransientInteractions()
402 AUDIOFOCUS_GAIN, mAudioPolicy); in testAbandonForConcurrentTransientInteractions()
DCarZonesAudioFocusTestBase.java178 protected AudioPolicy mAudioPolicy; field in CarZonesAudioFocusTestBase
235 .setFocusRequestResult(audioFocusClient, expectedAudioFocusResults, mAudioPolicy); in requestFocusAndAssertIfRequestDiffers()
242 anyInt(), eq(mAudioPolicy)); in abandonFocusAndAssertIfAbandonNotGranted()
275 carZonesAudioFocus.setOwningPolicy(mCarAudioService, mAudioPolicy); in getCarZonesAudioFocus()
DCarZonesAudioFocusUsageTest.java101 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in requestFocus_forEveryUsage_requestGranted()
120 anyInt(), eq(mAudioPolicy)); in requestAndAbandonFocus_forEveryUsage_abandonSucceeds()
DCarZonesAudioFocusRejectedTest.java158 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in rejectedInteractionsFocusTest()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioFocus.java86 private AudioPolicy mAudioPolicy; // Dynamically assigned just after construction field in CarAudioFocus
139 mAudioPolicy = parentPolicy; in setOwningPolicy()
209 result = mAudioManager.dispatchAudioFocusChangeWithFade(loser, lossType, mAudioPolicy, in sendFocusLossLocked()
212 result = mAudioManager.dispatchAudioFocusChange(loser, lossType, mAudioPolicy); in sendFocusLossLocked()
707 policy = mAudioPolicy; in onAudioFocusRequest()
880 int result = mAudioManager.dispatchAudioFocusChange(afi, AUDIOFOCUS_GAIN, mAudioPolicy); in dispatchFocusGainedLocked()
DCarZonesAudioFocus.java69 private AudioPolicy mAudioPolicy; // Dynamically assigned just after construction field in CarZonesAudioFocus
220 mAudioPolicy = parentPolicy; in setOwningPolicy()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DRemoteDevices.java294 private BluetoothSinkAudioPolicy mAudioPolicy; field in RemoteDevices.DeviceProperties
661 mAudioPolicy = policies; in setHfAudioPolicyForRemoteAg()
665 return mAudioPolicy; in getHfAudioPolicyForRemoteAg()