package ῲ.ᨨ.ῲ.ῲ;

import android.graphics.Typeface;
import android.os.Handler;
import android.os.Looper;

/* renamed from: ῲ.ᨨ.ῲ.ῲ.ⁱ  reason: contains not printable characters */
/* compiled from: ResourcesCompat */
public abstract class AbstractC1799 {

    /* renamed from: ῲ.ᨨ.ῲ.ῲ.ⁱ$ῲ  reason: contains not printable characters */
    /* compiled from: ResourcesCompat */
    public class RunnableC1800 implements Runnable {

        /* renamed from: ῲ  reason: contains not printable characters */
        public final /* synthetic */ int f6151;

        public RunnableC1800(int i) {
            this.f6151 = i;
        }

        public void run() {
            AbstractC1799.this.onFontRetrievalFailed(this.f6151);
        }
    }

    /* renamed from: ῲ.ᨨ.ῲ.ῲ.ⁱ$K  reason: contains not printable characters */
    /* compiled from: ResourcesCompat */
    public class RunnableC1801 implements Runnable {

        /* renamed from: ῲ  reason: contains not printable characters */
        public final /* synthetic */ Typeface f6153;

        public RunnableC1801(Typeface typeface) {
            this.f6153 = typeface;
        }

        public void run() {
            AbstractC1799.this.onFontRetrieved(this.f6153);
        }
    }

    public static Handler getHandler(Handler handler) {
        return handler == null ? new Handler(Looper.getMainLooper()) : handler;
    }

    public final void callbackFailAsync(int i, Handler handler) {
        getHandler(handler).post(new RunnableC1800(i));
    }

    public final void callbackSuccessAsync(Typeface typeface, Handler handler) {
        getHandler(handler).post(new RunnableC1801(typeface));
    }

    public abstract void onFontRetrievalFailed(int i);

    public abstract void onFontRetrieved(Typeface typeface);
}
