Searched refs:focusEntry (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | FocusInteractionTest.java | 174 FocusEntry focusEntry = newMockFocusEntryWithUsage(USAGE_VIRTUAL_SOURCE); in evaluateResult_forRejectPair_returnsFailed() local 177 focusEntry, /* allowDucking= */ false, /* allowsDelayedFocus= */ false, mLosers); in evaluateResult_forRejectPair_returnsFailed() 189 FocusEntry focusEntry = newMockFocusEntryWithUsage(USAGE_VOICE_COMMUNICATION); in evaluateResult_forCallAndNavigation_withNavigationNotRejected_returnsConcurrent() local 192 focusEntry, /* allowDucking= */ false, /* allowsDelayedFocus= */ false, mLosers); in evaluateResult_forCallAndNavigation_withNavigationNotRejected_returnsConcurrent() 204 FocusEntry focusEntry = newMockFocusEntryWithUsage(USAGE_VOICE_COMMUNICATION); in evaluateResult_forCallAndNavigation_withNavigationRejected_returnsConcurrent() local 207 focusEntry, /* allowDucking= */ false, /* allowsDelayedFocus= */ false, mLosers); in evaluateResult_forCallAndNavigation_withNavigationRejected_returnsConcurrent() 216 FocusEntry focusEntry = newMockFocusEntryWithUsage(USAGE_VIRTUAL_SOURCE); in evaluateResult_forRejectPair_doesNotAddToLosers() local 218 mFocusInteraction.evaluateRequest(USAGE_VIRTUAL_SOURCE, focusEntry, in evaluateResult_forRejectPair_doesNotAddToLosers() 226 FocusEntry focusEntry = newMockFocusEntryWithUsage(USAGE_MEDIA); in evaluateRequest_forExclusivePair_returnsGranted() local 228 int result = mFocusInteraction.evaluateRequest(USAGE_MEDIA, focusEntry, in evaluateRequest_forExclusivePair_returnsGranted() [all …]
|
D | FocusEntryTest.java | 70 FocusEntry focusEntry = new FocusEntry(info, TEST_MEDIA_CONTEXT, mMockPM); in wantsPauseInsteadOfDucking_whenFlagIsSet_returnsTrue() local 72 assertThat(focusEntry.wantsPauseInsteadOfDucking()).isTrue(); in wantsPauseInsteadOfDucking_whenFlagIsSet_returnsTrue() 79 FocusEntry focusEntry = new FocusEntry(info, TEST_MEDIA_CONTEXT, mMockPM); in wantsPauseInsteadOfDucking_whenFlagIsNotSet_returnsFalse() local 81 assertThat(focusEntry.wantsPauseInsteadOfDucking()).isFalse(); in wantsPauseInsteadOfDucking_whenFlagIsNotSet_returnsFalse() 87 FocusEntry focusEntry = new FocusEntry(info, TEST_MEDIA_CONTEXT, mMockPM); in receivesDuckEvents_whenBundleDoesNotReceiveDuckingEvents_returnsFalse() local 89 assertThat(focusEntry.receivesDuckEvents()).isFalse(); in receivesDuckEvents_whenBundleDoesNotReceiveDuckingEvents_returnsFalse() 97 FocusEntry focusEntry = new FocusEntry(info, TEST_MEDIA_CONTEXT, mMockPM); in receivesDuckEvents_withoutReceiveCarAudioDuckingEventsPermission_returnsFalse() local 99 assertThat(focusEntry.receivesDuckEvents()).isFalse(); in receivesDuckEvents_withoutReceiveCarAudioDuckingEventsPermission_returnsFalse() 107 FocusEntry focusEntry = new FocusEntry(info, TEST_MEDIA_CONTEXT, mMockPM); in receivesDuckEvents_withReceiveCarAudioDuckingEventsPermission_returnsTrue() local 109 assertThat(focusEntry.receivesDuckEvents()).isTrue(); in receivesDuckEvents_withReceiveCarAudioDuckingEventsPermission_returnsTrue()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioFocus.java | 387 AudioFocusEntry focusEntry = evaluationResults.getAudioFocusEntry(); in evaluateFocusRequestLocked() local 388 FocusEntry newEntry = new FocusEntry(focusEntry.getAudioFocusInfo(), in evaluateFocusRequestLocked() 389 focusEntry.getAudioContextId(), mPackageManager); in evaluateFocusRequestLocked() 548 AudioFocusEntry focusEntry = in evaluateFocusRequestInternallyLocked() local 558 results).setAudioFocusEntry(focusEntry).build(); in evaluateFocusRequestInternallyLocked() 806 FocusEntry focusEntry = mFocusHolders.get(delayedFocusInfo.getClientId()); in attemptToGainFocusForDelayedAudioFocusRequestLocked() local 807 if (dispatchFocusGainedLocked(focusEntry.getAudioFocusInfo()) in attemptToGainFocusForDelayedAudioFocusRequestLocked() 810 + "delayed focus clientId " + focusEntry.getClientId()); in attemptToGainFocusForDelayedAudioFocusRequestLocked() 811 mFocusHolders.remove(focusEntry.getClientId()); in attemptToGainFocusForDelayedAudioFocusRequestLocked() 812 removeBlockerFromBlockedFocusLosersLocked(focusEntry); in attemptToGainFocusForDelayedAudioFocusRequestLocked() [all …]
|
/packages/services/Car/car-lib/src/android/car/oem/ |
D | OemCarAudioFocusResult.java | 312 public Builder setAudioFocusEntry(@NonNull AudioFocusEntry focusEntry) { in setAudioFocusEntry() argument 313 Preconditions.checkArgument(focusEntry != null, in setAudioFocusEntry() 317 mAudioFocusEntry = focusEntry; in setAudioFocusEntry()
|
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/focus/ |
D | FocusInteraction.java | 419 AudioFocusEntry focusEntry = in evaluateFocusRequest() local 426 losersEvaluation.mChangedEntries, results).setAudioFocusEntry(focusEntry) in evaluateFocusRequest()
|