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 y implements Runnable { final /* synthetic */ String a; final /* synthetic */ com.tencent.wxop.stat.event.c b; final /* synthetic */ Context c; y(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); } map = StatServiceImpl.e; if (map.containsKey(this.b)) { statLogger3 = StatServiceImpl.q; statLogger3.warn("Duplicate CustomEvent key: " + this.b.toString() + ", trackCustomBeginKVEvent() 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); } } }