コード例 #1
0
 public void zzb(zzno paramzzno) {
   zzu.zzu(paramzzno);
   zzu.zzb(paramzzno.zzvU(), "Can't deliver not submitted measurement");
   zzu.zzbZ("deliver should be called on worker thread");
   Object localObject2 = paramzzno.zzvP();
   Object localObject1 = (zzip) ((zzno) localObject2).zze(zzip.class);
   if (TextUtils.isEmpty(((zzip) localObject1).zzhw())) {
     zzhQ().zzg(zzc((zzno) localObject2), "Ignoring measurement without type");
   }
   do {
     return;
     if (TextUtils.isEmpty(((zzip) localObject1).getClientId())) {
       zzhQ().zzg(zzc((zzno) localObject2), "Ignoring measurement without client id");
       return;
     }
   } while (this.zzIa.zzie().getAppOptOut());
   double d = ((zzip) localObject1).zzhB();
   if (zzam.zza(d, ((zzip) localObject1).getClientId())) {
     zzb("Sampling enabled. Hit sampled out. sampling rate", Double.valueOf(d));
     return;
   }
   localObject2 = zzc((zzno) localObject2);
   ((Map) localObject2).put("v", "1");
   ((Map) localObject2).put("_v", zze.zzJB);
   ((Map) localObject2).put("tid", this.zztd);
   if (this.zzIa.zzie().isDryRunEnabled()) {
     zzc("Dry run is enabled. GoogleAnalytics would have sent", zzz((Map) localObject2));
     return;
   }
   HashMap localHashMap = new HashMap();
   zzam.zzb(localHashMap, "uid", ((zzip) localObject1).getUserId());
   Object localObject3 = (zznx) paramzzno.zzd(zznx.class);
   if (localObject3 != null) {
     zzam.zzb(localHashMap, "an", ((zznx) localObject3).zzjL());
     zzam.zzb(localHashMap, "aid", ((zznx) localObject3).zzsK());
     zzam.zzb(localHashMap, "av", ((zznx) localObject3).zzjN());
     zzam.zzb(localHashMap, "aiid", ((zznx) localObject3).zzwi());
   }
   localObject3 = ((zzip) localObject1).getClientId();
   String str = this.zztd;
   if (!TextUtils.isEmpty(((zzip) localObject1).zzhx())) {}
   for (boolean bool = true; ; bool = false) {
     localObject1 = new zzh(0L, (String) localObject3, str, bool, 0L, localHashMap);
     ((Map) localObject2).put("_s", String.valueOf(zzhl().zza((zzh) localObject1)));
     paramzzno = new zzab(zzhQ(), (Map) localObject2, paramzzno.zzvS(), true);
     zzhl().zza(paramzzno);
     return;
   }
 }
