Package org.robolectric.shadows
Class ShadowDisplayEventReceiver
java.lang.Object
org.robolectric.shadows.ShadowDisplayEventReceiver
@Implements(className="android.view.DisplayEventReceiver", isInAndroidSdk=false, looseSignatures=true) public class ShadowDisplayEventReceiver extends Object
-
Field Summary
Fields Modifier and Type Field Description protected DisplayEventReceiver
receiver
-
Constructor Summary
Constructors Constructor Description ShadowDisplayEventReceiver()
-
Method Summary
Modifier and Type Method Description protected void
dispose(boolean finalized)
protected static void
nativeDispose(int receiverPtr)
protected static void
nativeDispose(long receiverPtr)
protected static long
nativeInit(DisplayEventReceiver receiver, MessageQueue msgQueue)
protected static int
nativeInit(Object receiver, Object msgQueue)
protected static long
nativeInit(WeakReference<DisplayEventReceiver> receiver, MessageQueue msgQueue)
protected static long
nativeInit(WeakReference<DisplayEventReceiver> receiver, MessageQueue msgQueue, int vsyncSource)
protected static long
nativeInit(WeakReference<DisplayEventReceiver> receiver, MessageQueue msgQueue, int vsyncSource, int configChanged)
protected static void
nativeScheduleVsync(int receiverPtr)
protected static void
nativeScheduleVsync(long receiverPtr)
protected void
onVsync()
static void
reset()
-
Field Details
-
Constructor Details
-
ShadowDisplayEventReceiver
public ShadowDisplayEventReceiver()
-
-
Method Details
-
nativeInit
@Implementation(minSdk=26, maxSdk=29) protected static long nativeInit(WeakReference<DisplayEventReceiver> receiver, MessageQueue msgQueue, int vsyncSource) -
nativeInit
@Implementation(minSdk=23, maxSdk=25) protected static long nativeInit(WeakReference<DisplayEventReceiver> receiver, MessageQueue msgQueue) -
nativeInit
@Implementation(minSdk=20, maxSdk=22) protected static long nativeInit(DisplayEventReceiver receiver, MessageQueue msgQueue) -
nativeInit
-
nativeInit
@Implementation(minSdk=30) protected static long nativeInit(WeakReference<DisplayEventReceiver> receiver, MessageQueue msgQueue, int vsyncSource, int configChanged) -
nativeDispose
-
nativeDispose
-
nativeScheduleVsync
-
nativeScheduleVsync
-
dispose
-
reset
-
onVsync
protected void onVsync()
-