package com.tencent.mm.plugin.record.ui;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.protocal.protobuf.aar;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.ttpic.baseutils.ApiHelper$VERSION_CODES;
import java.util.List;

class FavRecordDetailUI$4 implements Runnable {
    final /* synthetic */ FavRecordDetailUI pKi;
    final /* synthetic */ List pKo;

    FavRecordDetailUI$4(FavRecordDetailUI favRecordDetailUI, List list) {
        this.pKi = favRecordDetailUI;
        this.pKo = list;
    }

    public final void run() {
        AppMethodBeat.i(24209);
        if (this.pKo == null) {
            AppMethodBeat.o(24209);
            return;
        }
        ab.i("MicroMsg.FavRecordDetailUI", "start calc");
        long j = 0;
        int i = 0;
        int i2 = 0;
        int i3 = 0;
        int i4 = 0;
        for (aar aar : this.pKo) {
            if (!(aar == null || FavRecordDetailUI.e(this.pKi))) {
                switch (aar.dataType) {
                    case 1:
                        i4++;
                        j = ((long) aar.desc.getBytes().length) + j;
                        break;
                    case 2:
                        i3++;
                        break;
                    case 4:
                    case ApiHelper$VERSION_CODES.ICE_CREAM_SANDWICH_MR1 /*15*/:
                        i2++;
                        break;
                    default:
                        i++;
                        break;
                }
            }
        }
        FavRecordDetailUI.a(this.pKi, String.format("%s:%s:%s:%s:%s", new Object[]{Integer.valueOf(i4), Long.valueOf(j), Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i)}));
        ab.v("MicroMsg.FavRecordDetailUI", "start calc finish %s", new Object[]{r0});
        AppMethodBeat.o(24209);
    }
}
