diff options
| author | Jeff Brown <jeffbrown@google.com> | 2013-04-08 23:59:24 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-08 23:59:24 +0000 |
| commit | 3a2854bcee08e3af3ca1b042c1fef6ca68f8c70a (patch) | |
| tree | a2b13b8b6949490d856017075f37609df2768e80 /core/java/android/os/Looper.java | |
| parent | c4ad3cb07ed76c5697c60285456d9c49675174d9 (diff) | |
| parent | f9e989d5f09e72f5c9a59d713521f37d3fdd93dd (diff) | |
| download | frameworks_base-3a2854bcee08e3af3ca1b042c1fef6ca68f8c70a.zip frameworks_base-3a2854bcee08e3af3ca1b042c1fef6ca68f8c70a.tar.gz frameworks_base-3a2854bcee08e3af3ca1b042c1fef6ca68f8c70a.tar.bz2 | |
Merge "Queues, queues, queues and input." into jb-mr2-dev
Diffstat (limited to 'core/java/android/os/Looper.java')
| -rw-r--r-- | core/java/android/os/Looper.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/Looper.java b/core/java/android/os/Looper.java index 38f4d5e..363a1bf 100644 --- a/core/java/android/os/Looper.java +++ b/core/java/android/os/Looper.java @@ -192,6 +192,14 @@ public final class Looper { } /** + * Returns true if the current thread is this looper's thread. + * @hide + */ + public boolean isCurrentThread() { + return Thread.currentThread() == mThread; + } + + /** * Quits the looper. * * Causes the {@link #loop} method to terminate as soon as possible. |
