Lines Matching defs:Messenger

22  * processes, by creating a Messenger pointing to a Handler in one process,
23 * and handing that Messenger to another process.
25 public final class Messenger implements Parcelable {
29 * Create a new Messenger pointing to the given Handler. Any Message
30 * objects sent through this Messenger will appear in the Handler as if
36 public Messenger(Handler target) {
41 * Send a Message to this Messenger's Handler.
54 * Retrieve the IBinder that this Messenger is using to communicate with
57 * @return Returns the IBinder backing this Messenger.
64 * Comparison operator on two Messenger objects, such that true
72 return mTarget.asBinder().equals(((Messenger)otherObj)
91 public static final Parcelable.Creator<Messenger> CREATOR
92 = new Parcelable.Creator<Messenger>() {
93 public Messenger createFromParcel(Parcel in) {
95 return target != null ? new Messenger(target) : null;
98 public Messenger[] newArray(int size) {
99 return new Messenger[size];
104 * Convenience function for writing either a Messenger or null pointer to
108 * @param messenger The Messenger to write, or null.
109 * @param out Where to write the Messenger.
111 public static void writeMessengerOrNullToParcel(Messenger messenger,
118 * Convenience function for reading either a Messenger or null pointer from
119 * a Parcel. You must have previously written the Messenger with
122 * @param in The Parcel containing the written Messenger.
124 * @return Returns the Messenger read from the Parcel, or null if null had
127 public static Messenger readMessengerOrNullFromParcel(Parcel in) {
129 return b != null ? new Messenger(b) : null;
133 * Create a Messenger from a raw IBinder, which had previously been
136 * @param target The IBinder this Messenger should communicate with.
138 public Messenger(IBinder target) {