Searched refs:focusHolders (Results 1 – 7 of 7) sorted by relevance
71 List<AudioFocusInfo> focusHolders = focusHoldersByZoneId.get(zoneId); in onFocusChange() local72 CarDuckingInfo newDuckingInfo = updateDuckingForZoneIdLocked(zoneId, focusHolders); in onFocusChange()81 List<AudioFocusInfo> focusHolders) { in updateDuckingForZoneIdLocked() argument84 focusHolders); in updateDuckingForZoneIdLocked()103 List<AudioFocusInfo> focusHolders) { in generateNewDuckingInfoLocked() argument107 int[] usagesHoldingFocus = CarDuckingUtils.getUsagesHoldingFocus(focusHolders); in generateNewDuckingInfoLocked()
112 static int[] getUsagesHoldingFocus(List<AudioFocusInfo> focusHolders) { in getUsagesHoldingFocus() argument114 for (AudioFocusInfo focusInfo : focusHolders) { in getUsagesHoldingFocus()
219 List<AudioFocusInfo> focusHolders = mFocusZones.get(zoneId).getAudioFocusHolders(); in notifyFocusCallback() local220 focusHoldersByZoneId.put(zoneId, focusHolders); in notifyFocusCallback()
611 List<AudioFocusInfo> focusHolders = new ArrayList<>(); in getAudioFocusHolders() local614 focusHolders.add(entry.getAudioFocusInfo()); in getAudioFocusHolders()616 return focusHolders; in getAudioFocusHolders()
617 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withFocusHolders_returnsPopulatedList() local619 assertThat(focusHolders).containsExactly(info, secondInfo); in getAudioFocusHolders_withFocusHolders_returnsPopulatedList()627 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_doesNotMutateList() local629 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() local646 assertThat(focusHolders).containsExactly(callInfo); in getAudioFocusHolders_withTransientFocusLoser_doesNotIncludeTransientLoser()656 List<AudioFocusInfo> focusHolders = carAudioFocus.getAudioFocusHolders(); in getAudioFocusHolders_withDelayedRequest_doesNotIncludeDelayedRequest() local658 assertThat(focusHolders).containsExactly(callFocusInfo); in getAudioFocusHolders_withDelayedRequest_doesNotIncludeDelayedRequest()
109 List<AudioFocusInfo> focusHolders = List.of( in getUsagesHoldingFocus_removesDuplicateUsages() local114 int[] usages = CarDuckingUtils.getUsagesHoldingFocus(focusHolders); in getUsagesHoldingFocus_removesDuplicateUsages()122 List<AudioFocusInfo> focusHolders = List.of(generateAudioFocusInfoForUsage(USAGE_MEDIA), in getUsagesHoldingFocus_includesSystemUsages() local126 int[] usages = CarDuckingUtils.getUsagesHoldingFocus(focusHolders); in getUsagesHoldingFocus_includesSystemUsages()
180 List<AudioFocusInfo> focusHolders = List.of(generateAudioFocusRequest()); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() local181 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()