FileDocCategorySizeDatePackage
DisplayViewport.javaAPI DocAndroid 5.1 API2792Thu Mar 12 22:22:10 GMT 2015android.hardware.display

DisplayViewport

public final class DisplayViewport extends Object
Describes how the pixels of physical display device reflects the content of a logical display.

This information is used by the input system to translate touch input from physical display coordinates into logical display coordinates.

hide
Only for use within the system server.

Fields Summary
public boolean
valid
public int
displayId
public int
orientation
public final android.graphics.Rect
logicalFrame
public final android.graphics.Rect
physicalFrame
public int
deviceWidth
public int
deviceHeight
Constructors Summary
Methods Summary
public voidcopyFrom(android.hardware.display.DisplayViewport viewport)


        
        valid = viewport.valid;
        displayId = viewport.displayId;
        orientation = viewport.orientation;
        logicalFrame.set(viewport.logicalFrame);
        physicalFrame.set(viewport.physicalFrame);
        deviceWidth = viewport.deviceWidth;
        deviceHeight = viewport.deviceHeight;
    
public java.lang.StringtoString()

        return "DisplayViewport{valid=" + valid
                + ", displayId=" + displayId
                + ", orientation=" + orientation
                + ", logicalFrame=" + logicalFrame
                + ", physicalFrame=" + physicalFrame
                + ", deviceWidth=" + deviceWidth
                + ", deviceHeight=" + deviceHeight
                + "}";