package com.baseflow.permissionhandler;

import dd.a0;
import dd.r;
import dd.s;
import ed.t;
import java.util.HashMap;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class a implements d, r {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f5534a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ t f5535b;

    public /* synthetic */ a(int i10, a0 a0Var) {
        this.f5534a = i10;
        this.f5535b = a0Var;
    }

    public final void a(String str, String str2) {
        int i10 = this.f5534a;
        t tVar = this.f5535b;
        switch (i10) {
            case 1:
                tVar.error(str, str2, null);
                break;
            case 4:
                tVar.error(str, str2, null);
                break;
            case 6:
                tVar.error(str, str2, null);
                break;
            default:
                tVar.error(str, str2, null);
                break;
        }
    }

    public final void b(int i10) {
        int i11 = this.f5534a;
        this.f5535b.success(Integer.valueOf(i10));
    }

    public final void c(boolean z10) {
        int i10 = this.f5534a;
        this.f5535b.success(Boolean.valueOf(z10));
    }

    @Override // dd.r
    public final void run(s sVar) {
        t tVar = this.f5535b;
        if (sVar == null) {
            tVar.error(IjkMediaPlayer.OnNativeInvokeListener.ARG_ERROR, "Failed to resize the platform view", null);
            return;
        }
        HashMap map = new HashMap();
        map.put("width", Double.valueOf(sVar.f25145a));
        map.put("height", Double.valueOf(sVar.f25146b));
        tVar.success(map);
    }
}
