Home
last modified time | relevance | path

Searched refs:LayoutParams (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacUiService.java115 WindowManager.LayoutParams testparams = new WindowManager.LayoutParams( in onCreate()
116 WindowManager.LayoutParams.MATCH_PARENT, in onCreate()
117 WindowManager.LayoutParams.MATCH_PARENT, in onCreate()
118 WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY, in onCreate()
119 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in onCreate()
120 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE in onCreate()
121 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, in onCreate()
155 WindowManager.LayoutParams params = new WindowManager.LayoutParams( in layoutHvacUi()
156 WindowManager.LayoutParams.WRAP_CONTENT, in layoutHvacUi()
157 WindowManager.LayoutParams.WRAP_CONTENT, in layoutHvacUi()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DInsettableFrameLayout.java26 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in setFrameLayoutChildInsets()
50 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
51 return new InsettableFrameLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
55 protected LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
56 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
61 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { in checkLayoutParams()
62 return p instanceof InsettableFrameLayout.LayoutParams; in checkLayoutParams()
66 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) { in generateLayoutParams()
67 return new LayoutParams(p); in generateLayoutParams()
70 public static class LayoutParams extends FrameLayout.LayoutParams { class in InsettableFrameLayout
[all …]
DLauncherAnimUtils.java23 import android.view.ViewGroup.LayoutParams;
70 public static final Property<LayoutParams, Integer> LAYOUT_WIDTH =
71 new Property<LayoutParams, Integer>(Integer.TYPE, "width") {
73 public Integer get(LayoutParams lp) {
78 public void set(LayoutParams lp, Integer width) {
83 public static final Property<LayoutParams, Integer> LAYOUT_HEIGHT =
84 new Property<LayoutParams, Integer>(Integer.TYPE, "height") {
86 public Integer get(LayoutParams lp) {
91 public void set(LayoutParams lp, Integer height) {
DCellLayout.java138 @Thunk final ArrayMap<LayoutParams, Animator> mReorderAnimators = new ArrayMap<>();
575 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params, in addViewToCellLayout()
577 final LayoutParams lp = params; in addViewToCellLayout()
874 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in animateChildToPosition()
1537 LayoutParams lp = (LayoutParams) v.getLayoutParams(); in pushViewsToTempLocation()
1748 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in rearrangementExists()
1845 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in copyCurrentStateToSolution()
1863 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in copySolutionToTempState()
1910 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in beginOrAdjustReorderPreviewAnimations()
2104 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in commitTempPlacement()
[all …]
DShortcutAndWidgetContainer.java67 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt()
94 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in setupLp()
115 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild()
147 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in onLayout()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java337 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
350 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
365 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal()
387 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal()
514 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in getBaseline()
681 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureVertical()
701 lp.height = LayoutParams.WRAP_CONTENT; in measureVertical()
745 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { in measureVertical()
759 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT; in measureVertical()
796 final LayoutParams lp = (LayoutParams) in measureVertical()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java337 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
350 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
365 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal()
387 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal()
514 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in getBaseline()
681 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureVertical()
701 lp.height = LayoutParams.WRAP_CONTENT; in measureVertical()
745 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { in measureVertical()
759 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT; in measureVertical()
796 final LayoutParams lp = (LayoutParams) in measureVertical()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DLineWrapLayout.java67 LayoutParams layoutParams = (LayoutParams) currChild.getLayoutParams(); in onMeasure()
115 LayoutParams layoutParams = (LayoutParams) currChild.getLayoutParams(); in onLayout()
144 LayoutParams layoutParams = (LayoutParams) currChild.getLayoutParams(); in onLayout()
189 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) { in generateLayoutParams()
190 return new LayoutParams(p); in generateLayoutParams()
194 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
195 return new LayoutParams(getContext(), attrs); in generateLayoutParams()
199 protected LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
200 return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in generateDefaultLayoutParams()
203 public static final class LayoutParams extends FrameLayout.LayoutParams { class in LineWrapLayout
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DBaseDragLayer.java68 public static final Property<LayoutParams, Integer> LAYOUT_X =
69 new Property<LayoutParams, Integer>(Integer.TYPE, "x") {
71 public Integer get(LayoutParams lp) {
76 public void set(LayoutParams lp, Integer x) {
81 public static final Property<LayoutParams, Integer> LAYOUT_Y =
82 new Property<LayoutParams, Integer>(Integer.TYPE, "y") {
84 public Integer get(LayoutParams lp) {
89 public void set(LayoutParams lp, Integer y) {
463 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
464 return new LayoutParams(getContext(), attrs); in generateLayoutParams()
[all …]
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java41 import android.view.ViewGroup.LayoutParams;
82 FrameLayout.LayoutParams layoutParams =
83 (FrameLayout.LayoutParams) msg.obj;
115 private FrameLayout.LayoutParams mTvViewLayoutParams;
118 private FrameLayout.LayoutParams mTvViewFrame;
119 private FrameLayout.LayoutParams mLastAnimatedTvViewFrame;
120 private FrameLayout.LayoutParams mOldTvViewFrame;
320 int color, FrameLayout.LayoutParams targetLayoutParams, boolean animate) { in setBackgroundColor()
333 ((targetLayoutParams.width != LayoutParams.MATCH_PARENT) in setBackgroundColor()
335 || ((targetLayoutParams.height != LayoutParams.MATCH_PARENT) in setBackgroundColor()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DInterpolatingLayout.java56 public final static class LayoutParams extends LinearLayout.LayoutParams { class in InterpolatingLayout
81 public LayoutParams(Context c, AttributeSet attrs) { in LayoutParams() method in InterpolatingLayout.LayoutParams
147 public LayoutParams(int width, int height) { in LayoutParams() method in InterpolatingLayout.LayoutParams
151 public LayoutParams(MarginLayoutParams source) { in LayoutParams() method in InterpolatingLayout.LayoutParams
194 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
195 return new LayoutParams(getContext(), attrs); in generateLayoutParams()
199 protected LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
200 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
219 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onMeasure()
220 if (params.width == LayoutParams.MATCH_PARENT) { in onMeasure()
[all …]
DMultiShrinkScroller.java372 final ViewGroup.LayoutParams photoLayoutParams in initialize()
379 final FrameLayout.LayoutParams largeTextLayoutParams in initialize()
380 = (FrameLayout.LayoutParams) mTitleAndPhoneticNameView in initialize()
403 final FrameLayout.LayoutParams actionBarGradientLayoutParams in configureGradientViewHeights()
404 = (FrameLayout.LayoutParams) mActionBarGradientView.getLayoutParams(); in configureGradientViewHeights()
407 final FrameLayout.LayoutParams titleGradientLayoutParams in configureGradientViewHeights()
408 = (FrameLayout.LayoutParams) mTitleGradientView.getLayoutParams(); in configureGradientViewHeights()
410 final FrameLayout.LayoutParams largeTextLayoutParms in configureGradientViewHeights()
411 = (FrameLayout.LayoutParams) mTitleAndPhoneticNameView.getLayoutParams(); in configureGradientViewHeights()
773 final ViewGroup.LayoutParams toolbarLayoutParams in setToolbarHeight()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DViewLayoutUtils.java36 return new FrameLayout.LayoutParams(width, height); in newLayoutParam()
38 return new RelativeLayout.LayoutParams(width, height); in newLayoutParam()
49 final ViewGroup.LayoutParams lp = view.getLayoutParams(); in placeViewAt()
59 final WindowManager.LayoutParams params = window.getAttributes(); in updateLayoutHeightOf()
67 final ViewGroup.LayoutParams params = view.getLayoutParams(); in updateLayoutHeightOf()
75 final ViewGroup.LayoutParams lp = view.getLayoutParams(); in updateLayoutGravityOf()
76 if (lp instanceof LinearLayout.LayoutParams) { in updateLayoutGravityOf()
77 final LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)lp; in updateLayoutGravityOf()
82 } else if (lp instanceof FrameLayout.LayoutParams) { in updateLayoutGravityOf()
83 final FrameLayout.LayoutParams params = (FrameLayout.LayoutParams)lp; in updateLayoutGravityOf()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java609 ((LayoutParams) optScrap.getLayoutParams()).viewType : -1; in obtainView()
621 ViewGroup.LayoutParams lp = view.getLayoutParams(); in obtainView()
632 final LayoutParams sglp = (LayoutParams) lp; in obtainView()
678 protected LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
679 return new LayoutParams(LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
683 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { in generateLayoutParams()
684 return new LayoutParams(lp); in generateLayoutParams()
688 protected boolean checkLayoutParams(ViewGroup.LayoutParams lp) { in checkLayoutParams()
689 return lp instanceof LayoutParams; in checkLayoutParams()
693 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiLayoutParams.java64 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) vp.getLayoutParams(); in setPagerProperties()
71 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) v.getLayoutParams(); in setCategoryPageIdViewProperties()
81 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) ll.getLayoutParams(); in setActionBarProperties()
87 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) v.getLayoutParams(); in setKeyProperties()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCommonControllerOverlay.java78 LayoutParams wrapContent = in CommonControllerOverlay()
79 new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in CommonControllerOverlay()
80 LayoutParams matchParent = in CommonControllerOverlay()
81 new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in CommonControllerOverlay()
118 RelativeLayout.LayoutParams params = in CommonControllerOverlay()
119 new RelativeLayout.LayoutParams( in CommonControllerOverlay()
120 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in CommonControllerOverlay()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSmsBottomSheetFragment.java32 import android.view.ViewGroup.LayoutParams;
71 layout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in onCreateView()
85 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); in onCreateDialog()
109 LayoutParams params = in newTextViewItem()
110 new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); in newTextViewItem()
/packages/apps/Calendar/src/com/android/calendar/
DStickyHeaderListView.java246 ViewGroup.LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, in setHeaderSeparator()
331 FrameLayout.LayoutParams params = in updateStickyHeader()
332 new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, in updateStickyHeader()
387 ViewGroup.LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, in setChildViews()
/packages/apps/Car/Settings/src/com/android/car/settings/
DFallbackHome.java38 import android.view.WindowManager.LayoutParams;
67 getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON);
102 view.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
103 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
107 parent.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
108 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
/packages/apps/Camera2/src/com/android/camera/
DOnScreenHint.java50 private final WindowManager.LayoutParams mParams =
51 new WindowManager.LayoutParams();
67 mParams.height = WindowManager.LayoutParams.WRAP_CONTENT; in OnScreenHint()
68 mParams.width = WindowManager.LayoutParams.WRAP_CONTENT; in OnScreenHint()
69 mParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in OnScreenHint()
70 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; in OnScreenHint()
73 mParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; in OnScreenHint()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DExpiredTimersActivity.java84 getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED in onCreate()
85 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON in onCreate()
86 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON in onCreate()
87 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD in onCreate()
88 | WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON); in onCreate()
224 final FrameLayout.LayoutParams lp = in centerFirstTimer()
225 (FrameLayout.LayoutParams) mExpiredTimersView.getLayoutParams(); in centerFirstTimer()
234 final FrameLayout.LayoutParams lp = in uncenterFirstTimer()
235 (FrameLayout.LayoutParams) mExpiredTimersView.getLayoutParams(); in uncenterFirstTimer()
/packages/apps/LegacyCamera/src/com/android/camera/
DOnScreenHint.java52 private final WindowManager.LayoutParams mParams =
53 new WindowManager.LayoutParams();
70 mParams.height = WindowManager.LayoutParams.WRAP_CONTENT; in OnScreenHint()
71 mParams.width = WindowManager.LayoutParams.WRAP_CONTENT; in OnScreenHint()
72 mParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in OnScreenHint()
73 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; in OnScreenHint()
76 mParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; in OnScreenHint()
/packages/services/Telephony/src/com/android/phone/
DPhoneDisplayMessage.java79 WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG); in displayMessage()
81 WindowManager.LayoutParams.FLAG_DIM_BEHIND in displayMessage()
82 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON in displayMessage()
83 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in displayMessage()
96 WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON in dismissMessage()
97 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in dismissMessage()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DRecentAppsRowViewHolder.java67 LinearLayout.LayoutParams params = in bind()
68 (LinearLayout.LayoutParams) view.getLayoutParams(); in bind()
70 params.height = ViewGroup.LayoutParams.WRAP_CONTENT; in bind()
78 LinearLayout.LayoutParams params = in bind()
79 new LinearLayout.LayoutParams( in bind()
80 0, ViewGroup.LayoutParams.WRAP_CONTENT, /* weight= */ 1); in bind()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DNavigationViewManager.java161 AppBarLayout.LayoutParams lp = in updateScrollFlag()
162 (AppBarLayout.LayoutParams) mCollapsingBarLayout.getLayoutParams(); in updateScrollFlag()
164 lp.setScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL in updateScrollFlag()
165 | AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS in updateScrollFlag()
166 | AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED); in updateScrollFlag()
168 lp.setScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL in updateScrollFlag()
169 | AppBarLayout.LayoutParams.SCROLL_FLAG_EXIT_UNTIL_COLLAPSED); in updateScrollFlag()

12345678910>>...15