Searched refs:layoutParams (Results 26 - 50 of 64) sorted by relevance

123

/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardStatusView.java131 MarginLayoutParams layoutParams = (MarginLayoutParams) mClockView.getLayoutParams();
132 layoutParams.bottomMargin = getResources().getDimensionPixelSize(
134 mClockView.setLayoutParams(layoutParams);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DChildHelper.java224 * @param layoutParams LayoutParams for the child.
227 void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams, argument
239 mCallback.attachViewToParent(child, offset, layoutParams);
529 void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams); argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DLayout.java244 LayoutParams layoutParams = createLayoutParams(MATCH_PARENT, MATCH_PARENT);
247 layoutParams.addRule(rule, getId(ID_NAV_BAR));
250 layoutParams.addRule(BELOW, getId(ID_STATUS_BAR));
252 actionBar.getRootView().setLayoutParams(layoutParams);
H A DRenderSessionImpl.java626 // get added. We do pass the parentView however to ensure that the layoutParams will
703 LayoutParams layoutParams = null;
706 layoutParams = newParentView.generateLayoutParams(
714 final LayoutParams params = layoutParams;
784 return SUCCESS.createResult(layoutParams);
787 Result result = moveView(previousParent, newParentView, childView, index, layoutParams);
793 if (layoutParams != null && result.isSuccess()) {
794 result = result.getCopyWithData(layoutParams);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DEditorCursorTest.java66 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(
69 layout.setLayoutParams(layoutParams);
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DNavBarTuner.java104 final ViewGroup.LayoutParams layoutParams = mPreview.getLayoutParams();
105 layoutParams.width = (int) ((isPhoneLandscape ? display.getHeight() : display.getWidth())
109 layoutParams.height = (int) (layoutParams.height * scale);
111 int width = layoutParams.width;
112 layoutParams.width = layoutParams.height;
113 layoutParams.height = width;
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
H A DAppWidgetHostActivity.java139 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
142 mAppWidgetContainer.addView(view, layoutParams);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DScrimController.java580 ViewGroup.LayoutParams layoutParams = mHeadsUpScrim.getLayoutParams();
581 layoutParams.height = mHeadsUpScrim.getResources().getDimensionPixelSize(
583 mHeadsUpScrim.setLayoutParams(layoutParams);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerTest.java307 final ViewGroup.LayoutParams layoutParams = mRecyclerView.getLayoutParams();
309 layoutParams.width = mRecyclerView.getWidth() / 2;
311 layoutParams.height = mRecyclerView.getHeight() / 2;
313 mRecyclerView.setLayoutParams(layoutParams);
H A DBaseRecyclerViewInstrumentationTest.java650 RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view
653 + "that is removed", layoutParams != null
654 && layoutParams.isItemRemoved());
801 public TestAdapter(int count, @Nullable RecyclerView.LayoutParams layoutParams) { argument
804 mLayoutParams = layoutParams;
H A DChildHelperTest.java159 public void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams) { argument
H A DBaseStaggeredGridLayoutManagerTest.java761 final LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();
766 layoutParams.getSpanIndex(), layoutParams.isFullSpan())).append("\n");
H A DStaggeredGridLayoutManagerTest.java170 final ViewGroup.LayoutParams layoutParams = vh.itemView.getLayoutParams();
173 layoutParams.width = size;
175 layoutParams.height = size;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationContentView.java156 ViewGroup.LayoutParams layoutParams = mExpandedChild.getLayoutParams();
157 if (layoutParams.height >= 0) {
159 size = Math.min(maxSize, layoutParams.height);
195 ViewGroup.LayoutParams layoutParams = mHeadsUpChild.getLayoutParams();
196 if (layoutParams.height >= 0) {
198 size = Math.min(size, layoutParams.height);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBackgroundManager.java1200 WindowManager.LayoutParams layoutParams = mWindow.getAttributes();
1202 if ((layoutParams.flags & WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER) != 0) {
1206 layoutParams.flags |= WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
1208 if ((layoutParams.flags & WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER) == 0) {
1212 layoutParams.flags &= ~WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
1215 mWindow.setAttributes(layoutParams);
/frameworks/base/core/java/android/widget/
H A DPopupWindow.java1321 final ViewGroup.LayoutParams layoutParams = mContentView.getLayoutParams();
1323 if (layoutParams != null && layoutParams.height == WRAP_CONTENT) {
1344 final ViewGroup.LayoutParams layoutParams = mContentView.getLayoutParams();
1346 if (layoutParams != null && layoutParams.height == WRAP_CONTENT) {
H A DTableLayout.java502 final ViewGroup.LayoutParams layoutParams = row.getLayoutParams();
503 layoutParams.height = LayoutParams.WRAP_CONTENT;
H A DRemoteViews.java1892 ViewGroup.LayoutParams layoutParams = target.getLayoutParams();
1893 if (layoutParams == null) {
1898 if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
1900 ((ViewGroup.MarginLayoutParams) layoutParams).setMarginEnd(resolved);
1901 target.setLayoutParams(layoutParams);
1905 if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
1907 ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin = resolved;
1908 target.setLayoutParams(layoutParams);
1912 layoutParams.width = value;
1913 target.setLayoutParams(layoutParams);
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DToolbarActionBar.java90 public void setCustomView(View view, LayoutParams layoutParams) { argument
92 view.setLayoutParams(layoutParams);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionBarContextView.java182 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
187 addView(mMenuView, layoutParams);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindowSession.java90 public int relayout(IWindow iWindow, int i, LayoutParams layoutParams, int i2, argument
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarView.java396 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
408 addView(menuView, layoutParams);
417 layoutParams.width = LayoutParams.MATCH_PARENT;
418 layoutParams.height = LayoutParams.WRAP_CONTENT;
427 mSplitView.addView(menuView, layoutParams);
430 menuView.setLayoutParams(layoutParams);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DToolbarActionBar.java91 public void setCustomView(View view, LayoutParams layoutParams) { argument
93 view.setLayoutParams(layoutParams);
H A DActionBar.java232 * @param layoutParams How this custom view should layout in the bar.
236 public abstract void setCustomView(View view, LayoutParams layoutParams); argument
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java331 public void setLayoutParams(LayoutParams layoutParams); argument

Completed in 687 milliseconds

123