public class CompatibilityInfo.Translator extends Object
Modifier and Type | Field and Description |
---|---|
float |
applicationInvertedScale |
float |
applicationScale |
Modifier and Type | Method and Description |
---|---|
Rect |
getTranslatedContentInsets(Rect contentInsets)
Translate the content insets in application window to Screen.
|
Region |
getTranslatedTouchableArea(Region touchableArea)
Translate the touchable area in application window to Screen.
|
Rect |
getTranslatedVisibleInsets(Rect visibleInsets)
Translate the visible insets in application window to Screen.
|
void |
translateCanvas(Canvas canvas)
Apply translation to the canvas that is necessary to draw the content.
|
void |
translateEventInScreenToAppWindow(MotionEvent event)
Translate the motion event captured on screen to the application's window.
|
void |
translateLayoutParamsInAppWindowToScreen(WindowManager.LayoutParams params)
Translate the location of the sub window.
|
void |
translatePointInScreenToAppWindow(PointF point)
Translate a Point in screen coordinates into the app window's coordinates.
|
void |
translateRectInAppWindowToScreen(Rect rect)
Translate a Rect in application's window to screen.
|
void |
translateRectInScreenToAppWindow(Rect rect)
Translate a Rect in screen coordinates into the app window's coordinates.
|
void |
translateRectInScreenToAppWinFrame(Rect rect)
Translate the screen rect to the application frame.
|
void |
translateRegionInWindowToScreen(Region transparentRegion)
Translate the region in window to screen.
|
void |
translateWindowLayout(WindowManager.LayoutParams params)
Translate the window's layout parameter, from application's view to
Screen's view.
|
public final float applicationScale
public final float applicationInvertedScale
public void translateRectInScreenToAppWinFrame(Rect rect)
public void translateRegionInWindowToScreen(Region transparentRegion)
public void translateCanvas(Canvas canvas)
public void translateEventInScreenToAppWindow(MotionEvent event)
public void translateWindowLayout(WindowManager.LayoutParams params)
public void translateRectInAppWindowToScreen(Rect rect)
public void translateRectInScreenToAppWindow(Rect rect)
public void translatePointInScreenToAppWindow(PointF point)
public void translateLayoutParamsInAppWindowToScreen(WindowManager.LayoutParams params)
params
- public Rect getTranslatedContentInsets(Rect contentInsets)
public Rect getTranslatedVisibleInsets(Rect visibleInsets)