diff options
author | Andreas Huber <andih@google.com> | 2012-11-16 10:38:11 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-11-29 10:33:51 -0800 |
commit | 5131d127a042ee88f903370be88845dc8c9f8578 (patch) | |
tree | b6c2153d94a2dd57b8dfaaa12742c60c4fec0187 /media/libstagefright/wifi-display/source/WifiDisplaySource.h | |
parent | 79c56d3f17d3193a0a86eb3c9bfdea90b89ae3f9 (diff) | |
download | frameworks_av-5131d127a042ee88f903370be88845dc8c9f8578.zip frameworks_av-5131d127a042ee88f903370be88845dc8c9f8578.tar.gz frameworks_av-5131d127a042ee88f903370be88845dc8c9f8578.tar.bz2 |
[wfd] Support a low(er) power state by triggering PAUSE/RESUME.
Change-Id: Ibe42bfa73816bbfeb7e652d435254d0171b89727
related-to-bug: 7638150
Diffstat (limited to 'media/libstagefright/wifi-display/source/WifiDisplaySource.h')
-rw-r--r-- | media/libstagefright/wifi-display/source/WifiDisplaySource.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.h b/media/libstagefright/wifi-display/source/WifiDisplaySource.h index 1e855e7..974e070 100644 --- a/media/libstagefright/wifi-display/source/WifiDisplaySource.h +++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.h @@ -44,6 +44,9 @@ struct WifiDisplaySource : public AHandler { status_t start(const char *iface); status_t stop(); + status_t pause(); + status_t resume(); + protected: virtual ~WifiDisplaySource(); virtual void onMessageReceived(const sp<AMessage> &msg); @@ -59,6 +62,9 @@ private: AWAITING_CLIENT_PLAY, ABOUT_TO_PLAY, PLAYING, + PLAYING_TO_PAUSED, + PAUSED, + PAUSED_TO_PLAYING, AWAITING_CLIENT_TEARDOWN, STOPPING, STOPPED, @@ -68,6 +74,8 @@ private: kWhatStart, kWhatRTSPNotify, kWhatStop, + kWhatPause, + kWhatResume, kWhatReapDeadClients, kWhatPlaybackSessionNotify, kWhatKeepAlive, @@ -147,7 +155,17 @@ private: status_t sendM1(int32_t sessionID); status_t sendM3(int32_t sessionID); status_t sendM4(int32_t sessionID); - status_t sendM5(int32_t sessionID, bool requestShutdown); + + enum TriggerType { + TRIGGER_SETUP, + TRIGGER_TEARDOWN, + TRIGGER_PAUSE, + TRIGGER_PLAY, + }; + + // M5 + status_t sendTrigger(int32_t sessionID, TriggerType triggerType); + status_t sendM16(int32_t sessionID); status_t onReceiveM1Response( |