Package org.robolectric.shadows
Class StreamConfigurationMapBuilder
java.lang.Object
org.robolectric.shadows.StreamConfigurationMapBuilder
Builder for StreamConfigurationMap
-
Method Summary
Modifier and TypeMethodDescriptionaddInputSize(int format, Size inputSize) Adds an input size to be returned byStreamConfigurationMap.getInputSizes(int)for the provided format.addOutputSize(int format, Size outputSize) Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>)for the provided format.addOutputSize(Size outputSize) Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>).build()Builds a StreamConfigurationMap based on data previously added to this builder.Create a newStreamConfigurationMapBuilder.
-
Method Details
-
newBuilder
Create a newStreamConfigurationMapBuilder. -
addOutputSize
Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>)for the provided format.The provided format must be one of the formats defined in
ImageFormatorPixelFormat. -
addInputSize
Adds an input size to be returned byStreamConfigurationMap.getInputSizes(int)for the provided format.The provided format must be one of the formats defined in
ImageFormatorPixelFormat. -
addOutputSize
Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>).Calling this method is equivalent to calling
addOutputSize(int,android.util.Size)with formatImageFormat#PRIVATE. -
build
Builds a StreamConfigurationMap based on data previously added to this builder.
-