Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java59 private final int mMinGain; field in CarVolumeGroup
86 mMinGain = minGain; in CarVolumeGroup()
147 return getIndexForGain(mMinGain); in getMinGainIndex()
163 "Gain out of range (%d:%d) %d index %d", mMinGain, mMaxGain, in setCurrentGainIndex() local
211 writer.printf("Gain values (min / max / default/ current): %d %d %d %d\n", mMinGain, in dump()
295 return gainIndex >= getIndexForGain(mMinGain) in isValidGainIndex()
312 return mMinGain + gainIndex * mStepSize; in getGainForIndex()
316 return (gainInMillibel - mMinGain) / mStepSize; in getIndexForGain()
349 int mMinGain = Integer.MAX_VALUE; field in CarVolumeGroup.Builder
384 if (info.getMinGain() < mMinGain) { in setDeviceInfoForContext()
[all …]
DCarAudioDeviceInfo.java53 private final int mMinGain; field in CarAudioDeviceInfo
72 mMinGain = audioGain.minValue(); in CarAudioDeviceInfo()
99 return mMinGain; in getMinGain()
130 if (gainInMillibels < mMinGain) { in setCurrentGain()
131 gainInMillibels = mMinGain; in setCurrentGain()
228 + " minGain: " + mMinGain; in toString()
238 mMinGain, mMaxGain, mDefaultGain, mCurrentGain); in dump()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeGroupUnitTest.java127 assertThat(builder.mMinGain).isEqualTo(mMediaDeviceInfo.getMinGain()); in setDeviceInfoForContext_withFirstCall_setsMinGain()
157 assertThat(builder.mMinGain).isEqualTo(secondInfo.getMinGain()); in setDeviceInfoForContext_SecondCallWithSmallerMinGain_updatesMinGain()
169 assertThat(builder.mMinGain).isEqualTo(mMediaDeviceInfo.getMinGain()); in setDeviceInfoForContext_SecondCallWithLargerMinGain_keepsFirstMinGain()
598 private int mMinGain = MIN_GAIN; field in CarVolumeGroupUnitTest.InfoBuilder
616 mMinGain = minGain; in setMinGain()
630 when(infoMock.getMinGain()).thenReturn(mMinGain); in build()