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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidWe use a class initializer to allow the native code to cache some field offsets.protected voidprotected intprotected voidprotected Surfaceprotected intprotected intnativeImageSetup(Image i, boolean legacyValidateImageFormat) protected Objectprotected voidnativeInit(Object weakSelf, int w, int h, int fmt, int maxImgs, long consumerUsage) protected voidnativeInit(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.
-