Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingInfoTest.java82 CarDuckingInfo duckingInfo = getCarDuckingInfo(); in constructor_validInputs_succeeds() local
84 assertThat(duckingInfo.mZoneId).isEqualTo(ZONE_ID); in constructor_validInputs_succeeds()
85 assertThat(duckingInfo.mAddressesToDuck).containsExactlyElementsIn(ADDRESSES_TO_DUCK); in constructor_validInputs_succeeds()
86 assertThat(duckingInfo.mAddressesToUnduck).containsExactlyElementsIn(ADDRESSES_TO_UNDUCK); in constructor_validInputs_succeeds()
87 assertThat(duckingInfo.mPlaybackMetaDataHoldingFocus) in constructor_validInputs_succeeds()
90 assertThat(duckingInfo.getZoneId()).isEqualTo(ZONE_ID); in constructor_validInputs_succeeds()
91 assertThat(duckingInfo.getAddressesToDuck()).containsExactlyElementsIn(ADDRESSES_TO_DUCK); in constructor_validInputs_succeeds()
92 assertThat(duckingInfo.getAddressesToUnduck()) in constructor_validInputs_succeeds()
94 assertThat(duckingInfo.getPlaybackMetaDataHoldingFocus()) in constructor_validInputs_succeeds()
102 DuckingInfo duckingInfo = CarHalAudioUtils.generateDuckingInfo(carDuckingInfo); in generateDuckingInfo_includesSameAddressesToDuck() local
[all …]
DCarDuckingUtilsTest.java141 CarDuckingInfo duckingInfo = in generateDuckingInfo_succeed() local
145 assertThat(duckingInfo.getZoneId()).isEqualTo(ZONE_ID); in generateDuckingInfo_succeed()
146 assertThat(duckingInfo.getAddressesToDuck()) in generateDuckingInfo_succeed()
148 assertThat(duckingInfo.getAddressesToUnduck()).isEmpty(); in generateDuckingInfo_succeed()
149 assertThat(duckingInfo.getPlaybackMetaDataHoldingFocus()) in generateDuckingInfo_succeed()
160 CarDuckingUtils.generateDuckingInfo(duckingInfo, attributesToDuck, in generateDuckingInfo_succeed()
DCarDuckingTest.java136 CarDuckingInfo duckingInfo = currentDuckingInfo.get(zoneId); in constructor_initializesEmptyDuckingInfoForZones() local
138 .that(duckingInfo).isNotNull(); in constructor_initializesEmptyDuckingInfoForZones()
140 .that(duckingInfo.mPlaybackMetaDataHoldingFocus).isEmpty(); in constructor_initializesEmptyDuckingInfoForZones()
142 .that(duckingInfo.mAddressesToDuck).isEmpty(); in constructor_initializesEmptyDuckingInfoForZones()
144 .that(duckingInfo.mAddressesToUnduck).isEmpty(); in constructor_initializesEmptyDuckingInfoForZones()
DCarHalAudioUtilsTest.java121 DuckingInfo duckingInfo = CarHalAudioUtils.generateDuckingInfo(getCarDuckingInfo()); in generateDuckingInfo_succeeds() local
124 .that(duckingInfo.zoneId).isEqualTo(ZONE_ID); in generateDuckingInfo_succeeds()
126 .that(duckingInfo.deviceAddressesToDuck) in generateDuckingInfo_succeeds()
130 .that(duckingInfo.deviceAddressesToUnduck) in generateDuckingInfo_succeeds()
134 .that(duckingInfo.playbackMetaDataHoldingFocus) in generateDuckingInfo_succeeds()
DCarAudioServiceUnitTest.java6766 CarDuckingInfo duckingInfo = carDuckingInfosCaptor.getValue().get(0); in verifyMediaDuckingInfoInZone() local
6768 .that(duckingInfo.mZoneId).isEqualTo(zoneId); in verifyMediaDuckingInfoInZone()
6770 .that(CarHalAudioUtils.metadataToAudioAttributes(duckingInfo in verifyMediaDuckingInfoInZone()
/packages/services/Car/service/src/com/android/car/audio/
DCarHalAudioUtils.java50 DuckingInfo duckingInfo = new DuckingInfo(); in generateDuckingInfo() local
51 duckingInfo.zoneId = carDuckingInfo.getZoneId(); in generateDuckingInfo()
52 duckingInfo.deviceAddressesToDuck = in generateDuckingInfo()
54 duckingInfo.deviceAddressesToUnduck = in generateDuckingInfo()
58 duckingInfo.playbackMetaDataHoldingFocus = in generateDuckingInfo()
60 duckingInfo.usagesHoldingFocus = metadatasToUsageStrings(playbackTrackMetadataList); in generateDuckingInfo()
61 return duckingInfo; in generateDuckingInfo()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java391 DuckingInfo duckingInfo = captor.getValue()[0]; in onDevicesToDuckChange_convertsUsagesToXsdStrings() local
392 assertThat(duckingInfo.usagesHoldingFocus).asList() in onDevicesToDuckChange_convertsUsagesToXsdStrings()
412 DuckingInfo duckingInfo = captor.getValue()[0]; in onDevicesToDuckChange_passesAlongAddressesToDuck() local
413 assertThat(duckingInfo.deviceAddressesToDuck).asList() in onDevicesToDuckChange_passesAlongAddressesToDuck()
432 DuckingInfo duckingInfo = captor.getValue()[0]; in onDevicesToDuckChange_passesAlongAddressesToUnduck() local
433 assertThat(duckingInfo.deviceAddressesToUnduck).asList() in onDevicesToDuckChange_passesAlongAddressesToUnduck()
447 DuckingInfo duckingInfo = captor.getValue()[0]; in onDevicesToDuckChange_passesAlongZoneId() local
448 assertThat(duckingInfo.zoneId).isEqualTo(ZONE_ID); in onDevicesToDuckChange_passesAlongZoneId()