Build 1.0_r1(from source)

android.view
Class WindowManagerImpl

java.lang.Object
  extended by android.view.WindowManagerImpl
All Implemented Interfaces:
ViewManager, WindowManager

public class WindowManagerImpl
extends Object
implements WindowManager

Low-level communication with the global system window manager. It implements the ViewManager interface, allowing you to add any View subclass as a top-level window on the screen. Additional window manager specific layout parameters are defined for control over how windows are displayed. It also implemens the WindowManager interface, allowing you to control the displays attached to the device.

Applications will not normally use WindowManager directly, instead relying on the higher-level facilities in Activity and Dialog.

Even for low-level window manager access, it is almost never correct to use this class. For example, Activity.getWindowManager() provides a ViewManager for adding windows that are associated with that activity -- the window manager will not normally allow you to add arbitrary windows that are not associated with an activity.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.view.WindowManager
WindowManager.BadTokenException, WindowManager.LayoutParams
 
Field Summary
static int ADD_APP_EXITING
           
static int ADD_BAD_APP_TOKEN
           
static int ADD_BAD_SUBWINDOW_TOKEN
           
static int ADD_DUPLICATE_ADD
           
static int ADD_FLAG_APP_VISIBLE
           
static int ADD_FLAG_IN_TOUCH_MODE
           
static int ADD_MULTIPLE_SINGLETON
           
static int ADD_NOT_APP_TOKEN
           
static int ADD_OKAY
           
static int ADD_PERMISSION_DENIED
           
static int ADD_STARTING_NOT_NEEDED
           
static int RELAYOUT_FIRST_TIME
          This is the first time the window is being drawn, so the client must call drawingFinished() when done
static int RELAYOUT_IN_TOUCH_MODE
          The user is navigating with keys (not the touch screen), so navigational focus should be shown.
 
Constructor Summary
WindowManagerImpl()
           
 
Method Summary
 void addView(View view)
           
 void addView(View view, ViewGroup.LayoutParams params)
           
 void addViewNesting(View view, ViewGroup.LayoutParams params)
           
 void closeAll()
           
 void closeAll(IBinder token, String who, String what)
           
(package private)  void finishRemoveViewLocked(View view, int index)
           
static WindowManagerImpl getDefault()
           
 Display getDefaultDisplay()
          Use this method to get the default Display object.
 void removeView(View view)
           
 void removeViewImmediate(View view)
          Special variation of ViewManager.removeView(android.view.View) that immediately invokes the given view hierarchy's View.onDetachedFromWindow() methods before returning.
(package private)  View removeViewLocked(int index)
           
 void updateViewLayout(View view, ViewGroup.LayoutParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELAYOUT_IN_TOUCH_MODE

public static final int RELAYOUT_IN_TOUCH_MODE
The user is navigating with keys (not the touch screen), so navigational focus should be shown.

See Also:
Constant Field Values

RELAYOUT_FIRST_TIME

public static final int RELAYOUT_FIRST_TIME
This is the first time the window is being drawn, so the client must call drawingFinished() when done

See Also:
Constant Field Values

ADD_FLAG_APP_VISIBLE

public static final int ADD_FLAG_APP_VISIBLE
See Also:
Constant Field Values

ADD_FLAG_IN_TOUCH_MODE

public static final int ADD_FLAG_IN_TOUCH_MODE
See Also:
Constant Field Values

ADD_OKAY

public static final int ADD_OKAY
See Also:
Constant Field Values

ADD_BAD_APP_TOKEN

public static final int ADD_BAD_APP_TOKEN
See Also:
Constant Field Values

ADD_BAD_SUBWINDOW_TOKEN

public static final int ADD_BAD_SUBWINDOW_TOKEN
See Also:
Constant Field Values

ADD_NOT_APP_TOKEN

public static final int ADD_NOT_APP_TOKEN
See Also:
Constant Field Values

ADD_APP_EXITING

public static final int ADD_APP_EXITING
See Also:
Constant Field Values

ADD_DUPLICATE_ADD

public static final int ADD_DUPLICATE_ADD
See Also:
Constant Field Values

ADD_STARTING_NOT_NEEDED

public static final int ADD_STARTING_NOT_NEEDED
See Also:
Constant Field Values

ADD_MULTIPLE_SINGLETON

public static final int ADD_MULTIPLE_SINGLETON
See Also:
Constant Field Values

ADD_PERMISSION_DENIED

public static final int ADD_PERMISSION_DENIED
See Also:
Constant Field Values
Constructor Detail

WindowManagerImpl

public WindowManagerImpl()
Method Detail

getDefault

public static WindowManagerImpl getDefault()

addView

public void addView(View view)

addView

public void addView(View view,
                    ViewGroup.LayoutParams params)
Specified by:
addView in interface ViewManager

addViewNesting

public void addViewNesting(View view,
                           ViewGroup.LayoutParams params)

updateViewLayout

public void updateViewLayout(View view,
                             ViewGroup.LayoutParams params)
Specified by:
updateViewLayout in interface ViewManager

removeView

public void removeView(View view)
Specified by:
removeView in interface ViewManager

removeViewImmediate

public void removeViewImmediate(View view)
Description copied from interface: WindowManager
Special variation of ViewManager.removeView(android.view.View) that immediately invokes the given view hierarchy's View.onDetachedFromWindow() methods before returning. This is not for normal applications; using it correctly requires great care.

Specified by:
removeViewImmediate in interface WindowManager
Parameters:
view - The view to be removed.

removeViewLocked

View removeViewLocked(int index)

finishRemoveViewLocked

void finishRemoveViewLocked(View view,
                            int index)

closeAll

public void closeAll(IBinder token,
                     String who,
                     String what)

closeAll

public void closeAll()

getDefaultDisplay

public Display getDefaultDisplay()
Description copied from interface: WindowManager
Use this method to get the default Display object.

Specified by:
getDefaultDisplay in interface WindowManager
Returns:
default Display object

Build 1.0_r1(from source)

Please submit a feedback, bug or feature