Searched refs:gainDB (Results 1 – 2 of 2) sorted by relevance
539 int gainDB = (int) AudioSystem.getStreamVolumeDB(streamType, index / 10, in setHearingAidVolume() local541 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()
1142 float gainDB = AudioSystem.getStreamVolumeDB(AudioSystem.STREAM_MUSIC, index, in getSafeDeviceMediaVolumeIndex() local1144 if (Float.isNaN(gainDB)) { in getSafeDeviceMediaVolumeIndex()1147 } else if (gainDB == mSafeMediaVolumeDbfs) { in getSafeDeviceMediaVolumeIndex()1150 } else if (gainDB < mSafeMediaVolumeDbfs) { in getSafeDeviceMediaVolumeIndex()