alexandroid/decompiled/jadx/sources/com/facebook/react/internal/AndroidChoreographerProvider.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

60 lines
3.6 KiB
Java

package com.facebook.react.internal;
import android.view.Choreographer;
import com.amazon.alexa.api.compat.model.assistant.subcomponent.AlexaEventBundleKeys;
import com.facebook.react.bridge.UiThreadUtil;
import com.facebook.react.internal.ChoreographerProvider;
import kotlin.Metadata;
import kotlin.jvm.JvmStatic;
import org.jetbrains.annotations.NotNull;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\bÀ\u0002\u0018\u00002\u00020\u0001:\u0001\u0007B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\b\u0010\u0004\u001a\u00020\u0000H\u0007J\b\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/facebook/react/internal/AndroidChoreographerProvider;", "Lcom/facebook/react/internal/ChoreographerProvider;", "<init>", "()V", "getInstance", "getChoreographer", "Lcom/facebook/react/internal/ChoreographerProvider$Choreographer;", "AndroidChoreographer", "ReactAndroid_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
/* loaded from: classes6.dex */
public final class AndroidChoreographerProvider implements ChoreographerProvider {
@NotNull
public static final AndroidChoreographerProvider INSTANCE = new AndroidChoreographerProvider();
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0010\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0016J\u0010\u0010\n\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lcom/facebook/react/internal/AndroidChoreographerProvider$AndroidChoreographer;", "Lcom/facebook/react/internal/ChoreographerProvider$Choreographer;", "<init>", "()V", AlexaEventBundleKeys.INSTANCE, "Landroid/view/Choreographer;", "postFrameCallback", "", "callback", "Landroid/view/Choreographer$FrameCallback;", "removeFrameCallback", "ReactAndroid_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public static final class AndroidChoreographer implements ChoreographerProvider.Choreographer {
@NotNull
private final Choreographer instance;
public AndroidChoreographer() {
Choreographer choreographer = Choreographer.getInstance();
choreographer.getClass();
this.instance = choreographer;
}
@Override // com.facebook.react.internal.ChoreographerProvider.Choreographer
public void postFrameCallback(@NotNull Choreographer.FrameCallback callback) {
callback.getClass();
this.instance.postFrameCallback(callback);
}
@Override // com.facebook.react.internal.ChoreographerProvider.Choreographer
public void removeFrameCallback(@NotNull Choreographer.FrameCallback callback) {
callback.getClass();
this.instance.removeFrameCallback(callback);
}
}
private AndroidChoreographerProvider() {
}
@JvmStatic
@NotNull
public static final AndroidChoreographerProvider getInstance() {
return INSTANCE;
}
@Override // com.facebook.react.internal.ChoreographerProvider
@NotNull
public ChoreographerProvider.Choreographer getChoreographer() {
UiThreadUtil.assertOnUiThread();
return new AndroidChoreographer();
}
}