Home
last modified time | relevance | path

Searched refs:AUDIOFOCUS_LOSS (Results 1 – 25 of 25) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioFocusUnitTest.java37 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
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()
393 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy, List.of(concurrentFocusInfo), in onAudioFocusRequest_forSecondaryZone_holderLosesFocus_withDefaultFadeConfig()
424 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy, List.of(exclusiveFocusInfo), in onAudioFocusRequest_forPrimaryZone_holderLosesFocus_withTransientFadeConfig()
461 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocusRequest_exclusiveRequest_holderLosesFocus()
480 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy, List.of(exclusiveRequestInfo), null); in onAudioFocusRequest_exclusiveRequest_holderLosesFocus_withNullTransient()
499 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy, List.of(exclusiveRequestInfo), in onAudioFocusRequest_forSecondaryZone_exclusiveRequest_holderLosesFocusWithFade()
563 AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocus_exclusiveWithSystemUsage_holderLosesFocus()
[all …]
DCarAudioServiceUnitTest.java63 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
6752 MEDIA_PACKAGE_NAME, AUDIOFOCUS_GAIN, AUDIOFOCUS_LOSS, MEDIA_EMPTY_FLAG, SDK_INT); in createAudioFocusInfoForMedia()
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DAudioFocusEntryUnitTest.java130 .setAudioFocusResult(AudioManager.AUDIOFOCUS_LOSS).build(); in setAudioFocusResult()
133 .that(entry.getAudioFocusResult()).isEqualTo(AudioManager.AUDIOFOCUS_LOSS); in setAudioFocusResult()
140 .setAudioFocusResult(AudioManager.AUDIOFOCUS_LOSS); in builder_withReuse_fails()
187 MEDIA_PACKAGE_NAME, AudioManager.AUDIOFOCUS_GAIN, AudioManager.AUDIOFOCUS_LOSS, in createAudioFocusInfo()
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java84 case AudioManager.AUDIOFOCUS_LOSS: in setVolumeByAudioFocusStatus()
126 : AudioManager.AUDIOFOCUS_LOSS; in requestAudioFocus()
132 mAudioFocusStatus = AudioManager.AUDIOFOCUS_LOSS; in abandonAudioFocus()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java24 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
200 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_ALARM, ZONE_ID, AUDIOFOCUS_LOSS); in requestAudioFocus_withFocusRequestDelayed()
380 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_LOSS); in abandonAudioFocus_withCurrentRequest_notifiesHalOfFocusChange()
389 listener.onAudioFocusChange(AUDIOFOCUS_LOSS); in abandonAudioFocus_withFocusAlreadyLost_doesNothing()
442 .onAudioFocusChange(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_LOSS); in abandonAudioFocus_withFailedRequest_doesNotNotifyHal()
469 eq(AUDIOFOCUS_LOSS)); in reset_notifiesHal()
475 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_LOSS); in reset_notifiesHal()
476 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_ALARM, ZONE_ID, AUDIOFOCUS_LOSS); in reset_notifiesHal()
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java19 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
278 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, AUDIOFOCUS_LOSS); in abandonAudioFocusLocked()
316 if (focusChange == AUDIOFOCUS_LOSS) { in onAudioFocusChange()
346 resultingFocusGain = AUDIOFOCUS_LOSS; in makeAudioFocusRequestLocked()
352 resultingFocusGain = AUDIOFOCUS_LOSS; in makeAudioFocusRequestLocked()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioFocus.java26 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
159 sendFocusLossLocked(mDelayedRequest, AUDIOFOCUS_LOSS, /* winner= */ null, in abandonNonCriticalFocusLocked()
182 sendFocusLossLocked(holderEntry.getAudioFocusInfo(), AUDIOFOCUS_LOSS, in abandonNonCriticalEntriesLocked() local
420 sendFocusLossLocked(entry.getAudioFocusInfo(), AUDIOFOCUS_LOSS, newEntryAfi, in evaluateFocusRequestLocked() local
457 sendFocusLossLocked(entry.getAudioFocusInfo(), AUDIOFOCUS_LOSS, newEntryAfi, in evaluateFocusRequestLocked() local
723 sendFocusLossLocked(mDelayedRequest, AUDIOFOCUS_LOSS, afi, /* shouldFade= */ false, in swapDelayedAudioFocusRequestLocked()
813 sendFocusLossLocked(focusEntry.getAudioFocusInfo(), AUDIOFOCUS_LOSS, in attemptToGainFocusForDelayedAudioFocusRequestLocked() local
821 sendFocusLossLocked(delayedFocusInfo, AUDIOFOCUS_LOSS, /* winner= */ null, in attemptToGainFocusForDelayedAudioFocusRequestLocked()
1034 case AUDIOFOCUS_LOSS: in focusEventToString()
/packages/apps/TV/tests/robotests/src/com/android/tv/audio/
DAudioManagerHelperTest.java98 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS); in onAudioFocusChange_loss_noTimeShift()
108 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS); in onAudioFocusChange_loss_timeShift()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java29 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
248 case AUDIOFOCUS_LOSS: in onAudioFocusChange()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java23 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
134 case AUDIOFOCUS_LOSS:
DCarAudioZoneInputFragment.java271 case AudioManager.AUDIOFOCUS_LOSS: in onAudioFocusChange()
DAudioTestFragment.java39 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
1013 } else if (focusChange == AUDIOFOCUS_LOSS) { in onAudioFocusChange()
1040 case AUDIOFOCUS_LOSS: in onAudioFocusChange()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarZonesAudioFocusExclusiveTest.java179 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in testExclusiveNonTransientInteractions()
DCarZonesAudioFocusConcurrentTest.java197 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusLossSent()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java214 case AudioManager.AUDIOFOCUS_LOSS: in handleMessage()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java297 A2dpSinkStreamHandler.AUDIO_FOCUS_CHANGE, AudioManager.AUDIOFOCUS_LOSS)); in testFocusLost()
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt257 AudioManager.AUDIOFOCUS_LOSS -> { in onAudioFocusChange()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java286 case AudioManager.AUDIOFOCUS_LOSS:
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/
DRemotePreviewSession.java443 if (focusChange == AudioManager.AUDIOFOCUS_LOSS in requestAudioFocus()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/video/
DVideoUi.kt517 focusChange == AudioManager.AUDIOFOCUS_LOSS || in rememberAudioFocus()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerServiceTest.java510 mService.onAudioFocusStateChanged(AudioManager.AUDIOFOCUS_LOSS); in testOnFocusChange_audioLoss_sessionDeactivated()
DAvrcpControllerStateMachineTest.java1563 sendAudioFocusUpdate(AudioManager.AUDIOFOCUS_LOSS); in testOnAudioFocusLossWhilePlaying_pauseSent()
1584 sendAudioFocusUpdate(AudioManager.AUDIOFOCUS_LOSS); in testOnAudioFocusLossWhilePause_pauseNotSent()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java629 case AudioManager.AUDIOFOCUS_LOSS:
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java511 case AudioManager.AUDIOFOCUS_LOSS: in onAudioFocusStateChanged()
DAvrcpControllerStateMachine.java529 case AudioManager.AUDIOFOCUS_LOSS: in processMessage()