package o;

import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.AppLocalesMetadataHolderService;
import java.lang.ref.WeakReference;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class F7 {
    public static final E7 l = new E7(new ExecutorC0614Xr(3));
    public static final int m = -100;
    public static C2327rM n = null;

    /* renamed from: o, reason: collision with root package name */
    public static C2327rM f114o = null;
    public static Boolean p = null;
    public static boolean q = false;
    public static final C2124p9 r = new C2124p9(0);
    public static final Object s = new Object();
    public static final Object t = new Object();

    public static boolean b(Context context) {
        if (p == null) {
            try {
                int i = AppLocalesMetadataHolderService.l;
                Bundle bundle = context.getPackageManager().getServiceInfo(new ComponentName(context, (Class<?>) AppLocalesMetadataHolderService.class), O8.a() | 128).metaData;
                if (bundle != null) {
                    p = Boolean.valueOf(bundle.getBoolean("autoStoreLocales"));
                }
            } catch (PackageManager.NameNotFoundException unused) {
                p = Boolean.FALSE;
            }
        }
        return p.booleanValue();
    }

    public static void e(S7 s7) {
        synchronized (s) {
            try {
                C2124p9 c2124p9 = r;
                c2124p9.getClass();
                C1460i9 c1460i9 = new C1460i9(c2124p9);
                while (c1460i9.hasNext()) {
                    F7 f7 = (F7) ((WeakReference) c1460i9.next()).get();
                    if (f7 == s7 || f7 == null) {
                        c1460i9.remove();
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public abstract void a();

    public abstract void c();

    public abstract void d();

    public abstract boolean f(int i);

    public abstract void g(int i);

    public abstract void h(View view);

    public abstract void i(View view, ViewGroup.LayoutParams layoutParams);

    public abstract void j(CharSequence charSequence);

    public abstract AbstractC1918n1 k(InterfaceC1823m1 interfaceC1823m1);
}
