Lines Matching defs:IdleHandler
34 private final ArrayList<IdleHandler> mIdleHandlers = new ArrayList<IdleHandler>();
35 private IdleHandler[] mPendingIdleHandlers;
54 public static interface IdleHandler {
66 * Add a new {@link IdleHandler} to this message queue. This may be
68 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is
73 * @param handler The IdleHandler to be added.
75 public final void addIdleHandler(IdleHandler handler) {
77 throw new NullPointerException("Can't add a null IdleHandler");
85 * Remove an {@link IdleHandler} from the queue that was previously added
89 * @param handler The IdleHandler to be removed.
91 public final void removeIdleHandler(IdleHandler handler) {
151 mPendingIdleHandlers = new IdleHandler[Math.max(pendingIdleHandlerCount, 4)];
159 final IdleHandler idler = mPendingIdleHandlers[i];
166 Log.wtf("MessageQueue", "IdleHandler threw exception", t);