Home
last modified time | relevance | path

Searched refs:focusHolders (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/car-lib/src/android/car/oem/
DOemCarAudioFocusEvaluationRequest.java205 @NonNull List<AudioFocusEntry> focusHolders, in OemCarAudioFocusEvaluationRequest() argument
212 Preconditions.checkArgument(focusHolders != null, in OemCarAudioFocusEvaluationRequest()
217 mFocusHolders = focusHolders; in OemCarAudioFocusEvaluationRequest()
257 @NonNull List<AudioFocusEntry> focusHolders, in Builder() argument
262 Preconditions.checkArgument(focusHolders != null, in Builder()
267 mFocusHolders = focusHolders; in Builder()
331 public @NonNull Builder setFocusHolders(@NonNull List<AudioFocusEntry> focusHolders) { in setFocusHolders() argument
332 Preconditions.checkArgument(focusHolders != null, in setFocusHolders()
335 mFocusHolders = focusHolders; in setFocusHolders()
/packages/services/Car/service/src/com/android/car/audio/
DCarDucking.java79 List<AudioFocusInfo> focusHolders = focusHoldersByZoneId.get(zoneId); in onFocusChange() local
80 CarDuckingInfo newDuckingInfo = updateDuckingForZoneIdLocked(zoneId, focusHolders); in onFocusChange()
89 List<AudioFocusInfo> focusHolders) { in updateDuckingForZoneIdLocked() argument
92 focusHolders); in updateDuckingForZoneIdLocked()
122 List<AudioFocusInfo> focusHolders) { in generateNewDuckingInfoLocked() argument
129 CarDuckingUtils.getAudioAttributesHoldingFocus(focusHolders); in generateNewDuckingInfoLocked()
DCarDuckingUtils.java48 static List<AudioAttributes> getAudioAttributesHoldingFocus(List<AudioFocusInfo> focusHolders) { in getAudioAttributesHoldingFocus() argument
49 List<AudioAttributes> audioAttributes = new ArrayList<>(focusHolders.size()); in getAudioAttributesHoldingFocus()
50 for (int index = 0; index < focusHolders.size(); index++) { in getAudioAttributesHoldingFocus()
51 audioAttributes.add(focusHolders.get(index).getAttributes()); in getAudioAttributesHoldingFocus()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java88 List<AudioFocusInfo> focusHolders = in getAudioAttributesHoldingFocus_removesDuplicateUsages() local
92 CarDuckingUtils.getAudioAttributesHoldingFocus(focusHolders); in getAudioAttributesHoldingFocus_removesDuplicateUsages()
106 List<AudioFocusInfo> focusHolders = in getAudioAttributesHoldingFocus_includesSystemAudioAttributes() local
110 CarDuckingUtils.getAudioAttributesHoldingFocus(focusHolders); in getAudioAttributesHoldingFocus_includesSystemAudioAttributes()
DCarZonesAudioFocusUnitTest.java235 List<AudioFocusInfo> focusHolders = List.of(generateAudioFocusRequest()); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() local
236 when(mFocusMocks.get(PRIMARY_ZONE_ID).getAudioFocusHolders()).thenReturn(focusHolders); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange()
249 .that(results.get(PRIMARY_ZONE_ID)).isEqualTo(focusHolders); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange()
278 List<AudioFocusInfo> focusHolders = List.of(generateAudioFocusRequest()); in onAudioFocusAbandon() local
279 when(mFocusMocks.get(PRIMARY_ZONE_ID).getAudioFocusHolders()).thenReturn(focusHolders); in onAudioFocusAbandon()
292 .that(results.get(PRIMARY_ZONE_ID)).isEqualTo(focusHolders); in onAudioFocusAbandon()
DCarAudioContextTest.java887 List<AudioAttributes> focusHolders = Collections.EMPTY_LIST; in evaluateAttributesToDuck() local
890 CarAudioContext.evaluateAudioAttributesToDuck(focusHolders); in evaluateAttributesToDuck()
897 List<AudioAttributes> focusHolders = List.of(TEST_MEDIA_ATTRIBUTE); in evaluateAudioAttributesToDuck_withMedia() local
900 CarAudioContext.evaluateAudioAttributesToDuck(focusHolders); in evaluateAudioAttributesToDuck_withMedia()
908 List<AudioAttributes> focusHolders = in evaluateAudioAttributesToDuck_withCallAndEmergency() local
912 CarAudioContext.evaluateAudioAttributesToDuck(focusHolders); in evaluateAudioAttributesToDuck_withCallAndEmergency()
DCarAudioFocusUnitTest.java1327 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withFocusHolders_returnsPopulatedList() local
1329 assertThat(focusHolders).containsExactly(info, secondInfo); in getAudioFocusHolders_withFocusHolders_returnsPopulatedList()
1337 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_doesNotMutateList() local
1339 assertThat(focusHolders).containsExactly(info); in getAudioFocusHolders_doesNotMutateList()
1343 assertThat(focusHolders).containsExactly(info); in getAudioFocusHolders_doesNotMutateList()
1354 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withTransientFocusLoser_doesNotIncludeTransientLoser() local
1356 assertThat(focusHolders).containsExactly(callInfo); in getAudioFocusHolders_withTransientFocusLoser_doesNotIncludeTransientLoser()
1366 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withDelayedRequest_doesNotIncludeDelayedRequest() local
1368 assertThat(focusHolders).containsExactly(callFocusInfo); in getAudioFocusHolders_withDelayedRequest_doesNotIncludeDelayedRequest()
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.3.txt551 …ry, List<CarVolumeGroupInfo> mutedVolumeGroups, List<AudioFocusEntry> focusHolders, List<AudioFocu…