得物.apk(点击下载) / HeapAnalysisFailure.java
package com.shizhuang.duapp.libs.duapm2.shark;
import a.f;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.io.File;
import java.lang.reflect.Field;
import kotlin.Metadata;
import kotlin.TypeCastException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import zm.e;
@Metadata(bv = {}, d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0010\b\b\u0018\u0000 \"2\u00020\u0001:\u0001#B'\u0012\u0006\u0010\u000b\u001a\u00020\u0004\u0012\u0006\u0010\f\u001a\u00020\u0006\u0012\u0006\u0010\r\u001a\u00020\u0006\u0012\u0006\u0010\u000e\u001a\u00020\t¢\u0006\u0004\b \u0010!J\b\u0010\u0003\u001a\u00020\u0002H\u0016J\t\u0010\u0005\u001a\u00020\u0004HÆ\u0003J\t\u0010\u0007\u001a\u00020\u0006HÆ\u0003J\t\u0010\b\u001a\u00020\u0006HÆ\u0003J\t\u0010\n\u001a\u00020\tHÆ\u0003J1\u0010\u000f\u001a\u00020\u00002\b\b\u0002\u0010\u000b\u001a\u00020\u00042\b\b\u0002\u0010\f\u001a\u00020\u00062\b\b\u0002\u0010\r\u001a\u00020\u00062\b\b\u0002\u0010\u000e\u001a\u00020\tHÆ\u0001J\t\u0010\u0011\u001a\u00020\u0010HÖ\u0001J\u0013\u0010\u0015\u001a\u00020\u00142\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012HÖ\u0003R\u001a\u0010\u000b\u001a\u00020\u00048\u0016X\u0004¢\u0006\f\n\u0004\b\u000b\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018R\u001a\u0010\f\u001a\u00020\u00068\u0016X\u0004¢\u0006\f\n\u0004\b\f\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\u001a\u0010\r\u001a\u00020\u00068\u0016X\u0004¢\u0006\f\n\u0004\b\r\u0010\u0019\u001a\u0004\b\u001c\u0010\u001bR\u0017\u0010\u000e\u001a\u00020\t8\u0006¢\u0006\f\n\u0004\b\u000e\u0010\u001d\u001a\u0004\b\u001e\u0010\u001f¨\u0006$"}, d2 = {"Lcom/shizhuang/duapp/libs/duapm2/shark/HeapAnalysisFailure;", "Lcom/shizhuang/duapp/libs/duapm2/shark/HeapAnalysis;", "", "toString", "Ljava/io/File;", "component1", "", "component2", "component3", "Lcom/shizhuang/duapp/libs/duapm2/shark/HeapAnalysisException;", "component4", "heapDumpFile", "createdAtTimeMillis", "analysisDurationMillis", "exception", "copy", "", "hashCode", "", "other", "", "equals", "Ljava/io/File;", "getHeapDumpFile", "()Ljava/io/File;", "J", "getCreatedAtTimeMillis", "()J", "getAnalysisDurationMillis", "Lcom/shizhuang/duapp/libs/duapm2/shark/HeapAnalysisException;", "getException", "()Lcom/shizhuang/duapp/libs/duapm2/shark/HeapAnalysisException;", "<init>", "(Ljava/io/File;JJLcom/shizhuang/duapp/libs/duapm2/shark/HeapAnalysisException;)V", "Companion", "a", "shark"}, k = 1, mv = {1, 4, 0})
/* compiled from: HeapAnalysis.kt */
public final class HeapAnalysisFailure extends HeapAnalysis {
public static final a Companion = new a(null);
public static ChangeQuickRedirect changeQuickRedirect = null;
private static final long serialVersionUID = 8483254400637792414L;
private final long analysisDurationMillis;
private final long createdAtTimeMillis;
@NotNull
private final HeapAnalysisException exception;
@NotNull
private final File heapDumpFile;
/* compiled from: HeapAnalysis.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public HeapAnalysisFailure(@NotNull File file, long j, long j12, @NotNull HeapAnalysisException heapAnalysisException) {
super(null);
this.heapDumpFile = file;
this.createdAtTimeMillis = j;
this.analysisDurationMillis = j12;
this.exception = heapAnalysisException;
}
public static /* synthetic */ HeapAnalysisFailure copy$default(HeapAnalysisFailure heapAnalysisFailure, File file, long j, long j12, HeapAnalysisException heapAnalysisException, int i, Object obj) {
if ((i & 1) != 0) {
file = heapAnalysisFailure.getHeapDumpFile();
}
if ((i & 2) != 0) {
j = heapAnalysisFailure.getCreatedAtTimeMillis();
}
if ((i & 4) != 0) {
j12 = heapAnalysisFailure.getAnalysisDurationMillis();
}
if ((i & 8) != 0) {
heapAnalysisException = heapAnalysisFailure.exception;
}
return heapAnalysisFailure.copy(file, j, j12, heapAnalysisException);
}
@NotNull
public final File component1() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30627, new Class[0], File.class);
return proxy.isSupported ? (File) proxy.result : getHeapDumpFile();
}
public final long component2() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30628, new Class[0], Long.TYPE);
return proxy.isSupported ? ((Long) proxy.result).longValue() : getCreatedAtTimeMillis();
}
public final long component3() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30629, new Class[0], Long.TYPE);
return proxy.isSupported ? ((Long) proxy.result).longValue() : getAnalysisDurationMillis();
}
@NotNull
public final HeapAnalysisException component4() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30630, new Class[0], HeapAnalysisException.class);
return proxy.isSupported ? (HeapAnalysisException) proxy.result : this.exception;
}
@NotNull
public final HeapAnalysisFailure copy(@NotNull File file, long j, long j12, @NotNull HeapAnalysisException heapAnalysisException) {
Object[] objArr = {file, new Long(j), new Long(j12), heapAnalysisException};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Long.TYPE;
PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 30631, new Class[]{File.class, cls, cls, HeapAnalysisException.class}, HeapAnalysisFailure.class);
return proxy.isSupported ? (HeapAnalysisFailure) proxy.result : new HeapAnalysisFailure(file, j, j12, heapAnalysisException);
}
public boolean equals(@Nullable Object obj) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 30633, new Class[]{Object.class}, Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
if (this != obj) {
if (obj instanceof HeapAnalysisFailure) {
HeapAnalysisFailure heapAnalysisFailure = (HeapAnalysisFailure) obj;
if (!Intrinsics.areEqual(getHeapDumpFile(), heapAnalysisFailure.getHeapDumpFile()) || getCreatedAtTimeMillis() != heapAnalysisFailure.getCreatedAtTimeMillis() || getAnalysisDurationMillis() != heapAnalysisFailure.getAnalysisDurationMillis() || !Intrinsics.areEqual(this.exception, heapAnalysisFailure.exception)) {
return false;
}
}
return false;
}
return true;
}
@Override // com.shizhuang.duapp.libs.duapm2.shark.HeapAnalysis
public long getAnalysisDurationMillis() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30625, new Class[0], Long.TYPE);
return proxy.isSupported ? ((Long) proxy.result).longValue() : this.analysisDurationMillis;
}
@Override // com.shizhuang.duapp.libs.duapm2.shark.HeapAnalysis
public long getCreatedAtTimeMillis() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30624, new Class[0], Long.TYPE);
return proxy.isSupported ? ((Long) proxy.result).longValue() : this.createdAtTimeMillis;
}
@NotNull
public final HeapAnalysisException getException() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30626, new Class[0], HeapAnalysisException.class);
return proxy.isSupported ? (HeapAnalysisException) proxy.result : this.exception;
}
@Override // com.shizhuang.duapp.libs.duapm2.shark.HeapAnalysis
@NotNull
public File getHeapDumpFile() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30623, new Class[0], File.class);
return proxy.isSupported ? (File) proxy.result : this.heapDumpFile;
}
public int hashCode() {
int i = 0;
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30632, new Class[0], Integer.TYPE);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
File heapDumpFile2 = getHeapDumpFile();
int hashCode = heapDumpFile2 != null ? heapDumpFile2.hashCode() : 0;
long createdAtTimeMillis2 = getCreatedAtTimeMillis();
long analysisDurationMillis2 = getAnalysisDurationMillis();
int i3 = ((((hashCode * 31) + ((int) (createdAtTimeMillis2 ^ (createdAtTimeMillis2 >>> 32)))) * 31) + ((int) (analysisDurationMillis2 ^ (analysisDurationMillis2 >>> 32)))) * 31;
HeapAnalysisException heapAnalysisException = this.exception;
if (heapAnalysisException != null) {
i = heapAnalysisException.hashCode();
}
return i3 + i;
}
@NotNull
public String toString() {
int i;
String str;
String str2;
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 30622, new Class[0], String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
StringBuilder h12 = f.h("====================================\nHEAP ANALYSIS FAILED\n\nYou can report this failure at https://github.com/square/leakcanary/issues\nPlease provide the stacktrace, metadata and the heap dump file.\n====================================\nSTACKTRACE\n\n");
h12.append(this.exception);
h12.append("====================================\nMETADATA\n\nBuild.VERSION.SDK_INT: ");
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], null, e.changeQuickRedirect, true, 30634, new Class[0], Integer.TYPE);
if (proxy2.isSupported) {
i = ((Integer) proxy2.result).intValue();
} else {
try {
Object obj = Class.forName("android.os.Build$VERSION").getDeclaredField("SDK_INT").get(null);
if (obj != null) {
i = ((Integer) obj).intValue();
} else {
throw new TypeCastException("null cannot be cast to non-null type kotlin.Int");
}
} catch (Exception unused) {
i = -1;
}
}
h12.append(i);
h12.append("\nBuild.MANUFACTURER: ");
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], null, e.changeQuickRedirect, true, 30635, new Class[0], String.class);
String str3 = "Unknown";
if (proxy3.isSupported) {
str = (String) proxy3.result;
} else {
try {
Object obj2 = Class.forName("android.os.Build").getDeclaredField("MANUFACTURER").get(null);
if (obj2 != null) {
str = (String) obj2;
} else {
throw new TypeCastException("null cannot be cast to non-null type kotlin.String");
}
} catch (Exception unused2) {
str = str3;
}
}
h12.append(str);
h12.append("\nLeakCanary version: ");
PatchProxyResult proxy4 = PatchProxy.proxy(new Object[0], null, e.changeQuickRedirect, true, 30636, new Class[0], String.class);
if (proxy4.isSupported) {
str2 = (String) proxy4.result;
} else {
try {
Field declaredField = Class.forName("leakcanary.internal.InternalLeakCanary").getDeclaredField("version");
declaredField.setAccessible(true);
Object obj3 = declaredField.get(null);
if (obj3 != null) {
str3 = (String) obj3;
str2 = str3;
} else {
throw new TypeCastException("null cannot be cast to non-null type kotlin.String");
}
} catch (Exception unused3) {
}
}
h12.append(str2);
h12.append("\nAnalysis duration: ");
h12.append(getAnalysisDurationMillis());
h12.append(" ms\nHeap dump file path: ");
h12.append(getHeapDumpFile().getAbsolutePath());
h12.append("\nHeap dump timestamp: ");
h12.append(getCreatedAtTimeMillis());
h12.append("\n====================================");
return h12.toString();
}
}