Searched refs:mMaxGain (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarVolumeGroup.java | 58 private final int mMaxGain; field in CarVolumeGroup 87 mMaxGain = maxGain; in CarVolumeGroup() 141 return getIndexForGain(mMaxGain); in getMaxGainIndex() 163 "Gain out of range (%d:%d) %d index %d", mMinGain, mMaxGain, in setCurrentGainIndex() local 212 mMaxGain, mDefaultGain, getGainForIndex(mCurrentGainIndex)); in dump() 296 && gainIndex <= getIndexForGain(mMaxGain); in isValidGainIndex() 347 int mMaxGain = Integer.MIN_VALUE; field in CarVolumeGroup.Builder 381 if (info.getMaxGain() > mMaxGain) { in setDeviceInfoForContext() 382 mMaxGain = info.getMaxGain(); in setDeviceInfoForContext() 395 mDefaultGain, mMinGain, mMaxGain, mContextToAddress, in build()
|
D | CarAudioDeviceInfo.java | 52 private final int mMaxGain; field in CarAudioDeviceInfo 71 mMaxGain = audioGain.maxValue(); in CarAudioDeviceInfo() 95 return mMaxGain; in getMaxGain() 132 } else if (gainInMillibels > mMaxGain) { in setCurrentGain() 133 gainInMillibels = mMaxGain; in setCurrentGain() 227 + " maxGain: " + mMaxGain in toString() 238 mMinGain, mMaxGain, mDefaultGain, mCurrentGain); in dump()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeGroupUnitTest.java | 136 assertThat(builder.mMaxGain).isEqualTo(mMediaDeviceInfo.getMaxGain()); in setDeviceInfoForContext_withFirstCall_setsMaxGain() 181 assertThat(builder.mMaxGain).isEqualTo(secondInfo.getMaxGain()); in setDeviceInfoForContext_SecondCallWithLargerMaxGain_updatesMaxGain() 193 assertThat(builder.mMaxGain).isEqualTo(mMediaDeviceInfo.getMaxGain()); in setDeviceInfoForContext_SecondCallWithSmallerMaxGain_keepsFirstMaxGain() 599 private int mMaxGain = MAX_GAIN; field in CarVolumeGroupUnitTest.InfoBuilder 621 mMaxGain = maxGain; in setMaxGain() 629 when(infoMock.getMaxGain()).thenReturn(mMaxGain); in build()
|