Home
last modified time | relevance | path

Searched refs:CarDuckingInfo (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingInfoTest.java54 new CarDuckingInfo( in constructor_nullAddressesToDuck_throws()
66 new CarDuckingInfo( in constructor_nullAddressesToUnduck_throws()
77 () -> new CarDuckingInfo(ZONE_ID, ADDRESSES_TO_DUCK, ADDRESSES_TO_UNDUCK, null)); in constructor_nullPlaybackMetadataHoldingFocus_throws()
82 CarDuckingInfo duckingInfo = getCarDuckingInfo(); in constructor_validInputs_succeeds()
100 CarDuckingInfo carDuckingInfo = getCarDuckingInfo(); in generateDuckingInfo_includesSameAddressesToDuck()
110 CarDuckingInfo carDuckingInfo = getCarDuckingInfo(); in generateDuckingInfo_includesSameAddressesToUnduck()
120 CarDuckingInfo carDuckingInfo = getCarDuckingInfo(); in generateDuckingInfo_includesSameUsagesHoldingFocus()
131 CarDuckingInfo carDuckingInfo = getCarDuckingInfo(); in generateDuckingInfo_includesSamePlaybackTrackMetadataHoldingFocus()
140 private CarDuckingInfo getCarDuckingInfo() { in getCarDuckingInfo()
141 return new CarDuckingInfo( in getCarDuckingInfo()
DCarDuckingTest.java90 private ArgumentCaptor<List<CarDuckingInfo>> mCarDuckingInfosCaptor;
130 SparseArray<CarDuckingInfo> currentDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in constructor_initializesEmptyDuckingInfoForZones()
136 CarDuckingInfo duckingInfo = currentDuckingInfo.get(zoneId); in constructor_initializesEmptyDuckingInfoForZones()
152 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_forPrimaryZone_updatesUsagesHoldingFocus()
164 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_forPrimaryZone_doesNotUpdateSecondaryZones()
177 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_withMultipleFocusHolders_updatesAddressesToDuck()
190 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_withDuckedDevices_updatesAddressesToUnduck()
309 CarDuckingInfo info = mCarDuckingInfosCaptor.getValue().get(0); in onFocusChange_withOemDuckingAndReturnMedia_ducksMedia()
329 CarDuckingInfo info = mCarDuckingInfosCaptor.getValue().get(0); in onFocusChange_withOemDuckingCalledTwice_unducksMedia()
DCarDuckingUtilsTest.java141 CarDuckingInfo duckingInfo = in generateDuckingInfo_succeed()
159 CarDuckingInfo duckingInfo1 = in generateDuckingInfo_succeed()
175 CarDuckingInfo duckingInfo2 = in generateDuckingInfo_succeed()
188 CarDuckingInfo duckingInfo3 = in generateDuckingInfo_succeed()
231 private CarDuckingInfo getEmptyCarDuckingInfo() { in getEmptyCarDuckingInfo()
232 return new CarDuckingInfo( in getEmptyCarDuckingInfo()
DCarHalAudioUtilsTest.java420 private CarDuckingInfo getCarDuckingInfo() { in getCarDuckingInfo()
421 return new CarDuckingInfo( in getCarDuckingInfo()
DCarAudioServiceUnitTest.java4603 ArgumentCaptor<List<CarDuckingInfo>> carDuckingInfosCaptor = in switchZoneToConfig_withPendingFocus_updatesDuckingInfo()
6762 private void verifyMediaDuckingInfoInZone(ArgumentCaptor<List<CarDuckingInfo>> in verifyMediaDuckingInfoInZone()
6766 CarDuckingInfo duckingInfo = carDuckingInfosCaptor.getValue().get(0); in verifyMediaDuckingInfoInZone()
/packages/services/Car/service/src/com/android/car/audio/
DCarDucking.java49 private final SparseArray<CarDuckingInfo> mCurrentDuckingInfo = new SparseArray<>();
60 new CarDuckingInfo( in CarDucking()
66 SparseArray<CarDuckingInfo> getCurrentDuckingInfo() { in getCurrentDuckingInfo()
76 List<CarDuckingInfo> newDuckingInfos = new ArrayList<>(audioZoneIds.length); in onFocusChange()
80 CarDuckingInfo newDuckingInfo = updateDuckingForZoneIdLocked(zoneId, focusHolders); in onFocusChange()
88 private CarDuckingInfo updateDuckingForZoneIdLocked(int zoneId, in updateDuckingForZoneIdLocked()
90 CarDuckingInfo oldDuckingInfo = mCurrentDuckingInfo.get(zoneId); in updateDuckingForZoneIdLocked()
91 CarDuckingInfo newDuckingInfo = generateNewDuckingInfoLocked(oldDuckingInfo, in updateDuckingForZoneIdLocked()
121 private CarDuckingInfo generateNewDuckingInfoLocked(CarDuckingInfo oldDuckingInfo, in generateNewDuckingInfoLocked()
DCarDuckingUtils.java32 static CarDuckingInfo generateDuckingInfo(CarDuckingInfo oldDuckingInfo, in generateDuckingInfo()
41 return new CarDuckingInfo( in generateDuckingInfo()
DCarDuckingInfo.java40 public final class CarDuckingInfo { class
46 public CarDuckingInfo( in CarDuckingInfo() method in CarDuckingInfo
DCarHalAudioUtils.java48 public static DuckingInfo generateDuckingInfo(CarDuckingInfo carDuckingInfo) { in generateDuckingInfo()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java76 import com.android.car.audio.CarDuckingInfo;
363 CarDuckingInfo carDuckingInfo = in onDevicesToDuckChange_callsHalWithDuckingInfo()
364 new CarDuckingInfo( in onDevicesToDuckChange_callsHalWithDuckingInfo()
379 CarDuckingInfo carDuckingInfo = in onDevicesToDuckChange_convertsUsagesToXsdStrings()
380 new CarDuckingInfo( in onDevicesToDuckChange_convertsUsagesToXsdStrings()
401 CarDuckingInfo carDuckingInfo = in onDevicesToDuckChange_passesAlongAddressesToDuck()
402 new CarDuckingInfo( in onDevicesToDuckChange_passesAlongAddressesToDuck()
421 CarDuckingInfo carDuckingInfo = in onDevicesToDuckChange_passesAlongAddressesToUnduck()
422 new CarDuckingInfo( in onDevicesToDuckChange_passesAlongAddressesToUnduck()
439 CarDuckingInfo carDuckingInfo = in onDevicesToDuckChange_passesAlongZoneId()
[all …]
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapper.java27 import com.android.car.audio.CarDuckingInfo;
132 void onDevicesToDuckChange(@NonNull List<CarDuckingInfo> carDuckingInfos); in onDevicesToDuckChange()
DAudioControlWrapperV1.java31 import com.android.car.audio.CarDuckingInfo;
128 public void onDevicesToDuckChange(List<CarDuckingInfo> carDuckingInfos) { in onDevicesToDuckChange()
DAudioControlWrapperV2.java36 import com.android.car.audio.CarDuckingInfo;
159 public void onDevicesToDuckChange(List<CarDuckingInfo> carDuckingInfos) { in onDevicesToDuckChange()
DAudioControlWrapperAidl.java46 import com.android.car.audio.CarDuckingInfo;
240 public void onDevicesToDuckChange(@NonNull List<CarDuckingInfo> carDuckingInfos) { in onDevicesToDuckChange()
244 CarDuckingInfo info = Objects.requireNonNull(carDuckingInfos.get(i)); in onDevicesToDuckChange()