Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/m/o/Mopidy-0.18.3/mopidy/mpd/protocol/status.py   Mopidy(Download)
def _status_state(futures):
    state = futures['playback.state'].get()
    if state == PlaybackState.PLAYING:
        return 'play'
    elif state == PlaybackState.STOPPED:

src/m/o/mopidy-HEAD/mopidy/mpd/protocol/status.py   mopidy(Download)
def _status_state(futures):
    state = futures['playback.state'].get()
    if state == PlaybackState.PLAYING:
        return 'play'
    elif state == PlaybackState.STOPPED:

src/m/o/Mopidy-MPRIS-1.1.1/mopidy_mpris/objects.py   Mopidy-MPRIS(Download)
        elif state == PlaybackState.PAUSED:
            self.core.playback.resume().get()
        elif state == PlaybackState.STOPPED:
            self.core.playback.play().get()
 
        elif state == PlaybackState.PAUSED:
            return 'Paused'
        elif state == PlaybackState.STOPPED:
            return 'Stopped'
 

src/m/o/mopidy-HEAD/tests/mpd/test_status.py   mopidy(Download)
PAUSED = PlaybackState.PAUSED
PLAYING = PlaybackState.PLAYING
STOPPED = PlaybackState.STOPPED
 
# FIXME migrate to using protocol.BaseTestCase instead of status.stats

src/m/o/mopidy-HEAD/tests/mpd/protocol/test_playback.py   mopidy(Download)
PAUSED = PlaybackState.PAUSED
PLAYING = PlaybackState.PLAYING
STOPPED = PlaybackState.STOPPED
 
 

src/m/o/mopidy-HEAD/tests/local/test_playback.py   mopidy(Download)
        self.playback.play()
        self.tracklist.random = True
        while self.playback.state != PlaybackState.STOPPED:
            self.playback.next()
            actual.append(self.playback.current_tl_track)

src/m/o/mopidy-HEAD/tests/core/test_listener.py   mopidy(Download)
    def test_listener_has_default_impl_for_playback_state_changed(self):
        self.listener.playback_state_changed(
            PlaybackState.STOPPED, PlaybackState.PLAYING)
 
    def test_listener_has_default_impl_for_tracklist_changed(self):

src/m/o/Mopidy-0.18.3/tests/mpd/test_status.py   Mopidy(Download)
PAUSED = PlaybackState.PAUSED
PLAYING = PlaybackState.PLAYING
STOPPED = PlaybackState.STOPPED
 
# FIXME migrate to using protocol.BaseTestCase instead of status.stats

src/m/o/Mopidy-0.18.3/tests/mpd/protocol/test_playback.py   Mopidy(Download)
PAUSED = PlaybackState.PAUSED
PLAYING = PlaybackState.PLAYING
STOPPED = PlaybackState.STOPPED
 
 

src/m/o/Mopidy-0.18.3/tests/local/test_playback.py   Mopidy(Download)
        self.playback.play()
        self.tracklist.random = True
        while self.playback.state != PlaybackState.STOPPED:
            self.playback.next()
            actual.append(self.playback.current_tl_track)

  1 | 2  Next