shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java
public void doStop() {
    startOffset = getCurrentPositionRaw();
    if (nextPlaybackEvent != null) {
      handler.removeMessages(MEDIA_EVENT);
      nextPlaybackEvent = null;
    }
    startTime = -1;
  }
public void doStop() {
    startOffset = getCurrentPositionRaw();
    if (nextPlaybackEvent != null) {
      handler.removeMessages(MEDIA_EVENT);
      nextPlaybackEvent = null;
    }
    startTime = -1;
  }
Pauses simulated playback. After this method is called, the player is no
longer "really playing" (see {@link #isReallyPlaying} for a definition of
"really playing").

This method is used internally by the various shadow method implementations
of the MediaPlayer public API, but may also be called directly by the test
suite if you wish to simulate an internal pause.

@see #isReallyPlaying()
@see #doStart()