Skip to content

Commit

Permalink
Remove unused test code (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Mar 24, 2020
1 parent f946a2d commit fb5bfb3
Showing 1 changed file with 0 additions and 246 deletions.
246 changes: 0 additions & 246 deletions tests/test_androidtv.py
Expand Up @@ -18,129 +18,6 @@

STREAM_MUSIC_EMPTY = "- STREAM_MUSIC:\n \n- STREAM"

DUMPSYS_AUDIO_OFF = """MediaFocusControl dump time: 9:00:59 AM
Audio Focus stack entries (last is top of stack):
source:android.os.BinderProxy@bd99735 -- pack: org.droidtv.playtv -- client: android.media.AudioManager@d4df3dforg.droidtv.playtv.PlayTvActivity@bfb901f -- gain: GAIN -- flags: DELAY_OK|PAUSES_ON_DUCKABLE_LOSS -- loss: none -- notified: true -- uid: 1000 -- attr: AudioAttributes: usage=1 content=3 flags=0x0 tags= bundle=null -- sdk:26
No external focus policy
Notify on duck: true
In ring or call: false
Stream volumes (device: index)
- STREAM_VOICE_CALL:
Muted: true
Min: 1
Max: 5
Current: 2 (speaker): 2, 40000 (hmdi_arc): 2, 40000000 (default): 1
Devices: speaker
- STREAM_SYSTEM:
Muted: true
Min: 0
Max: 7
Current: 2 (speaker): 2, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_RING:
Muted: true
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_MUSIC:
Muted: false
Min: 0
Max: 60
Current: 2 (speaker): 20, 40000 (hmdi_arc): 27, 40000000 (default): 15
Devices: speaker
- STREAM_ALARM:
Muted: true
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_NOTIFICATION:
Muted: true
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_BLUETOOTH_SCO:
Muted: true
Min: 0
Max: 15
Current: 2 (speaker): 7, 40000 (hmdi_arc): 7, 40000000 (default): 4
Devices: speaker
- STREAM_SYSTEM_ENFORCED:
Muted: true
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_DTMF:
Muted: true
Min: 0
Max: 15
Current: 2 (speaker): 5, 40000 (hmdi_arc): 7, 40000000 (default): 4
Devices: speaker
- STREAM_TTS:
Muted: true
Min: 0
Max: 15
Current: 2 (speaker): 7, 40000 (hmdi_arc): 7, 40000000 (default): 4
Devices: speaker
- STREAM_ACCESSIBILITY:
Muted: true
Min: 0
Max: 15
Current: 2 (speaker): 5, 40000 (hmdi_arc): 7, 40000000 (default): 4
Devices: speaker
- mute affected streams = 0x2e
Ringer mode:
- mode (internal) = NORMAL
- mode (external) = NORMAL
- ringer mode affected streams = 0x80 (STREAM_SYSTEM_ENFORCED)
- ringer mode muted streams = 0x0
- delegate = ZenModeHelper
Audio routes:
mMainType=0x0
mBluetoothName=null
Other state:
mVolumeController=VolumeController(android.os.BinderProxy@fb5b7ca,mVisible=false)
mSafeMediaVolumeState=SAFE_MEDIA_VOLUME_ACTIVE
mSafeMediaVolumeIndex=250
sIndependentA11yVolume=false
mPendingVolumeCommand=null
mMusicActiveMs=0
mMcc=0
mCameraSoundForced=false
mHasVibrator=false
mVolumePolicy=VolumePolicy[volumeDownToEnterSilent=true,volumeUpToExitSilent=true,doNotDisturbWhenSilent=true,vibrateToSilentDebounce=400]
mAvrcpAbsVolSupported=false
Audio policies:
PlaybackActivityMonitor dump time: 9:00:59 AM
ID:23 -- type:android.media.SoundPool -- u/pid:10025/1934 -- state:idle -- attr:AudioAttributes: usage=13 content=4 flags=0x0 tags= bundle=null
ID:55 -- type:android.media.MediaPlayer -- u/pid:1000/2283 -- state:idle -- attr:AudioAttributes: usage=0 content=0 flags=0x0 tags= bundle=null
ID:15 -- type:android.media.SoundPool -- u/pid:1000/1723 -- state:idle -- attr:AudioAttributes: usage=13 content=4 flags=0x0 tags= bundle=null
ID:31 -- type:android.media.MediaPlayer -- u/pid:1000/2010 -- state:idle -- attr:AudioAttributes: usage=0 content=0 flags=0x0 tags= bundle=null
ID:143 -- type:android.media.SoundPool -- u/pid:10018/15178 -- state:idle -- attr:AudioAttributes: usage=13 content=4 flags=0x0 tags= bundle=null
ducked players:
muted player piids:"""


STREAM_MUSIC_OFF = """- STREAM_MUSIC:
Muted: false
Min: 0
Expand All @@ -167,129 +44,6 @@
Devices: speaker"""


DUMPSYS_AUDIO_ON = """MediaFocusControl dump time: 9:03:06 AM
Audio Focus stack entries (last is top of stack):
source:android.os.BinderProxy@bd99735 -- pack: org.droidtv.playtv -- client: android.media.AudioManager@d4df3dforg.droidtv.playtv.PlayTvActivity@bfb901f -- gain: GAIN -- flags: DELAY_OK|PAUSES_ON_DUCKABLE_LOSS -- loss: none -- notified: true -- uid: 1000 -- attr: AudioAttributes: usage=1 content=3 flags=0x0 tags= bundle=null -- sdk:26
No external focus policy
Notify on duck: true
In ring or call: false
Stream volumes (device: index)
- STREAM_VOICE_CALL:
Muted: false
Min: 1
Max: 5
Current: 2 (speaker): 2, 40000 (hmdi_arc): 2, 40000000 (default): 1
Devices: speaker
- STREAM_SYSTEM:
Muted: false
Min: 0
Max: 7
Current: 2 (speaker): 2, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: hmdi_arc
- STREAM_RING:
Muted: false
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_MUSIC:
Muted: false
Min: 0
Max: 60
Current: 2 (speaker): 20, 40000 (hmdi_arc): 22, 40000000 (default): 15
Devices: hmdi_arc
- STREAM_ALARM:
Muted: false
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_NOTIFICATION:
Muted: false
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_BLUETOOTH_SCO:
Muted: false
Min: 0
Max: 15
Current: 2 (speaker): 6, 40000 (hmdi_arc): 6, 40000000 (default): 4
Devices: speaker
- STREAM_SYSTEM_ENFORCED:
Muted: false
Min: 0
Max: 7
Current: 2 (speaker): 3, 40000 (hmdi_arc): 3, 40000000 (default): 2
Devices: speaker
- STREAM_DTMF:
Muted: false
Min: 0
Max: 15
Current: 2 (speaker): 5, 40000 (hmdi_arc): 6, 40000000 (default): 4
Devices: hmdi_arc
- STREAM_TTS:
Muted: false
Min: 0
Max: 15
Current: 2 (speaker): 6, 40000 (hmdi_arc): 6, 40000000 (default): 4
Devices: speaker
- STREAM_ACCESSIBILITY:
Muted: false
Min: 0
Max: 15
Current: 2 (speaker): 5, 40000 (hmdi_arc): 6, 40000000 (default): 4
Devices: hmdi_arc
- mute affected streams = 0x2e
Ringer mode:
- mode (internal) = NORMAL
- mode (external) = NORMAL
- ringer mode affected streams = 0x80 (STREAM_SYSTEM_ENFORCED)
- ringer mode muted streams = 0x0
- delegate = ZenModeHelper
Audio routes:
mMainType=0x8
mBluetoothName=null
Other state:
mVolumeController=VolumeController(android.os.BinderProxy@fb5b7ca,mVisible=false)
mSafeMediaVolumeState=SAFE_MEDIA_VOLUME_ACTIVE
mSafeMediaVolumeIndex=250
sIndependentA11yVolume=false
mPendingVolumeCommand=null
mMusicActiveMs=0
mMcc=0
mCameraSoundForced=false
mHasVibrator=false
mVolumePolicy=VolumePolicy[volumeDownToEnterSilent=true,volumeUpToExitSilent=true,doNotDisturbWhenSilent=true,vibrateToSilentDebounce=400]
mAvrcpAbsVolSupported=false
Audio policies:
PlaybackActivityMonitor dump time: 9:03:06 AM
ID:23 -- type:android.media.SoundPool -- u/pid:10025/1934 -- state:idle -- attr:AudioAttributes: usage=13 content=4 flags=0x0 tags= bundle=null
ID:55 -- type:android.media.MediaPlayer -- u/pid:1000/2283 -- state:idle -- attr:AudioAttributes: usage=0 content=0 flags=0x0 tags= bundle=null
ID:15 -- type:android.media.SoundPool -- u/pid:1000/1723 -- state:idle -- attr:AudioAttributes: usage=13 content=4 flags=0x0 tags= bundle=null
ID:31 -- type:android.media.MediaPlayer -- u/pid:1000/2010 -- state:idle -- attr:AudioAttributes: usage=0 content=0 flags=0x0 tags= bundle=null
ID:143 -- type:android.media.SoundPool -- u/pid:10018/15178 -- state:idle -- attr:AudioAttributes: usage=13 content=4 flags=0x0 tags= bundle=null
ducked players:
muted player piids:"""


STREAM_MUSIC_ON = """- STREAM_MUSIC:
Muted: false
Min: 0
Expand Down

0 comments on commit fb5bfb3

Please sign in to comment.