Home
last modified time | relevance | path

Searched refs:loser (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeOutManagerTest.java85 FocusRequester loser = createFocusRequester(TEST_SPEECH_AUDIO_ATTRIBUTE, "losing-client", in testCanCauseFadeOut_forFaders_returnsTrue() local
89 winner, loser)).isTrue(); in testCanCauseFadeOut_forFaders_returnsTrue()
96 FocusRequester loser = createFocusRequester(TEST_SPEECH_AUDIO_ATTRIBUTE, "losing-client", in testCanCauseFadeOut_forUnfaderSpeechAttribute_returnsFalse() local
100 .that(mFadeOutManager.canCauseFadeOut(winner, loser)).isFalse(); in testCanCauseFadeOut_forUnfaderSpeechAttribute_returnsFalse()
107 FocusRequester loser = createFocusRequester(TEST_MEDIA_AUDIO_ATTRIBUTE, "losing-client", in testCanCauseFadeOut_forUnfaderFlag_returnsFalse() local
112 .that(mFadeOutManager.canCauseFadeOut(winner, loser)).isFalse(); in testCanCauseFadeOut_forUnfaderFlag_returnsFalse()
/frameworks/base/services/core/java/com/android/server/audio/
DPlayerFocusEnforcer.java31 boolean duckPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser, in duckPlayers() argument
61 boolean fadeOutPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser); in fadeOutPlayers() argument
DMediaFocusControl.java150 public boolean duckPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser, in duckPlayers() argument
152 return mFocusEnforcer.duckPlayers(winner, loser, forceDuck); in duckPlayers()
176 public boolean fadeOutPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser) { in fadeOutPlayers() argument
177 return mFocusEnforcer.fadeOutPlayers(winner, loser); in fadeOutPlayers()
1564 final FocusRequester loser = (FocusRequester) msg.obj; in initFocusThreading()
1565 if (loser.isInFocusLossLimbo()) { in initFocusThreading()
1566 loser.dispatchFocusChange(AudioManager.AUDIOFOCUS_LOSS); in initFocusThreading()
1567 loser.release(); in initFocusThreading()
1568 postForgetUidLater(loser); in initFocusThreading()
DPlaybackActivityMonitor.java812 public boolean duckPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser, in duckPlayers() argument
816 winner.getClientUid(), loser.getClientUid())); in duckPlayers()
830 && loser.hasSameUid(apc.getClientUid()) in duckPlayers()
855 mDuckingManager.duckUid(loser.getClientUid(), apcsToDuck, reqCausesStrongDuck(winner)); in duckPlayers()
952 public boolean fadeOutPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser) { in fadeOutPlayers() argument
955 + " loser=" + loser.getPackageName()); in fadeOutPlayers()
965 if (!mFadeOutManager.canCauseFadeOut(winner, loser)) { in fadeOutPlayers()
976 && loser.hasSameUid(apc.getClientUid()) in fadeOutPlayers()
994 mFadeOutManager.fadeOutUid(loser.getClientUid(), apcsToFadeOut); in fadeOutPlayers()
DFadeOutManager.java141 boolean canCauseFadeOut(@NonNull FocusRequester requester, @NonNull FocusRequester loser) { in canCauseFadeOut() argument
149 if ((loser.getGrantFlags() & AudioManager.AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS) != 0) { in canCauseFadeOut()