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 forSurfacethat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeSurface.PickerShadow picker forSurface.
-
Constructor Summary
Constructors Constructor Description ShadowNativeSurface()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidnativeAllocateBuffers(long nativeObject)protected static intnativeAttachAndQueueBufferWithColorSpace(long nativeObject, HardwareBuffer buffer, int colorSpaceId)protected static longnativeCreateFromSurfaceControl(long surfaceControlNativeObject)protected static longnativeCreateFromSurfaceTexture(SurfaceTexture surfaceTexture)protected static intnativeForceScopedDisconnect(long nativeObject)protected static longnativeGetFromBlastBufferQueue(long surfaceObject, long blastBufferQueueNativeObject)protected static longnativeGetFromSurfaceControl(long surfaceObject, long surfaceControlNativeObject)protected static intnativeGetHeight(long nativeObject)protected static longnativeGetNextFrameNumber(long nativeObject)protected static intnativeGetWidth(long nativeObject)protected static booleannativeIsConsumerRunningBehind(long nativeObject)protected static booleannativeIsValid(long nativeObject)protected static longnativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty)protected static longnativeReadFromParcel(long nativeObject, Parcel source)protected static voidnativeRelease(long nativeObject)protected static intnativeSetAutoRefreshEnabled(long nativeObject, boolean enabled)protected static intnativeSetFrameRate(long nativeObject, float frameRate, int compatibility, int changeFrameRateStrategy)protected static intnativeSetScalingMode(long nativeObject, int scalingMode)protected static intnativeSetSharedBufferModeEnabled(long nativeObject, boolean enabled)protected static voidnativeUnlockCanvasAndPost(long nativeObject, Canvas canvas)protected static voidnativeWriteToParcel(long nativeObject, Parcel dest)
-
-
-
Method Detail
-
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
@Implementation protected static void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas)
-
nativeRelease
@Implementation protected static void nativeRelease(long nativeObject)
-
nativeIsValid
@Implementation protected static boolean nativeIsValid(long nativeObject)
-
nativeIsConsumerRunningBehind
@Implementation protected static boolean nativeIsConsumerRunningBehind(long nativeObject)
-
nativeReadFromParcel
@Implementation protected static long nativeReadFromParcel(long nativeObject, Parcel source)
-
nativeWriteToParcel
@Implementation protected static void nativeWriteToParcel(long nativeObject, Parcel dest)
-
nativeAllocateBuffers
@Implementation protected static void nativeAllocateBuffers(long nativeObject)
-
nativeGetWidth
@Implementation protected static int nativeGetWidth(long nativeObject)
-
nativeGetHeight
@Implementation protected static int nativeGetHeight(long nativeObject)
-
nativeGetNextFrameNumber
@Implementation protected static long nativeGetNextFrameNumber(long nativeObject)
-
nativeSetScalingMode
@Implementation protected static int nativeSetScalingMode(long nativeObject, int scalingMode)
-
nativeForceScopedDisconnect
@Implementation protected static int nativeForceScopedDisconnect(long nativeObject)
-
nativeAttachAndQueueBufferWithColorSpace
@Implementation(minSdk=31) protected static int nativeAttachAndQueueBufferWithColorSpace(long nativeObject, HardwareBuffer buffer, int colorSpaceId)
-
nativeSetSharedBufferModeEnabled
@Implementation(minSdk=27) protected static int nativeSetSharedBufferModeEnabled(long nativeObject, boolean enabled)
-
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)
-
-