@Implements(android.hardware.Camera.Parameters.class) public static class ShadowCamera.ShadowParameters extends Object
Camera.Parameters class.| Constructor | Description | 
|---|---|
ShadowParameters() | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
addSupportedPreviewSize(int width,
                       int height) | 
 Add custom preview sizes to supportedPreviewSizes. 
 | 
protected String | 
get(String key) | 
|
protected int | 
getExposureCompensation() | 
|
protected float | 
getExposureCompensationStep() | 
|
protected String | 
getFlashMode() | 
|
protected List<Camera.Area> | 
getFocusAreas() | 
|
protected String | 
getFocusMode() | 
|
protected int | 
getMaxExposureCompensation() | 
|
protected int | 
getMaxNumFocusAreas() | 
|
protected int | 
getMaxNumMeteringAreas() | 
|
protected List<Camera.Area> | 
getMeteringAreas() | 
|
protected int | 
getMinExposureCompensation() | 
|
int | 
getPictureHeight() | 
|
protected Camera.Size | 
getPictureSize() | 
|
int | 
getPictureWidth() | 
|
protected int | 
getPreviewFormat() | 
|
protected void | 
getPreviewFpsRange(int[] range) | 
|
protected int | 
getPreviewFrameRate() | 
|
int | 
getPreviewHeight() | 
|
protected Camera.Size | 
getPreviewSize() | 
|
int | 
getPreviewWidth() | 
|
protected List<String> | 
getSupportedFlashModes() | 
|
protected List<String> | 
getSupportedFocusModes() | 
|
protected List<Integer> | 
getSupportedPictureFormats() | 
|
protected List<Camera.Size> | 
getSupportedPictureSizes() | 
|
protected List<Integer> | 
getSupportedPreviewFormats() | 
|
protected List<int[]> | 
getSupportedPreviewFpsRange() | 
|
protected List<Integer> | 
getSupportedPreviewFrameRates() | 
|
protected List<Camera.Size> | 
getSupportedPreviewSizes() | 
|
void | 
initSupportedPreviewSizes() | 
 Explicitly initialize custom preview sizes array, to switch from default values to
 individually added. 
 | 
protected void | 
set(String key,
   String value) | 
|
protected void | 
setExposureCompensation(int compensation) | 
|
protected void | 
setFlashMode(String flashMode) | 
|
protected void | 
setFocusAreas(List<Camera.Area> focusAreas) | 
|
protected void | 
setFocusMode(String focusMode) | 
|
void | 
setMaxNumFocusAreas(int maxNumFocusAreas) | 
 Allows test cases to set the maximum number of focus areas. 
 | 
void | 
setMaxNumMeteringAreas(int maxNumMeteringAreas) | 
 Allows test cases to set the maximum number of metering areas. 
 | 
protected void | 
setMeteringAreas(List<Camera.Area> meteringAreas) | 
|
protected void | 
setPictureSize(int width,
              int height) | 
|
protected void | 
setPreviewFormat(int pixel_format) | 
|
protected void | 
setPreviewFpsRange(int min,
                  int max) | 
|
protected void | 
setPreviewFrameRate(int fps) | 
|
protected void | 
setPreviewSize(int width,
              int height) | 
|
protected void | 
setRecordingHint(boolean recordingHint) | 
|
protected void | 
setRotation(int rotation) | 
|
void | 
setSupportedFlashModes(String... flashModes) | 
|
void | 
setSupportedFocusModes(String... focusModes) | 
public void initSupportedPreviewSizes()
public void addSupportedPreviewSize(int width,
                                    int height)
@Implementation protected Camera.Size getPictureSize()
@Implementation protected int getPreviewFormat()
@Implementation protected void getPreviewFpsRange(int[] range)
@Implementation protected int getPreviewFrameRate()
@Implementation protected Camera.Size getPreviewSize()
@Implementation protected List<Camera.Size> getSupportedPictureSizes()
@Implementation protected List<Integer> getSupportedPictureFormats()
@Implementation protected List<Integer> getSupportedPreviewFormats()
@Implementation protected List<int[]> getSupportedPreviewFpsRange()
@Implementation protected List<Integer> getSupportedPreviewFrameRates()
@Implementation protected List<Camera.Size> getSupportedPreviewSizes()
public void setSupportedFocusModes(String... focusModes)
@Implementation protected List<String> getSupportedFocusModes()
@Implementation protected String getFocusMode()
@Implementation protected void setFocusMode(String focusMode)
public void setMaxNumFocusAreas(int maxNumFocusAreas)
Camera.Parameters.getMaxNumFocusAreas().@Implementation protected int getMaxNumFocusAreas()
@Implementation protected void setFocusAreas(List<Camera.Area> focusAreas)
@Implementation protected List<Camera.Area> getFocusAreas()
public void setMaxNumMeteringAreas(int maxNumMeteringAreas)
Camera.Parameters.getMaxNumMeteringAreas().@Implementation protected int getMaxNumMeteringAreas()
@Implementation protected void setMeteringAreas(List<Camera.Area> meteringAreas)
@Implementation protected List<Camera.Area> getMeteringAreas()
@Implementation protected void setPictureSize(int width, int height)
@Implementation protected void setPreviewFormat(int pixel_format)
@Implementation protected void setPreviewFpsRange(int min, int max)
@Implementation protected void setPreviewFrameRate(int fps)
@Implementation protected void setPreviewSize(int width, int height)
@Implementation protected void setRecordingHint(boolean recordingHint)
@Implementation protected void setRotation(int rotation)
@Implementation protected int getMinExposureCompensation()
@Implementation protected int getMaxExposureCompensation()
@Implementation protected float getExposureCompensationStep()
@Implementation protected int getExposureCompensation()
@Implementation protected void setExposureCompensation(int compensation)
public void setSupportedFlashModes(String... flashModes)
@Implementation protected List<String> getSupportedFlashModes()
@Implementation protected String getFlashMode()
@Implementation protected void setFlashMode(String flashMode)
@Implementation protected void set(String key, String value)
@Implementation protected String get(String key)
public int getPreviewWidth()
public int getPreviewHeight()
public int getPictureWidth()
public int getPictureHeight()