Lines Matching refs:Message

25  * A Handler allows you to send and process {@link Message} and Runnable
44 * a {@link Message} object containing a bundle of data that will be
61 * your new thread. The given Runnable or Message will then be scheduled
77 * @param msg A {@link android.os.Message Message} object
81 public boolean handleMessage(Message msg);
87 public void handleMessage(Message msg) {
93 public void dispatchMessage(Message msg) {
162 * @param async If true, the handler calls {@link Message#setAsynchronous(boolean)} for
163 * each {@link Message} that is sent to it or {@link Runnable} that is posted to it.
183 * @param async If true, the handler calls {@link Message#setAsynchronous(boolean)} for
184 * each {@link Message} that is sent to it or {@link Runnable} that is posted to it.
222 * @param async If true, the handler calls {@link Message#setAsynchronous(boolean)} for
223 * each {@link Message} that is sent to it or {@link Runnable} that is posted to it.
235 public String getTraceName(Message message) {
254 public String getMessageName(Message message) {
262 * Returns a new {@link android.os.Message Message} from the global message pool. More efficient than
263 * creating and allocating new instances. The retrieved message has its handler set to this instance (Message.target == this).
264 * If you don't want that facility, just call Message.obtain() instead.
266 public final Message obtainMessage()
268 return Message.obtain(this);
272 * Same as {@link #obtainMessage()}, except that it also sets the what member of the returned Message.
274 * @param what Value to assign to the returned Message.what field.
275 * @return A Message from the global message pool.
277 public final Message obtainMessage(int what)
279 return Message.obtain(this, what);
285 * of the returned Message.
287 * @param what Value to assign to the returned Message.what field.
288 * @param obj Value to assign to the returned Message.obj field.
289 * @return A Message from the global message pool.
291 public final Message obtainMessage(int what, Object obj)
293 return Message.obtain(this, what, obj);
299 * Message.
300 * @param what Value to assign to the returned Message.what field.
301 * @param arg1 Value to assign to the returned Message.arg1 field.
302 * @param arg2 Value to assign to the returned Message.arg2 field.
303 * @return A Message from the global message pool.
305 public final Message obtainMessage(int what, int arg1, int arg2)
307 return Message.obtain(this, what, arg1, arg2);
313 * returned Message.
314 * @param what Value to assign to the returned Message.what field.
315 * @param arg1 Value to assign to the returned Message.arg1 field.
316 * @param arg2 Value to assign to the returned Message.arg2 field.
317 * @param obj Value to assign to the returned Message.obj field.
318 * @return A Message from the global message pool.
320 public final Message obtainMessage(int what, int arg1, int arg2, Object obj)
322 return Message.obtain(this, what, arg1, arg2, obj);
517 public final boolean sendMessage(Message msg)
523 * Sends a Message containing only the what value.
535 * Sends a Message containing only the what value, to be delivered
537 * @see #sendMessageDelayed(android.os.Message, long)
544 Message msg = Message.obtain();
550 * Sends a Message containing only the what value, to be delivered
552 * @see #sendMessageAtTime(android.os.Message, long)
560 Message msg = Message.obtain();
577 public final boolean sendMessageDelayed(Message msg, long delayMillis)
604 public boolean sendMessageAtTime(Message msg, long uptimeMillis) {
627 public final boolean sendMessageAtFrontOfQueue(Message msg) {
638 private boolean enqueueMessage(MessageQueue queue, Message msg, long uptimeMillis) {
731 public void send(Message msg) {
737 private static Message getPostMessage(Runnable r) {
738 Message m = Message.obtain();
743 private static Message getPostMessage(Runnable r, Object token) {
744 Message m = Message.obtain();
750 private static void handleCallback(Message message) {