Class ShadowCamera.ShadowParameters

  • Enclosing class:
    ShadowCamera

    @Implements(android.hardware.Camera.Parameters.class)
    public static class ShadowCamera.ShadowParameters
    extends java.lang.Object
    Shadows the Android Camera.Parameters class.
    • Constructor Detail

      • ShadowParameters

        public ShadowParameters()
    • Method Detail

      • initSupportedPreviewSizes

        public void initSupportedPreviewSizes()
        Explicitly initialize custom preview sizes array, to switch from default values to individually added.
      • addSupportedPreviewSize

        public void addSupportedPreviewSize​(int width,
                                            int height)
        Add custom preview sizes to supportedPreviewSizes.
      • getPictureSize

        @Implementation
        protected android.hardware.Camera.Size getPictureSize()
      • getPreviewFormat

        @Implementation
        protected int getPreviewFormat()
      • getPreviewFpsRange

        @Implementation
        protected void getPreviewFpsRange​(int[] range)
      • getPreviewFrameRate

        @Implementation
        protected int getPreviewFrameRate()
      • getPreviewSize

        @Implementation
        protected android.hardware.Camera.Size getPreviewSize()
      • getSupportedPictureSizes

        @Implementation
        protected java.util.List<android.hardware.Camera.Size> getSupportedPictureSizes()
      • getSupportedPictureFormats

        @Implementation
        protected java.util.List<java.lang.Integer> getSupportedPictureFormats()
      • getSupportedPreviewFormats

        @Implementation
        protected java.util.List<java.lang.Integer> getSupportedPreviewFormats()
      • getSupportedPreviewFpsRange

        @Implementation
        protected java.util.List<int[]> getSupportedPreviewFpsRange()
      • getSupportedPreviewFrameRates

        @Implementation
        protected java.util.List<java.lang.Integer> getSupportedPreviewFrameRates()
      • getSupportedPreviewSizes

        @Implementation
        protected java.util.List<android.hardware.Camera.Size> getSupportedPreviewSizes()
      • setSupportedFocusModes

        public void setSupportedFocusModes​(java.lang.String... focusModes)
      • getSupportedFocusModes

        @Implementation
        protected java.util.List<java.lang.String> getSupportedFocusModes()
      • getFocusMode

        @Implementation
        protected java.lang.String getFocusMode()
      • setFocusMode

        @Implementation
        protected void setFocusMode​(java.lang.String focusMode)
      • setMaxNumFocusAreas

        public void setMaxNumFocusAreas​(int maxNumFocusAreas)
        Allows test cases to set the maximum number of focus areas. See Camera.Parameters.getMaxNumFocusAreas().
      • getMaxNumFocusAreas

        @Implementation
        protected int getMaxNumFocusAreas()
      • setFocusAreas

        @Implementation
        protected void setFocusAreas​(java.util.List<android.hardware.Camera.Area> focusAreas)
      • getFocusAreas

        @Implementation
        protected java.util.List<android.hardware.Camera.Area> getFocusAreas()
      • setMaxNumMeteringAreas

        public void setMaxNumMeteringAreas​(int maxNumMeteringAreas)
        Allows test cases to set the maximum number of metering areas. See Camera.Parameters.getMaxNumMeteringAreas().
      • getMaxNumMeteringAreas

        @Implementation
        protected int getMaxNumMeteringAreas()
      • setMeteringAreas

        @Implementation
        protected void setMeteringAreas​(java.util.List<android.hardware.Camera.Area> meteringAreas)
      • getMeteringAreas

        @Implementation
        protected java.util.List<android.hardware.Camera.Area> getMeteringAreas()
      • setPictureSize

        @Implementation
        protected void setPictureSize​(int width,
                                      int height)
      • setPreviewFormat

        @Implementation
        protected void setPreviewFormat​(int pixel_format)
      • setPreviewFpsRange

        @Implementation
        protected void setPreviewFpsRange​(int min,
                                          int max)
      • setPreviewFrameRate

        @Implementation
        protected void setPreviewFrameRate​(int fps)
      • setPreviewSize

        @Implementation
        protected void setPreviewSize​(int width,
                                      int height)
      • setRecordingHint

        @Implementation
        protected void setRecordingHint​(boolean recordingHint)
      • setRotation

        @Implementation
        protected void setRotation​(int rotation)
      • getMinExposureCompensation

        @Implementation
        protected int getMinExposureCompensation()
      • getMaxExposureCompensation

        @Implementation
        protected int getMaxExposureCompensation()
      • getExposureCompensationStep

        @Implementation
        protected float getExposureCompensationStep()
      • getExposureCompensation

        @Implementation
        protected int getExposureCompensation()
      • setExposureCompensation

        @Implementation
        protected void setExposureCompensation​(int compensation)
      • setSupportedFlashModes

        public void setSupportedFlashModes​(java.lang.String... flashModes)
      • getSupportedFlashModes

        @Implementation
        protected java.util.List<java.lang.String> getSupportedFlashModes()
      • getFlashMode

        @Implementation
        protected java.lang.String getFlashMode()
      • setFlashMode

        @Implementation
        protected void setFlashMode​(java.lang.String flashMode)
      • set

        @Implementation
        protected void set​(java.lang.String key,
                           java.lang.String value)
      • get

        @Implementation
        protected java.lang.String get​(java.lang.String key)
      • getPreviewWidth

        public int getPreviewWidth()
      • getPreviewHeight

        public int getPreviewHeight()
      • getPictureWidth

        public int getPictureWidth()
      • getPictureHeight

        public int getPictureHeight()