Methods Summary |
---|
public void | drawMagnifiedRegionBorderIfNeededLocked()NOTE: This has to be called within a surface transaction.
if (mDisplayMagnifier != null) {
mDisplayMagnifier.drawMagnifiedRegionBorderIfNeededLocked();
}
// Not relevant for the window observer.
|
public android.view.MagnificationSpec | getMagnificationSpecForWindowLocked(WindowState windowState)
if (mDisplayMagnifier != null) {
return mDisplayMagnifier.getMagnificationSpecForWindowLocked(windowState);
}
return null;
|
public boolean | hasCallbacksLocked()
return (mDisplayMagnifier != null
|| mWindowsForAccessibilityObserver != null);
|
public void | onAppWindowTransitionLocked(WindowState windowState, int transition)
if (mDisplayMagnifier != null) {
mDisplayMagnifier.onAppWindowTransitionLocked(windowState, transition);
}
// Not relevant for the window observer.
|
public void | onRectangleOnScreenRequestedLocked(android.graphics.Rect rectangle)
if (mDisplayMagnifier != null) {
mDisplayMagnifier.onRectangleOnScreenRequestedLocked(rectangle);
}
// Not relevant for the window observer.
|
public void | onRotationChangedLocked(DisplayContent displayContent, int rotation)
if (mDisplayMagnifier != null) {
mDisplayMagnifier.onRotationChangedLocked(displayContent, rotation);
}
if (mWindowsForAccessibilityObserver != null) {
mWindowsForAccessibilityObserver.scheduleComputeChangedWindowsLocked();
}
|
public void | onSomeWindowResizedOrMovedLocked()
// Not relevant for the display magnifier.
if (mWindowsForAccessibilityObserver != null) {
mWindowsForAccessibilityObserver.scheduleComputeChangedWindowsLocked();
}
|
public void | onWindowFocusChangedNotLocked()
// Not relevant for the display magnifier.
WindowsForAccessibilityObserver observer = null;
synchronized (mWindowManagerService) {
observer = mWindowsForAccessibilityObserver;
}
if (observer != null) {
observer.performComputeChangedWindowsNotLocked();
}
|
public void | onWindowLayersChangedLocked()
if (mDisplayMagnifier != null) {
mDisplayMagnifier.onWindowLayersChangedLocked();
}
if (mWindowsForAccessibilityObserver != null) {
mWindowsForAccessibilityObserver.scheduleComputeChangedWindowsLocked();
}
|
public void | onWindowTransitionLocked(WindowState windowState, int transition)
if (mDisplayMagnifier != null) {
mDisplayMagnifier.onWindowTransitionLocked(windowState, transition);
}
if (mWindowsForAccessibilityObserver != null) {
mWindowsForAccessibilityObserver.scheduleComputeChangedWindowsLocked();
}
|
private static void | populateTransformationMatrixLocked(WindowState windowState, android.graphics.Matrix outMatrix)
sTempFloats[Matrix.MSCALE_X] = windowState.mWinAnimator.mDsDx;
sTempFloats[Matrix.MSKEW_Y] = windowState.mWinAnimator.mDtDx;
sTempFloats[Matrix.MSKEW_X] = windowState.mWinAnimator.mDsDy;
sTempFloats[Matrix.MSCALE_Y] = windowState.mWinAnimator.mDtDy;
sTempFloats[Matrix.MTRANS_X] = windowState.mShownFrame.left;
sTempFloats[Matrix.MTRANS_Y] = windowState.mShownFrame.top;
sTempFloats[Matrix.MPERSP_0] = 0;
sTempFloats[Matrix.MPERSP_1] = 0;
sTempFloats[Matrix.MPERSP_2] = 1;
outMatrix.setValues(sTempFloats);
|
public void | setMagnificationCallbacksLocked(android.view.WindowManagerInternal.MagnificationCallbacks callbacks)
if (callbacks != null) {
if (mDisplayMagnifier != null) {
throw new IllegalStateException("Magnification callbacks already set!");
}
mDisplayMagnifier = new DisplayMagnifier(mWindowManagerService, callbacks);
} else {
if (mDisplayMagnifier == null) {
throw new IllegalStateException("Magnification callbacks already cleared!");
}
mDisplayMagnifier.destroyLocked();
mDisplayMagnifier = null;
}
|
public void | setMagnificationSpecLocked(android.view.MagnificationSpec spec)
if (mDisplayMagnifier != null) {
mDisplayMagnifier.setMagnificationSpecLocked(spec);
}
if (mWindowsForAccessibilityObserver != null) {
mWindowsForAccessibilityObserver.scheduleComputeChangedWindowsLocked();
}
|
public void | setWindowsForAccessibilityCallback(android.view.WindowManagerInternal.WindowsForAccessibilityCallback callback)
if (callback != null) {
if (mWindowsForAccessibilityObserver != null) {
throw new IllegalStateException(
"Windows for accessibility callback already set!");
}
mWindowsForAccessibilityObserver = new WindowsForAccessibilityObserver(
mWindowManagerService, callback);
} else {
if (mWindowsForAccessibilityObserver == null) {
throw new IllegalStateException(
"Windows for accessibility callback already cleared!");
}
mWindowsForAccessibilityObserver = null;
}
|