/cts/tests/tests/widget/src/android/widget/cts/ |
AbsListView_LayoutParamsTest.java | 28 import android.widget.AbsListView.LayoutParams; 46 AbsListView.LayoutParams layoutParams; 48 layoutParams = new AbsListView.LayoutParams(getContext(), mAttributeSet); 49 assertEquals(TEST_WIDTH, layoutParams.width); 50 assertEquals(TEST_HEIGHT, layoutParams.height); 52 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT [all...] |
AbsoluteLayout_LayoutParamsTest.java | 29 import android.widget.AbsoluteLayout.LayoutParams; 43 LayoutParams layoutParams; 45 layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); 46 assertEquals(1, layoutParams.width); 47 assertEquals(2, layoutParams.height); 48 assertEquals(3, layoutParams.x); 49 assertEquals(4, layoutParams.y); 51 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams) [all...] |
RelativeLayout_LayoutParamsTest.java | 29 * Test {@link RelativeLayout.LayoutParams}. 40 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); 41 assertEquals(200, layoutParams.width); 42 assertEquals(300, layoutParams.height); 44 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; 45 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams) [all...] |
TableRow_LayoutParamsTest.java | 39 * Test {@link TableRow.LayoutParams}. 57 new TableRow.LayoutParams(mTargetContext, null); 59 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); 60 assertEquals(200, layoutParams.width); 61 assertEquals(300, layoutParams.height); 62 assertEquals(-1, layoutParams.column); 63 assertEquals(1, layoutParams.span); 64 ViewGroup.LayoutParams oldParams = layoutParams [all...] |
LinearLayout_LayoutParamsTest.java | 27 import android.view.ViewGroup.LayoutParams; 38 new LinearLayout.LayoutParams(getContext(), p); 40 new LinearLayout.LayoutParams(320, 240); 42 new LinearLayout.LayoutParams(320, 240, 0); 44 LayoutParams layoutParams = new LayoutParams(320, 480); 45 new LinearLayout.LayoutParams(layoutParams); 48 new LinearLayout.LayoutParams(marginLayoutParams) [all...] |
TableLayout_LayoutParamsTest.java | 34 * Test {@link TableLayout.LayoutParams}. 46 new TableLayout.LayoutParams(mTargetContext, null); 48 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(200, 300); 49 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); 50 assertEquals(300, layoutParams.height); 51 TableLayout.LayoutParams oldParams = layoutParams; [all...] |
RadioGroupTest.java | 37 import android.widget.RadioGroup.LayoutParams; 103 mDefaultRadioGroup.addView(newButton, new RadioGroup.LayoutParams( 104 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); 115 mDefaultRadioGroup.addView(newButton, new RadioGroup.LayoutParams( 116 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); 282 RadioGroup.LayoutParams layoutParams = 284 assertNotNull(layoutParams); [all...] |
TableRowTest.java | 146 assertTrue(mockTableRow.checkLayoutParams(new TableRow.LayoutParams(200, 300))); 148 assertFalse(mockTableRow.checkLayoutParams(new ViewGroup.LayoutParams(200, 300))); 150 assertFalse(mockTableRow.checkLayoutParams(new RelativeLayout.LayoutParams(200, 300))); 158 LinearLayout.LayoutParams layoutParams = mockTableRow.generateDefaultLayoutParams(); 159 assertNotNull(layoutParams); 160 assertTrue(layoutParams instanceof TableRow.LayoutParams); 166 LinearLayout.LayoutParams layoutParams = mockTableRow.generateLayoutParams [all...] |
RadioGroup_LayoutParamsTest.java | 34 import android.widget.RadioGroup.LayoutParams; 39 * Test {@link LayoutParams}. 42 private LayoutParams mLayoutParams; 51 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE); 56 mLayoutParams = new RadioGroup.LayoutParams(Integer.MAX_VALUE, Integer.MIN_VALUE); 61 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, 67 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, 73 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.LayoutParams(40, 60)); 79 new RadioGroup.LayoutParams((ViewGroup.LayoutParams) null) [all...] |
RelativeLayoutTest.java | 36 import android.view.ViewGroup.LayoutParams; 267 LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser); 268 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); 269 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); 273 RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams(200, 300); 278 RelativeLayout.LayoutParams layoutParams [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
LayoutParamsTest.java | 15 Gallery.LayoutParams layoutParams = new Gallery.LayoutParams(123, 456); 16 assertThat(layoutParams.width, equalTo(123)); 17 assertThat(layoutParams.height, equalTo(456));
|
FrameLayoutTest.java | 30 ViewGroup.LayoutParams layoutParams = frameLayout.getLayoutParams(); 31 assertThat(layoutParams, instanceOf(ViewGroup.MarginLayoutParams.class));
|
LinearLayoutTest.java | 17 ViewGroup.LayoutParams layoutParams = new LinearLayout(null).getLayoutParams(); 19 assertThat(layoutParams, instanceOf(LinearLayout.LayoutParams.class)); 25 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(1, 2);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
EllipsizeLayout.java | 97 final LinearLayout.LayoutParams layoutParams = 98 (LinearLayout.LayoutParams) child.getLayoutParams(); 99 if (layoutParams != null) { 100 outOfSpec |= (layoutParams.weight > 0f); 102 + layoutParams.leftMargin + layoutParams.rightMargin;
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
ApiCompatibilityUtils.java | 76 public static void setMarginEnd(MarginLayoutParams layoutParams, int end) { 78 layoutParams.setMarginEnd(end); 80 layoutParams.rightMargin = end; 87 public static int getMarginEnd(MarginLayoutParams layoutParams) { 89 return layoutParams.getMarginEnd(); 91 return layoutParams.rightMargin; 98 public static void setMarginStart(MarginLayoutParams layoutParams, int start) { 100 layoutParams.setMarginStart(start); 102 layoutParams.leftMargin = start; 109 public static int getMarginStart(MarginLayoutParams layoutParams) { [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PhotoPageProgressBar.java | 22 import android.view.ViewGroup.LayoutParams; 42 LayoutParams layoutParams = mProgress.getLayoutParams(); 43 layoutParams.width = mContainer.getWidth() * progressPercent / 100; 44 mProgress.setLayoutParams(layoutParams);
|
/frameworks/base/core/java/android/widget/ |
TableRow.java | 40 * {@link android.widget.TableLayout.LayoutParams#MATCH_PARENT} and 41 * {@link android.widget.TableLayout.LayoutParams#WRAP_CONTENT}.</p> 44 * Also see {@link TableRow.LayoutParams android.widget.TableRow.LayoutParams} 164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); 166 if (layoutParams.column >= virtualCount) { 167 virtualCount = layoutParams.column; 170 for (int j = 0; j < layoutParams.span; j++) [all...] |
/development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson3/ |
ClickFunActivityTest.java | 84 final ViewGroup.LayoutParams layoutParams = mClickMeButton.getLayoutParams(); 85 assertNotNull(layoutParams); 86 assertEquals(layoutParams.width, WindowManager.LayoutParams.MATCH_PARENT); 87 assertEquals(layoutParams.height, WindowManager.LayoutParams.WRAP_CONTENT);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowViewStub.java | 83 ViewGroup.LayoutParams layoutParams = getLayoutParams(); 84 if (layoutParams != null) { 85 parent.addView(view, index, layoutParams);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerListItem.java | 123 ViewGroup.LayoutParams layoutParams = getLayoutParams(); 124 if (layoutParams != null) { 125 layoutParams.height = height;
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
ColorSuggestionListAdapter.java | 102 layout.setLayoutParams(new AbsListView.LayoutParams( 103 AbsListView.LayoutParams.MATCH_PARENT, 104 AbsListView.LayoutParams.WRAP_CONTENT)); 111 LinearLayout.LayoutParams layoutParams = 112 new LinearLayout.LayoutParams(0, buttonHeight, 1f); 113 ApiCompatibilityUtils.setMarginStart(layoutParams, -1); 115 ApiCompatibilityUtils.setMarginEnd(layoutParams, -1); 117 button.setLayoutParams(layoutParams);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
TestWindowManager.java | 19 public void addView(View view, android.view.ViewGroup.LayoutParams layoutParams) { 29 public void updateViewLayout(View arg0, android.view.ViewGroup.LayoutParams arg1) {
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
RadioGroup1.java | 48 LinearLayout.LayoutParams layoutParams = new RadioGroup.LayoutParams( 49 RadioGroup.LayoutParams.WRAP_CONTENT, 50 RadioGroup.LayoutParams.WRAP_CONTENT); 51 mRadioGroup.addView(newRadioButton, 0, layoutParams);
|
/development/samples/Home/src/com/example/android/home/ |
ApplicationsStackLayout.java | 182 LayoutParams layoutParams = mButton.getLayoutParams(); 183 final int widthSpec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); 184 final int heightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); 241 LayoutParams layoutParams; 254 layoutParams = view.getLayoutParams(); 255 widthSpec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); 256 heightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); 278 addViewInLayout(view, -1, layoutParams); [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
ActionBarContextView.java | 96 final ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( 97 ViewGroup.LayoutParams.WRAP_CONTENT, 98 ViewGroup.LayoutParams.FILL_PARENT); 106 addView(mMenuView, layoutParams); 114 layoutParams.width = ViewGroup.LayoutParams.FILL_PARENT; 115 layoutParams.height = mContentHeight; 122 mSplitView.addView(mMenuView, layoutParams); [all...] |