package i0; import android.os.Build; import android.os.Handler; import android.os.Looper; import java.lang.invoke.MethodHandles; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.concurrent.Executor; import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; /* compiled from: Platform */ public class u { public static final u a = ("Dalvik".equals(System.getProperty("java.vm.name")) ? new a() : new u(true)); public final boolean b; /* renamed from: c reason: collision with root package name */ public final Constructor f2835c; /* compiled from: Platform */ public static final class a extends u { /* compiled from: Platform */ /* renamed from: i0.u$a$a reason: collision with other inner class name */ public static final class ExecutorC0316a implements Executor { public final Handler i = new Handler(Looper.getMainLooper()); @Override // java.util.concurrent.Executor public void execute(Runnable runnable) { this.i.post(runnable); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a() { super(Build.VERSION.SDK_INT >= 24); } @Override // i0.u public Executor a() { return new ExecutorC0316a(); } @Override // i0.u public Object b(Method method, Class cls, Object obj, Object... objArr) throws Throwable { if (Build.VERSION.SDK_INT >= 26) { return u.super.b(method, cls, obj, objArr); } throw new UnsupportedOperationException("Calling default methods on API 24 and 25 is not supported"); } } public u(boolean z2) { this.b = z2; Constructor constructor = null; if (z2) { try { constructor = MethodHandles.Lookup.class.getDeclaredConstructor(Class.class, Integer.TYPE); constructor.setAccessible(true); } catch (NoClassDefFoundError | NoSuchMethodException unused) { } } this.f2835c = constructor; } public Executor a() { return null; } @IgnoreJRERequirement public Object b(Method method, Class cls, Object obj, Object... objArr) throws Throwable { Constructor constructor = this.f2835c; return (constructor != null ? constructor.newInstance(cls, -1) : MethodHandles.lookup()).unreflectSpecial(method, cls).bindTo(obj).invokeWithArguments(objArr); } }