Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarDucking.java71 List<AudioFocusInfo> focusHolders = focusHoldersByZoneId.get(zoneId); in onFocusChange() local
72 CarDuckingInfo newDuckingInfo = updateDuckingForZoneIdLocked(zoneId, focusHolders); in onFocusChange()
81 List<AudioFocusInfo> focusHolders) { in updateDuckingForZoneIdLocked() argument
84 focusHolders); in updateDuckingForZoneIdLocked()
103 List<AudioFocusInfo> focusHolders) { in generateNewDuckingInfoLocked() argument
107 int[] usagesHoldingFocus = CarDuckingUtils.getUsagesHoldingFocus(focusHolders); in generateNewDuckingInfoLocked()
DCarDuckingUtils.java112 static int[] getUsagesHoldingFocus(List<AudioFocusInfo> focusHolders) { in getUsagesHoldingFocus() argument
114 for (AudioFocusInfo focusInfo : focusHolders) { in getUsagesHoldingFocus()
DCarZonesAudioFocus.java219 List<AudioFocusInfo> focusHolders = mFocusZones.get(zoneId).getAudioFocusHolders(); in notifyFocusCallback() local
220 focusHoldersByZoneId.put(zoneId, focusHolders); in notifyFocusCallback()
DCarAudioFocus.java611 List<AudioFocusInfo> focusHolders = new ArrayList<>(); in getAudioFocusHolders() local
614 focusHolders.add(entry.getAudioFocusInfo()); in getAudioFocusHolders()
616 return focusHolders; in getAudioFocusHolders()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioFocusUnitTest.java617 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withFocusHolders_returnsPopulatedList() local
619 assertThat(focusHolders).containsExactly(info, secondInfo); in getAudioFocusHolders_withFocusHolders_returnsPopulatedList()
627 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_doesNotMutateList() local
629 assertThat(focusHolders).containsExactly(info); in getAudioFocusHolders_doesNotMutateList()
633 assertThat(focusHolders).containsExactly(info); in getAudioFocusHolders_doesNotMutateList()
644 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withTransientFocusLoser_doesNotIncludeTransientLoser() local
646 assertThat(focusHolders).containsExactly(callInfo); in getAudioFocusHolders_withTransientFocusLoser_doesNotIncludeTransientLoser()
656 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withDelayedRequest_doesNotIncludeDelayedRequest() local
658 assertThat(focusHolders).containsExactly(callFocusInfo); in getAudioFocusHolders_withDelayedRequest_doesNotIncludeDelayedRequest()
DCarDuckingUtilsTest.java109 List<AudioFocusInfo> focusHolders = List.of( in getUsagesHoldingFocus_removesDuplicateUsages() local
114 int[] usages = CarDuckingUtils.getUsagesHoldingFocus(focusHolders); in getUsagesHoldingFocus_removesDuplicateUsages()
122 List<AudioFocusInfo> focusHolders = List.of(generateAudioFocusInfoForUsage(USAGE_MEDIA), in getUsagesHoldingFocus_includesSystemUsages() local
126 int[] usages = CarDuckingUtils.getUsagesHoldingFocus(focusHolders); in getUsagesHoldingFocus_includesSystemUsages()
DCarZonesAudioFocusUnitTest.java180 List<AudioFocusInfo> focusHolders = List.of(generateAudioFocusRequest()); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() local
181 when(mFocusMocks.get(PRIMARY_ZONE_ID).getAudioFocusHolders()).thenReturn(focusHolders); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange()
194 .that(results.get(PRIMARY_ZONE_ID)).isEqualTo(focusHolders); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange()