Loading core/java/android/app/prediction/AppPredictionContext.java +9 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import java.util.Objects; /** * Class that provides contextual information about the environment in which the app prediction is * used, such as package name, UI in which the app targets are shown, and number of targets. Loading Loading @@ -98,6 +100,13 @@ public final class AppPredictionContext implements Parcelable { && mPackageName.equals(other.mPackageName); } @Override public int hashCode() { int hashCode = Objects.hash(mUiSurface, mPackageName); hashCode = 31 * hashCode + mPredictedTargetCount; return hashCode; } @Override public int describeContents() { return 0; Loading core/java/android/app/prediction/AppTarget.java +10 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,16 @@ public final class AppTarget implements Parcelable { && mRank == other.mRank; } @Override public int hashCode() { int hashCode = Objects.hash(mId, mPackageName, mClassName, mUser); if (mShortcutInfo != null) { hashCode = 31 * hashCode + mShortcutInfo.getId().hashCode(); } hashCode = 31 * hashCode + mRank; return hashCode; } @Override public int describeContents() { return 0; Loading core/java/android/app/prediction/AppTargetEvent.java +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Parcelable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Objects; /** * A representation of an app target event. Loading Loading @@ -115,6 +116,13 @@ public final class AppTargetEvent implements Parcelable { && mAction == other.mAction; } @Override public int hashCode() { int hashCode = Objects.hash(mTarget, mLocation); hashCode = 31 * hashCode + mAction; return hashCode; } @Override public int describeContents() { return 0; Loading Loading
core/java/android/app/prediction/AppPredictionContext.java +9 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import java.util.Objects; /** * Class that provides contextual information about the environment in which the app prediction is * used, such as package name, UI in which the app targets are shown, and number of targets. Loading Loading @@ -98,6 +100,13 @@ public final class AppPredictionContext implements Parcelable { && mPackageName.equals(other.mPackageName); } @Override public int hashCode() { int hashCode = Objects.hash(mUiSurface, mPackageName); hashCode = 31 * hashCode + mPredictedTargetCount; return hashCode; } @Override public int describeContents() { return 0; Loading
core/java/android/app/prediction/AppTarget.java +10 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,16 @@ public final class AppTarget implements Parcelable { && mRank == other.mRank; } @Override public int hashCode() { int hashCode = Objects.hash(mId, mPackageName, mClassName, mUser); if (mShortcutInfo != null) { hashCode = 31 * hashCode + mShortcutInfo.getId().hashCode(); } hashCode = 31 * hashCode + mRank; return hashCode; } @Override public int describeContents() { return 0; Loading
core/java/android/app/prediction/AppTargetEvent.java +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Parcelable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Objects; /** * A representation of an app target event. Loading Loading @@ -115,6 +116,13 @@ public final class AppTargetEvent implements Parcelable { && mAction == other.mAction; } @Override public int hashCode() { int hashCode = Objects.hash(mTarget, mLocation); hashCode = 31 * hashCode + mAction; return hashCode; } @Override public int describeContents() { return 0; Loading