android.view
Interface IWindowSession
- All Superinterfaces:
- IInterface
- All Known Implementing Classes:
- IWindowSession.Stub
public interface IWindowSession
- extends IInterface
System private per-application interface to the window manager.
|
Nested Class Summary |
static class |
IWindowSession.Stub
Local-side IPC implementation stub class. |
|
Method Summary |
int |
add(IWindow window,
WindowManager.LayoutParams attrs,
int viewVisibility,
Rect outCoveredInsets)
|
void |
finishDrawing(IWindow window)
|
void |
finishKey(IWindow window)
|
boolean |
getInTouchMode()
|
MotionEvent |
getPendingPointerMove(IWindow window)
|
MotionEvent |
getPendingTrackballMove(IWindow window)
|
int |
relayout(IWindow window,
WindowManager.LayoutParams attrs,
int requestedWidth,
int requestedHeight,
int viewVisibility,
Rect outFrame,
Rect outCoveredInsets,
Surface outSurface)
Change the parameters of a window. |
void |
remove(IWindow window)
|
void |
setInTouchMode(boolean showFocus)
|
void |
setTransparentRegion(IWindow window,
Region region)
|
add
int add(IWindow window,
WindowManager.LayoutParams attrs,
int viewVisibility,
Rect outCoveredInsets)
throws RemoteException
- Throws:
RemoteException
remove
void remove(IWindow window)
throws RemoteException
- Throws:
RemoteException
relayout
int relayout(IWindow window,
WindowManager.LayoutParams attrs,
int requestedWidth,
int requestedHeight,
int viewVisibility,
Rect outFrame,
Rect outCoveredInsets,
Surface outSurface)
throws RemoteException
- 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.
- Parameters:
window - The window being modified.attrs - If non-null, new attributes to apply to the window.requestedWidth - The width the window wants to be.requestedHeight - The height the window wants to be.viewVisibility - Window root view's visibility.outFrame - Object in which is placed the new position/size on
screen.outCoveredInsets - Object in which is placed the insets for the areas covered by
system windows (e.g. status bar)outSurface - Object in which is placed the new display surface.
- Returns:
- int Result flags:
WindowManagerImpl#RELAYOUT_SHOW_FOCUS,
WindowManagerImpl.RELAYOUT_FIRST_TIME.
- Throws:
RemoteException
finishDrawing
void finishDrawing(IWindow window)
throws RemoteException
- Throws:
RemoteException
finishKey
void finishKey(IWindow window)
throws RemoteException
- Throws:
RemoteException
getPendingPointerMove
MotionEvent getPendingPointerMove(IWindow window)
throws RemoteException
- Throws:
RemoteException
getPendingTrackballMove
MotionEvent getPendingTrackballMove(IWindow window)
throws RemoteException
- Throws:
RemoteException
setTransparentRegion
void setTransparentRegion(IWindow window,
Region region)
throws RemoteException
- Throws:
RemoteException
setInTouchMode
void setInTouchMode(boolean showFocus)
throws RemoteException
- Throws:
RemoteException
getInTouchMode
boolean getInTouchMode()
throws RemoteException
- Throws:
RemoteException
Please submit a feedback, bug or feature