/frameworks/base/core/java/android/widget/ |
LinearLayout.java | 69 * {@link LinearLayout.LayoutParams.html#attr_android:layout_weight android:layout_weight} 76 * {@link android.widget.LinearLayout.LayoutParams LinearLayout.LayoutParams} 409 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 422 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 450 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 472 final LayoutParams lp = (LayoutParams) child.getLayoutParams() [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
DrawerLayout.java | 679 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; 752 final int drawerGravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; 814 final LayoutParams lp = (LayoutParams) activeDrawer.getLayoutParams(); 837 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 838 if ((lp.openState & LayoutParams.FLAG_IS_OPENED) == 1) { [all...] |
SlidingPaneLayout.java | 508 // First pass. Measure based on child LayoutParams width/height. 512 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 529 if (lp.width == LayoutParams.WRAP_CONTENT) { 532 } else if (lp.width == LayoutParams.MATCH_PARENT) { 540 if (lp.height == LayoutParams.WRAP_CONTENT) { 542 } else if (lp.height == LayoutParams.MATCH_PARENT) { 574 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 590 if (lp.height == LayoutParams.WRAP_CONTENT) [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
MotionEventTest.java | 90 WindowManager.LayoutParams wmlp = new WindowManager.LayoutParams( 91 WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, 92 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | 93 WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH | 94 WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); 100 ViewGroup.LayoutParams vglp = new ViewGroup.LayoutParams( 101 ViewGroup.LayoutParams.MATCH_PARENT, 102 ViewGroup.LayoutParams.MATCH_PARENT) [all...] |
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
SurfaceAndTextureViews.java | 37 import static android.widget.LinearLayout.LayoutParams; 56 mView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); 61 mSurfaceView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); 66 mTextureView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); 81 mView.setLayoutParams(new LayoutParams(SMALL_SIZE * 2, SMALL_SIZE)); 82 mSurfaceView.setLayoutParams(new LayoutParams(SMALL_SIZE * 2, SMALL_SIZE)); 83 mTextureView.setLayoutParams(new LayoutParams(SMALL_SIZE * 2, SMALL_SIZE)); 88 mView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); 89 mSurfaceView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); 90 mTextureView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)) [all...] |
/frameworks/base/tools/layoutlib/create/tests/data/ |
mock_android.jar | |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
TestedFrameLayout.java | 52 } else if (lp.width == LayoutParams.MATCH_PARENT) { 64 } else if (lp.height == LayoutParams.MATCH_PARENT) { 114 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { 119 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) { 124 public LayoutParams generateLayoutParams(AttributeSet attrs) { 129 protected LayoutParams generateDefaultLayoutParams() { 222 public static class FullControlLayoutParams extends FrameLayout.LayoutParams { 235 public FullControlLayoutParams(ViewGroup.LayoutParams source) { 239 public FullControlLayoutParams(FrameLayout.LayoutParams source) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TableRowTest.java | 164 assertTrue(mockTableRow.checkLayoutParams(new TableRow.LayoutParams(200, 300))); 166 assertFalse(mockTableRow.checkLayoutParams(new ViewGroup.LayoutParams(200, 300))); 168 assertFalse(mockTableRow.checkLayoutParams(new RelativeLayout.LayoutParams(200, 300))); 177 LinearLayout.LayoutParams layoutParams = mockTableRow.generateDefaultLayoutParams(); 178 assertNotNull(layoutParams); 179 assertTrue(layoutParams instanceof TableRow.LayoutParams); 186 LinearLayout.LayoutParams layoutParams = mockTableRow.generateLayoutParams [all...] |
FrameLayoutTest.java | 55 import android.widget.FrameLayout.LayoutParams; 202 ViewGroup.LayoutParams p = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 203 ViewGroup.LayoutParams.WRAP_CONTENT); 205 ViewGroup.LayoutParams params = myFrameLayout.generateLayoutParams(p); 207 assertTrue(params instanceof FrameLayout.LayoutParams); 208 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); 209 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, params.height); 216 FrameLayout.LayoutParams params = mFrameLayout.generateLayoutParams(attrs) [all...] |
GridLayoutTest.java | 163 new AbsoluteLayout.LayoutParams(0, 0, 0, 0)); 166 new GridLayout.LayoutParams(GridLayout.spec(0), GridLayout.spec(0))); 172 ViewGroup.LayoutParams lp = mGridLayout.generateLayoutParams(null); 174 assertTrue(lp instanceof GridLayout.LayoutParams); 175 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.width); 176 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.height); 187 GridLayout.LayoutParams generated = gridLayout.generateLayoutParams(lp); 207 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(0), spec(0)); 215 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(row), spec(0)) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
CarStatusBar.java | 32 import android.view.ViewGroup.LayoutParams; 110 ((LinearLayout.LayoutParams) signalsView.getLayoutParams()).setMarginEnd( 150 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 151 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 152 WindowManager.LayoutParams.TYPE_NAVIGATION_BAR, 153 WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING 154 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 155 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODA [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
ActionBarOverlayLayout.java | 291 LayoutParams lp = (LayoutParams)view.getLayoutParams(); 348 protected LayoutParams generateDefaultLayoutParams() { 349 return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); 353 public LayoutParams generateLayoutParams(AttributeSet attrs) { 354 return new LayoutParams(getContext(), attrs); 358 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) [all...] |
ActionBarContextView.java | 109 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, 110 LayoutParams.MATCH_PARENT); 116 addView(mMenuView, layoutParams); 124 layoutParams.width = LayoutParams.MATCH_PARENT; 125 layoutParams.height = mContentHeight; 130 mSplitView.addView(mMenuView, layoutParams); [all...] |
DialogViewAnimator.java | 57 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 58 final boolean matchWidth = lp.width == LayoutParams.MATCH_PARENT; 59 final boolean matchHeight = lp.height == LayoutParams.MATCH_PARENT; 113 if (lp.width == LayoutParams.MATCH_PARENT) { 125 if (lp.height == LayoutParams.MATCH_PARENT) {
|
/frameworks/support/design/src/android/support/design/widget/ |
CoordinatorLayout.java | 100 * {@link CoordinatorLayout.LayoutParams#setAnchorId(int) anchor}. This view id must correspond 105 * <p>Children can specify {@link CoordinatorLayout.LayoutParams#insetEdge} to describe how the 107 * {@link CoordinatorLayout.LayoutParams#dodgeInsetEdges} will be moved appropriately so that the 378 final Behavior b = ((LayoutParams) mBehaviorTouchView.getLayoutParams()).getBehavior(); 392 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 433 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 523 final LayoutParams lp = (LayoutParams) mBehaviorTouchView.getLayoutParams() [all...] |
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
OverlayDisplayWindow.java | 124 WindowManager.LayoutParams params = new WindowManager.LayoutParams( 125 WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 126 params.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 127 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 128 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 129 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 130 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 185 private WindowManager.LayoutParams mWindowParams; 285 mWindowParams = new WindowManager.LayoutParams( [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
OverlayDisplayWindow.java | 124 WindowManager.LayoutParams params = new WindowManager.LayoutParams( 125 WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 126 params.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 127 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 128 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 129 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 130 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 185 private WindowManager.LayoutParams mWindowParams; 285 mWindowParams = new WindowManager.LayoutParams( [all...] |
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
OverlayDisplayWindow.java | 124 WindowManager.LayoutParams params = new WindowManager.LayoutParams( 125 WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 126 params.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 127 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 128 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 129 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 130 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 185 private WindowManager.LayoutParams mWindowParams; 285 mWindowParams = new WindowManager.LayoutParams( [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
OverlayDisplayWindow.java | 129 WindowManager.LayoutParams params = new WindowManager.LayoutParams( 130 WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 131 params.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 132 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 133 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 134 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 135 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 196 private WindowManager.LayoutParams mWindowParams; 301 mWindowParams = new WindowManager.LayoutParams( [all...] |
/cts/tests/app/app2/src/com/android/app2/ |
AlertWindowService.java | 37 import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; 38 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 39 import static android.view.WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH; 40 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; 86 final WindowManager.LayoutParams params = new WindowManager.LayoutParams(
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PictureLayout.java | 59 public void addView(View child, LayoutParams params) { 68 public void addView(View child, int index, LayoutParams params) { 77 protected LayoutParams generateDefaultLayoutParams() { 78 return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
|
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
CustomArrayAdapter.java | 76 LinearLayout.LayoutParams linearLayoutParams = new LinearLayout.LayoutParams 77 (AbsListView.LayoutParams.MATCH_PARENT, object.getCollapsedHeight()); 89 convertView.setLayoutParams(new ListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT, 90 AbsListView.LayoutParams.WRAP_CONTENT));
|
/external/glide/library/src/main/java/com/bumptech/glide/request/target/ |
ViewTarget.java | 61 * {@link android.view.ViewGroup.LayoutParams}. If one or both of the params width and height are less than or 135 ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); 139 notifyCbs(layoutParams.width, layoutParams.height); 160 ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); 164 cb.onSizeReady(layoutParams.width, layoutParams.height); 195 final ViewGroup.LayoutParams layoutParams = view.getLayoutParams() [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
SurfaceCompositionMeasuringActivity.java | 251 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); 261 rootLayout.setLayoutParams(new ViewGroup.LayoutParams( 262 ViewGroup.LayoutParams.MATCH_PARENT, 263 ViewGroup.LayoutParams.MATCH_PARENT)); 266 layout.setLayoutParams(new ViewGroup.LayoutParams( 267 ViewGroup.LayoutParams.MATCH_PARENT, 268 ViewGroup.LayoutParams.MATCH_PARENT)); 287 controlLayout.setLayoutParams(new ViewGroup.LayoutParams( 288 ViewGroup.LayoutParams.MATCH_PARENT, 289 ViewGroup.LayoutParams.MATCH_PARENT)) [all...] |
/frameworks/base/tests/testables/src/android/testing/ |
BaseFragmentTest.java | 31 import android.view.WindowManager.LayoutParams; 124 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 125 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 126 LayoutParams.TYPE_SYSTEM_ALERT,
|