Home
last modified time | relevance | path

Searched refs:gainDB (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java539 int gainDB = (int) AudioSystem.getStreamVolumeDB(streamType, index / 10, in setHearingAidVolume() local
541 if (gainDB < BT_HEARING_AID_GAIN_MIN) { in setHearingAidVolume()
542 gainDB = BT_HEARING_AID_GAIN_MIN; in setHearingAidVolume()
546 + index + " gain=" + gainDB); in setHearingAidVolume()
551 AudioServiceEvents.VolumeEvent.VOL_SET_HEARING_AID_VOL, index, gainDB)); in setHearingAidVolume()
554 mHearingAid.setVolume(gainDB); in setHearingAidVolume()
DSoundDoseHelper.java1142 float gainDB = AudioSystem.getStreamVolumeDB(AudioSystem.STREAM_MUSIC, index, in getSafeDeviceMediaVolumeIndex() local
1144 if (Float.isNaN(gainDB)) { in getSafeDeviceMediaVolumeIndex()
1147 } else if (gainDB == mSafeMediaVolumeDbfs) { in getSafeDeviceMediaVolumeIndex()
1150 } else if (gainDB < mSafeMediaVolumeDbfs) { in getSafeDeviceMediaVolumeIndex()