Home
last modified time | relevance | path

Searched refs:newVolume (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/audioflinger/
DAudioMixer.cpp504 static inline bool setVolumeRampVariables(float newVolume, int32_t ramp, in setVolumeRampVariables() argument
512 if (newVolume == *pSetVolume) { in setVolumeRampVariables()
515 if (newVolume < 0) { in setVolumeRampVariables()
516 newVolume = 0; // should not have negative volumes in setVolumeRampVariables()
518 switch (fpclassify(newVolume)) { in setVolumeRampVariables()
521 newVolume = 0; in setVolumeRampVariables()
531 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables()
539 if (newVolume > AudioMixer::UNITY_GAIN_FLOAT) { in setVolumeRampVariables()
540 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables()
552 const float inc = (newVolume - *pPrevVolume) / ramp; // could be inf, nan, subnormal in setVolumeRampVariables()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DSystemMediaRouteProvider.java172 int newVolume = Math.min(maxVolume, Math.max(0, volume + delta)); in onUpdateVolume() local
173 if (newVolume != volume) { in onUpdateVolume()
380 int newVolume = MediaRouterJellybean.RouteInfo.getVolume(routeObj); in onRouteVolumeChanged() local
381 if (newVolume != record.mRouteDescriptor.getVolume()) { in onRouteVolumeChanged()
384 .setVolume(newVolume) in onRouteVolumeChanged()
/frameworks/base/media/java/android/media/
DMediaRouter.java2940 final int newVolume = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); in onReceive() local
2943 if (newVolume != oldVolume) { in onReceive()
2944 systemVolumeChanged(newVolume); in onReceive()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1412 private void setSystemAudioVolume(int oldVolume, int newVolume, int maxVolume, int flags) { in setSystemAudioVolume() argument
1415 || oldVolume == newVolume in setSystemAudioVolume()
1425 mHdmiTvClient.setSystemAudioVolume(oldVolume, newVolume, maxVolume); in setSystemAudioVolume()