Package org.robolectric.shadows
Class ShadowNativeSurface
java.lang.Object
org.robolectric.shadows.ShadowNativeSurface
@Implements(value=android.view.Surface.class,
minSdk=26,
shadowPicker=Picker.class,
isInAndroidSdk=false)
public class ShadowNativeSurface
extends Object
Shadow for
Surface
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
nativeAllocateBuffers
(long nativeObject) protected static int
nativeAttachAndQueueBufferWithColorSpace
(long nativeObject, HardwareBuffer buffer, int colorSpaceId) protected static long
nativeCreateFromSurfaceControl
(long surfaceControlNativeObject) protected static long
nativeCreateFromSurfaceTexture
(SurfaceTexture surfaceTexture) protected static int
nativeForceScopedDisconnect
(long nativeObject) protected static long
nativeGetFromBlastBufferQueue
(long surfaceObject, long blastBufferQueueNativeObject) protected static long
nativeGetFromSurfaceControl
(long surfaceObject, long surfaceControlNativeObject) protected static int
nativeGetHeight
(long nativeObject) protected static long
nativeGetNextFrameNumber
(long nativeObject) protected static int
nativeGetWidth
(long nativeObject) protected static boolean
nativeIsConsumerRunningBehind
(long nativeObject) protected static boolean
nativeIsValid
(long nativeObject) protected static long
nativeLockCanvas
(long nativeObject, Canvas canvas, Rect dirty) protected static long
nativeReadFromParcel
(long nativeObject, Parcel source) protected static void
nativeRelease
(long nativeObject) protected static int
nativeSetAutoRefreshEnabled
(long nativeObject, boolean enabled) protected static int
nativeSetFrameRate
(long nativeObject, float frameRate, int compatibility, int changeFrameRateStrategy) protected static int
nativeSetScalingMode
(long nativeObject, int scalingMode) protected static int
nativeSetSharedBufferModeEnabled
(long nativeObject, boolean enabled) protected static void
nativeUnlockCanvasAndPost
(long nativeObject, Canvas canvas) protected static void
nativeWriteToParcel
(long nativeObject, Parcel dest)
-
Constructor Details
-
ShadowNativeSurface
public ShadowNativeSurface()
-
-
Method Details
-
nativeCreateFromSurfaceTexture
@Implementation protected static long nativeCreateFromSurfaceTexture(SurfaceTexture surfaceTexture) throws Surface.OutOfResourcesException - Throws:
Surface.OutOfResourcesException
-
nativeCreateFromSurfaceControl
@Implementation protected static long nativeCreateFromSurfaceControl(long surfaceControlNativeObject) -
nativeGetFromSurfaceControl
@Implementation(minSdk=29) protected static long nativeGetFromSurfaceControl(long surfaceObject, long surfaceControlNativeObject) -
nativeGetFromBlastBufferQueue
@Implementation(minSdk=31) protected static long nativeGetFromBlastBufferQueue(long surfaceObject, long blastBufferQueueNativeObject) -
nativeLockCanvas
@Implementation protected static long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) throws Surface.OutOfResourcesException - Throws:
Surface.OutOfResourcesException
-
nativeUnlockCanvasAndPost
-
nativeRelease
-
nativeIsValid
-
nativeIsConsumerRunningBehind
-
nativeReadFromParcel
-
nativeWriteToParcel
-
nativeAllocateBuffers
-
nativeGetWidth
-
nativeGetHeight
-
nativeGetNextFrameNumber
-
nativeSetScalingMode
-
nativeForceScopedDisconnect
-
nativeAttachAndQueueBufferWithColorSpace
@Implementation(minSdk=31) protected static int nativeAttachAndQueueBufferWithColorSpace(long nativeObject, HardwareBuffer buffer, int colorSpaceId) -
nativeSetAutoRefreshEnabled
@Implementation(minSdk=27) protected static int nativeSetAutoRefreshEnabled(long nativeObject, boolean enabled) -
nativeSetFrameRate
@Implementation(minSdk=31) protected static int nativeSetFrameRate(long nativeObject, float frameRate, int compatibility, int changeFrameRateStrategy)
-