Package org.robolectric.shadows
Class ShadowNativeImageReader
java.lang.Object
org.robolectric.shadows.ShadowNativeImageReader
@Implements(value=android.media.ImageReader.class,
minSdk=29,
looseSignatures=true,
isInAndroidSdk=false,
shadowPicker=Picker.class)
public class ShadowNativeImageReader
extends Object
Shadow for
ImageReader
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
We use a class initializer to allow the native code to cache some field offsets.protected void
protected int
protected void
protected Surface
protected int
protected int
nativeImageSetup
(Image i, boolean legacyValidateImageFormat) protected Object
protected void
nativeInit
(Object weakSelf, int w, int h, int fmt, int maxImgs, long consumerUsage) protected void
nativeInit
(Object weakSelf, int w, int h, int maxImgs, long consumerUsage, int hardwareBufferFormat, int dataSpace) protected void
-
Constructor Details
-
ShadowNativeImageReader
public ShadowNativeImageReader()
-
-
Method Details
-
nativeInit
@Implementation(maxSdk=32) protected void nativeInit(Object weakSelf, int w, int h, int fmt, int maxImgs, long consumerUsage) -
nativeInit
@Implementation(minSdk=33) protected void nativeInit(Object weakSelf, int w, int h, int maxImgs, long consumerUsage, int hardwareBufferFormat, int dataSpace) -
nativeClose
-
nativeReleaseImage
-
nativeGetSurface
-
nativeDetachImage
-
nativeDiscardFreeBuffers
-
nativeImageSetup
- Returns:
- A return code
ACQUIRE_*
-
nativeImageSetup
@Implementation(minSdk=33, maxSdk=33) protected int nativeImageSetup(Image i, boolean legacyValidateImageFormat) -
nativeImageSetup
-
nativeClassInit
We use a class initializer to allow the native code to cache some field offsets.
-