public zzca(Context context, String s, String s1, Map map) { zzvF = new LinkedHashMap(); zzvG = new HashMap(); mContext = context; zzqV = s; zzvB = s1; zzvH = new AtomicBoolean(false); zzvH.set(((Boolean)zzby.zzuS.get()).booleanValue()); if (zzvH.get()) { context = Environment.getExternalStorageDirectory(); if (context != null) { zzvI = new File(context, "sdk_csi_data.txt"); } } for (context = map.entrySet().iterator(); context.hasNext(); zzvF.put(s.getKey(), s.getValue())) { s = (java.util.Map.Entry)context.next(); } zzvD = new ArrayBlockingQueue(30); zzvE = Executors.newSingleThreadExecutor(); zzvE.execute(new _cls1()); zzvG.put("action", zzcd.zzvL); zzvG.put("ad_format", zzcd.zzvL); zzvG.put("e", zzcd.zzvM); }
public AppEventsLogger$AppEvent(Context paramContext, String paramString, Double paramDouble, Bundle paramBundle, boolean paramBoolean) { try { a(paramString); name = paramString; isImplicit = paramBoolean; jsonObject = new JSONObject(); jsonObject.put("_eventName", paramString); jsonObject.put("_logTime", System.currentTimeMillis() / 1000L); jsonObject.put("_ui", u.c(paramContext)); if (paramDouble != null) { jsonObject.put("_valueToSum", paramDouble.doubleValue()); } if (isImplicit) { jsonObject.put("_implicitlyLogged", "1"); } if (paramBundle == null) { break label268; } paramContext = paramBundle.keySet().iterator(); } catch (JSONException paramContext) { for (;;) { n.a(LoggingBehavior.APP_EVENTS, "AppEvents", "JSON encoding for app event failed: '%s'", new Object[] { paramContext.toString() }); jsonObject = null; return; jsonObject.put(paramString, paramDouble.toString()); } } catch (FacebookException paramContext) { n.a(LoggingBehavior.APP_EVENTS, "AppEvents", "Invalid app event name or parameter:", new Object[] { paramContext.toString() }); jsonObject = null; return; } if (paramContext.hasNext()) { paramString = (String)paramContext.next(); a(paramString); paramDouble = paramBundle.get(paramString); if ((!(paramDouble instanceof String)) && (!(paramDouble instanceof Number))) { throw new FacebookException(String.format("Parameter value '%s' for key '%s' should be a string or a numeric type.", new Object[] { paramDouble, paramString })); } } label268: while (isImplicit) {} n.a(LoggingBehavior.APP_EVENTS, "AppEvents", "Created app event '%s'", new Object[] { jsonObject.toString() }); }
public ct(Context paramContext, cr.c paramc, DataLayer paramDataLayer, s.a parama1, s.a parama2, ag paramag) { if (paramc == null) { throw new NullPointerException("resource cannot be null"); } atc = paramc; atj = new HashSet(paramc.qp()); aqn = paramDataLayer; atd = paramag; paramc = new ct.1(this); ath = new l().a(1048576, paramc); paramc = new ct.2(this); ati = new l().a(1048576, paramc); ate = new HashMap(); b(new i(paramContext)); b(new s(parama2)); b(new w(paramDataLayer)); b(new dj(paramContext, paramDataLayer)); atf = new HashMap(); c(new q()); c(new ad()); c(new ae()); c(new al()); c(new am()); c(new bd()); c(new be()); c(new ci()); c(new dc()); atg = new HashMap(); a(new b(paramContext)); a(new c(paramContext)); a(new e(paramContext)); a(new f(paramContext)); a(new g(paramContext)); a(new h(paramContext)); a(new m()); a(new p(atc.getVersion())); a(new s(parama1)); a(new u(paramDataLayer)); a(new z(paramContext)); a(new aa()); a(new ac()); a(new ah(this)); a(new an()); a(new ao()); a(new ax(paramContext)); a(new az()); a(new bc()); a(new bj()); a(new bl(paramContext)); a(new ca()); a(new cc()); a(new cf()); a(new ch()); a(new cj(paramContext)); a(new cu()); a(new cv()); a(new de()); a(new dk()); atk = new HashMap(); paramDataLayer = atj.iterator(); while (paramDataLayer.hasNext()) { parama1 = (cr.e)paramDataLayer.next(); if (paramag.pH()) { a(parama1.qx(), parama1.qy(), "add macro"); a(parama1.qC(), parama1.qz(), "remove macro"); a(parama1.qv(), parama1.qA(), "add tag"); a(parama1.qw(), parama1.qB(), "remove tag"); } int i = 0; while (i < parama1.qx().size()) { parama2 = (cr.a)parama1.qx().get(i); paramc = "Unknown"; paramContext = paramc; if (paramag.pH()) { paramContext = paramc; if (i < parama1.qy().size()) { paramContext = (String)parama1.qy().get(i); } } paramc = e(atk, h(parama2)); paramc.b(parama1); paramc.a(parama1, parama2); paramc.a(parama1, paramContext); i += 1; } i = 0; while (i < parama1.qC().size()) { parama2 = (cr.a)parama1.qC().get(i); paramc = "Unknown"; paramContext = paramc; if (paramag.pH()) { paramContext = paramc; if (i < parama1.qz().size()) { paramContext = (String)parama1.qz().get(i); } } paramc = e(atk, h(parama2)); paramc.b(parama1); paramc.b(parama1, parama2); paramc.b(parama1, paramContext); i += 1; } } paramContext = atc.qq().entrySet().iterator(); while (paramContext.hasNext()) { paramc = (Map.Entry)paramContext.next(); paramDataLayer = ((List)paramc.getValue()).iterator(); while (paramDataLayer.hasNext()) { parama1 = (cr.a)paramDataLayer.next(); if (!di.n((d.a)parama1.ql().get(com.google.android.gms.internal.b.dG.toString())).booleanValue()) { e(atk, (String)paramc.getKey()).i(parama1); } } } }