Loading api/current.txt +4 −4 Original line number Diff line number Diff line Loading @@ -16509,7 +16509,7 @@ package android.os { method public abstract android.os.IBinder asBinder(); } public class Looper { public final class Looper { method public void dump(android.util.Printer, java.lang.String); method public static android.os.Looper getMainLooper(); method public java.lang.Thread getThread(); Loading Loading @@ -16564,9 +16564,9 @@ package android.os { field public int what; } public class MessageQueue { method public final void addIdleHandler(android.os.MessageQueue.IdleHandler); method public final void removeIdleHandler(android.os.MessageQueue.IdleHandler); public final class MessageQueue { method public void addIdleHandler(android.os.MessageQueue.IdleHandler); method public void removeIdleHandler(android.os.MessageQueue.IdleHandler); } public static abstract interface MessageQueue.IdleHandler { core/java/android/os/Looper.java +3 −3 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ import android.util.PrefixPrinter; * } * }</pre> */ public class Looper { public final class Looper { private static final String TAG = "Looper"; // sThreadLocal.get() will return null unless you've called prepare(). Loading Loading @@ -223,7 +223,7 @@ public class Looper { * * @hide */ public final int postSyncBarrier() { public int postSyncBarrier() { return mQueue.enqueueSyncBarrier(SystemClock.uptimeMillis()); } Loading @@ -238,7 +238,7 @@ public class Looper { * * @hide */ public final void removeSyncBarrier(int token) { public void removeSyncBarrier(int token) { mQueue.removeSyncBarrier(token); } Loading core/java/android/os/MessageQueue.java +13 −13 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ import java.util.ArrayList; * <p>You can retrieve the MessageQueue for the current thread with * {@link Looper#myQueue() Looper.myQueue()}. */ public class MessageQueue { public final class MessageQueue { // True if the message queue can be quit. private final boolean mQuitAllowed; Loading Loading @@ -78,7 +78,7 @@ public class MessageQueue { * * @param handler The IdleHandler to be added. */ public final void addIdleHandler(IdleHandler handler) { public void addIdleHandler(IdleHandler handler) { if (handler == null) { throw new NullPointerException("Can't add a null IdleHandler"); } Loading @@ -94,7 +94,7 @@ public class MessageQueue { * * @param handler The IdleHandler to be removed. */ public final void removeIdleHandler(IdleHandler handler) { public void removeIdleHandler(IdleHandler handler) { synchronized (this) { mIdleHandlers.remove(handler); } Loading @@ -121,7 +121,7 @@ public class MessageQueue { } } final Message next() { Message next() { int pendingIdleHandlerCount = -1; // -1 only during first iteration int nextPollTimeoutMillis = 0; Loading Loading @@ -218,7 +218,7 @@ public class MessageQueue { } } final void quit() { void quit() { if (!mQuitAllowed) { throw new RuntimeException("Main thread not allowed to quit."); } Loading @@ -232,7 +232,7 @@ public class MessageQueue { nativeWake(mPtr); } final int enqueueSyncBarrier(long when) { int enqueueSyncBarrier(long when) { // Enqueue a new sync barrier token. // We don't need to wake the queue because the purpose of a barrier is to stall it. synchronized (this) { Loading @@ -259,7 +259,7 @@ public class MessageQueue { } } final void removeSyncBarrier(int token) { void removeSyncBarrier(int token) { // Remove a sync barrier token from the queue. // If the queue is no longer stalled by a barrier then wake it. final boolean needWake; Loading Loading @@ -288,7 +288,7 @@ public class MessageQueue { } } final boolean enqueueMessage(Message msg, long when) { boolean enqueueMessage(Message msg, long when) { if (msg.isInUse()) { throw new AndroidRuntimeException(msg + " This message is already in use."); } Loading Loading @@ -338,7 +338,7 @@ public class MessageQueue { return true; } final boolean hasMessages(Handler h, int what, Object object) { boolean hasMessages(Handler h, int what, Object object) { if (h == null) { return false; } Loading @@ -355,7 +355,7 @@ public class MessageQueue { } } final boolean hasMessages(Handler h, Runnable r, Object object) { boolean hasMessages(Handler h, Runnable r, Object object) { if (h == null) { return false; } Loading @@ -372,7 +372,7 @@ public class MessageQueue { } } final void removeMessages(Handler h, int what, Object object) { void removeMessages(Handler h, int what, Object object) { if (h == null) { return; } Loading Loading @@ -406,7 +406,7 @@ public class MessageQueue { } } final void removeMessages(Handler h, Runnable r, Object object) { void removeMessages(Handler h, Runnable r, Object object) { if (h == null || r == null) { return; } Loading Loading @@ -440,7 +440,7 @@ public class MessageQueue { } } final void removeCallbacksAndMessages(Handler h, Object object) { void removeCallbacksAndMessages(Handler h, Object object) { if (h == null) { return; } Loading Loading
api/current.txt +4 −4 Original line number Diff line number Diff line Loading @@ -16509,7 +16509,7 @@ package android.os { method public abstract android.os.IBinder asBinder(); } public class Looper { public final class Looper { method public void dump(android.util.Printer, java.lang.String); method public static android.os.Looper getMainLooper(); method public java.lang.Thread getThread(); Loading Loading @@ -16564,9 +16564,9 @@ package android.os { field public int what; } public class MessageQueue { method public final void addIdleHandler(android.os.MessageQueue.IdleHandler); method public final void removeIdleHandler(android.os.MessageQueue.IdleHandler); public final class MessageQueue { method public void addIdleHandler(android.os.MessageQueue.IdleHandler); method public void removeIdleHandler(android.os.MessageQueue.IdleHandler); } public static abstract interface MessageQueue.IdleHandler {
core/java/android/os/Looper.java +3 −3 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ import android.util.PrefixPrinter; * } * }</pre> */ public class Looper { public final class Looper { private static final String TAG = "Looper"; // sThreadLocal.get() will return null unless you've called prepare(). Loading Loading @@ -223,7 +223,7 @@ public class Looper { * * @hide */ public final int postSyncBarrier() { public int postSyncBarrier() { return mQueue.enqueueSyncBarrier(SystemClock.uptimeMillis()); } Loading @@ -238,7 +238,7 @@ public class Looper { * * @hide */ public final void removeSyncBarrier(int token) { public void removeSyncBarrier(int token) { mQueue.removeSyncBarrier(token); } Loading
core/java/android/os/MessageQueue.java +13 −13 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ import java.util.ArrayList; * <p>You can retrieve the MessageQueue for the current thread with * {@link Looper#myQueue() Looper.myQueue()}. */ public class MessageQueue { public final class MessageQueue { // True if the message queue can be quit. private final boolean mQuitAllowed; Loading Loading @@ -78,7 +78,7 @@ public class MessageQueue { * * @param handler The IdleHandler to be added. */ public final void addIdleHandler(IdleHandler handler) { public void addIdleHandler(IdleHandler handler) { if (handler == null) { throw new NullPointerException("Can't add a null IdleHandler"); } Loading @@ -94,7 +94,7 @@ public class MessageQueue { * * @param handler The IdleHandler to be removed. */ public final void removeIdleHandler(IdleHandler handler) { public void removeIdleHandler(IdleHandler handler) { synchronized (this) { mIdleHandlers.remove(handler); } Loading @@ -121,7 +121,7 @@ public class MessageQueue { } } final Message next() { Message next() { int pendingIdleHandlerCount = -1; // -1 only during first iteration int nextPollTimeoutMillis = 0; Loading Loading @@ -218,7 +218,7 @@ public class MessageQueue { } } final void quit() { void quit() { if (!mQuitAllowed) { throw new RuntimeException("Main thread not allowed to quit."); } Loading @@ -232,7 +232,7 @@ public class MessageQueue { nativeWake(mPtr); } final int enqueueSyncBarrier(long when) { int enqueueSyncBarrier(long when) { // Enqueue a new sync barrier token. // We don't need to wake the queue because the purpose of a barrier is to stall it. synchronized (this) { Loading @@ -259,7 +259,7 @@ public class MessageQueue { } } final void removeSyncBarrier(int token) { void removeSyncBarrier(int token) { // Remove a sync barrier token from the queue. // If the queue is no longer stalled by a barrier then wake it. final boolean needWake; Loading Loading @@ -288,7 +288,7 @@ public class MessageQueue { } } final boolean enqueueMessage(Message msg, long when) { boolean enqueueMessage(Message msg, long when) { if (msg.isInUse()) { throw new AndroidRuntimeException(msg + " This message is already in use."); } Loading Loading @@ -338,7 +338,7 @@ public class MessageQueue { return true; } final boolean hasMessages(Handler h, int what, Object object) { boolean hasMessages(Handler h, int what, Object object) { if (h == null) { return false; } Loading @@ -355,7 +355,7 @@ public class MessageQueue { } } final boolean hasMessages(Handler h, Runnable r, Object object) { boolean hasMessages(Handler h, Runnable r, Object object) { if (h == null) { return false; } Loading @@ -372,7 +372,7 @@ public class MessageQueue { } } final void removeMessages(Handler h, int what, Object object) { void removeMessages(Handler h, int what, Object object) { if (h == null) { return; } Loading Loading @@ -406,7 +406,7 @@ public class MessageQueue { } } final void removeMessages(Handler h, Runnable r, Object object) { void removeMessages(Handler h, Runnable r, Object object) { if (h == null || r == null) { return; } Loading Loading @@ -440,7 +440,7 @@ public class MessageQueue { } } final void removeCallbacksAndMessages(Handler h, Object object) { void removeCallbacksAndMessages(Handler h, Object object) { if (h == null) { return; } Loading