コード例 #2
0
 public static Map<String, String> zzc(zzno paramzzno) {
   HashMap localHashMap = new HashMap();
   Object localObject1 = (zzio) paramzzno.zzd(zzio.class);
   Object localObject2;
   Object localObject3;
   if (localObject1 != null) {
     localObject1 = ((zzio) localObject1).zzhv().entrySet().iterator();
     while (((Iterator) localObject1).hasNext()) {
       localObject2 = (Map.Entry) ((Iterator) localObject1).next();
       localObject3 = zzh(((Map.Entry) localObject2).getValue());
       if (localObject3 != null) {
         localHashMap.put(((Map.Entry) localObject2).getKey(), localObject3);
       }
     }
   }
   localObject1 = (zzip) paramzzno.zzd(zzip.class);
   if (localObject1 != null) {
     zza(localHashMap, "t", ((zzip) localObject1).zzhw());
     zza(localHashMap, "cid", ((zzip) localObject1).getClientId());
     zza(localHashMap, "uid", ((zzip) localObject1).getUserId());
     zza(localHashMap, "sc", ((zzip) localObject1).zzhz());
     zza(localHashMap, "sf", ((zzip) localObject1).zzhB());
     zza(localHashMap, "ni", ((zzip) localObject1).zzhA());
     zza(localHashMap, "adid", ((zzip) localObject1).zzhx());
     zza(localHashMap, "ate", ((zzip) localObject1).zzhy());
   }
   localObject1 = (zzod) paramzzno.zzd(zzod.class);
   if (localObject1 != null) {
     zza(localHashMap, "cd", ((zzod) localObject1).zzwB());
     zza(localHashMap, "a", ((zzod) localObject1).zzbn());
     zza(localHashMap, "dr", ((zzod) localObject1).zzwE());
   }
   localObject1 = (zzob) paramzzno.zzd(zzob.class);
   if (localObject1 != null) {
     zza(localHashMap, "ec", ((zzob) localObject1).zzwy());
     zza(localHashMap, "ea", ((zzob) localObject1).getAction());
     zza(localHashMap, "el", ((zzob) localObject1).getLabel());
     zza(localHashMap, "ev", ((zzob) localObject1).getValue());
   }
   localObject1 = (zzny) paramzzno.zzd(zzny.class);
   if (localObject1 != null) {
     zza(localHashMap, "cn", ((zzny) localObject1).getName());
     zza(localHashMap, "cs", ((zzny) localObject1).getSource());
     zza(localHashMap, "cm", ((zzny) localObject1).zzwj());
     zza(localHashMap, "ck", ((zzny) localObject1).zzwk());
     zza(localHashMap, "cc", ((zzny) localObject1).getContent());
     zza(localHashMap, "ci", ((zzny) localObject1).getId());
     zza(localHashMap, "anid", ((zzny) localObject1).zzwl());
     zza(localHashMap, "gclid", ((zzny) localObject1).zzwm());
     zza(localHashMap, "dclid", ((zzny) localObject1).zzwn());
     zza(localHashMap, "aclid", ((zzny) localObject1).zzwo());
   }
   localObject1 = (zzoc) paramzzno.zzd(zzoc.class);
   if (localObject1 != null) {
     zza(localHashMap, "exd", ((zzoc) localObject1).getDescription());
     zza(localHashMap, "exf", ((zzoc) localObject1).zzwz());
   }
   localObject1 = (zzoe) paramzzno.zzd(zzoe.class);
   if (localObject1 != null) {
     zza(localHashMap, "sn", ((zzoe) localObject1).zzwI());
     zza(localHashMap, "sa", ((zzoe) localObject1).getAction());
     zza(localHashMap, "st", ((zzoe) localObject1).getTarget());
   }
   localObject1 = (zzof) paramzzno.zzd(zzof.class);
   if (localObject1 != null) {
     zza(localHashMap, "utv", ((zzof) localObject1).zzwJ());
     zza(localHashMap, "utt", ((zzof) localObject1).getTimeInMillis());
     zza(localHashMap, "utc", ((zzof) localObject1).zzwy());
     zza(localHashMap, "utl", ((zzof) localObject1).getLabel());
   }
   localObject1 = (zzim) paramzzno.zzd(zzim.class);
   if (localObject1 != null) {
     localObject1 = ((zzim) localObject1).zzht().entrySet().iterator();
     while (((Iterator) localObject1).hasNext()) {
       localObject2 = (Map.Entry) ((Iterator) localObject1).next();
       localObject3 = zzc.zzO(((Integer) ((Map.Entry) localObject2).getKey()).intValue());
       if (!TextUtils.isEmpty((CharSequence) localObject3)) {
         localHashMap.put(localObject3, ((Map.Entry) localObject2).getValue());
       }
     }
   }
   localObject1 = (zzin) paramzzno.zzd(zzin.class);
   if (localObject1 != null) {
     localObject1 = ((zzin) localObject1).zzhu().entrySet().iterator();
     while (((Iterator) localObject1).hasNext()) {
       localObject2 = (Map.Entry) ((Iterator) localObject1).next();
       localObject3 = zzc.zzQ(((Integer) ((Map.Entry) localObject2).getKey()).intValue());
       if (!TextUtils.isEmpty((CharSequence) localObject3)) {
         localHashMap.put(
             localObject3, zza(((Double) ((Map.Entry) localObject2).getValue()).doubleValue()));
       }
     }
   }
   localObject1 = (zzoa) paramzzno.zzd(zzoa.class);
   if (localObject1 != null) {
     localObject2 = ((zzoa) localObject1).zzwu();
     if (localObject2 != null) {
       localObject2 = ((ProductAction) localObject2).build().entrySet().iterator();
       while (((Iterator) localObject2).hasNext()) {
         localObject3 = (Map.Entry) ((Iterator) localObject2).next();
         if (((String) ((Map.Entry) localObject3).getKey()).startsWith("&")) {
           localHashMap.put(
               ((String) ((Map.Entry) localObject3).getKey()).substring(1),
               ((Map.Entry) localObject3).getValue());
         } else {
           localHashMap.put(
               ((Map.Entry) localObject3).getKey(), ((Map.Entry) localObject3).getValue());
         }
       }
     }
     localObject2 = ((zzoa) localObject1).zzwx().iterator();
     int i = 1;
     while (((Iterator) localObject2).hasNext()) {
       localHashMap.putAll(((Promotion) ((Iterator) localObject2).next()).zzaQ(zzc.zzU(i)));
       i += 1;
     }
     localObject2 = ((zzoa) localObject1).zzwv().iterator();
     i = 1;
     while (((Iterator) localObject2).hasNext()) {
       localHashMap.putAll(((Product) ((Iterator) localObject2).next()).zzaQ(zzc.zzS(i)));
       i += 1;
     }
     localObject1 = ((zzoa) localObject1).zzww().entrySet().iterator();
     i = 1;
     while (((Iterator) localObject1).hasNext()) {
       localObject2 = (Map.Entry) ((Iterator) localObject1).next();
       Object localObject4 = (List) ((Map.Entry) localObject2).getValue();
       localObject3 = zzc.zzX(i);
       localObject4 = ((List) localObject4).iterator();
       int j = 1;
       while (((Iterator) localObject4).hasNext()) {
         localHashMap.putAll(
             ((Product) ((Iterator) localObject4).next())
                 .zzaQ((String) localObject3 + zzc.zzV(j)));
         j += 1;
       }
       if (!TextUtils.isEmpty((CharSequence) ((Map.Entry) localObject2).getKey())) {
         localHashMap.put((String) localObject3 + "nm", ((Map.Entry) localObject2).getKey());
       }
       i += 1;
     }
   }
   localObject1 = (zznz) paramzzno.zzd(zznz.class);
   if (localObject1 != null) {
     zza(localHashMap, "ul", ((zznz) localObject1).getLanguage());
     zza(localHashMap, "sd", ((zznz) localObject1).zzwp());
     zza(localHashMap, "sr", ((zznz) localObject1).zzwq(), ((zznz) localObject1).zzwr());
     zza(localHashMap, "vp", ((zznz) localObject1).zzws(), ((zznz) localObject1).zzwt());
   }
   paramzzno = (zznx) paramzzno.zzd(zznx.class);
   if (paramzzno != null) {
     zza(localHashMap, "an", paramzzno.zzjL());
     zza(localHashMap, "aid", paramzzno.zzsK());
     zza(localHashMap, "aiid", paramzzno.zzwi());
     zza(localHashMap, "av", paramzzno.zzjN());
   }
   return localHashMap;
 }