package com.google.android.play.core.assetpacks; import android.os.Bundle; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; /* loaded from: classes2.dex */ public abstract class c { public static c a(Bundle bundle, h1 h1Var, p2 p2Var) { return b(bundle, h1Var, p2Var, new b0() { // from class: com.google.android.play.core.assetpacks.c0 @Override // com.google.android.play.core.assetpacks.b0 public final int a(int i10, String str) { return i10; } }); } public static c b(Bundle bundle, h1 h1Var, p2 p2Var, b0 b0Var) { ArrayList stringArrayList = bundle.getStringArrayList("pack_names"); HashMap hashMap = new HashMap(); int size = stringArrayList.size(); for (int i10 = 0; i10 < size; i10++) { String str = stringArrayList.get(i10); hashMap.put(str, AssetPackState.c(bundle, str, h1Var, p2Var, b0Var)); } return new k0(bundle.getLong("total_bytes_to_download"), hashMap); } public abstract Map c(); public abstract long d(); }