Package org.robolectric.shadows
Class ShadowCaptureRequestBuilder
java.lang.Object
org.robolectric.shadows.ShadowCaptureRequestBuilder
@Implements(value=android.hardware.camera2.CaptureRequest.Builder.class, minSdk=21) public class ShadowCaptureRequestBuilder extends Object
Shadow class for
CaptureRequest.Builder
.-
Constructor Summary
Constructors Constructor Description ShadowCaptureRequestBuilder()
-
Method Summary
Modifier and Type Method Description protected <T> T
get(CaptureRequest.Key<T> key)
Original implementation would store its state in a local CameraMetadataNative object.protected <T> void
set(CaptureRequest.Key<T> key, T value)
Original implementation would store its state in a local CameraMetadataNative object.
-
Constructor Details
-
ShadowCaptureRequestBuilder
public ShadowCaptureRequestBuilder()
-
-
Method Details
-
set
Original implementation would store its state in a local CameraMetadataNative object. Trying to set these values causes issues while testing as that starts to involve native code. We write to a managed map stored in the shadow instead. -
get
Original implementation would store its state in a local CameraMetadataNative object. Instead, we are extracting the data from a managed map stored in the shadow.
-