Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java138 List<AudioAttributes> attributesToDuck = in generateDuckingInfo_succeed() local
143 attributesToDuck, activeAudioAttributes, mockZone); in generateDuckingInfo_succeed()
153 attributesToDuck = CarAudioContext in generateDuckingInfo_succeed()
160 CarDuckingUtils.generateDuckingInfo(duckingInfo, attributesToDuck, in generateDuckingInfo_succeed()
170 attributesToDuck = CarAudioContext in generateDuckingInfo_succeed()
176 CarDuckingUtils.generateDuckingInfo(duckingInfo1, attributesToDuck, in generateDuckingInfo_succeed()
DCarAudioContextTest.java889 List<AudioAttributes> attributesToDuck = in evaluateAttributesToDuck() local
892 expectWithMessage("Audio attributes to duck").that(attributesToDuck).isEmpty(); in evaluateAttributesToDuck()
899 List<AudioAttributes> attributesToDuck = in evaluateAudioAttributesToDuck_withMedia() local
903 .that(attributesToDuck).isEmpty(); in evaluateAudioAttributesToDuck_withMedia()
911 List<AudioAttributes> attributesToDuck = in evaluateAudioAttributesToDuck_withCallAndEmergency() local
915 .that(attributesToDuck).containsExactly(TEST_CALL_ATTRIBUTE); in evaluateAudioAttributesToDuck_withCallAndEmergency()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/ducking/
DDuckingInteractions.java68 List<AudioAttributes> attributesToDuck = new ArrayList<>();
70 attributesToDuck.add(duckedPriorities.get(j)); in duckedPriorities.get()
72 DEFAULT_INTERACTION.put(holder, attributesToDuck); in DEFAULT_INTERACTION.put() argument
/packages/services/Car/service/src/com/android/car/audio/
DCarDuckingUtils.java33 List<AudioAttributes> attributesToDuck, List<AudioAttributes> attributesHoldingFocus, in generateDuckingInfo() argument
37 getAddressesToDuck(attributesToDuck, attributesHoldingFocus, zone); in generateDuckingInfo()
DCarAudioContext.java449 ArraySet<AudioAttributesWrapper> attributesToDuck = new ArraySet<>(); in evaluateAudioAttributesToDuck() local
464 attributesToDuck.add(new AudioAttributesWrapper(duckedAttributes[i])); in evaluateAudioAttributesToDuck()
468 attributesToDuck.retainAll(wrappers); in evaluateAudioAttributesToDuck()
470 List<AudioAttributes> duckedAudioAttributes = new ArrayList<>(attributesToDuck.size()); in evaluateAudioAttributesToDuck()
471 for (int index = 0; index < attributesToDuck.size(); index++) { in evaluateAudioAttributesToDuck()
472 duckedAudioAttributes.add(attributesToDuck.valueAt(index).getAudioAttributes()); in evaluateAudioAttributesToDuck()