/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 37 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 …]
|
D | CarAudioServiceUnitTest.java | 63 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/ |
D | AudioFocusEntryUnitTest.java | 130 .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/ |
D | AudioManagerHelper.java | 84 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/ |
D | HalAudioFocusTest.java | 24 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/ |
D | HalAudioFocus.java | 19 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/ |
D | CarAudioFocus.java | 26 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/ |
D | AudioManagerHelperTest.java | 98 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/ |
D | AudioAutoStartActivity.java | 29 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/ |
D | AudioPlayer.java | 23 import static android.media.AudioManager.AUDIOFOCUS_LOSS; 134 case AUDIOFOCUS_LOSS:
|
D | CarAudioZoneInputFragment.java | 271 case AudioManager.AUDIOFOCUS_LOSS: in onAudioFocusChange()
|
D | AudioTestFragment.java | 39 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/ |
D | CarZonesAudioFocusExclusiveTest.java | 179 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in testExclusiveNonTransientInteractions()
|
D | CarZonesAudioFocusConcurrentTest.java | 197 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusLossSent()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 214 case AudioManager.AUDIOFOCUS_LOSS: in handleMessage()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 297 A2dpSinkStreamHandler.AUDIO_FOCUS_CHANGE, AudioManager.AUDIOFOCUS_LOSS)); in testFocusLost()
|
/packages/apps/Music/kotlin/src/com/android/music/ |
D | AudioPreview.kt | 257 AudioManager.AUDIOFOCUS_LOSS -> { in onAudioFocusChange()
|
/packages/apps/Music/src/com/android/music/ |
D | AudioPreview.java | 286 case AudioManager.AUDIOFOCUS_LOSS:
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/ |
D | RemotePreviewSession.java | 443 if (focusChange == AudioManager.AUDIOFOCUS_LOSS in requestAudioFocus()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/video/ |
D | VideoUi.kt | 517 focusChange == AudioManager.AUDIOFOCUS_LOSS || in rememberAudioFocus()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerServiceTest.java | 510 mService.onAudioFocusStateChanged(AudioManager.AUDIOFOCUS_LOSS); in testOnFocusChange_audioLoss_sessionDeactivated()
|
D | AvrcpControllerStateMachineTest.java | 1563 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/ |
D | Player.java | 629 case AudioManager.AUDIOFOCUS_LOSS:
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 511 case AudioManager.AUDIOFOCUS_LOSS: in onAudioFocusStateChanged()
|
D | AvrcpControllerStateMachine.java | 529 case AudioManager.AUDIOFOCUS_LOSS: in processMessage()
|