Initial commit
This commit is contained in:
48
sources/com/baidu/uaq/agent/android/harvest/bean/a.java
Normal file
48
sources/com/baidu/uaq/agent/android/harvest/bean/a.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
|
||||
/* compiled from: ApplicationInformation.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class a extends com.baidu.uaq.agent.android.harvest.type.c {
|
||||
private static final com.baidu.uaq.agent.android.logging.a e = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private String b;
|
||||
private String c;
|
||||
private String d;
|
||||
|
||||
public a(String str, String str2, String str3) {
|
||||
this.b = str;
|
||||
this.c = str2;
|
||||
this.d = str3;
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONArray a() {
|
||||
JSONArray jSONArray = new JSONArray();
|
||||
try {
|
||||
a(this.b);
|
||||
jSONArray.put(0, this.b);
|
||||
a(this.c);
|
||||
jSONArray.put(1, this.c);
|
||||
a(this.d);
|
||||
jSONArray.put(2, this.d);
|
||||
} catch (JSONException e2) {
|
||||
e.a("Caught error while ApplicationInformation asJSONArray", e2);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e2);
|
||||
}
|
||||
return jSONArray;
|
||||
}
|
||||
|
||||
public String e() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public String f() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public String g() {
|
||||
return this.b;
|
||||
}
|
||||
}
|
71
sources/com/baidu/uaq/agent/android/harvest/bean/b.java
Normal file
71
sources/com/baidu/uaq/agent/android/harvest/bean/b.java
Normal file
@@ -0,0 +1,71 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
|
||||
/* compiled from: DataToken.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class b extends com.baidu.uaq.agent.android.harvest.type.c {
|
||||
private static final com.baidu.uaq.agent.android.logging.a d = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private long b;
|
||||
private long c;
|
||||
|
||||
public b() {
|
||||
}
|
||||
|
||||
@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);
|
||||
} catch (JSONException e) {
|
||||
d.a("Caught error while DataToken asJSONArray: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
}
|
||||
return jSONArray;
|
||||
}
|
||||
|
||||
public void b(long j) {
|
||||
this.c = j;
|
||||
}
|
||||
|
||||
public long e() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || b.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
b bVar = (b) obj;
|
||||
return this.b == bVar.b && this.c == bVar.c;
|
||||
}
|
||||
|
||||
public long f() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
long j = this.b;
|
||||
int i = ((int) (j ^ (j >>> 32))) * 31;
|
||||
long j2 = this.c;
|
||||
return i + ((int) (j2 ^ (j2 >>> 32)));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DataToken{accountId=" + this.b + ", agentId=" + this.c + '}';
|
||||
}
|
||||
|
||||
public b(long j, long j2) {
|
||||
this.b = j;
|
||||
this.c = j2;
|
||||
}
|
||||
|
||||
public void a(long j) {
|
||||
this.b = j;
|
||||
}
|
||||
}
|
147
sources/com/baidu/uaq/agent/android/harvest/bean/c.java
Normal file
147
sources/com/baidu/uaq/agent/android/harvest/bean/c.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* compiled from: DeviceInformation.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class c extends com.baidu.uaq.agent.android.harvest.type.c {
|
||||
private static final com.baidu.uaq.agent.android.logging.a o = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private String b;
|
||||
private String c;
|
||||
private String d;
|
||||
private String e;
|
||||
private String f;
|
||||
private String g;
|
||||
private String h;
|
||||
private String i;
|
||||
private String j;
|
||||
private String k;
|
||||
private String l;
|
||||
private String m;
|
||||
private boolean n = false;
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONArray a() {
|
||||
JSONArray jSONArray = new JSONArray();
|
||||
try {
|
||||
a(this.b);
|
||||
jSONArray.put(0, this.b);
|
||||
a(this.c);
|
||||
jSONArray.put(1, this.c);
|
||||
a(this.d);
|
||||
a(this.e);
|
||||
jSONArray.put(2, this.d + " " + this.e);
|
||||
a(this.f);
|
||||
jSONArray.put(3, this.f);
|
||||
a(this.g);
|
||||
jSONArray.put(4, this.g);
|
||||
a(this.h);
|
||||
jSONArray.put(5, this.h);
|
||||
jSONArray.put(6, "");
|
||||
jSONArray.put(7, "");
|
||||
jSONArray.put(8, this.d);
|
||||
JSONObject jSONObject = new JSONObject();
|
||||
jSONObject.put("size", this.i);
|
||||
jSONObject.put("CUID", this.j);
|
||||
jSONArray.put(9, jSONObject);
|
||||
} catch (JSONException e) {
|
||||
o.a("Caught error while DeviceInformation asJSONArray: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
}
|
||||
return jSONArray;
|
||||
}
|
||||
|
||||
public void b(String str) {
|
||||
this.b = str;
|
||||
}
|
||||
|
||||
public void c(String str) {
|
||||
this.c = str;
|
||||
}
|
||||
|
||||
public void d(String str) {
|
||||
this.d = str;
|
||||
}
|
||||
|
||||
public void e(String str) {
|
||||
this.e = str;
|
||||
}
|
||||
|
||||
public void f(String str) {
|
||||
this.f = str;
|
||||
}
|
||||
|
||||
public void g(String str) {
|
||||
this.g = str;
|
||||
}
|
||||
|
||||
public void h(String str) {
|
||||
this.h = str;
|
||||
}
|
||||
|
||||
public void i(String str) {
|
||||
this.k = str;
|
||||
}
|
||||
|
||||
public void j(String str) {
|
||||
this.l = str;
|
||||
}
|
||||
|
||||
public void k(String str) {
|
||||
this.m = str;
|
||||
}
|
||||
|
||||
public String l() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public String m() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public String n() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
public String e() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public String f() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
public String g() {
|
||||
return this.m;
|
||||
}
|
||||
|
||||
public String h() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public String i() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
public boolean j() {
|
||||
return this.n;
|
||||
}
|
||||
|
||||
public String k() {
|
||||
return this.j;
|
||||
}
|
||||
|
||||
public void l(String str) {
|
||||
this.i = str;
|
||||
}
|
||||
|
||||
public void m(String str) {
|
||||
this.j = str;
|
||||
}
|
||||
|
||||
public void a(boolean z) {
|
||||
this.n = z;
|
||||
}
|
||||
}
|
55
sources/com/baidu/uaq/agent/android/harvest/bean/d.java
Normal file
55
sources/com/baidu/uaq/agent/android/harvest/bean/d.java
Normal file
@@ -0,0 +1,55 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
/* compiled from: EnvironmentInformation.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class d {
|
||||
private long a;
|
||||
private int b;
|
||||
private String c;
|
||||
private long[] d;
|
||||
|
||||
public d() {
|
||||
}
|
||||
|
||||
public void a(long j) {
|
||||
this.a = j;
|
||||
}
|
||||
|
||||
public String b() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public void b(String str) {
|
||||
}
|
||||
|
||||
public long[] c() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public int d() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public d(long j, int i, String str, String str2, long[] jArr) {
|
||||
this.a = j;
|
||||
this.b = i;
|
||||
this.c = str;
|
||||
this.d = jArr;
|
||||
}
|
||||
|
||||
public void a(int i) {
|
||||
this.b = i;
|
||||
}
|
||||
|
||||
public void a(String str) {
|
||||
this.c = str;
|
||||
}
|
||||
|
||||
public void a(long[] jArr) {
|
||||
this.d = jArr;
|
||||
}
|
||||
|
||||
public long a() {
|
||||
return this.a;
|
||||
}
|
||||
}
|
38
sources/com/baidu/uaq/agent/android/harvest/bean/f.java
Normal file
38
sources/com/baidu/uaq/agent/android/harvest/bean/f.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* compiled from: ResourceData.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class f extends com.baidu.uaq.agent.android.harvest.type.d {
|
||||
private static final com.baidu.uaq.agent.android.logging.a d = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private long b;
|
||||
private JSONObject c = new JSONObject();
|
||||
|
||||
public void a(String str, Object obj) {
|
||||
try {
|
||||
this.c.put(str, obj);
|
||||
} catch (JSONException e) {
|
||||
d.a("Caught error while addResourceValue: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONObject d() {
|
||||
JSONObject jSONObject = new JSONObject();
|
||||
try {
|
||||
jSONObject.put("timestamp", this.b);
|
||||
jSONObject.put("value", this.c);
|
||||
} catch (JSONException e) {
|
||||
d.a("Caught error while ResourceData asJSONObject: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
}
|
||||
return jSONObject;
|
||||
}
|
||||
|
||||
public void a(long j) {
|
||||
this.b = j;
|
||||
}
|
||||
}
|
67
sources/com/baidu/uaq/agent/android/harvest/bean/g.java
Normal file
67
sources/com/baidu/uaq/agent/android/harvest/bean/g.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import com.baidu.uaq.agent.android.UAQ;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* compiled from: ResourceDatas.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class g extends com.baidu.uaq.agent.android.harvest.type.d {
|
||||
private static final com.baidu.uaq.agent.android.logging.a c = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private static final UAQ d = UAQ.getInstance();
|
||||
private final List<f> b = new ArrayList();
|
||||
|
||||
public static void b(f fVar) {
|
||||
if (d.getConfig().isThingsMonitor()) {
|
||||
com.baidu.uaq.agent.android.g.a(fVar);
|
||||
}
|
||||
}
|
||||
|
||||
private List<f> f() {
|
||||
synchronized (this) {
|
||||
if (this.b.size() == 0) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList(this.b);
|
||||
this.b.clear();
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void a(f fVar) {
|
||||
this.b.add(fVar);
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONObject d() {
|
||||
JSONObject jSONObject = new JSONObject();
|
||||
try {
|
||||
jSONObject.put("cycle", 10);
|
||||
jSONObject.put("resourcearray", a());
|
||||
} catch (JSONException e) {
|
||||
c.a("Caught error while ResourceDatas asJSONObject: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
}
|
||||
return jSONObject;
|
||||
}
|
||||
|
||||
public int e() {
|
||||
return this.b.size();
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONArray a() {
|
||||
List<f> f = f();
|
||||
JSONArray jSONArray = new JSONArray();
|
||||
Iterator<f> it = f.iterator();
|
||||
while (it.hasNext()) {
|
||||
jSONArray.put(it.next().b());
|
||||
}
|
||||
return jSONArray;
|
||||
}
|
||||
}
|
27
sources/com/baidu/uaq/agent/android/harvest/bean/h.java
Normal file
27
sources/com/baidu/uaq/agent/android/harvest/bean/h.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* compiled from: Trace.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class h extends com.baidu.uaq.agent.android.harvest.type.d {
|
||||
private static final com.baidu.uaq.agent.android.logging.a c = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private String b;
|
||||
|
||||
public h(String str) {
|
||||
this.b = str;
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
/* renamed from: e, reason: merged with bridge method [inline-methods] */
|
||||
public JSONObject b() {
|
||||
try {
|
||||
return new JSONObject(this.b);
|
||||
} catch (JSONException e) {
|
||||
c.a("Caught error while Transmission asJSONObject: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
51
sources/com/baidu/uaq/agent/android/harvest/bean/i.java
Normal file
51
sources/com/baidu/uaq/agent/android/harvest/bean/i.java
Normal file
@@ -0,0 +1,51 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import com.baidu.uaq.agent.android.UAQ;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* compiled from: Traces.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class i extends com.baidu.uaq.agent.android.harvest.type.d {
|
||||
private static final UAQ d;
|
||||
private final List<h> b = new ArrayList();
|
||||
private com.baidu.uaq.agent.android.trace.a c;
|
||||
|
||||
static {
|
||||
com.baidu.uaq.agent.android.logging.b.a();
|
||||
d = UAQ.getInstance();
|
||||
}
|
||||
|
||||
public i(com.baidu.uaq.agent.android.trace.a aVar) {
|
||||
this.c = aVar;
|
||||
}
|
||||
|
||||
public static void b(h hVar) {
|
||||
if (d.getConfig().isEnableTrace()) {
|
||||
com.baidu.uaq.agent.android.g.a(hVar);
|
||||
}
|
||||
}
|
||||
|
||||
private List<h> e() {
|
||||
synchronized (this) {
|
||||
if (this.b.size() == 0) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList(this.b);
|
||||
this.b.clear();
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void a(h hVar) {
|
||||
this.b.add(hVar);
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONObject d() {
|
||||
List<h> e = e();
|
||||
return e.size() != 0 ? this.c.a(e) : new JSONObject();
|
||||
}
|
||||
}
|
23
sources/com/baidu/uaq/agent/android/harvest/bean/j.java
Normal file
23
sources/com/baidu/uaq/agent/android/harvest/bean/j.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* compiled from: Transmission.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class j extends com.baidu.uaq.agent.android.harvest.type.d {
|
||||
private static final com.baidu.uaq.agent.android.logging.a c = com.baidu.uaq.agent.android.logging.b.a();
|
||||
private String b;
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
/* renamed from: e, reason: merged with bridge method [inline-methods] */
|
||||
public JSONObject b() {
|
||||
try {
|
||||
return new JSONObject(this.b);
|
||||
} catch (JSONException e) {
|
||||
c.a("Caught error while Transmission asJSONObject: ", e);
|
||||
com.baidu.uaq.agent.android.harvest.health.a.a(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
40
sources/com/baidu/uaq/agent/android/harvest/bean/k.java
Normal file
40
sources/com/baidu/uaq/agent/android/harvest/bean/k.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.baidu.uaq.agent.android.harvest.bean;
|
||||
|
||||
import com.baidu.uaq.agent.android.UAQ;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import org.json.JSONArray;
|
||||
|
||||
/* compiled from: Transmissions.java */
|
||||
/* loaded from: classes.dex */
|
||||
public class k extends com.baidu.uaq.agent.android.harvest.type.c {
|
||||
private final List<j> b = new ArrayList();
|
||||
private com.baidu.uaq.agent.android.transmission.a c;
|
||||
|
||||
static {
|
||||
com.baidu.uaq.agent.android.logging.b.a();
|
||||
UAQ.getInstance();
|
||||
}
|
||||
|
||||
public k(com.baidu.uaq.agent.android.transmission.a aVar) {
|
||||
this.c = aVar;
|
||||
}
|
||||
|
||||
private List<j> e() {
|
||||
synchronized (this) {
|
||||
if (this.b.size() == 0) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList(this.b);
|
||||
this.b.clear();
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
||||
public JSONArray a() {
|
||||
List<j> e = e();
|
||||
return e.size() != 0 ? this.c.a(e) : new JSONArray();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user