@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof UploadNotificationAction)) return false; UploadNotificationAction that = (UploadNotificationAction) o; if (icon != that.icon) return false; if (!title.equals(that.title)) return false; return actionIntent.equals(that.actionIntent); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AppUsageObserver that = (AppUsageObserver) o; return observerId == that.observerId && timeLimit == that.timeLimit && packageNames.equals(that.packageNames) && timeUnit == that.timeUnit && callbackIntent.equals(that.callbackIntent); }
@Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof ConnectionResult)) { return false; } else { ConnectionResult r = (ConnectionResult)o; return statusCode == r.statusCode && pendingIntent == null ? r.pendingIntent == null : pendingIntent.equals(r.pendingIntent) && TextUtils.equals(message, r.message); } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AppUsageObserver that = (AppUsageObserver) o; return observerId == that.observerId && timeLimit == that.timeLimit && packageNames.equals(that.packageNames) && timeUnit == that.timeUnit && callbackIntent.equals(that.callbackIntent); }
private static boolean isChromeToken(PendingIntent token, Context context) { // Fetch what should be a matching token. Context appContext = context.getApplicationContext(); PendingIntent pending = getAuthenticationToken(appContext); return pending.equals(token); }