Did I find the right examples for you? yes no

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

src/m/o/Mopidy-MPRIS-1.1.1/mopidy_mpris/frontend.py   Mopidy-MPRIS(Download)
    def track_playback_paused(self, tl_track, time_position):
        logger.debug('Received track_playback_paused event')
        self._emit_properties_changed(objects.PLAYER_IFACE, ['PlaybackStatus'])
 
    def track_playback_resumed(self, tl_track, time_position):
        logger.debug('Received track_playback_resumed event')
        self._emit_properties_changed(objects.PLAYER_IFACE, ['PlaybackStatus'])
    def track_playback_started(self, tl_track):
        logger.debug('Received track_playback_started event')
        self._emit_properties_changed(
            objects.PLAYER_IFACE, ['PlaybackStatus', 'Metadata'])
 
    def track_playback_ended(self, tl_track, time_position):
        logger.debug('Received track_playback_ended event')
        self._emit_properties_changed(
            objects.PLAYER_IFACE, ['PlaybackStatus', 'Metadata'])
    def volume_changed(self, volume):
        logger.debug('Received volume_changed event')
        self._emit_properties_changed(objects.PLAYER_IFACE, ['Volume'])
 
    def seeked(self, time_position_in_ms):

src/m/o/Mopidy-MPRIS-1.1.1/tests/test_player_interface.py   Mopidy-MPRIS(Download)
    def test_get_playback_status_is_playing_when_playing(self):
        self.core.playback.state = PLAYING
        result = self.mpris.Get(objects.PLAYER_IFACE, 'PlaybackStatus')
        self.assertEqual('Playing', result)
 
    def test_get_playback_status_is_paused_when_paused(self):
        self.core.playback.state = PAUSED
        result = self.mpris.Get(objects.PLAYER_IFACE, 'PlaybackStatus')
    def test_get_playback_status_is_stopped_when_stopped(self):
        self.core.playback.state = STOPPED
        result = self.mpris.Get(objects.PLAYER_IFACE, 'PlaybackStatus')
        self.assertEqual('Stopped', result)
 
    def test_get_loop_status_is_none_when_not_looping(self):
        self.core.tracklist.repeat = False
        self.core.tracklist.single = False
        result = self.mpris.Get(objects.PLAYER_IFACE, 'LoopStatus')
    def test_get_loop_status_is_track_when_looping_a_single_track(self):
        self.core.tracklist.repeat = True
        self.core.tracklist.single = True
        result = self.mpris.Get(objects.PLAYER_IFACE, 'LoopStatus')
        self.assertEqual('Track', result)

src/m/o/Mopidy-MPRIS-1.1.1/tests/test_events.py   Mopidy-MPRIS(Download)
        ])
        self.mpris_object.PropertiesChanged.assert_called_with(
            objects.PLAYER_IFACE, {'PlaybackStatus': 'Paused'}, [])
 
    def test_track_playback_resumed_event_changes_playback_status(self):
        ])
        self.mpris_object.PropertiesChanged.assert_called_with(
            objects.PLAYER_IFACE, {'PlaybackStatus': 'Playing'}, [])
 
    def test_track_playback_started_changes_playback_status_and_metadata(self):
        ])
        self.mpris_object.PropertiesChanged.assert_called_with(
            objects.PLAYER_IFACE,
            {'Metadata': '...', 'PlaybackStatus': '...'}, [])
 
        ])
        self.mpris_object.PropertiesChanged.assert_called_with(
            objects.PLAYER_IFACE,
            {'Metadata': '...', 'PlaybackStatus': '...'}, [])
 
        ])
        self.mpris_object.PropertiesChanged.assert_called_with(
            objects.PLAYER_IFACE, {'Volume': 1.0}, [])
 
    def test_seeked_event_causes_mpris_seeked_event(self):