Home
last modified time | relevance | path

Searched refs:focusHolder (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/focus/
DFocusInteraction.java476 private int evaluateRequest(AudioFocusEntry request, AudioFocusEntry focusHolder, in evaluateRequest() argument
482 new AudioAttributesWrapper(focusHolder.getAudioFocusInfo().getAttributes()); in evaluateRequest()
493 focusLosers.add(focusHolder); in evaluateRequest()
502 if (!allowDucking || wantsPauseInsteadOfDucking(focusHolder.getAudioFocusInfo())) { in evaluateRequest()
503 focusLosers.add(focusHolder); in evaluateRequest()
523 private boolean wantsPauseInsteadOfDucking(AudioFocusInfo focusHolder) { in wantsPauseInsteadOfDucking() argument
524 return (focusHolder.getFlags() & AudioManager.AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS) in wantsPauseInsteadOfDucking()
/packages/services/Car/service/src/com/android/car/audio/
DFocusInteraction.java394 int evaluateRequest(int requestedUsage, FocusEntry focusHolder, boolean allowDucking, in evaluateRequest() argument
396 int holderUsage = focusHolder.getAudioFocusInfo().getAttributes().getSystemUsage(); in evaluateRequest()
408 focusLosers.add(focusHolder); in evaluateRequest()
418 || focusHolder.wantsPauseInsteadOfDucking() in evaluateRequest()
419 || focusHolder.receivesDuckEvents()) { in evaluateRequest()
420 focusLosers.add(focusHolder); in evaluateRequest()
/packages/services/Car/car-lib/src/android/car/oem/
DOemCarAudioFocusEvaluationRequest.java340 public @NonNull Builder addFocusHolders(@NonNull AudioFocusEntry focusHolder) { in addFocusHolders() argument
341 Preconditions.checkArgument(focusHolder != null, in addFocusHolders()
344 mFocusHolders.add(focusHolder); in addFocusHolders()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/
DOemCarServiceHelper.java214 currentHolderToIncomingFocusInteractions, AudioAttributes focusHolder) in parseExclusiveOrRejectFocusAttributes() argument
245 currentHolderToIncomingFocusInteractions.put(focusHolder, incomingFocusInteractions); in parseExclusiveOrRejectFocusAttributes()