Package com.android.sdklib.devices
Class Screen
- java.lang.Object
-
- com.android.sdklib.devices.Screen
-
public class Screen extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Screen()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScreendeepCopy()Returns a copy of the object that shares no state with it, but is initialized to equivalent values.booleanequals(java.lang.Object o)intgetChin()Get the "chin" height in pixels.doublegetDiagonalLength()intgetFoldedHeight()intgetFoldedHeight2()intgetFoldedHeight3()intgetFoldedWidth()intgetFoldedWidth2()intgetFoldedWidth3()intgetFoldedXOffset()intgetFoldedXOffset2()intgetFoldedXOffset3()intgetFoldedYOffset()intgetFoldedYOffset2()intgetFoldedYOffset3()com.android.resources.TouchScreengetMechanism()MultitouchgetMultitouch()com.android.resources.DensitygetPixelDensity()com.android.resources.ScreenRatiogetRatio()com.android.resources.ScreenRoundgetScreenRound()ScreenTypegetScreenType()com.android.resources.ScreenSizegetSize()intgetXDimension()doublegetXdpi()intgetYDimension()doublegetYdpi()inthashCode()booleanisFoldable()voidsetChin(int chin)Sets the "chin" height in pixels.voidsetDiagonalLength(double diagonalLength)voidsetFoldedHeight(int height)voidsetFoldedHeight2(int height)voidsetFoldedHeight3(int height)voidsetFoldedWidth(int width)voidsetFoldedWidth2(int width)voidsetFoldedWidth3(int width)voidsetFoldedXOffset(int xOffset)voidsetFoldedXOffset2(int xOffset)voidsetFoldedXOffset3(int xOffset)voidsetFoldedYOffset(int yOffset)voidsetFoldedYOffset2(int yOffset)voidsetFoldedYOffset3(int yOffset)voidsetMechanism(com.android.resources.TouchScreen mechanism)voidsetMultitouch(Multitouch m)voidsetPixelDensity(com.android.resources.Density pDensity)voidsetRatio(com.android.resources.ScreenRatio ratio)voidsetScreenRound(com.android.resources.ScreenRound screenRound)voidsetScreenType(ScreenType screenType)voidsetSize(com.android.resources.ScreenSize s)voidsetXDimension(int xDimension)voidsetXdpi(double xdpi)voidsetYDimension(int yDimension)voidsetYdpi(double ydpi)java.lang.StringtoString()
-
-
-
Method Detail
-
getSize
public com.android.resources.ScreenSize getSize()
-
setSize
public void setSize(com.android.resources.ScreenSize s)
-
getDiagonalLength
public double getDiagonalLength()
-
setDiagonalLength
public void setDiagonalLength(double diagonalLength)
-
getPixelDensity
public com.android.resources.Density getPixelDensity()
-
setPixelDensity
public void setPixelDensity(com.android.resources.Density pDensity)
-
getRatio
public com.android.resources.ScreenRatio getRatio()
-
setRatio
public void setRatio(com.android.resources.ScreenRatio ratio)
-
getXDimension
public int getXDimension()
-
setXDimension
public void setXDimension(int xDimension)
-
getYDimension
public int getYDimension()
-
setYDimension
public void setYDimension(int yDimension)
-
getXdpi
public double getXdpi()
-
setXdpi
public void setXdpi(double xdpi)
-
getYdpi
public double getYdpi()
-
setYdpi
public void setYdpi(double ydpi)
-
getMultitouch
public Multitouch getMultitouch()
-
setMultitouch
public void setMultitouch(Multitouch m)
-
getMechanism
public com.android.resources.TouchScreen getMechanism()
-
setMechanism
public void setMechanism(com.android.resources.TouchScreen mechanism)
-
getScreenType
public ScreenType getScreenType()
-
setScreenType
public void setScreenType(ScreenType screenType)
-
getScreenRound
@Nullable public com.android.resources.ScreenRound getScreenRound()
-
setScreenRound
public void setScreenRound(@Nullable com.android.resources.ScreenRound screenRound)
-
isFoldable
public boolean isFoldable()
-
setFoldedXOffset
public void setFoldedXOffset(int xOffset)
-
getFoldedXOffset
public int getFoldedXOffset()
-
setFoldedYOffset
public void setFoldedYOffset(int yOffset)
-
getFoldedYOffset
public int getFoldedYOffset()
-
setFoldedWidth
public void setFoldedWidth(int width)
-
getFoldedWidth
public int getFoldedWidth()
-
setFoldedHeight
public void setFoldedHeight(int height)
-
getFoldedHeight
public int getFoldedHeight()
-
setFoldedXOffset2
public void setFoldedXOffset2(int xOffset)
-
getFoldedXOffset2
public int getFoldedXOffset2()
-
setFoldedYOffset2
public void setFoldedYOffset2(int yOffset)
-
getFoldedYOffset2
public int getFoldedYOffset2()
-
setFoldedWidth2
public void setFoldedWidth2(int width)
-
getFoldedWidth2
public int getFoldedWidth2()
-
setFoldedHeight2
public void setFoldedHeight2(int height)
-
getFoldedHeight2
public int getFoldedHeight2()
-
setFoldedXOffset3
public void setFoldedXOffset3(int xOffset)
-
getFoldedXOffset3
public int getFoldedXOffset3()
-
setFoldedYOffset3
public void setFoldedYOffset3(int yOffset)
-
getFoldedYOffset3
public int getFoldedYOffset3()
-
setFoldedWidth3
public void setFoldedWidth3(int width)
-
getFoldedWidth3
public int getFoldedWidth3()
-
setFoldedHeight3
public void setFoldedHeight3(int height)
-
getFoldedHeight3
public int getFoldedHeight3()
-
getChin
public int getChin()
Get the "chin" height in pixels. This is for round screens with a flat section at the bottom. The "chin" height is the largest perpendicular distance from the flat section to the original circle.- Returns:
- The offset in pixels.
-
setChin
public void setChin(int chin)
Sets the "chin" height in pixels.- See Also:
getChin()
-
deepCopy
public Screen deepCopy()
Returns a copy of the object that shares no state with it, but is initialized to equivalent values.- Returns:
- A copy of the object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-