Searched refs:LayoutParams (Results 101 - 125 of 387) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java38 import android.view.ViewGroup.LayoutParams;
124 WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION, 0);
148 WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION, 0);
180 WindowManager.LayoutParams.TYPE_TOAST, 0);
187 WindowManager.LayoutParams.TYPE_TOAST,
188 WindowManager.LayoutParams.FLAG_SECURE);
194 WindowManager.LayoutParams.TYPE_TOAST, 0);
200 WindowManager.LayoutParams.TYPE_TOAST,
201 WindowManager.LayoutParams.FLAG_SECURE);
234 WindowManager.LayoutParams
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java317 mListView.setLayoutParams(new ViewGroup.LayoutParams(
318 ViewGroup.LayoutParams.MATCH_PARENT,
319 ViewGroup.LayoutParams.MATCH_PARENT));
377 mHeaderTextView.setLayoutParams(new LinearLayout.LayoutParams(
378 ViewGroup.LayoutParams.MATCH_PARENT,
379 ViewGroup.LayoutParams.WRAP_CONTENT));
383 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams(
384 ViewGroup.LayoutParams.MATCH_PARENT,
385 ViewGroup.LayoutParams.MATCH_PARENT));
386 mListView.setLayoutParams((new LinearLayout.LayoutParams(
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DAppErrorDialog.java73 WindowManager.LayoutParams attrs = getWindow().getAttributes();
75 attrs.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_SYSTEM_ERROR
76 | WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS;
79 getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DSimplePathsActivity.java33 layout.addView(text, new FrameLayout.LayoutParams(600, 350, Gravity.CENTER));
H A DMaxBitmapSizeActivity.java36 layout.addView(view, new LinearLayout.LayoutParams(200, 200));
40 layout.addView(view, new LinearLayout.LayoutParams(200, 200));
H A DSmallCircleActivity.java38 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
41 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
/frameworks/base/core/java/android/view/
H A DSurfaceView.java100 final WindowManager.LayoutParams mLayout
101 = new WindowManager.LayoutParams();
115 int mWindowType = WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA;
306 if (mWindowType == WindowManager.LayoutParams.TYPE_APPLICATION_PANEL) {
333 if (mWindowType != WindowManager.LayoutParams.TYPE_APPLICATION_PANEL) {
345 if (mWindowType != WindowManager.LayoutParams.TYPE_APPLICATION_PANEL) {
368 ? WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY
369 : WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA;
387 mWindowType = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
389 mLayout.flags |= WindowManager.LayoutParams
[all...]
H A DWindowManagerImpl.java68 public void addView(View view, ViewGroup.LayoutParams params) {
73 public void updateViewLayout(View view, ViewGroup.LayoutParams params) {
H A DIWindowSession.aidl38 int add(IWindow window, int seq, in WindowManager.LayoutParams attrs,
41 int addToDisplay(IWindow window, int seq, in WindowManager.LayoutParams attrs,
44 int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs,
46 int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs,
89 int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs,
/frameworks/base/core/java/android/widget/
H A DZoomButtonsController.java38 import android.view.WindowManager.LayoutParams;
102 private LayoutParams mContainerLayoutParams;
242 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
245 lp.flags = LayoutParams.FLAG_NOT_TOUCHABLE |
246 LayoutParams.FLAG_NOT_FOCUSABLE |
247 LayoutParams.FLAG_LAYOUT_NO_LIMITS |
248 LayoutParams
[all...]
H A DRelativeLayout.java52 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT WRAP_CONTENT} and a child set to
75 * Also see {@link android.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams} for
459 LayoutParams params = (LayoutParams) child.getLayoutParams();
478 LayoutParams params = (LayoutParams) child.getLayoutParams();
526 LayoutParams params = (LayoutParams) child.getLayoutParams();
558 LayoutParams param
1198 public static class LayoutParams extends ViewGroup.MarginLayoutParams { class in class:RelativeLayout
1242 public LayoutParams(Context c, AttributeSet attrs) { method in class:RelativeLayout.LayoutParams
1337 public LayoutParams(int w, int h) { method in class:RelativeLayout.LayoutParams
1344 public LayoutParams(ViewGroup.LayoutParams source) { method in class:RelativeLayout.LayoutParams
1351 public LayoutParams(ViewGroup.MarginLayoutParams source) { method in class:RelativeLayout.LayoutParams
1361 public LayoutParams(LayoutParams source) { method in class:RelativeLayout.LayoutParams
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java271 LayoutParams lp = (LayoutParams) child.getLayoutParams();
338 IconMenuView.LayoutParams childLayoutParams = null;
365 childLayoutParams = (IconMenuView.LayoutParams) child.getLayoutParams();
431 IconMenuView.LayoutParams childLayoutParams;
435 childLayoutParams = (IconMenuView.LayoutParams)child
472 public LayoutParams generateLayoutParams(AttributeSet attrs) {
473 return new IconMenuView.LayoutParams(getContext(), attrs);
477 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
478 // Override to allow type-checking of LayoutParams
747 public static class LayoutParams extends ViewGroup.MarginLayoutParams class in class:IconMenuView
753 public LayoutParams(Context c, AttributeSet attrs) { method in class:IconMenuView.LayoutParams
757 public LayoutParams(int width, int height) { method in class:IconMenuView.LayoutParams
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DDrawerLayout.java510 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
609 final LayoutParams lp = (LayoutParams) activeDrawer.getLayoutParams();
627 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
657 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
686 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
696 return ((LayoutParams) drawerVie
1766 public static class LayoutParams extends ViewGroup.MarginLayoutParams { class in class:DrawerLayout
1773 public LayoutParams(Context c, AttributeSet attrs) { method in class:DrawerLayout.LayoutParams
1781 public LayoutParams(int width, int height) { method in class:DrawerLayout.LayoutParams
1785 public LayoutParams(int width, int height, int gravity) { method in class:DrawerLayout.LayoutParams
1790 public LayoutParams(LayoutParams source) { method in class:DrawerLayout.LayoutParams
1795 public LayoutParams(ViewGroup.LayoutParams source) { method in class:DrawerLayout.LayoutParams
1799 public LayoutParams(ViewGroup.MarginLayoutParams source) { method in class:DrawerLayout.LayoutParams
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPolicyControl.java27 import android.view.WindowManager.LayoutParams;
65 public static int getSystemUiVisibility(WindowState win, LayoutParams attrs) {
85 public static int getWindowFlags(WindowState win, LayoutParams attrs) {
89 flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
90 flags &= ~(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
91 | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
94 flags &= ~WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION;
100 final LayoutParams attrs = win != null ? win.getAttrs() : null;
195 boolean matches(LayoutParams attrs) {
197 boolean isApp = attrs.type >= WindowManager.LayoutParams
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayWindow.java79 private WindowManager.LayoutParams mWindowParams;
200 mWindowParams = new WindowManager.LayoutParams(
201 WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY);
202 mWindowParams.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
203 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
204 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
205 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
206 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
208 mWindowParams.flags |= WindowManager.LayoutParams.FLAG_SECURE;
211 mWindowParams.flags |= WindowManager.LayoutParams
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
H A DAddColumn.java47 newRow.addView(view, new TableRow.LayoutParams());
49 table.addView(newRow, new TableLayout.LayoutParams());
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
H A DGridLayoutTest.java41 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(rowSpec, colSpec);
42 //GridLayout.LayoutParams lp = new GridLayout.LayoutParams();
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
H A DWindowManagerImpl.java47 public void addView(View arg0, android.view.ViewGroup.LayoutParams arg1) {
57 public void updateViewLayout(View arg0, android.view.ViewGroup.LayoutParams arg1) {
/frameworks/base/core/java/com/android/internal/widget/
H A DTextProgressBar.java40 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}, then the
82 public void addView(View child, int index, ViewGroup.LayoutParams params) {
91 mChronometerFollow = (params.width == ViewGroup.LayoutParams.WRAP_CONTENT);
150 RelativeLayout.LayoutParams params;
153 params = (RelativeLayout.LayoutParams) mProgressBar.getLayoutParams();
176 params = (RelativeLayout.LayoutParams) mChronometer.getLayoutParams();
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DCrossfadeMultiple.java32 import static android.widget.LinearLayout.LayoutParams;
97 LayoutParams params = null;
100 params = new LayoutParams(200, 200);
106 params = new LayoutParams(400, 200);
112 params = new LayoutParams(200, 400);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DShadowOverlayContainer.java159 LayoutParams lp = mWrappedView.getLayoutParams();
160 if (lp.width == LayoutParams.MATCH_PARENT) {
166 if (lp.height == LayoutParams.MATCH_PARENT) {
183 if (lp.width == LayoutParams.MATCH_PARENT) {
190 if (lp.height == LayoutParams.MATCH_PARENT) {
/frameworks/base/core/java/android/app/
H A DActionBar.java240 public abstract void setCustomView(View view, LayoutParams layoutParams);
1309 public static class LayoutParams extends ViewGroup.MarginLayoutParams { class in class:ActionBar
1311 * Gravity for the view associated with these LayoutParams.
1333 public LayoutParams(@NonNull Context c, AttributeSet attrs) { method in class:ActionBar.LayoutParams
1344 public LayoutParams(int width, int height) { method in class:ActionBar.LayoutParams
1349 public LayoutParams(int width, int height, int gravity) { method in class:ActionBar.LayoutParams
1355 public LayoutParams(int gravity) { method in class:ActionBar.LayoutParams
1359 public LayoutParams(LayoutParams source) { method in class:ActionBar.LayoutParams
1364 public LayoutParams(ViewGrou method in class:ActionBar.LayoutParams
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardServiceDelegate.java288 int flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
289 | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR
290 | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN
291 | WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER
294 final int stretch = ViewGroup.LayoutParams.MATCH_PARENT;
295 final int type = WindowManager.LayoutParams.TYPE_KEYGUARD_SCRIM;
296 WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
298 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
300 lp.privateFlags |= WindowManager.LayoutParams
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java295 public RecyclerView.LayoutParams generateDefaultLayoutParams() {
296 return new RecyclerView.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
297 ViewGroup.LayoutParams.WRAP_CONTENT);
305 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) view.getLayoutParams();
318 RecyclerView.LayoutParams getLp(View v) {
319 return (RecyclerView.LayoutParams) v.getLayoutParams();
337 RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) vie
[all...]
/frameworks/base/core/java/android/service/dreams/
H A DDreamService.java45 import android.view.WindowManager.LayoutParams;
302 public void onWindowAttributesChanged(LayoutParams attrs) {
383 * @see #setContentView(android.view.View, android.view.ViewGroup.LayoutParams)
392 * including using {@link ViewGroup.LayoutParams#MATCH_PARENT} as the layout height and width of the view.
399 * @see #setContentView(android.view.View, android.view.ViewGroup.LayoutParams)
408 * {@link android.app.Activity#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)}
421 public void setContentView(View view, ViewGroup.LayoutParams params) {
433 public void addContentView(View view, ViewGroup.LayoutParams params) {
498 * Controls {@link android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN}
507 int flag = WindowManager.LayoutParams
[all...]

Completed in 667 milliseconds

1234567891011>>