Lines Matching defs:Message

27  * <p class="note">While the constructor of Message is public, the best way to get
28 * one of these is to call {@link #obtain Message.obtain()} or one of the
32 public final class Message implements Parcelable {
108 /*package*/ Message next;
111 private static Message sPool;
119 * Return a new Message instance from the global pool. Allows us to
122 public static Message obtain() {
125 Message m = sPool;
133 return new Message();
140 * @return A Message object from the global pool.
142 public static Message obtain(Message orig) {
143 Message m = obtain();
160 * Same as {@link #obtain()}, but sets the value for the <em>target</em> member on the Message returned.
161 * @param h Handler to assign to the returned Message object's <em>target</em> member.
162 * @return A Message object from the global pool.
164 public static Message obtain(Handler h) {
165 Message m = obtain();
173 * the Message that is returned.
174 * @param h Handler to assign to the returned Message object's <em>target</em> member.
176 * @return A Message object from the global pool.
178 public static Message obtain(Handler h, Runnable callback) {
179 Message m = obtain();
188 * <em>what</em> members on the Message.
191 * @return A Message object from the global pool.
193 public static Message obtain(Handler h, int what) {
194 Message m = obtain();
207 * @return A Message object from the global pool.
209 public static Message obtain(Handler h, int what, Object obj) {
210 Message m = obtain();
226 * @return A Message object from the global pool.
228 public static Message obtain(Handler h, int what, int arg1, int arg2) {
229 Message m = obtain();
247 * @return A Message object from the global pool.
249 public static Message obtain(Handler h, int what,
251 Message m = obtain();
269 * Return a Message instance to the global pool.
271 * You MUST NOT touch the Message after calling this function because it has
288 * Recycles a Message that may be in-use.
320 public void copyFrom(Message o) {
350 * {@link android.os.Handler#handleMessage(android.os.Message)
362 * the <em>target</em> {@link Handler} that is receiving this Message to
365 * {@link Handler#handleMessage(Message Handler.handleMessage())}.
412 * Sends this Message to the Handler specified by {@link #getTarget}.
473 /** Constructor (but the preferred way to get a Message is to call {@link #obtain() Message.obtain()}).
475 public Message() {
523 public static final Parcelable.Creator<Message> CREATOR
524 = new Parcelable.Creator<Message>() {
525 public Message createFromParcel(Parcel source) {
526 Message msg = Message.obtain();
531 public Message[] newArray(int size) {
532 return new Message[size];