Searched refs:newVolume (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 540 static inline bool setVolumeRampVariables(float newVolume, int32_t ramp, in setVolumeRampVariables() argument 548 if (newVolume == *pSetVolume) { in setVolumeRampVariables() 551 if (newVolume < 0) { in setVolumeRampVariables() 552 newVolume = 0; // should not have negative volumes in setVolumeRampVariables() 554 switch (fpclassify(newVolume)) { in setVolumeRampVariables() 557 newVolume = 0; in setVolumeRampVariables() 567 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables() 575 if (newVolume > AudioMixer::UNITY_GAIN_FLOAT) { in setVolumeRampVariables() 576 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables() 588 const float inc = (newVolume - *pPrevVolume) / ramp; // could be inf, nan, subnormal in setVolumeRampVariables() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaRouter.java | 3071 final int newVolume = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); in onReceive() local 3074 if (newVolume != oldVolume) { in onReceive() 3075 systemVolumeChanged(newVolume); in onReceive()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 1955 private void setSystemAudioVolume(int oldVolume, int newVolume, int maxVolume, int flags) { in setSystemAudioVolume() argument 1961 || oldVolume == newVolume in setSystemAudioVolume() 1968 mHdmiTvClient.setSystemAudioVolume(oldVolume, newVolume, maxVolume); in setSystemAudioVolume()
|