Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioVolumeGroup.java46 private int mMinGain = Integer.MAX_VALUE; field in CarAudioVolumeGroup
60 mMinGain = minGain; in CarAudioVolumeGroup()
75 return getIndexForGainLocked(mMinGain); in getMinGainIndex()
94 return gainIndex >= getIndexForGainLocked(mMinGain) in isValidGainIndexLocked()
103 writer.printf("Gain values (min / max / default/ current): %d %d %d %d\n", mMinGain, in dumpLocked()
116 return mMinGain + gainIndex * mStepSize; in getGainForIndexLocked()
121 return (gainInMillibel - mMinGain) / mStepSize; in getIndexForGainLocked()
166 if (minGain != mMinGain) { in calculateNewGainStageFromDeviceInfos()
167 mMinGain = minGain; in calculateNewGainStageFromDeviceInfos()
DCarAudioDeviceInfo.java76 private int mMinGain; field in CarAudioDeviceInfo
108 mMinGain = UNINITIALIZED_GAIN; in CarAudioDeviceInfo()
243 return mMinGain; in getMinGain()
276 if (gain < mMinGain) { in setCurrentGain()
277 gain = mMinGain; in setCurrentGain()
298 mMinGain = halDeviceInfo.getGainMinValue(); in updateAudioDeviceInfo()
348 mMinGain = audioGainInfo.getMinGain(); in setAudioGainInfoIfNeededLocked()
365 mMinGain = UNINITIALIZED_GAIN; in resetAudioDeviceInfoToDefaultLocked()
472 mMinGain, mMaxGain, mDefaultGain, mCurrentGain); in dump()
489 proto.write(CarAudioDumpProto.CarVolumeGain.MIN_GAIN_INDEX, mMinGain); in dumpProto()
DCarVolumeGroupFactory.java44 private int mMinGain = Integer.MAX_VALUE; field in CarVolumeGroupFactory
75 mMinGain, mMaxGain, mUseCarVolumeGroupMute, mCarActivationVolumeConfig); in getCarVolumeGroup()
106 if (info.getMinGain() < mMinGain) { in setDeviceInfoForContext()
107 mMinGain = info.getMinGain(); in setDeviceInfoForContext()
121 return mMinGain; in getMinGain()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DTestCarAudioDeviceInfoBuilder.java42 private int mMinGain = MIN_GAIN; field in TestCarAudioDeviceInfoBuilder
63 mMinGain = minGain; in setMinGain()
90 when(infoMock.getMinGain()).thenReturn(mMinGain); in build()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java371 private final int mMinGain; field in AudioManagerHelper.AudioGainInfo
377 mMinGain = gain.minValue(); in AudioGainInfo()
384 return mMinGain; in getMinGain()