Home
last modified time | relevance | path

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

/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/
H A Daudio_policy_server.cpp274 int32_t volumeLevelInInt = GetSystemVolumeLevelInternal(streamInFocus); in RegisterVolumeKeyEvents() local
275 if (MaxOrMinVolumeOption(volumeLevelInInt, keyType, streamInFocus)) { in RegisterVolumeKeyEvents()
279 volumeLevelInInt = (keyType == OHOS::MMI::KeyEvent::KEYCODE_VOLUME_UP) ? in RegisterVolumeKeyEvents()
280 ++volumeLevelInInt : --volumeLevelInInt; in RegisterVolumeKeyEvents()
281 SetSystemVolumeLevelInternal(streamInFocus, volumeLevelInInt, true); in RegisterVolumeKeyEvents()
657 int32_t volumeLevelInInt = GetSystemVolumeLevel(streamInFocus); in AdjustVolumeByStep() local
660 ret = SetSystemVolumeLevelInternal(streamInFocus, volumeLevelInInt + volumeStep_, false); in AdjustVolumeByStep()
665 ret = SetSystemVolumeLevelInternal(streamInFocus, volumeLevelInInt - volumeStep_, false); in AdjustVolumeByStep()
678 int32_t volumeLevelInInt = GetSystemVolumeLevel(volumeType); in AdjustSystemVolumeByStep() local
682 ret = SetSystemVolumeLevelInternal(volumeType, volumeLevelInInt + volumeStep_, false); in AdjustSystemVolumeByStep()
[all …]