package i0;

import android.graphics.Typeface;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;

/* JADX INFO: loaded from: classes.dex */
public abstract class p {
    @NonNull
    @RestrictTo({RestrictTo.Scope.f555a})
    public static Handler getHandler(@Nullable Handler handler) {
        return handler == null ? new Handler(Looper.getMainLooper()) : handler;
    }

    public abstract void a(int i10);

    public abstract void b(Typeface typeface);

    @RestrictTo({RestrictTo.Scope.f557c})
    public final void callbackFailAsync(int i10, @Nullable Handler handler) {
        getHandler(handler).post(new o(i10, 0, this));
    }

    @RestrictTo({RestrictTo.Scope.f557c})
    public final void callbackSuccessAsync(@NonNull Typeface typeface, @Nullable Handler handler) {
        getHandler(handler).post(new e.t(this, typeface, 2));
    }
}
