Package org.robolectric.shadows
Class ShadowCamera.ShadowParameters
java.lang.Object
org.robolectric.shadows.ShadowCamera.ShadowParameters
- Enclosing class:
- ShadowCamera
@Implements(android.hardware.Camera.Parameters.class)
public static class ShadowCamera.ShadowParameters
extends Object
Shadows the Android
Camera.Parameters
class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSupportedPreviewSize
(int width, int height) int
int
int
int
int
void
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.void
setSupportedFlashModes
(String... flashModes) void
setSupportedFocusModes
(String... focusModes)
-
Constructor Details
-
ShadowParameters
public ShadowParameters()
-
-
Method Details
-
initSupportedPreviewSizes
public void initSupportedPreviewSizes() -
setSupportedFocusModes
-
setSupportedFlashModes
-
setMaxNumFocusAreas
public void setMaxNumFocusAreas(int maxNumFocusAreas) Allows test cases to set the maximum number of focus areas. SeeCamera.Parameters.getMaxNumFocusAreas()
. -
addSupportedPreviewSize
public void addSupportedPreviewSize(int width, int height) -
setMaxNumMeteringAreas
public void setMaxNumMeteringAreas(int maxNumMeteringAreas) Allows test cases to set the maximum number of metering areas. SeeCamera.Parameters.getMaxNumMeteringAreas()
. -
getPreviewWidth
public int getPreviewWidth() -
getPreviewHeight
public int getPreviewHeight() -
getPictureWidth
public int getPictureWidth() -
getPictureHeight
public int getPictureHeight() -
getRotation
public int getRotation()
-