Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
package com.baidu.uaq.agent.android.tracing;
import com.baidu.uaq.agent.android.harvest.type.c;
import org.json.JSONArray;
import org.json.JSONException;
/* compiled from: Sample.java */
/* loaded from: classes.dex */
public class a extends c {
private static final com.baidu.uaq.agent.android.logging.a d = com.baidu.uaq.agent.android.logging.b.a();
private long b;
private b c;
/* compiled from: Sample.java */
/* renamed from: com.baidu.uaq.agent.android.tracing.a$a, reason: collision with other inner class name */
public enum EnumC0004a {
MEMORY,
CPU
}
public a(EnumC0004a enumC0004a) {
a(enumC0004a);
a(System.currentTimeMillis());
}
@Override // com.baidu.uaq.agent.android.harvest.type.a
public JSONArray a() {
JSONArray jSONArray = new JSONArray();
try {
jSONArray.put(0, this.b);
jSONArray.put(1, this.c.a());
} catch (JSONException e) {
d.a("Caught error while Sample asJSONArray: ", e);
com.baidu.uaq.agent.android.harvest.health.a.a(e);
}
return jSONArray;
}
public void a(EnumC0004a enumC0004a) {
}
public b e() {
return this.c;
}
public void a(long j) {
this.b = j;
}
public void a(double d2) {
this.c = new b(d2);
}
}

View File

@@ -0,0 +1,29 @@
package com.baidu.uaq.agent.android.tracing;
/* compiled from: SampleValue.java */
/* loaded from: classes.dex */
public class b {
private Double a = Double.valueOf(0.0d);
private boolean b;
public b(double d) {
a(d);
}
public Number a() {
return this.b ? b() : c();
}
public Double b() {
return this.a;
}
public Long c() {
return Long.valueOf(this.a.longValue());
}
public void a(double d) {
this.a = Double.valueOf(d);
this.b = true;
}
}