iv.java 3.33 KB
import com.google.android.gms.internal.zzaj.zzc;
import com.google.android.gms.internal.zzaj.zzd;
import com.google.android.gms.internal.zzaj.zzi;
import com.google.android.gms.internal.zzak.zza;
import com.google.android.gms.tagmanager.DataLayer;
import com.google.android.gms.tagmanager.zzbo;
import com.google.android.gms.tagmanager.zzdl;
import java.util.Map;

final class iv
{
  private static void a(DataLayer paramDataLayer, zzaj.zzd paramzzd)
  {
    zzaj.zzc[] arrayOfzzc = paramzzd.zzkB;
    int j = arrayOfzzc.length;
    int i = 0;
    while (i < j)
    {
      zzaj.zzc localzzc = arrayOfzzc[i];
      if (localzzc.zzaB == null)
      {
        zzbo.zzbh("GaExperimentRandom: No key");
        i += 1;
      }
      else
      {
        Object localObject = paramDataLayer.get(localzzc.zzaB);
        if (!(localObject instanceof Number))
        {
          paramzzd = null;
          label64:
          long l1 = localzzc.zzkv;
          long l2 = localzzc.zzkw;
          if ((!localzzc.zzkx) || (paramzzd == null) || (paramzzd.longValue() < l1) || (paramzzd.longValue() > l2))
          {
            if (l1 > l2) {
              break label236;
            }
            localObject = Long.valueOf(Math.round(Math.random() * (l2 - l1) + l1));
          }
          paramDataLayer.a(localzzc.zzaB);
          paramzzd = DataLayer.a(localzzc.zzaB, localObject);
          if (localzzc.zzky > 0L)
          {
            if (paramzzd.containsKey("gtm")) {
              break label244;
            }
            paramzzd.put("gtm", DataLayer.mapOf(new Object[] { "lifetime", Long.valueOf(localzzc.zzky) }));
          }
        }
        for (;;)
        {
          paramDataLayer.push(paramzzd);
          break;
          paramzzd = Long.valueOf(((Number)localObject).longValue());
          break label64;
          label236:
          zzbo.zzbh("GaExperimentRandom: random range invalid");
          break;
          label244:
          localObject = paramzzd.get("gtm");
          if ((localObject instanceof Map)) {
            ((Map)localObject).put("lifetime", Long.valueOf(localzzc.zzky));
          } else {
            zzbo.zzbh("GaExperimentRandom: gtm not a map");
          }
        }
      }
    }
  }
  
  public static void a(DataLayer paramDataLayer, zzaj.zzi paramzzi)
  {
    if (paramzzi.zzlp == null)
    {
      zzbo.zzbh("supplemental missing experimentSupplemental");
      return;
    }
    Object localObject = paramzzi.zzlp.zzkA;
    int j = localObject.length;
    int i = 0;
    while (i < j)
    {
      paramDataLayer.a(zzdl.zze(localObject[i]));
      i += 1;
    }
    zzak.zza[] arrayOfzza = paramzzi.zzlp.zzkz;
    j = arrayOfzza.length;
    i = 0;
    if (i < j)
    {
      localObject = zzdl.zzj(arrayOfzza[i]);
      if (!(localObject instanceof Map))
      {
        localObject = String.valueOf(localObject);
        zzbo.zzbh(String.valueOf(localObject).length() + 36 + "value: " + (String)localObject + " is not a map value, ignored.");
      }
      for (localObject = null;; localObject = (Map)localObject)
      {
        if (localObject != null) {
          paramDataLayer.push((Map)localObject);
        }
        i += 1;
        break;
      }
    }
    a(paramDataLayer, paramzzi.zzlp);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/iv.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */