IWindowSessionpublic interface IWindowSession implements android.os.IInterfaceSystem private per-application interface to the window manager.
{@hide} |
Methods Summary |
---|
public int | add(android.view.IWindow window, int seq, android.view.WindowManager.LayoutParams attrs, int viewVisibility, android.graphics.Rect outContentInsets, android.graphics.Rect outStableInsets, android.view.InputChannel outInputChannel)
| public int | addToDisplay(android.view.IWindow window, int seq, android.view.WindowManager.LayoutParams attrs, int viewVisibility, int layerStackId, android.graphics.Rect outContentInsets, android.graphics.Rect outStableInsets, android.view.InputChannel outInputChannel)
| public int | addToDisplayWithoutInputChannel(android.view.IWindow window, int seq, android.view.WindowManager.LayoutParams attrs, int viewVisibility, int layerStackId, android.graphics.Rect outContentInsets, android.graphics.Rect outStableInsets)
| public int | addWithoutInputChannel(android.view.IWindow window, int seq, android.view.WindowManager.LayoutParams attrs, int viewVisibility, android.graphics.Rect outContentInsets, android.graphics.Rect outStableInsets)
| public void | dragRecipientEntered(android.view.IWindow window)Tell the OS that we've just dragged into a View that is willing to accept the drop
| public void | dragRecipientExited(android.view.IWindow window)Tell the OS that we've just dragged *off* of a View that was willing to accept the drop
| public void | finishDrawing(android.view.IWindow window)
| public void | getDisplayFrame(android.view.IWindow window, android.graphics.Rect outDisplayFrame)Return the current display size in which the window is being laid out,
accounting for screen decorations around it.
| public boolean | getInTouchMode()
| public android.view.IWindowId | getWindowId(android.os.IBinder window)
| public void | onRectangleOnScreenRequested(android.os.IBinder token, android.graphics.Rect rectangle)Notifies that a rectangle on the screen has been requested.
| public boolean | outOfMemory(android.view.IWindow window)Called by a client to report that it ran out of graphics memory.
| public void | performDeferredDestroy(android.view.IWindow window)If a call to relayout() asked to have the surface destroy deferred,
it must call this once it is okay to destroy that surface.
| public boolean | performDrag(android.view.IWindow window, android.os.IBinder dragToken, float touchX, float touchY, float thumbCenterX, float thumbCenterY, android.content.ClipData data)Initiate the drag operation itself
| public boolean | performHapticFeedback(android.view.IWindow window, int effectId, boolean always)
| public android.os.IBinder | prepareDrag(android.view.IWindow window, int flags, int thumbnailWidth, int thumbnailHeight, android.view.Surface outSurface)Allocate the drag's thumbnail surface. Also assigns a token that identifies
the drag to the OS and passes that as the return value. A return value of
null indicates failure.
| public int | relayout(android.view.IWindow window, int seq, android.view.WindowManager.LayoutParams attrs, int requestedWidth, int requestedHeight, int viewVisibility, int flags, android.graphics.Rect outFrame, android.graphics.Rect outOverscanInsets, android.graphics.Rect outContentInsets, android.graphics.Rect outVisibleInsets, android.graphics.Rect outStableInsets, android.content.res.Configuration outConfig, android.view.Surface outSurface)Change the parameters of a window. You supply the
new parameters, it returns the new frame of the window on screen (the
position should be ignored) and surface of the window. The surface
will be invalid if the window is currently hidden, else you can use it
to draw the window's contents.
| public void | remove(android.view.IWindow window)
| public void | reportDropResult(android.view.IWindow window, boolean consumed)Report the result of a drop action targeted to the given window.
consumed is 'true' when the drop was accepted by a valid recipient,
'false' otherwise.
| public android.os.Bundle | sendWallpaperCommand(android.os.IBinder window, java.lang.String action, int x, int y, int z, android.os.Bundle extras, boolean sync)
| public void | setInTouchMode(boolean showFocus)
| public void | setInsets(android.view.IWindow window, int touchableInsets, android.graphics.Rect contentInsets, android.graphics.Rect visibleInsets, android.graphics.Region touchableRegion)Tell the window manager about the content and visible insets of the
given window, which can be used to adjust the outContentInsets
and outVisibleInsets values returned by
{@link #relayout relayout()} for windows behind this one.
| public void | setTransparentRegion(android.view.IWindow window, android.graphics.Region region)Give the window manager a hint of the part of the window that is
completely transparent, allowing it to work with the surface flinger
to optimize compositing of this part of the window.
| public void | setUniverseTransform(android.os.IBinder window, float alpha, float offx, float offy, float dsdx, float dtdx, float dsdy, float dtdy)
| public void | setWallpaperDisplayOffset(android.os.IBinder windowToken, int x, int y)Apply a raw offset to the wallpaper service when shown behind this window.
| public void | setWallpaperPosition(android.os.IBinder windowToken, float x, float y, float xstep, float ystep)For windows with the wallpaper behind them, and the wallpaper is
larger than the screen, set the offset within the screen.
For multi screen launcher type applications, xstep and ystep indicate
how big the increment is from one screen to another.
| public void | wallpaperCommandComplete(android.os.IBinder window, android.os.Bundle result)
| public void | wallpaperOffsetsComplete(android.os.IBinder window)
|
|