Android 11, volume up button clicked (screen on):

2021-09-15 21:15:36.708 1926-7169/? D/MediaSessionService: dispatchVolumeKeyEvent, pkg=com.google.android.apps.nexuslauncher, opPkg=com.google.android.apps.nexuslauncher, pid=23861, uid=10185, asSystem=true, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_VOLUME_UP, scanCode=115, metaState=0, flags=0x8, repeatCount=0, eventTime=600409070, downTime=600409070, deviceId=-1, source=0x101, displayId=0 }, stream=-2147483648, musicOnly=false
2021-09-15 21:15:36.708 1926-7169/? D/MediaSessionService: Adjusting com.spotify.music/spotify-media-session (userId=0) by 1. flags=4113, suggestedStream=-2147483648, preferSuggestedStream=false
2021-09-15 21:15:36.717 1926-3726/? D/MediaSessionService: dispatchVolumeKeyEvent, pkg=com.google.android.apps.nexuslauncher, opPkg=com.google.android.apps.nexuslauncher, pid=23861, uid=10185, asSystem=true, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_VOLUME_UP, scanCode=115, metaState=0, flags=0x8, repeatCount=0, eventTime=600409190, downTime=600409070, deviceId=-1, source=0x101, displayId=0 }, stream=-2147483648, musicOnly=false
2021-09-15 21:15:36.717 1926-3726/? D/MediaSessionService: Adjusting com.spotify.music/spotify-media-session (userId=0) by 0. flags=4116, suggestedStream=-2147483648, preferSuggestedStream=false


Android 11, volume up button clicked (screen off):

2021-09-15 21:16:16.615 1926-2080/? D/MediaSessionService: dispatchVolumeKeyEvent, pkg=android, opPkg=android, pid=1926, uid=1000, asSystem=false, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_VOLUME_UP, scanCode=115, metaState=0, flags=0x8, repeatCount=0, eventTime=600449130, downTime=600449130, deviceId=2, source=0x101, displayId=0 }, stream=-2147483648, musicOnly=true
2021-09-15 21:16:16.615 1926-2080/? D/MediaSessionService: Adjusting com.spotify.music/spotify-media-session (userId=0) by 1. flags=4608, suggestedStream=-2147483648, preferSuggestedStream=false
2021-09-15 21:16:16.770 1926-2080/? D/MediaSessionService: dispatchVolumeKeyEvent, pkg=android, opPkg=android, pid=1926, uid=1000, asSystem=false, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_VOLUME_UP, scanCode=115, metaState=0, flags=0x8, repeatCount=0, eventTime=600449290, downTime=600449130, deviceId=2, source=0x101, displayId=0 }, stream=-2147483648, musicOnly=true
2021-09-15 21:16:16.771 1926-2080/? D/MediaSessionService: Adjusting com.spotify.music/spotify-media-session (userId=0) by 0. flags=4608, suggestedStream=-2147483648, preferSuggestedStream=false