Home | History | Annotate | Download | only in inputmethodservice

Lines Matching refs:lp

39         WindowManager.LayoutParams lp = getWindow().getAttributes();
40 lp.token = token;
41 getWindow().setAttributes(lp);
95 WindowManager.LayoutParams lp = getWindow().getAttributes();
97 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) {
98 return lp.height;
100 return lp.width;
114 WindowManager.LayoutParams lp = getWindow().getAttributes();
116 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) {
117 lp.width = -1;
118 lp.height = size;
120 lp.width = size;
121 lp.height = -1;
123 getWindow().setAttributes(lp);
135 WindowManager.LayoutParams lp = getWindow().getAttributes();
137 boolean oldIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM);
139 lp.gravity = gravity;
141 boolean newIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM);
144 int tmp = lp.width;
145 lp.width = lp.height;
146 lp.height = tmp;
147 getWindow().setAttributes(lp);
152 WindowManager.LayoutParams lp = getWindow().getAttributes();
154 lp.type = WindowManager.LayoutParams.TYPE_INPUT_METHOD;
155 lp.setTitle("InputMethod");
157 lp.gravity = Gravity.BOTTOM;
158 lp.width = -1;
161 //lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;
163 getWindow().setAttributes(lp);