package com.flurry.android;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public final class v {
    private be a;

    /* JADX INFO: Access modifiers changed from: package-private */
    public v(be beVar) {
        this.a = beVar;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public final List<SdkAdLog> a(List<bb> list) {
        CopyOnWriteArrayList copyOnWriteArrayList = new CopyOnWriteArrayList();
        for (bb bbVar : list) {
            SdkAdLog sdkAdLog = new SdkAdLog();
            sdkAdLog.a(Long.valueOf(bbVar.c()));
            sdkAdLog.a(bbVar.b());
            CopyOnWriteArrayList copyOnWriteArrayList2 = new CopyOnWriteArrayList();
            synchronized (bbVar) {
                for (an anVar : bbVar.d()) {
                    if (anVar.b()) {
                        SdkAdEvent sdkAdEvent = new SdkAdEvent();
                        sdkAdEvent.a(anVar.a());
                        sdkAdEvent.a(Long.valueOf(anVar.c()));
                        Map<String, String> d = anVar.d();
                        HashMap hashMap = new HashMap();
                        for (Map.Entry<String, String> entry : d.entrySet()) {
                            hashMap.put(entry.getKey(), entry.getValue());
                        }
                        sdkAdEvent.a(hashMap);
                        copyOnWriteArrayList2.add(sdkAdEvent);
                    }
                }
            }
            sdkAdLog.a(copyOnWriteArrayList2);
            copyOnWriteArrayList.add(sdkAdLog);
        }
        this.a.a(list);
        return copyOnWriteArrayList;
    }
}
