Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java150 public boolean duckPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser, in duckPlayers()
156 public void restoreVShapedPlayers(@NonNull FocusRequester winner) { in restoreVShapedPlayers()
176 public boolean fadeOutPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser) { in fadeOutPlayers()
228 final Iterator<FocusRequester> stackIterator = mFocusStack.iterator(); in noFocusForSuspendedApp()
231 final FocusRequester focusOwner = stackIterator.next(); in noFocusForSuspendedApp()
267 final FocusRequester exFocusOwner = mFocusStack.peek(); in maybeDiscardAudioFocusOwner()
292 for (FocusRequester fr : mFocusStack) { in getFocusStack()
308 final FocusRequester owner = mFocusStack.peek(); in getExclusiveFocusOwnerUid()
326 FocusRequester loserToRemove = null; in sendFocusLoss()
327 for (FocusRequester fr : mFocusStack) { in sendFocusLoss()
[all …]
DPlayerFocusEnforcer.java31 boolean duckPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser, in duckPlayers()
40 void restoreVShapedPlayers(@NonNull FocusRequester winner); in restoreVShapedPlayers()
61 boolean fadeOutPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser); in fadeOutPlayers()
DFocusRequester.java44 public class FocusRequester { class
100 FocusRequester(@NonNull AudioAttributes aa, int focusRequest, int grantFlags, in FocusRequester() method in FocusRequester
120 FocusRequester(AudioFocusInfo afi, IAudioFocusDispatcher afl, in FocusRequester() method in FocusRequester
342 boolean handleFocusLossFromGain(int focusGain, final FocusRequester frWinner, boolean forceDuck) in handleFocusLossFromGain()
383 void handleFocusLoss(int focusLoss, @Nullable final FocusRequester frWinner, boolean forceDuck) in handleFocusLoss()
455 private boolean frameworkHandleFocusLoss(int focusLoss, @NonNull final FocusRequester frWinner, in frameworkHandleFocusLoss()
539 int dispatchFocusChangeWithFadeLocked(int focusChange, List<FocusRequester> otherActiveFrs) { in dispatchFocusChangeWithFadeLocked()
DFadeOutManager.java141 boolean canCauseFadeOut(@NonNull FocusRequester requester, @NonNull FocusRequester loser) { in canCauseFadeOut()
DPlaybackActivityMonitor.java812 public boolean duckPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser, in duckPlayers()
860 private boolean reqCausesStrongDuck(FocusRequester requester) { in reqCausesStrongDuck()
872 public void restoreVShapedPlayers(@NonNull FocusRequester winner) { in restoreVShapedPlayers()
952 public boolean fadeOutPlayers(@NonNull FocusRequester winner, @NonNull FocusRequester loser) { in fadeOutPlayers()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeOutManagerTest.java82 FocusRequester winner = createFocusRequester(TEST_MEDIA_AUDIO_ATTRIBUTE, "winning-client", in testCanCauseFadeOut_forFaders_returnsTrue()
85 FocusRequester loser = createFocusRequester(TEST_SPEECH_AUDIO_ATTRIBUTE, "losing-client", in testCanCauseFadeOut_forFaders_returnsTrue()
94 FocusRequester winner = createFocusRequester(TEST_SPEECH_AUDIO_ATTRIBUTE, "winning-client", in testCanCauseFadeOut_forUnfaderSpeechAttribute_returnsFalse()
96 FocusRequester loser = createFocusRequester(TEST_SPEECH_AUDIO_ATTRIBUTE, "losing-client", in testCanCauseFadeOut_forUnfaderSpeechAttribute_returnsFalse()
105 FocusRequester winner = createFocusRequester(TEST_SPEECH_AUDIO_ATTRIBUTE, "winning-client", in testCanCauseFadeOut_forUnfaderFlag_returnsFalse()
107 FocusRequester loser = createFocusRequester(TEST_MEDIA_AUDIO_ATTRIBUTE, "losing-client", in testCanCauseFadeOut_forUnfaderFlag_returnsFalse()
192 private FocusRequester createFocusRequester(AudioAttributes aa, String clientId, in createFocusRequester()
195 return new FocusRequester(aa, AudioManager.AUDIOFOCUS_GAIN, flags, null, null, clientId, in createFocusRequester()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPasswordBouncer.kt35 import androidx.compose.ui.focus.FocusRequester in <lambda>()
64 val focusRequester = remember { FocusRequester() } in <lambda>()
DPinBouncer.kt45 import androidx.compose.ui.focus.FocusRequester in <lambda>()
290 .focusRequester(FocusRequester.Default) in PinPadButton()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DSearchScaffold.kt49 import androidx.compose.ui.focus.FocusRequester in <lambda>()
170 val focusRequester = remember { FocusRequester() } in SearchBox()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/
DRotary.kt42 import androidx.compose.ui.focus.FocusRequester
123 focusRequester: FocusRequester, in rotaryWithFling()
155 focusRequester: FocusRequester = rememberActiveFocusRequester(), in rotaryWithFling()
185 focusRequester: FocusRequester = rememberActiveFocusRequester(), in rotaryWithFling()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/navscaffold/
DWearNavScaffold.kt35 import androidx.compose.ui.focus.FocusRequester in <lambda>()
/frameworks/base/services/
Dart-wear-profile8395 PLcom/android/server/audio/FocusRequester;-><init>(Landroid/media/AudioAttributes;IILandroid/media/…
8396 PLcom/android/server/audio/FocusRequester;->finalize()V
8397 PLcom/android/server/audio/FocusRequester;->getClientUid()I
8398 PLcom/android/server/audio/FocusRequester;->handleFocusGainFromRequest(I)V
8399 PLcom/android/server/audio/FocusRequester;->hasSameClient(Ljava/lang/String;)Z
8400 PLcom/android/server/audio/FocusRequester;->maybeRelease()V
8401 PLcom/android/server/audio/FocusRequester;->release()V
8402 PLcom/android/server/audio/FocusRequester;->toAudioFocusInfo()Landroid/media/AudioFocusInfo;
8423 …MediaFocusControl;->propagateFocusLossFromGain_syncAf(ILcom/android/server/audio/FocusRequester;Z)V
8426 …/server/audio/MediaFocusControl;->restoreVShapedPlayers(Lcom/android/server/audio/FocusRequester;)V
[all …]