package com.tencent.mm.plugin.setting.model;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.model.r;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.ytcommon.BuildConfig;

class l$2 implements Runnable {
    final /* synthetic */ l qjY;

    l$2(l lVar) {
        this.qjY = lVar;
    }

    public final void run() {
        AppMethodBeat.i(126868);
        try {
            this.qjY.qjQ.await();
            long currentTimeMillis = System.currentTimeMillis();
            this.qjY.qjR.clear();
            this.qjY.qjS.remove(r.Yz());
            this.qjY.qjR.addAll(this.qjY.qjS);
            this.qjY.qjR.addAll(this.qjY.qjT);
            this.qjY.qjR.addAll(this.qjY.qjU);
            if (this.qjY.qjO) {
                this.qjY.qjR.retainAll(this.qjY.qjU);
            }
            if (this.qjY.qjP) {
                this.qjY.qjR.retainAll(this.qjY.qjT);
            }
            if (this.qjY.qjN) {
                this.qjY.qjR.retainAll(this.qjY.qjS);
            }
            this.qjY.qjW.e(this.qjY.qjR);
            ab.i("MicroMsg.UnfamiliarContactEngine", "[onResult] :%sms", new Object[]{Long.valueOf(System.currentTimeMillis() - currentTimeMillis)});
            al.d(new 1(this));
            ab.i("MicroMsg.UnfamiliarContactEngine", "all cost:%sms", new Object[]{Long.valueOf(System.currentTimeMillis() - this.qjY.qjX)});
            AppMethodBeat.o(126868);
        } catch (InterruptedException e) {
            ab.printErrStackTrace("MicroMsg.UnfamiliarContactEngine", e, BuildConfig.FLAVOR, new Object[0]);
            al.d(new Runnable() {
                public final void run() {
                    AppMethodBeat.i(126867);
                    l$2.this.qjY.qjW.onError();
                    AppMethodBeat.o(126867);
                }
            });
            AppMethodBeat.o(126868);
        }
    }
}
