/**@class android.hardware.camera2.utils.SurfaceUtils @extends java.lang.Object Various Surface utilities. */ var SurfaceUtils = { /**Check if a surface is for preview consumer based on consumer end point Gralloc usage flags. @param {Object {Surface}} surface The surface to be checked. @return {Boolean} true if the surface is for preview consumer, false otherwise. */ isSurfaceForPreview : function( ) {}, /**Check if the surface is for hardware video encoder consumer based on consumer end point Gralloc usage flags. @param {Object {Surface}} surface The surface to be checked. @return {Boolean} true if the surface is for hardware video encoder consumer, false otherwise. */ isSurfaceForHwVideoEncoder : function( ) {}, /**Get the native object id of a surface. @param {Object {Surface}} surface The surface to be checked. @return {Number} the native object id of the surface, 0 if surface is not backed by a native object. */ getSurfaceId : function( ) {}, /**Get the Surface size. @param {Object {Surface}} surface The surface to be queried for size. @return {Object {android.util.Size}} Size of the surface. @throws IllegalArgumentException if the surface is already abandoned. */ getSurfaceSize : function( ) {}, /**Get the Surface format. @param {Object {Surface}} surface The surface to be queried for format. @return {Number} format of the surface. @throws IllegalArgumentException if the surface is already abandoned. */ getSurfaceFormat : function( ) {}, /**Get the Surface dataspace. @param {Object {Surface}} surface The surface to be queried for dataspace. @return {Number} dataspace of the surface. @throws IllegalArgumentException if the surface is already abandoned. */ getSurfaceDataspace : function( ) {}, /**Return true is the consumer is one of the consumers that can accept producer overrides of the default dimensions and format. */ isFlexibleConsumer : function( ) {}, /**Verify that that the surfaces are valid for high-speed recording mode, and that the FPS range is supported @param {Object {java.util.Collection}} surfaces the surfaces to verify as valid in terms of size and format @param {Object {android.util.Range}} fpsRange the target high-speed FPS range to validate @param {Object {StreamConfigurationMap}} config The stream configuration map for the device in question */ checkConstrainedHighSpeedSurfaces : function( ) {}, };