Lines Matching refs:win

1994     public boolean canBeForceHidden(WindowState win, WindowManager.LayoutParams attrs) {
2042 Window win = PolicyManager.makeNewWindow(context);
2043 final TypedArray ta = win.getWindowStyle();
2052 win.setTitle(r.getText(labelRes, nonLocalizedLabel));
2054 win.setType(
2060 win.setFlags(
2070 win.setDefaultIcon(icon);
2071 win.setDefaultLogo(logo);
2073 win.setLayout(WindowManager.LayoutParams.MATCH_PARENT,
2076 final WindowManager.LayoutParams params = win.getAttributes();
2079 params.windowAnimations = win.getWindowStyle().getResourceId(
2092 view = win.getDecorView();
2094 if (win.isFloating()) {
2154 * @param win The window to be added
2161 public int prepareAddWindowLw(WindowState win, WindowManager.LayoutParams attrs) {
2172 mStatusBar = win;
2173 mStatusBarController.setWindow(win);
2184 mNavigationBar = win;
2185 mNavigationBarController.setWindow(win);
2207 mKeyguardScrim = win;
2215 public void removeWindowLw(WindowState win) {
2216 if (mStatusBar == win) {
2220 } else if (mKeyguardScrim == win) {
2223 } if (mNavigationBar == win) {
2233 public int selectAnimationLw(WindowState win, int transit) {
2234 if (PRINT_ANIM) Log.i(TAG, "selectAnimation in " + win
2236 if (win == mStatusBar) {
2237 boolean isKeyguard = (win.getAttrs().privateFlags & PRIVATE_FLAG_KEYGUARD) != 0;
2245 } else if (win == mNavigationBar) {
2267 if (win.hasAppShownWindows()) {
2271 } else if (win.getAttrs().type == TYPE_DREAM && mDreamingLockscreen
2397 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) {
2485 WindowManager.LayoutParams attrs = win != null ? win.getAttrs() : null;
2769 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) {
2772 Slog.d(TAG, "Unhandled key: win=" + win + ", action=" + event.getAction()
2811 if (!interceptFallback(win, fallbackEvent, policyFlags)) {
2835 private boolean interceptFallback(WindowState win, KeyEvent fallbackEvent, int policyFlags) {
2839 win, fallbackEvent, policyFlags);
3424 void setAttachedWindowFrames(WindowState win, int fl, int adjust, WindowState attached,
3426 if (win.getSurfaceLayer() > mDockLayer && attached.getSurfaceLayer() < mDockLayer) {
3503 public void layoutWindowLw(WindowState win, WindowState attached) {
3505 final WindowManager.LayoutParams attrs = win.getAttrs();
3506 if ((win == mStatusBar && (attrs.privateFlags & PRIVATE_FLAG_KEYGUARD) == 0) ||
3507 win == mNavigationBar) {
3510 final boolean isDefaultDisplay = win.isDefaultDisplay();
3512 (win == mLastInputMethodTargetWindow && mLastInputMethodWindow != null);
3518 final int fl = PolicyControl.getWindowFlags(win, attrs);
3520 final int sysUiFl = PolicyControl.getSystemUiVisibility(win, null);
3546 setAttachedWindowFrames(win, fl, adjust, attached, true, pf, df, of, cf, vf);
3566 mDockLayer = win.getSurfaceLayer();
3567 } else if (win == mStatusBar && (attrs.privateFlags & PRIVATE_FLAG_KEYGUARD) != 0) {
3590 win == mTopFullscreenOpaqueWindowState && !win.isAnimatingLw();
3621 setAttachedWindowFrames(win, fl, adjust, attached, true, pf, df, of, cf, vf);
3691 if (win.isVoiceInteraction()) {
3846 setAttachedWindowFrames(win, fl, adjust, attached, false, pf, df, of, cf, vf);
3875 if (win.isVoiceInteraction()) {
3923 win.computeFrameLw(pf, df, of, cf, vf, dcf, sf);
3927 if (attrs.type == TYPE_INPUT_METHOD && win.isVisibleOrBehindKeyguardLw()
3928 && !win.getGivenInsetsPendingLw()) {
3930 offsetInputMethodWindowLw(win);
3932 if (attrs.type == TYPE_VOICE_INTERACTION && win.isVisibleOrBehindKeyguardLw()
3933 && !win.getGivenInsetsPendingLw()) {
3934 offsetVoiceInputWindowLw(win);
3938 private void offsetInputMethodWindowLw(WindowState win) {
3939 int top = win.getContentFrameLw().top;
3940 top += win.getGivenContentInsetsLw().top;
3947 top = win.getVisibleFrameLw().top;
3948 top += win.getGivenVisibleInsetsLw().top;
3957 private void offsetVoiceInputWindowLw(WindowState win) {
3958 final int gravity = win.getAttrs().gravity;
3962 int right = win.getContentFrameLw().right - win.getGivenContentInsetsLw().right;
3968 int left = win.getContentFrameLw().left - win.getGivenContentInsetsLw().left;
3977 int bottom = win.getContentFrameLw().bottom - win.getGivenContentInsetsLw().bottom;
3983 int top = win.getContentFrameLw().top - win.getGivenContentInsetsLw().top;
4021 public void applyPostLayoutPolicyLw(WindowState win, WindowManager.LayoutParams attrs,
4024 if (DEBUG_LAYOUT) Slog.i(TAG, "Win " + win + ": isVisibleOrBehindKeyguardLw="
4025 + win.isVisibleOrBehindKeyguardLw());
4026 final int fl = PolicyControl.getWindowFlags(win, attrs);
4028 && win.isVisibleLw() && attrs.type == TYPE_INPUT_METHOD) {
4030 mForcingShowNavBarLayer = win.getSurfaceLayer();
4036 win.isVisibleOrBehindKeyguardLw() && !win.isGoneForLayoutLw()) {
4053 || (win.isVisibleLw() && win.hasDrawnLw())) {
4061 final IApplicationToken appToken = win.getAppToken();
4075 mWinShowWhenLocked = win;
4093 if (DEBUG_LAYOUT) Slog.v(TAG, "Fullscreen window: " + win);
4094 mTopFullscreenOpaqueWindowState = win;
4098 "Setting mDismissKeyguard true by win " + win);
4099 mDismissKeyguard = mWinDismissingKeyguard == win ?
4101 mWinDismissingKeyguard = win;
4105 "Setting mHideLockScreen to true by win " + win);
4115 mWinShowWhenLocked.getAppToken() != win.getAppToken()) {
4116 win.hideLw(false);
5933 public boolean performHapticFeedbackLw(WindowState win, int effectId, boolean always) {
5970 if (win != null) {
5971 owningUid = win.getOwningUid();
5972 owningPackage = win.getOwningPackage();
6001 final WindowState win = mFocusedWindow != null ? mFocusedWindow
6003 if (win == null) {
6006 if ((win.getAttrs().privateFlags & PRIVATE_FLAG_KEYGUARD) != 0 && mHideLockScreen == true) {
6016 int tmpVisibility = PolicyControl.getSystemUiVisibility(win, null)
6019 if (mForcingShowNavBar && win.getSurfaceLayer() < mForcingShowNavBarLayer) {
6020 tmpVisibility &= ~PolicyControl.adjustClearableFlags(win, View.SYSTEM_UI_CLEARABLE_FLAGS);
6022 final int visibility = updateSystemBarsLw(win, mLastSystemUiFlags, tmpVisibility);
6024 final boolean needsMenu = win.getNeedsMenuLw(mTopFullscreenOpaqueWindowState);
6026 && mFocusedApp == win.getAppToken()) {
6031 mFocusedApp = win.getAppToken();
6038 statusbar.setSystemUiVisibility(visibility, 0xffffffff, win.toString());
6050 private int updateSystemBarsLw(WindowState win, int oldVis, int vis) {
6059 boolean statusBarHasFocus = win.getAttrs().type == TYPE_STATUS_BAR;
6112 if (win != null && oldImmersiveMode != newImmersiveMode) {
6113 final String pkg = win.getOwningPackage();