Ejemplo n.º 1
0
 /**
  * Comparison operator on two Messenger objects, such that true is returned then they both point
  * to the same Handler.
  */
 public boolean equals(Object otherObj) {
   if (otherObj == null) {
     return false;
   }
   try {
     return mTarget.asBinder().equals(((Messenger) otherObj).mTarget.asBinder());
   } catch (ClassCastException e) {
   }
   return false;
 }
Ejemplo n.º 2
0
 public void writeToParcel(Parcel out, int flags) {
   out.writeStrongBinder(mTarget.asBinder());
 }
Ejemplo n.º 3
0
 public int hashCode() {
   return mTarget.asBinder().hashCode();
 }
Ejemplo n.º 4
0
 /**
  * Retrieve the IBinder that this Messenger is using to communicate with its associated Handler.
  *
  * @return Returns the IBinder backing this Messenger.
  */
 public IBinder getBinder() {
   return mTarget.asBinder();
 }