Class ShadowCaptureRequestBuilder

    • Constructor Detail

      • ShadowCaptureRequestBuilder

        public ShadowCaptureRequestBuilder()
    • Method Detail

      • set

        @Implementation
        protected <T> void set​(CaptureRequest.Key<T> key,
                               T value)
        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

        @Implementation
        protected <T> T get​(CaptureRequest.Key<T> key)
        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.