New API on java's MediaPlayer to suspend/resume a session.
related-to-bug: 2231576
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h
index ecb20e8..9e606d9 100644
--- a/include/media/MediaPlayerInterface.h
+++ b/include/media/MediaPlayerInterface.h
@@ -118,6 +118,9 @@
virtual status_t reset() = 0;
virtual status_t setLooping(int loop) = 0;
virtual player_type playerType() = 0;
+ virtual status_t suspend() { return INVALID_OPERATION; }
+ virtual status_t resume() { return INVALID_OPERATION; }
+
virtual void setNotifyCallback(void* cookie, notify_callback_f notifyFunc) {
mCookie = cookie; mNotify = notifyFunc; }
// Invoke a generic method on the player by using opaque parcels