Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp419 static inline bool setVolumeRampVariables(float newVolume, int32_t ramp, in setVolumeRampVariables() argument
427 if (newVolume == *pSetVolume) { in setVolumeRampVariables()
430 if (newVolume < 0) { in setVolumeRampVariables()
431 newVolume = 0; // should not have negative volumes in setVolumeRampVariables()
433 switch (fpclassify(newVolume)) { in setVolumeRampVariables()
436 newVolume = 0; in setVolumeRampVariables()
446 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables()
454 if (newVolume > AudioMixer::UNITY_GAIN_FLOAT) { in setVolumeRampVariables()
455 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables()
467 const float inc = (newVolume - *pPrevVolume) / ramp; // could be inf, nan, subnormal in setVolumeRampVariables()
[all …]
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DSystemMediaRouteProvider.java183 int newVolume = Math.min(maxVolume, Math.max(0, volume + delta)); in onUpdateVolume() local
184 if (newVolume != volume) { in onUpdateVolume()
392 int newVolume = MediaRouterJellybean.RouteInfo.getVolume(routeObj); in onRouteVolumeChanged() local
393 if (newVolume != record.mRouteDescriptor.getVolume()) { in onRouteVolumeChanged()
396 .setVolume(newVolume) in onRouteVolumeChanged()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DSystemMediaRouteProvider.java182 int newVolume = Math.min(maxVolume, Math.max(0, volume + delta)); in onUpdateVolume() local
183 if (newVolume != volume) { in onUpdateVolume()
391 int newVolume = MediaRouterJellybean.RouteInfo.getVolume(routeObj); in onRouteVolumeChanged() local
392 if (newVolume != record.mRouteDescriptor.getVolume()) { in onRouteVolumeChanged()
395 .setVolume(newVolume) in onRouteVolumeChanged()
/frameworks/base/media/java/android/media/
DMediaRouter.java3005 final int newVolume = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); in onReceive() local
3008 if (newVolume != oldVolume) { in onReceive()
3009 systemVolumeChanged(newVolume); in onReceive()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1793 private void setSystemAudioVolume(int oldVolume, int newVolume, int maxVolume, int flags) { in setSystemAudioVolume() argument
1796 || oldVolume == newVolume in setSystemAudioVolume()
1806 mHdmiTvClient.setSystemAudioVolume(oldVolume, newVolume, maxVolume); in setSystemAudioVolume()