jimu-decompiled/sources/com/tencent/wxop/stat/v.java
2025-05-13 19:24:51 +02:00

60 lines
2.1 KiB
Java

package com.tencent.wxop.stat;
import android.content.Context;
import com.tencent.wxop.stat.common.StatLogger;
import java.util.Map;
/* loaded from: classes.dex */
final class v implements Runnable {
final /* synthetic */ String a;
final /* synthetic */ com.tencent.wxop.stat.event.c b;
final /* synthetic */ Context c;
v(String str, com.tencent.wxop.stat.event.c cVar, Context context) {
this.a = str;
this.b = cVar;
this.c = context;
}
@Override // java.lang.Runnable
public final void run() {
StatLogger statLogger;
Map map;
Map map2;
StatLogger statLogger2;
Map map3;
StatLogger statLogger3;
StatLogger statLogger4;
StatLogger statLogger5;
try {
if (StatServiceImpl.a(this.a)) {
statLogger5 = StatServiceImpl.q;
statLogger5.error("The event_id of StatService.trackCustomBeginEvent() can not be null or empty.");
return;
}
if (StatConfig.isDebugEnable()) {
statLogger4 = StatServiceImpl.q;
statLogger4.i("add begin key:" + this.b.toString());
}
map = StatServiceImpl.e;
if (map.containsKey(this.b)) {
statLogger3 = StatServiceImpl.q;
statLogger3.error("Duplicate CustomEvent key: " + this.b.toString() + ", trackCustomBeginEvent() repeated?");
return;
}
map2 = StatServiceImpl.e;
if (map2.size() <= StatConfig.getMaxParallelTimmingEvents()) {
map3 = StatServiceImpl.e;
map3.put(this.b, Long.valueOf(System.currentTimeMillis()));
} else {
statLogger2 = StatServiceImpl.q;
statLogger2.error("The number of timedEvent exceeds the maximum value " + Integer.toString(StatConfig.getMaxParallelTimmingEvents()));
}
} catch (Throwable th) {
statLogger = StatServiceImpl.q;
statLogger.e(th);
StatServiceImpl.a(this.c, th);
}
}
}