package p138.p176.p177.p242.p265.p266;

import android.os.RemoteException;
import android.text.TextUtils;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.ߌ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC4940 implements Runnable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ AtomicReference f14951;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ String f14952;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final /* synthetic */ String f14953;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final /* synthetic */ String f14954;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final /* synthetic */ C4977 f14955;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public final /* synthetic */ C4987 f14956;

    public RunnableC4940(C4987 c4987, AtomicReference atomicReference, String str, String str2, String str3, C4977 c4977) {
        this.f14956 = c4987;
        this.f14951 = atomicReference;
        this.f14952 = str;
        this.f14953 = str2;
        this.f14954 = str3;
        this.f14955 = c4977;
    }

    @Override // java.lang.Runnable
    public final void run() {
        InterfaceC4823 interfaceC4823;
        synchronized (this.f14951) {
            try {
                try {
                    interfaceC4823 = this.f14956.f15084;
                } catch (RemoteException e) {
                    this.f14956.mo8165().f14444.m8037("(legacy) Failed to get conditional properties; remote exception", C4794.m8038(this.f14952), this.f14953, e);
                    this.f14951.set(Collections.emptyList());
                }
                if (interfaceC4823 == null) {
                    this.f14956.mo8165().f14444.m8037("(legacy) Failed to get conditional properties; not connected to service", C4794.m8038(this.f14952), this.f14953, this.f14954);
                    this.f14951.set(Collections.emptyList());
                    return;
                }
                if (TextUtils.isEmpty(this.f14952)) {
                    this.f14951.set(interfaceC4823.mo8094(this.f14953, this.f14954, this.f14955));
                } else {
                    this.f14951.set(interfaceC4823.mo8092(this.f14952, this.f14953, this.f14954));
                }
                this.f14956.m8521();
                this.f14951.notify();
            } finally {
                this.f14951.notify();
            }
        }
    }
}
