package com.google.android.play.core.assetpacks;

import android.os.Bundle;
import android.os.RemoteException;
import com.bytedance.covode.number.Covode;
import com.google.android.play.core.b.c;
import com.google.android.play.core.b.ca;
import com.google.android.play.core.tasks.p;
import java.util.ArrayList;
import java.util.Map;

public final class g extends c {
    public final /* synthetic */ Map LIZ;
    public final /* synthetic */ p LIZIZ;
    public final /* synthetic */ r LIZJ;

    static {
        Covode.recordClassIndex(44203);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public g(r rVar, p pVar, Map map, p pVar2) {
        super(pVar);
        this.LIZJ = rVar;
        this.LIZ = map;
        this.LIZIZ = pVar2;
    }

    public final void LIZ() {
        try {
            ca caVar = (ca) this.LIZJ.LIZLLL.LJIIJ;
            String str = this.LIZJ.LIZIZ;
            Map map = this.LIZ;
            Bundle LIZIZ2 = r.LIZIZ();
            ArrayList arrayList = new ArrayList();
            for (Map.Entry entry : map.entrySet()) {
                Bundle bundle = new Bundle();
                bundle.putString("installed_asset_module_name", (String) entry.getKey());
                bundle.putLong("installed_asset_module_version", ((Long) entry.getValue()).longValue());
                arrayList.add(bundle);
            }
            LIZIZ2.putParcelableArrayList("installed_asset_module", arrayList);
            caVar.LIZ(str, LIZIZ2, new o(this.LIZJ, this.LIZIZ));
        } catch (RemoteException e) {
            r.LIZ.LIZ();
            this.LIZIZ.LIZIZ(new RuntimeException(e));
        }
    }
}
