package o;

import android.os.Bundle;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.xp0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2942xp0 implements Ys0 {
    public final /* synthetic */ Wp0 a;

    public C2942xp0(Wp0 wp0) {
        this.a = wp0;
    }

    @Override // o.Ys0
    public final void c(String str, String str2, Bundle bundle) {
        Wp0 wp0 = this.a;
        wp0.a(new Gp0(wp0, str, str2, bundle, 1));
    }

    @Override // o.Ys0
    public final long d() {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Np0(wp0, binderC1708kp0, 2));
        Long l = (Long) BinderC1708kp0.D(binderC1708kp0.C(500L), Long.class);
        if (l != null) {
            return l.longValue();
        }
        long jNextLong = new Random(System.nanoTime() ^ wp0.a.currentTimeMillis()).nextLong();
        int i = wp0.e + 1;
        wp0.e = i;
        return jNextLong + i;
    }

    @Override // o.Ys0
    public final void e(String str, String str2, Bundle bundle) {
        Wp0 wp0 = this.a;
        wp0.a(new Gp0(wp0, str, str2, bundle, 0));
    }

    @Override // o.Ys0
    public final String f() {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Np0(wp0, binderC1708kp0, 3));
        return (String) BinderC1708kp0.D(binderC1708kp0.C(500L), String.class);
    }

    @Override // o.Ys0
    public final List g(String str, String str2) {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Hp0(wp0, str, str2, binderC1708kp0));
        List list = (List) BinderC1708kp0.D(binderC1708kp0.C(5000L), List.class);
        return list == null ? Collections.EMPTY_LIST : list;
    }

    @Override // o.Ys0
    public final void h(Bundle bundle) {
        Wp0 wp0 = this.a;
        wp0.a(new Fp0(wp0, bundle, 1));
    }

    @Override // o.Ys0
    public final int i(String str) {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Ip0(wp0, str, binderC1708kp0, 1));
        Integer num = (Integer) BinderC1708kp0.D(binderC1708kp0.C(10000L), Integer.class);
        if (num == null) {
            return 25;
        }
        return num.intValue();
    }

    @Override // o.Ys0
    public final String j() {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Np0(wp0, binderC1708kp0, 1));
        return (String) BinderC1708kp0.D(binderC1708kp0.C(50L), String.class);
    }

    @Override // o.Ys0
    public final void k(String str) {
        Wp0 wp0 = this.a;
        wp0.a(new Kp0(wp0, str, 1));
    }

    @Override // o.Ys0
    public final String l() {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Np0(wp0, binderC1708kp0, 0));
        return (String) BinderC1708kp0.D(binderC1708kp0.C(500L), String.class);
    }

    @Override // o.Ys0
    public final Map m(String str, String str2, boolean z) {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Qp0(wp0, str, str2, z, binderC1708kp0));
        Bundle bundleC = binderC1708kp0.C(5000L);
        if (bundleC == null || bundleC.size() == 0) {
            return Collections.EMPTY_MAP;
        }
        HashMap map = new HashMap(bundleC.size());
        for (String str3 : bundleC.keySet()) {
            Object obj = bundleC.get(str3);
            if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) {
                map.put(str3, obj);
            }
        }
        return map;
    }

    @Override // o.Ys0
    public final void n(String str) {
        Wp0 wp0 = this.a;
        wp0.a(new Kp0(wp0, str, 0));
    }

    @Override // o.Ys0
    public final String zzi() {
        BinderC1708kp0 binderC1708kp0 = new BinderC1708kp0();
        Wp0 wp0 = this.a;
        wp0.a(new Np0(wp0, binderC1708kp0, 4));
        return (String) BinderC1708kp0.D(binderC1708kp0.C(500L), String.class);
    }
}
