Loading services/core/java/com/android/server/am/PendingIntentRecord.java +7 −18 Original line number Original line Diff line number Diff line Loading @@ -38,6 +38,7 @@ import com.android.server.am.ActivityStackSupervisor.ActivityContainer; import java.io.PrintWriter; import java.io.PrintWriter; import java.lang.ref.WeakReference; import java.lang.ref.WeakReference; import java.util.Objects; final class PendingIntentRecord extends IIntentSender.Stub { final class PendingIntentRecord extends IIntentSender.Stub { private static final String TAG = TAG_WITH_CLASS_NAME ? "PendingIntentRecord" : TAG_AM; private static final String TAG = TAG_WITH_CLASS_NAME ? "PendingIntentRecord" : TAG_AM; Loading Loading @@ -102,7 +103,7 @@ final class PendingIntentRecord extends IIntentSender.Stub { if (requestResolvedType != null) { if (requestResolvedType != null) { hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); } } hash = (ODD_PRIME_NUMBER*hash) + _p.hashCode(); hash = (ODD_PRIME_NUMBER*hash) + (_p != null ? _p.hashCode() : 0); hash = (ODD_PRIME_NUMBER*hash) + _t; hash = (ODD_PRIME_NUMBER*hash) + _t; hashCode = hash; hashCode = hash; //Slog.i(ActivityManagerService.TAG, this + " hashCode=0x" //Slog.i(ActivityManagerService.TAG, this + " hashCode=0x" Loading @@ -121,21 +122,15 @@ final class PendingIntentRecord extends IIntentSender.Stub { if (userId != other.userId){ if (userId != other.userId){ return false; return false; } } if (!packageName.equals(other.packageName)) { if (!Objects.equals(packageName, other.packageName)) { return false; return false; } } if (activity != other.activity) { if (activity != other.activity) { return false; return false; } } if (who != other.who) { if (!Objects.equals(who, other.who)) { if (who != null) { if (!who.equals(other.who)) { return false; return false; } } } else if (other.who != null) { return false; } } if (requestCode != other.requestCode) { if (requestCode != other.requestCode) { return false; return false; } } Loading @@ -148,15 +143,9 @@ final class PendingIntentRecord extends IIntentSender.Stub { return false; return false; } } } } if (requestResolvedType != other.requestResolvedType) { if (!Objects.equals(requestResolvedType, other.requestResolvedType)) { if (requestResolvedType != null) { if (!requestResolvedType.equals(other.requestResolvedType)) { return false; return false; } } } else if (other.requestResolvedType != null) { return false; } } if (flags != other.flags) { if (flags != other.flags) { return false; return false; } } Loading Loading
services/core/java/com/android/server/am/PendingIntentRecord.java +7 −18 Original line number Original line Diff line number Diff line Loading @@ -38,6 +38,7 @@ import com.android.server.am.ActivityStackSupervisor.ActivityContainer; import java.io.PrintWriter; import java.io.PrintWriter; import java.lang.ref.WeakReference; import java.lang.ref.WeakReference; import java.util.Objects; final class PendingIntentRecord extends IIntentSender.Stub { final class PendingIntentRecord extends IIntentSender.Stub { private static final String TAG = TAG_WITH_CLASS_NAME ? "PendingIntentRecord" : TAG_AM; private static final String TAG = TAG_WITH_CLASS_NAME ? "PendingIntentRecord" : TAG_AM; Loading Loading @@ -102,7 +103,7 @@ final class PendingIntentRecord extends IIntentSender.Stub { if (requestResolvedType != null) { if (requestResolvedType != null) { hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); } } hash = (ODD_PRIME_NUMBER*hash) + _p.hashCode(); hash = (ODD_PRIME_NUMBER*hash) + (_p != null ? _p.hashCode() : 0); hash = (ODD_PRIME_NUMBER*hash) + _t; hash = (ODD_PRIME_NUMBER*hash) + _t; hashCode = hash; hashCode = hash; //Slog.i(ActivityManagerService.TAG, this + " hashCode=0x" //Slog.i(ActivityManagerService.TAG, this + " hashCode=0x" Loading @@ -121,21 +122,15 @@ final class PendingIntentRecord extends IIntentSender.Stub { if (userId != other.userId){ if (userId != other.userId){ return false; return false; } } if (!packageName.equals(other.packageName)) { if (!Objects.equals(packageName, other.packageName)) { return false; return false; } } if (activity != other.activity) { if (activity != other.activity) { return false; return false; } } if (who != other.who) { if (!Objects.equals(who, other.who)) { if (who != null) { if (!who.equals(other.who)) { return false; return false; } } } else if (other.who != null) { return false; } } if (requestCode != other.requestCode) { if (requestCode != other.requestCode) { return false; return false; } } Loading @@ -148,15 +143,9 @@ final class PendingIntentRecord extends IIntentSender.Stub { return false; return false; } } } } if (requestResolvedType != other.requestResolvedType) { if (!Objects.equals(requestResolvedType, other.requestResolvedType)) { if (requestResolvedType != null) { if (!requestResolvedType.equals(other.requestResolvedType)) { return false; return false; } } } else if (other.requestResolvedType != null) { return false; } } if (flags != other.flags) { if (flags != other.flags) { return false; return false; } } Loading