/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 129 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 …]
|
D | AudioManagerWrapperTest.java | 93 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()
|
D | CarZonesAudioFocusUnitTest.java | 79 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/ |
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() 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 …]
|
D | CarZonesAudioFocusExclusiveTest.java | 179 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()
|
D | CarZonesAudioFocusConcurrentTest.java | 197 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()
|
D | CarZonesAudioFocusTestBase.java | 178 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()
|
D | CarZonesAudioFocusUsageTest.java | 101 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in requestFocus_forEveryUsage_requestGranted() 120 anyInt(), eq(mAudioPolicy)); in requestAndAbandonFocus_forEveryUsage_abandonSucceeds()
|
D | CarZonesAudioFocusRejectedTest.java | 158 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in rejectedInteractionsFocusTest()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioFocus.java | 86 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()
|
D | CarZonesAudioFocus.java | 69 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/ |
D | RemoteDevices.java | 294 private BluetoothSinkAudioPolicy mAudioPolicy; field in RemoteDevices.DeviceProperties 661 mAudioPolicy = policies; in setHfAudioPolicyForRemoteAg() 665 return mAudioPolicy; in getHfAudioPolicyForRemoteAg()
|