Search in sources :

Example 31 with ViewManager

use of android.view.ViewManager in project android_frameworks_base by crdroidandroid.

the class PhoneWindow method closeAllPanels.

@Override
public final void closeAllPanels() {
    final ViewManager wm = getWindowManager();
    if (wm == null) {
        return;
    }
    final PanelFeatureState[] panels = mPanels;
    final int N = panels != null ? panels.length : 0;
    for (int i = 0; i < N; i++) {
        final PanelFeatureState panel = panels[i];
        if (panel != null) {
            closePanel(panel, true);
        }
    }
    closeContextMenu();
}
Also used : ViewManager(android.view.ViewManager)

Example 32 with ViewManager

use of android.view.ViewManager in project android_frameworks_base by crdroidandroid.

the class Activity method makeVisible.

void makeVisible() {
    if (!mWindowAdded) {
        ViewManager wm = getWindowManager();
        wm.addView(mDecor, getWindow().getAttributes());
        mWindowAdded = true;
        DecorView.setAddedToWindow(mDecor);
    }
    mDecor.setVisibility(View.VISIBLE);
}
Also used : ViewManager(android.view.ViewManager)

Aggregations

ViewManager (android.view.ViewManager)32 WindowManager (android.view.WindowManager)13 RemoteException (android.os.RemoteException)7 View (android.view.View)7 IWindowManager (android.view.IWindowManager)6 LayoutParams (android.view.WindowManager.LayoutParams)6 ViewRootImpl (android.view.ViewRootImpl)5 WebView (android.webkit.WebView)5 DecorView (com.android.internal.policy.DecorView)4