Home
last modified time | relevance | path

Searched refs:topMargin (Results 1 – 25 of 72) sorted by relevance

123

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DSafetyEntryView.kt67 val topMargin: Int = position.getTopMargin(context) in showEntry() constant
70 if (params.topMargin != topMargin) { in showEntry()
71 params.topMargin = topMargin in showEntry()
DSafetyEntryGroupView.kt104 val topMargin: Int = position.getTopMargin(context) in <lambda>() constant
107 if (params.topMargin != topMargin) { in <lambda>()
108 params.topMargin = topMargin in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DUdfpsEnrollView.java171 final int topMargin = rotatedBounds.top - parentTop - getPaddingY(); in updateDimensions() local
173 && marginLayoutParams.topMargin == topMargin) { in updateDimensions()
177 marginLayoutParams.topMargin = topMargin; in updateDimensions()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/panel/animation/
DBoundsAnimation.java41 mFromBounds = new Rect(mLayoutParams.leftMargin, mLayoutParams.topMargin, in BoundsAnimation()
42 mLayoutParams.width, mLayoutParams.topMargin + mLayoutParams.height); in BoundsAnimation()
69 mLayoutParams.topMargin = bounds.top; in applyTransformation()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DPhoneLandscapeNavLayoutter.kt66 topMargin = in layoutButtons()
98 buttonLayoutParams.topMargin = margin in layoutButtons()
103 buttonLayoutParams.topMargin = margin in layoutButtons()
164 topMargin = barAxisMarginTop in repositionContextualContainer()
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleButtonsLayout.kt83 labelParams.topMargin = circleDiam / 6 in remeasureViews()
85 labelParams.topMargin += (frameHeight - frameWidth) / 2 in remeasureViews()
141 val y = frameHeight / 2 - labelParams.topMargin in remeasureViews()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DLandscapePagedViewHandler.kt266 bannerParams.width = taskViewHeight - snapshotParams.topMargin in getDwbLayoutTranslations()
267 return Pair(translationX, snapshotParams.topMargin.toFloat()) in getDwbLayoutTranslations()
274 translationY = snapshotParams.topMargin.toFloat() in getDwbLayoutTranslations()
284 snapshotParams.topMargin + in getDwbLayoutTranslations()
285 (taskViewHeight - snapshotParams.topMargin) * topLeftTaskPlusDividerPercent in getDwbLayoutTranslations()
458 secondaryParams.topMargin = dp.overviewTaskThumbnailTopMarginPx in measureGroupedTaskViewThumbnailBounds()
459 primaryParams.topMargin = 0 in measureGroupedTaskViewThumbnailBounds()
520 iconParams.topMargin = thumbnailTopMargin / 2 in setTaskIconParams()
530 iconParams.topMargin = 0 in setIconAppChipChildrenParams()
555 iconMenuParams.topMargin = iconMenuMargin in setIconAppChipMenuParams()
[all …]
DSeascapePagedViewHandler.kt149 bannerParams.width = taskViewHeight - snapshotParams.topMargin in getDwbLayoutTranslations()
165 (taskViewHeight - snapshotParams.topMargin) * bottomRightTaskPlusDividerPercent in getDwbLayoutTranslations()
251 iconMenuParams.topMargin = iconMenuMargin in setIconAppChipMenuParams()
258 iconMenuParams.topMargin = 0 in setIconAppChipMenuParams()
282 secondaryParams.topMargin = dp.overviewTaskThumbnailTopMarginPx in measureGroupedTaskViewThumbnailBounds()
283 primaryParams.topMargin = 0 in measureGroupedTaskViewThumbnailBounds()
DPortraitPagedViewHandler.java292 translationY = -((taskViewHeight - snapshotParams.topMargin) in getDwbLayoutTranslations()
568 secondaryParams.topMargin = 0; in measureGroupedTaskViewThumbnailBounds()
569 primaryParams.topMargin = spaceAboveSnapshot; in measureGroupedTaskViewThumbnailBounds()
637 iconParams.topMargin = iconParams.bottomMargin = 0; in setTaskIconParams()
645 iconParams.topMargin = 0; in setIconAppChipChildrenParams()
653 iconMenuParams.topMargin = thumbnailTopMargin; in setIconAppChipMenuParams()
679 secondaryIconParams.topMargin = primaryIconParams.topMargin; in setSplitIconParams()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java369 + layoutParams.topMargin in setTvViewPosition()
598 out.topMargin = interpolate(startValue.topMargin, endValue.topMargin, fraction); in interpolateMargins()
608 int startMargin, int endMargin, int topMargin, int bottomMargin) { in createMarginLayoutParams() argument
612 lp.topMargin = topMargin; in createMarginLayoutParams()
615 lp.height = mWindowHeight - topMargin - bottomMargin; in createMarginLayoutParams()
/packages/apps/Dialer/java/com/android/dialer/app/widget/
DSearchEditTextLayout.java42 private int topMargin; field in SearchEditTextLayout
82 topMargin = params.topMargin; in onFinishInflate()
325 params.topMargin = (int) (topMargin * fraction); in setMargins()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DFloatingAppPairView.kt88 lp.topMargin = Math.round(startingPosition.top) in init()
91 layout(lp.leftMargin, lp.topMargin, lp.leftMargin + lp.width, lp.topMargin + lp.height) in init()
DFloatingTaskView.java208 float dY = bounds.top - lp.topMargin; in update()
240 lp.topMargin = Math.round(pos.top); in initPosition()
250 layout(left, lp.topMargin, left + lp.width, lp.topMargin + lp.height); in initPosition()
/packages/apps/Messaging/src/com/android/messaging/ui/
DLineWrapLayout.java72 int childMeasuredHeight = currChild.getMeasuredHeight() + layoutParams.topMargin + in onMeasure()
128 currLineHeight = Math.max(currLineHeight, childHeight + layoutParams.topMargin + in onLayout()
159 int startPositionY = y + layoutParams.topMargin; // default to top gravity in onLayout()
182 currLineHeight = Math.max(currLineHeight, childHeight + layoutParams.topMargin + in onLayout()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DTextDrawable.java95 int topMargin = bounds.centerY() - (mIntrinsicHeight / 2); in draw() local
98 int y = topMargin; in draw()
99 Log.d(TAG, "Drawing " + n + " lines. Height: " + height + " Top margin: " + topMargin); in draw()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockViewFactoryImpl.kt102 layoutParams.topMargin = getSmallClockTopMargin() in <lambda>()
247 val topMargin = getSmallClockTopMargin() in <lambda>() constant
252 return Rect(getSmallClockStartPadding(), topMargin, screenSize.x, topMargin + targetHeight) in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/view/
DFingerprintEnrollEnrollingUdfpsFragment.kt657 iconLP.topMargin = convertDpToPixel(76.64f) in Context()
663 titleLP.topMargin = convertDpToPixel(138f) in Context()
669 subtitleLP.topMargin = convertDpToPixel(198f) in Context()
677 iconLP.topMargin = convertDpToPixel(76.64f) in Context()
685 titleLP.topMargin = convertDpToPixel(138f) in Context()
693 subtitleLP.topMargin = convertDpToPixel(198f) in Context()
699 skipBtnLP.topMargin = convertDpToPixel(26f) in Context()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DGoOverviewActionsView.java90 @Px int topMargin = getResources().getDimensionPixelSize(R.dimen.tooltip_top_margin); in showToolTip() local
95 /* yCoord= */ location[1] - topMargin, in showToolTip()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java339 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical()
516 return childTop + lp.topMargin + childBaseline; in getBaseline()
691 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
719 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
802 lp.topMargin + lp.bottomMargin + getNextLocationOffset(child)); in measureVertical()
906 lp.topMargin + lp.bottomMargin + getNextLocationOffset(child)); in measureVertical()
1183 childTop += lp.topMargin; in layoutVertical()
1291 childTop = paddingTop + lp.topMargin; in layoutHorizontal()
1310 + lp.topMargin - lp.bottomMargin; in layoutHorizontal()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DIssueCardPreference.java105 int topMargin = getTopMargin(mPositionInCardList, getContext()); in onBindViewHolder() local
107 if (layoutParams.topMargin != topMargin) { in onBindViewHolder()
108 layoutParams.topMargin = topMargin; in onBindViewHolder()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DCellLayoutLayoutParams.java148 height = Math.round(myCellHeight) - topMargin - bottomMargin; in setup()
150 y = topMargin + (myCellY * cellHeight) + (myCellY * borderSpace.y); in setup()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/binder/
DCustomizationPickerBinder.kt97 topMargin = 0 in <lambda>()
113 topMargin = 0 in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsUnavailableFragment.java66 final int topMargin = in onCreateView() local
71 layoutParams.setMargins(0, topMargin, 0, 0); in onCreateView()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/orientation/
DLandscapePagedViewHandlerTest.kt134 assertThat(frameLayout.topMargin).isEqualTo(expectedTranslationY) in testIcon_updateSplitIconsPosition()
152 assertThat(frameLayout.topMargin).isEqualTo(expectedTranslationY) in testIcon_updateSplitIconsPosition_isRTL()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDetailsContentPresenter.java358 private void setTopMargin(View view, int topMargin) { in setTopMargin() argument
360 lp.topMargin = topMargin; in setTopMargin()

123