Lines Matching refs:lp
50 WindowManager.LayoutParams lp = getWindow().getAttributes();
51 lp.token = token;
52 getWindow().setAttributes(lp);
112 WindowManager.LayoutParams lp = getWindow().getAttributes();
113 lp.gravity = gravity;
114 updateWidthHeight(lp);
115 getWindow().setAttributes(lp);
122 private void updateWidthHeight(WindowManager.LayoutParams lp) {
123 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) {
124 lp.width = WindowManager.LayoutParams.MATCH_PARENT;
125 lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
127 lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
128 lp.height = WindowManager.LayoutParams.MATCH_PARENT;
169 WindowManager.LayoutParams lp = getWindow().getAttributes();
171 lp.type = mWindowType;
172 lp.setTitle(mName);
174 lp.gravity = mGravity;
175 updateWidthHeight(lp);
177 getWindow().setAttributes(lp);