Initial commit
This commit is contained in:
53
sources/com/baidu/uaq/agent/android/tracing/a.java
Normal file
53
sources/com/baidu/uaq/agent/android/tracing/a.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user