/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
FrameLayoutTest.java | 30 ViewGroup.LayoutParams layoutParams = frameLayout.getLayoutParams(); 31 assertThat(layoutParams, instanceOf(ViewGroup.MarginLayoutParams.class));
|
LayoutParamsTest.java | 15 Gallery.LayoutParams layoutParams = new Gallery.LayoutParams(123, 456); 16 assertThat(layoutParams.width, equalTo(123)); 17 assertThat(layoutParams.height, equalTo(456));
|
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);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
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...] |
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...] |
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...] |
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...] |
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...] |
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...] |
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...] |
AbsoluteLayoutTest.java | 32 import android.widget.AbsoluteLayout.LayoutParams; 45 private LayoutParams mAbsoluteLayoutParams; 56 mAbsoluteLayoutParams = new LayoutParams(DEFAULT_WIDTH, DEFAULT_HEIGHT, 87 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); 88 assertFalse(mMyAbsoluteLayout.checkLayoutParams(layoutParams)); 100 LayoutParams params = (LayoutParams) layout.generateLayoutParams(getAttributeSet()); 103 assertEquals(LayoutParams.MATCH_PARENT, params.width) [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...] |
/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);
|
/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;
|
/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/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/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/shadows/ |
ShadowViewStub.java | 83 ViewGroup.LayoutParams layoutParams = getLayoutParams(); 84 if (layoutParams != null) { 85 parent.addView(view, index, layoutParams);
|
/frameworks/base/core/java/android/preference/ |
PreferenceFrameLayout.java | 79 public LayoutParams generateLayoutParams(AttributeSet attrs) { 80 return new LayoutParams(getContext(), attrs); 90 android.view.ViewGroup.LayoutParams params = child.getLayoutParams(); 91 LayoutParams layoutParams = params instanceof PreferenceFrameLayout.LayoutParams 92 ? (PreferenceFrameLayout.LayoutParams) child.getLayoutParams() : null; 94 if (layoutParams != null && layoutParams.removeBorders) { 126 public static class LayoutParams extends FrameLayout.LayoutParams [all...] |
/frameworks/base/core/java/android/view/ |
ViewStub.java | 269 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); 270 if (layoutParams != null) { 271 parent.addView(view, index, layoutParams);
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
AlignmentTest.java | 86 LayoutParams layoutParams = new LayoutParams(spec(i, va), spec(j, ha)); 89 container.addView(factory.create(name, 20), layoutParams); 101 ViewGroup.LayoutParams lp = v.getLayoutParams();
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
PhotoSelectionActivity.java | 33 import android.widget.FrameLayout.LayoutParams; 136 private LayoutParams mPhotoStartParams; 139 private LayoutParams mPhotoEndParams; 305 LayoutParams layoutParams = new LayoutParams(mSourceBounds.width(), 311 layoutParams.setMargins(mOriginalPos.left, mOriginalPos.top, mOriginalPos.right, 313 mPhotoStartParams = layoutParams; 314 mPhotoView.setLayoutParams(layoutParams); 363 private LayoutParams getPhotoEndParams() [all...] |
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
AppWidgetHostActivity.java | 139 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( 140 LinearLayout.LayoutParams.MATCH_PARENT, 141 LinearLayout.LayoutParams.WRAP_CONTENT); 142 mAppWidgetContainer.addView(view, layoutParams);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerListItem.java | 123 ViewGroup.LayoutParams layoutParams = getLayoutParams(); 124 if (layoutParams != null) { 125 layoutParams.height = height;
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
QuickContactActivity.java | 230 getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, 231 WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); 733 final RelativeLayout.LayoutParams layoutParams = 734 (RelativeLayout.LayoutParams) mSelectedTabRectangle.getLayoutParams(); 735 final int width = layoutParams.width; 736 layoutParams.setMarginStart((int) ((position + positionOffset) * width)); 737 mSelectedTabRectangle.setLayoutParams(layoutParams);
|