Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioVolumeGroup.java44 private int mMaxGain = Integer.MIN_VALUE; field in CarAudioVolumeGroup
61 mMaxGain = maxGain; in CarAudioVolumeGroup()
62 mLimitedGainIndex = getIndexForGainLocked(mMaxGain); in CarAudioVolumeGroup()
68 return getIndexForGainLocked(mMaxGain); in getMaxGainIndex()
95 && gainIndex <= getIndexForGainLocked(mMaxGain); in isValidGainIndexLocked()
104 mMaxGain, mDefaultGain, getGainForIndexLocked(mCurrentGainIndex)); in dumpLocked()
171 if (maxGain != mMaxGain) { in calculateNewGainStageFromDeviceInfos()
172 mMaxGain = maxGain; in calculateNewGainStageFromDeviceInfos()
DCarAudioDeviceInfo.java74 private int mMaxGain; field in CarAudioDeviceInfo
107 mMaxGain = UNINITIALIZED_GAIN; in CarAudioDeviceInfo()
237 return mMaxGain; in getMaxGain()
278 } else if (gain > mMaxGain) { in setCurrentGain()
279 gain = mMaxGain; in setCurrentGain()
299 mMaxGain = halDeviceInfo.getGainMaxValue(); in updateAudioDeviceInfo()
347 mMaxGain = audioGainInfo.getMaxGain(); in setAudioGainInfoIfNeededLocked()
364 mMaxGain = UNINITIALIZED_GAIN; in resetAudioDeviceInfoToDefaultLocked()
472 mMinGain, mMaxGain, mDefaultGain, mCurrentGain); in dump()
490 proto.write(CarAudioDumpProto.CarVolumeGain.MAX_GAIN_INDEX, mMaxGain); in dumpProto()
DCarVolumeGroupFactory.java43 private int mMaxGain = Integer.MIN_VALUE; field in CarVolumeGroupFactory
75 mMinGain, mMaxGain, mUseCarVolumeGroupMute, mCarActivationVolumeConfig); in getCarVolumeGroup()
103 if (info.getMaxGain() > mMaxGain) { in setDeviceInfoForContext()
104 mMaxGain = info.getMaxGain(); in setDeviceInfoForContext()
126 return mMaxGain; in getMaxGain()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DTestCarAudioDeviceInfoBuilder.java43 private int mMaxGain = MAX_GAIN; field in TestCarAudioDeviceInfoBuilder
68 mMaxGain = maxGain; in setMaxGain()
89 when(infoMock.getMaxGain()).thenReturn(mMaxGain); in build()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java372 private final int mMaxGain; field in AudioManagerHelper.AudioGainInfo
378 mMaxGain = gain.maxValue(); in AudioGainInfo()
388 return mMaxGain; in getMaxGain()