code: public void doStop() {
      startOffset = getCurrentPositionRaw();
      if (nextPlaybackEvent != null) {
        handler.removeMessages(MEDIA_EVENT);
        nextPlaybackEvent = null;
      }
      startTime = -1;
    }
docs: 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()