Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioFocus.java61 private final HashMap<String, FocusEntry> mFocusHolders = new HashMap<>();
62 private final HashMap<String, FocusEntry> mFocusLosers = new HashMap<>();
136 FocusEntry replacedCurrentEntry = null; in evaluateFocusRequestLocked()
137 FocusEntry replacedBlockedEntry = null; in evaluateFocusRequestLocked()
163 final ArrayList<FocusEntry> losers = new ArrayList<FocusEntry>(); in evaluateFocusRequestLocked()
164 for (FocusEntry entry : mFocusHolders.values()) { in evaluateFocusRequestLocked()
211 final ArrayList<FocusEntry> blocked = new ArrayList<FocusEntry>(); in evaluateFocusRequestLocked()
212 for (FocusEntry entry : mFocusLosers.values()) { in evaluateFocusRequestLocked()
259 FocusEntry newEntry = new FocusEntry(afi, requestedContext, mPackageManager); in evaluateFocusRequestLocked()
263 ArrayList<FocusEntry> permanentlyLost = new ArrayList<>(); in evaluateFocusRequestLocked()
[all …]
DFocusEntry.java34 final class FocusEntry { class
38 private final List<FocusEntry> mBlockers;
42 FocusEntry(@NonNull AudioFocusInfo audioFocusInfo, @AudioContext int context, in FocusEntry() method in FocusEntry
65 void addBlocker(FocusEntry blocker) { in addBlocker()
69 void removeBlocker(FocusEntry blocker) { in removeBlocker()
DFocusInteraction.java324 FocusEntry focusHolder, List<FocusEntry> focusLosers, boolean allowDucking, in evaluateRequest()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DFocusInteractionTest.java61 private final List<FocusEntry> mLosers = new ArrayList<>();
102 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.INVALID); in evaluateResult_forRejectPair_returnsFailed()
117 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.CALL); in evaluateResult_forCallAndNavigation_withNavigationNotRejected_returnsConcurrent()
131 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.CALL); in evaluateResult_forCallAndNavigation_withNavigationRejected_returnsConcurrent()
141 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.INVALID); in evaluateResult_forRejectPair_doesNotAddToLosers()
152 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.MUSIC); in evaluateRequest_forExclusivePair_returnsGranted()
162 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.MUSIC); in evaluateRequest_forExclusivePair_addsEntryToLosers()
173 FocusEntry focusEntry = newMockFocusEntryWithContext(CarAudioContext.NAVIGATION); in evaluateResult_forConcurrentPair_returnsGranted()
183 FocusEntry focusEntry = in evaluateResult_forConcurrentPair_andNoDucking_addsToLosers()
194 FocusEntry focusEntry = in evaluateResult_forConcurrentPair_andWantsPauseInsteadOfDucking_addsToLosers()
[all …]
DFocusEntryTest.java61 FocusEntry focusEntry = new FocusEntry(info, CarAudioContext.MUSIC, mMockPM); in wantsPauseInsteadOfDucking_whenFlagIsSet_returnsTrue()
70 FocusEntry focusEntry = new FocusEntry(info, CarAudioContext.MUSIC, mMockPM); in wantsPauseInsteadOfDucking_whenFlagIsNotSet_returnsFalse()
78 FocusEntry focusEntry = new FocusEntry(info, CarAudioContext.MUSIC, mMockPM); in receivesDuckEvents_whenBundleDoesNotReceiveDuckingEvents_returnsFalse()
88 FocusEntry focusEntry = new FocusEntry(info, CarAudioContext.MUSIC, mMockPM); in receivesDuckEvents_withoutReceiveCarAudioDuckingEventsPermission_returnsFalse()
98 FocusEntry focusEntry = new FocusEntry(info, CarAudioContext.MUSIC, mMockPM); in receivesDuckEvents_withReceiveCarAudioDuckingEventsPermission_returnsTrue()