/frameworks/base/core/tests/coretests/src/android/preference/ |
H A D | ListPreferenceTest.java | 26 ListPreference lp = new ListPreference(getContext()); 27 lp.setEntries(entries); 28 lp.setEntryValues(entryValues); 30 lp.setValue(entryValues[1]); 31 assertTrue(lp.getSummary() == null); 33 lp.setSummary("%1$s"); 34 assertEquals(entries[1], lp.getSummary()); 36 lp.setValue(entryValues[2]); 37 assertEquals(entries[2], lp.getSummary()); 39 lp [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 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 [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | LinearLayout.java | 326 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 327 final int top = child.getTop() - lp.topMargin - mDividerHeight; 339 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 340 bottom = child.getBottom() + lp.bottomMargin; 354 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 357 position = child.getRight() + lp.rightMargin; 359 position = child.getLeft() - lp.leftMargin - mDividerWidth; 376 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 378 position = child.getLeft() - lp.leftMargin - mDividerWidth; 380 position = child.getRight() + lp [all...] |
H A D | FrameLayout.java | 311 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 313 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); 315 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin); 318 if (lp.width == LayoutParams.MATCH_PARENT || 319 lp.height == LayoutParams.MATCH_PARENT) { 350 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 354 if (lp.width == LayoutParams.MATCH_PARENT) { 357 lp [all...] |
H A D | ViewSwitcher.java | 95 LayoutParams lp = (LayoutParams) child.getLayoutParams(); 96 if (lp == null) { 97 lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); 99 addView(child, lp);
|
H A D | TableRow.java | 195 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 200 final int span = lp.span; 206 final int gravity = lp.gravity; 217 Math.max(0, columnWidth - lp.leftMargin - lp.rightMargin), measureMode 220 mPaddingTop + mPaddingBottom + lp.topMargin + 221 lp .bottomMargin + totalHeight, lp.height); 227 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; 236 lp [all...] |
H A D | AbsoluteLayout.java | 72 AbsoluteLayout.LayoutParams lp 75 childRight = lp.x + child.getMeasuredWidth(); 76 childBottom = lp.y + child.getMeasuredHeight(); 115 AbsoluteLayout.LayoutParams lp = 118 int childLeft = mPaddingLeft + lp.x; 119 int childTop = mPaddingTop + lp.y;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenuView.java | 117 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 118 lp.leftMargin = lp.rightMargin = 0; 176 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 177 lp.expanded = false; 178 lp.extraPixels = 0; 179 lp.cellsUsed = 0; 180 lp.expandable = false; 181 lp.leftMargin = 0; 182 lp [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListViewHeight.java | 62 ViewGroup.MarginLayoutParams lp; 63 lp = (ViewGroup.MarginLayoutParams) mInnerList.getLayoutParams(); 64 lp.height = 200; 65 mInnerList.setLayoutParams(lp); 78 ViewGroup.MarginLayoutParams lp; 79 lp = (ViewGroup.MarginLayoutParams) mInnerList.getLayoutParams(); 80 lp.height = lp.MATCH_PARENT; 81 mInnerList.setLayoutParams(lp);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
H A D | SizeAdaptiveLayoutTest.java | 81 SizeAdaptiveLayout.LayoutParams lp = 83 int height = (int) lp.minHeight + 10; 98 SizeAdaptiveLayout.LayoutParams lp = 100 int height = (int) lp.minHeight; 115 SizeAdaptiveLayout.LayoutParams lp = 117 int height = (int) lp.minHeight - 10; 132 SizeAdaptiveLayout.LayoutParams lp = 134 lp.maxHeight = 500; 135 mLargeView.setLayoutParams(lp); 136 int height = (int) (lp [all...] |
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | LinearLayoutTest.java | 36 LayoutParams lp = new LayoutParams(WRAP_CONTENT, WRAP_CONTENT); 37 lp.gravity = va | ha; 39 container.addView(v, lp);
|
H A D | AbstractLayoutTest.java | 54 ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) v.getLayoutParams(); 55 lp.topMargin = (lp.topMargin + 1) % 31; 56 lp.leftMargin = (lp.leftMargin + 1) % 31;
|
H A D | GridLayoutTest.java | 38 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(rowSpec, colSpec); 39 //GridLayout.LayoutParams lp = new GridLayout.LayoutParams(); 40 lp.setGravity(va | ha); 42 container.addView(v, lp);
|
H A D | LayoutInsetsTest.java | 44 LayoutParams lp = new LayoutParams(); 45 lp.setGravity(GRAVITIES[(i % N)]); 46 p.addView(c, lp);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | QuickSettingsContainerView.java | 78 ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) v.getLayoutParams(); 80 lp.width = (int) ((colSpan * cellWidth) + (colSpan - 1) * mCellGap); 83 int newWidthSpec = MeasureSpec.makeMeasureSpec(lp.width, MeasureSpec.EXACTLY); 84 int newHeightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY); 111 ViewGroup.LayoutParams lp = (ViewGroup.LayoutParams) v.getLayoutParams(); 120 y += lp.height + mCellGap; 125 v.layout(x, y, x + lp.width, y + lp.height); 131 x += lp.width + mCellGap; 134 y += lp [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListItemFactory.java | 96 final LinearLayout.LayoutParams lp 98 lp.setMargins(10, 0, 10, 0); 99 lp.weight = 0.33f; 121 ll.addView(button, lp); 123 ll.addView(new View(context), lp); 129 ll.addView(button, lp); 131 ll.addView(new View(context), lp); 137 ll.addView(button, lp); 139 ll.addView(new View(context), lp); 159 final ViewGroup.LayoutParams lp [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | MultiPaneChallengeLayout.java | 183 private int getVirtualHeight(LayoutParams lp, int height, int heightUsed) { argument 192 if (lp.childType == LayoutParams.CHILD_TYPE_WIDGET || 193 lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) { 198 } else if (lp.childType == LayoutParams.CHILD_TYPE_PAGE_DELETE_DROP_TARGET) { 226 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 228 if (lp.childType == LayoutParams.CHILD_TYPE_CHALLENGE) { 238 } else if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) { 249 if (lp.maxWidth >= 0) { 251 Math.min(lp.maxWidth, width), MeasureSpec.EXACTLY); 253 if (lp [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | NoSaveStateFrameLayout.java | 37 NoSaveStateFrameLayout.LayoutParams lp = new NoSaveStateFrameLayout.LayoutParams( 39 child.setLayoutParams(lp);
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
H A D | FakeApp.java | 117 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 123 lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; 125 lp.width = ViewGroup.LayoutParams.MATCH_PARENT; 126 lp.height = ViewGroup.LayoutParams.MATCH_PARENT; 129 lp.x = maxSize; 130 lp.y = maxSize; 131 lp.setTitle(getPackageName()); 132 wm.addView(view, lp);
|
H A D | FakeBackgroundService.java | 91 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); 94 lp.x = maxSize; 95 lp.y = maxSize; 96 lp.setTitle(getPackageName() + ":background"); 97 dialog.getWindow().setAttributes(lp);
|
/frameworks/base/core/java/android/webkit/ |
H A D | AutoCompletePopup.java | 144 AbsoluteLayout.LayoutParams lp = 147 if (null == lp) { 148 lp = new AbsoluteLayout.LayoutParams(width, height, left, top); 150 if ((lp.x != left) || (lp.y != top) || (lp.width != width) 151 || (lp.height != height)) { 153 lp.x = left; 154 lp.y = top; 155 lp [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
H A D | KeyguardViewManager.java | 129 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 132 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE; 133 lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen; 135 lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; 136 lp.privateFlags |= 139 lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_SET_NEEDS_MENU_KEY; 140 lp.setTitle("Keyguard"); 141 mWindowLayoutParams = lp; 143 mViewManager.addView(mKeyguardHost, lp); 162 final ViewGroup.LayoutParams lp [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SizeAdaptiveLayout.java | 154 SizeAdaptiveLayout.LayoutParams lp = 156 if (DEBUG) Log.d(TAG, "active min: " + lp.minHeight + " max: " + lp.maxHeight); 171 SizeAdaptiveLayout.LayoutParams lp = 174 int height = Math.max(heightIn, lp.minHeight); 175 if (lp.maxHeight != SizeAdaptiveLayout.LayoutParams.UNBOUNDED) { 176 height = Math.min(height, lp.maxHeight); 201 SizeAdaptiveLayout.LayoutParams lp = 204 " with min: " + lp.minHeight + 205 " max: " + lp [all...] |
H A D | ActionBarOverlayLayout.java | 131 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams)view.getLayoutParams(); 132 if (left && lp.leftMargin != insets.left) { 134 lp.leftMargin = insets.left; 136 if (top && lp.topMargin != insets.top) { 138 lp.topMargin = insets.top; 140 if (right && lp.rightMargin != insets.right) { 142 lp.rightMargin = insets.right; 144 if (bottom && lp.bottomMargin != insets.bottom) { 146 lp.bottomMargin = insets.bottom;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | IncludeTest.java | 75 final ViewGroup.LayoutParams lp = button1.getLayoutParams(); 76 assertEquals("Included button should be 23dip x 23dip", 23, lp.width); 77 assertEquals("Included button should be 23dip x 23dip", 23, lp.height);
|