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 {
94 /*package*/ Message next;
97 private static Message sPool;
103 * Return a new Message instance from the global pool. Allows us to
106 public static Message obtain() {
109 Message m = sPool;
116 return new Message();
123 * @return A Message object from the global pool.
125 public static Message obtain(Message orig) {
126 Message m = obtain();
142 * Same as {@link #obtain()}, but sets the value for the <em>target</em> member on the Message returned.
143 * @param h Handler to assign to the returned Message object's <em>target</em> member.
144 * @return A Message object from the global pool.
146 public static Message obtain(Handler h) {
147 Message m = obtain();
155 * the Message that is returned.
156 * @param h Handler to assign to the returned Message object's <em>target</em> member.
158 * @return A Message object from the global pool.
160 public static Message obtain(Handler h, Runnable callback) {
161 Message m = obtain();
170 * <em>what</em> members on the Message.
173 * @return A Message object from the global pool.
175 public static Message obtain(Handler h, int what) {
176 Message m = obtain();
189 * @return A Message object from the global pool.
191 public static Message obtain(Handler h, int what, Object obj) {
192 Message m = obtain();
208 * @return A Message object from the global pool.
210 public static Message obtain(Handler h, int what, int arg1, int arg2) {
211 Message m = obtain();
229 * @return A Message object from the global pool.
231 public static Message obtain(Handler h, int what,
233 Message m = obtain();
244 * Return a Message instance to the global pool. You MUST NOT touch
245 * the Message after calling this function -- it has effectively been
265 public void copyFrom(Message o) {
294 * {@link android.os.Handler#handleMessage(android.os.Message)
306 * the <em>target</em> {@link Handler} that is receiving this Message to
309 * {@link Handler#handleMessage(Message Handler.handleMessage())}.
356 * Sends this Message to the Handler specified by {@link #getTarget}.
426 /** Constructor (but the preferred way to get a Message is to call {@link #obtain() Message.obtain()}).
428 public Message() {
464 public static final Parcelable.Creator<Message> CREATOR
465 = new Parcelable.Creator<Message>() {
466 public Message createFromParcel(Parcel source) {
467 Message msg = Message.obtain();
472 public Message[] newArray(int size) {
473 return new Message[size];