summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/foundation
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-07-07 06:57:27 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-07-07 06:57:27 -0700
commit3ecb233c9c121af3e68ece11705043b1dbef505b (patch)
treef55fad6a47e06cf2ac37d89eb463f3613e102138 /include/media/stagefright/foundation
parent34bbea84b8374f5d0ebe72b0be4418ace984fac0 (diff)
parente2b20987c2652a984d10520ef3542d50d91119c5 (diff)
downloadframeworks_av-3ecb233c9c121af3e68ece11705043b1dbef505b.zip
frameworks_av-3ecb233c9c121af3e68ece11705043b1dbef505b.tar.gz
frameworks_av-3ecb233c9c121af3e68ece11705043b1dbef505b.tar.bz2
Merge "An AHandler can now find its associated ALooper." into gingerbread
Diffstat (limited to 'include/media/stagefright/foundation')
-rw-r--r--include/media/stagefright/foundation/AHandler.h2
-rw-r--r--include/media/stagefright/foundation/ALooperRoster.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/foundation/AHandler.h b/include/media/stagefright/foundation/AHandler.h
index 9fccead..b008b54 100644
--- a/include/media/stagefright/foundation/AHandler.h
+++ b/include/media/stagefright/foundation/AHandler.h
@@ -34,6 +34,8 @@ struct AHandler : public RefBase {
return mID;
}
+ sp<ALooper> looper();
+
protected:
virtual void onMessageReceived(const sp<AMessage> &msg) = 0;
diff --git a/include/media/stagefright/foundation/ALooperRoster.h b/include/media/stagefright/foundation/ALooperRoster.h
index 1c6869c..8f6316e 100644
--- a/include/media/stagefright/foundation/ALooperRoster.h
+++ b/include/media/stagefright/foundation/ALooperRoster.h
@@ -34,6 +34,8 @@ struct ALooperRoster {
void postMessage(const sp<AMessage> &msg, int64_t delayUs = 0);
void deliverMessage(const sp<AMessage> &msg);
+ sp<ALooper> findLooper(ALooper::handler_id handlerID);
+
private:
struct HandlerInfo {
sp<ALooper> mLooper;