Home
last modified time | relevance | path

Searched refs:CarVolume (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeTest.java63 private static final @CarVolume.CarVolumeListVersion int VERSION_ZERO = 0;
64 private static final @CarVolume.CarVolumeListVersion int VERSION_ONE = 1;
65 private static final @CarVolume.CarVolumeListVersion int VERSION_TWO = 2;
66 private static final @CarVolume.CarVolumeListVersion int VERSION_THREE = 3;
76 private CarVolume mCarVolume;
81 mCarVolume = new CarVolume(mMockClock, VERSION_TWO, KEY_EVENT_TIMEOUT_MS); in setUp()
88 new CarVolume(mMockClock, VERSION_ZERO, KEY_EVENT_TIMEOUT_MS); in constructor_withVersionLessThanOne_failsTooLow()
98 new CarVolume(mMockClock, VERSION_THREE, KEY_EVENT_TIMEOUT_MS); in constructor_withVersionGreaterThanTwo_failsTooHigh()
108 new CarVolume(null, VERSION_ONE, KEY_EVENT_TIMEOUT_MS); in constructor_withNullSystemClock_fails()
161 CarVolume carVolume = new CarVolume(mMockClock, VERSION_ONE, KEY_EVENT_TIMEOUT_MS); in getSuggestedAudioContext_withV1AndCallStateRinging_returnsCallRingContext()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java45 final class CarVolume { class
46 private static final String TAG = CarLog.tagFor(CarVolume.class);
94 CarVolume(@NonNull SystemClockWrapper clockWrapper, in CarVolume() method in CarVolume
DCarAudioService.java25 import static com.android.car.audio.CarVolume.VERSION_TWO;
141 private final @CarVolume.CarVolumeListVersion int mAudioVolumeAdjustmentContextsVersion;
144 private final CarVolume mCarVolume;
216 mCarVolume = new CarVolume(mClock, in CarAudioService()
943 return CarVolume.isAnyContextActive(getContextsForVolumeGroupId(zoneId, groupId), in isPlaybackOnVolumeGroupActive()