Home
last modified time | relevance | path

Searched refs:gravity (Results 1 – 25 of 99) sorted by relevance

1234

/packages/apps/Camera2/src/com/android/camera/ui/
DTopRightWeightedLayout.java104 int gravity = layoutParams.gravity; in fixGravityAndPadding() local
107 if ((gravity & Gravity.LEFT) != 0) { // if gravity left is set . . . in fixGravityAndPadding()
108 gravity &= ~Gravity.LEFT; // unset left in fixGravityAndPadding()
109 gravity |= Gravity.BOTTOM; // and set bottom in fixGravityAndPadding()
112 if ((gravity & Gravity.BOTTOM) != 0) { // etc in fixGravityAndPadding()
113 gravity &= ~Gravity.BOTTOM; in fixGravityAndPadding()
114 gravity |= Gravity.LEFT; in fixGravityAndPadding()
119 if ((gravity & Gravity.RIGHT) != 0) { in fixGravityAndPadding()
120 gravity &= ~Gravity.RIGHT; in fixGravityAndPadding()
121 gravity |= Gravity.TOP; in fixGravityAndPadding()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.kt44 var gravity: Int variable
57 gravity = a.getInt(R.styleable.CircleView_android_gravity, Gravity.NO_GRAVITY)
70 if (gravity != Gravity.NO_GRAVITY) { in onRtlPropertiesChanged()
71 applyGravity(gravity, layoutDirection) in onRtlPropertiesChanged()
78 if (gravity != Gravity.NO_GRAVITY) { in onLayout()
79 applyGravity(gravity, layoutDirection) in onLayout()
106 fun setGravity(gravity: Int): CircleView { in setGravity()
107 if (this.gravity != gravity) { in setGravity()
108 this.gravity = gravity in setGravity()
110 if (gravity != Gravity.NO_GRAVITY && isLayoutDirectionResolved) { in setGravity()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarInsetsController.kt179 setProviderInsets(provider, layoutParams.gravity, rotation) in <lambda>()
184 setProviderInsets(provider, windowLayoutParams.gravity, context.display.rotation) in <lambda>()
233 private fun setProviderInsets(provider: InsetsFrameProvider, gravity: Int, endRotation: Int) { in <lambda>()
238 provider.insetsSize = getInsetsForGravityWithCutout(contentHeight, gravity, endRotation) in <lambda>()
241 provider.insetsSize = getInsetsForGravityWithCutout(contentHeight, gravity, in <lambda>()
253 provider.insetsSize = getInsetsForGravityWithCutout(mandatoryGestureHeight, gravity, in <lambda>()
257 provider.insetsSize = getInsetsForGravity(tappableHeight, gravity) in <lambda>()
274 getInsetsForGravity(controllers.taskbarStashController.stashedHeight, gravity) in <lambda>()
276 getInsetsForGravity(taskbarHeightForIme, gravity) in <lambda>()
292 if (context.isGestureNav) getInsetsForGravity(0, gravity) in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java1157 int gravity = lp.gravity; in layoutVertical() local
1158 if (gravity < 0) { in layoutVertical()
1159 gravity = minorGravity; in layoutVertical()
1162 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutVertical()
1284 int gravity = lp.gravity; in layoutHorizontal() local
1285 if (gravity < 0) { in layoutHorizontal()
1286 gravity = minorGravity; in layoutHorizontal()
1289 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { in layoutHorizontal()
1379 public void setGravity(int gravity) { in setGravity() argument
1380 if (mGravity != gravity) { in setGravity()
[all …]
DUsageView.java71 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0); in UsageView() local
72 if (gravity == Gravity.END) { in UsageView()
85 } else if (gravity != Gravity.START) { in UsageView()
86 throw new IllegalArgumentException("Unsupported gravity " + gravity); in UsageView()
/packages/apps/Messaging/src/com/android/messaging/ui/
DListEmptyView.java64 int gravity = in setIsVerticallyCentered() local
66 ((LinearLayout.LayoutParams) mEmptyImageHint.getLayoutParams()).gravity = gravity; in setIsVerticallyCentered()
67 ((LinearLayout.LayoutParams) mEmptyTextHint.getLayoutParams()).gravity = gravity; in setIsVerticallyCentered()
/packages/apps/LegacyCamera/src/com/android/camera/
DOnScreenHint.java144 final int gravity = mGravity; in handleShow() local
145 mParams.gravity = gravity; in handleShow()
146 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) in handleShow()
150 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) in handleShow()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DArrowTipView.java196 public ArrowTipView show(String text, int gravity, int arrowMarginStart, int top) { in show() argument
197 return show(text, gravity, arrowMarginStart, top, true); in show()
211 String text, int gravity, int arrowMarginStart, int top, boolean shouldAutoClose) { in show() argument
219 params.gravity = gravity; in show()
225 lp.gravity = gravity; in show()
230 if (gravity == Gravity.END) { in show()
234 } else if (gravity == Gravity.START) { in show()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DViewLayoutUtils.java78 if (params.gravity != layoutGravity) { in updateLayoutGravityOf()
79 params.gravity = layoutGravity; in updateLayoutGravityOf()
84 if (params.gravity != layoutGravity) { in updateLayoutGravityOf()
85 params.gravity = layoutGravity; in updateLayoutGravityOf()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DAbstractNavButtonLayoutter.kt74 params.gravity = Gravity.CENTER in getParamsToCenterView()
100 gravity: Int in repositionContextualContainer()
110 contextualContainerParams.gravity = gravity or Gravity.CENTER_VERTICAL in repositionContextualContainer()
DPhoneLandscapeNavLayoutter.kt81 navButtonContainer.gravity = Gravity.CENTER in layoutButtons()
158 gravity: Int in repositionContextualContainer()
167 contextualContainerParams.gravity = gravity or Gravity.CENTER_HORIZONTAL in repositionContextualContainer()
DTaskbarNavLayoutter.kt75 gravity = Gravity.END or Gravity.CENTER_VERTICAL in layoutButtons()
129 gravity = Gravity.CENTER_VERTICAL in layoutButtons()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DSeascapePagedViewHandler.kt141 bannerParams.gravity = Gravity.BOTTOM or if (isRtl) Gravity.END else Gravity.START in getDwbLayoutTranslations()
211 lp.gravity = Gravity.RIGHT or Gravity.CENTER_VERTICAL in getDistanceToBottomOfRect()
222 iconParams.gravity = in setTaskIconParams()
237 iconParams.gravity = Gravity.START or Gravity.CENTER_VERTICAL in setIconAppChipChildrenParams()
250 iconMenuParams.gravity = Gravity.TOP or Gravity.END in setIconAppChipMenuParams()
257 iconMenuParams.gravity = Gravity.BOTTOM or Gravity.START in setIconAppChipMenuParams()
390 layoutParams.gravity = in updateSplitIconsPosition()
396 layoutParams.gravity = Gravity.BOTTOM or Gravity.LEFT in updateSplitIconsPosition()
DPortraitPagedViewHandler.java258 bannerParams.gravity = BOTTOM | CENTER_HORIZONTAL; in getDwbLayoutTranslations()
262 bannerParams.gravity = in getDwbLayoutTranslations()
466 lp.gravity = CENTER_HORIZONTAL | BOTTOM; in setSplitInstructionsParams()
634 iconParams.gravity = TOP | CENTER_HORIZONTAL; in setTaskIconParams()
644 iconParams.gravity = Gravity.START | Gravity.CENTER_VERTICAL; in setIconAppChipChildrenParams()
651 iconMenuParams.gravity = TOP | START; in setIconAppChipMenuParams()
677 primaryIconParams.gravity = TOP | START; in setSplitIconParams()
678 secondaryIconParams.gravity = TOP | START; in setSplitIconParams()
715 primaryIconParams.gravity = TOP | (isRtl ? END : START); in setSplitIconParams()
716 secondaryIconParams.gravity = TOP | (isRtl ? END : START); in setSplitIconParams()
[all …]
DLandscapePagedViewHandler.kt259 bannerParams.gravity = Gravity.TOP or if (isRtl) Gravity.END else Gravity.START in getDwbLayoutTranslations()
404 lp.gravity = Gravity.LEFT or Gravity.CENTER_VERTICAL in getPlaceholderSizeAdjustment()
512 iconParams.gravity = in setTaskIconParams()
528 iconParams.gravity = Gravity.START or Gravity.CENTER_VERTICAL in setIconAppChipChildrenParams()
542 iconMenuParams.gravity = Gravity.START or Gravity.BOTTOM in setIconAppChipMenuParams()
548 iconMenuParams.gravity = Gravity.END or Gravity.TOP in setIconAppChipMenuParams()
671 layoutParams.gravity = in updateSplitIconsPosition()
677 layoutParams.gravity = Gravity.TOP or Gravity.RIGHT in updateSplitIconsPosition()
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptionsOverlay.java198 modeOptionsParams.gravity = Gravity.BOTTOM; in checkOrientation()
200 modeOptionsToggleParams.gravity = BOTTOM_RIGHT; in checkOrientation()
206 modeOptionsParams.gravity = Gravity.RIGHT; in checkOrientation()
208 modeOptionsToggleParams.gravity = TOP_RIGHT; in checkOrientation()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/orientation/
DLandscapePagedViewHandlerTest.kt133 assertThat(frameLayout.gravity).isEqualTo(expectedGravity) in testIcon_updateSplitIconsPosition()
151 assertThat(frameLayout.gravity).isEqualTo(expectedGravity) in testIcon_updateSplitIconsPosition_isRTL()
167 assertThat(frameLayout.gravity).isEqualTo(Gravity.TOP or Gravity.END) in testChip_updateSplitIconsPosition()
182 assertThat(frameLayout.gravity).isEqualTo(Gravity.BOTTOM or Gravity.START) in testChip_updateSplitIconsPosition_isRTL()
DSeascapePagedViewHandlerTest.kt135 assertThat(frameLayout.gravity).isEqualTo(expectedGravity) in testIcon_updateSplitIconsPosition()
153 assertThat(frameLayout.gravity).isEqualTo(expectedGravity) in testIcon_updateSplitIconsPosition_isRTL()
169 assertThat(frameLayout.gravity).isEqualTo(Gravity.BOTTOM or Gravity.START) in testChip_updateSplitIconsPosition()
184 assertThat(frameLayout.gravity).isEqualTo(Gravity.TOP or Gravity.END) in testChip_updateSplitIconsPosition_isRTL()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java382 int gravity = Gravity.CENTER; in initWindow() local
391 gravity = Gravity.LEFT; in initWindow()
423 gravity = Gravity.LEFT; in initWindow()
434 gravity = Gravity.CENTER_HORIZONTAL; in initWindow()
441 gravity = Gravity.RIGHT; in initWindow()
448 gravity |= Gravity.TOP; in initWindow()
452 gravity |= Gravity.CENTER_VERTICAL; in initWindow()
460 gravity |= Gravity.BOTTOM; in initWindow()
470 setGravity(gravity); in initWindow()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBarPanelButtonViewController.java68 Integer gravity = mView.getPanelGravity(); in onInit() local
69 if (gravity != null) { in onInit()
70 builder.setGravity(gravity); in onInit()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseContainerInterface.java262 int claimedSpaceBelow, int minimumHorizontalPadding, float maxScale, int gravity, in calculateTaskSizeInternal() argument
297 calculateTaskSizeInternal(context, dp, potentialTaskRect, maxScale, gravity, outRect); in calculateTaskSizeInternal()
301 Rect potentialTaskRect, float targetScale, int gravity, Rect outRect) { in calculateTaskSizeInternal() argument
311 Gravity.apply(gravity, outWidth, outHeight, potentialTaskRect, outRect); in calculateTaskSizeInternal()
372 int gravity = Gravity.TOP; in calculateGridTaskSize() local
373 gravity |= orientationHandler.getRecentsRtlSetting(res) ? Gravity.RIGHT : Gravity.LEFT; in calculateGridTaskSize()
374 Gravity.apply(gravity, outWidth, outHeight, potentialTaskRect, outRect); in calculateGridTaskSize()
/packages/apps/Contacts/src/com/android/contacts/widget/
DInterpolatingLayout.java291 int gravity = params.gravity; in onLayout() local
292 if (gravity == -1) { in onLayout()
293 gravity = Gravity.START | Gravity.TOP; in onLayout()
311 Gravity.apply(gravity, child.getMeasuredWidth(), child.getMeasuredHeight(), in onLayout()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DUdfpsEnrollView.java169 params.gravity = Gravity.RIGHT | Gravity.TOP; in updateDimensions()
186 params.gravity = Gravity.RIGHT | Gravity.BOTTOM; in updateDimensions()
191 params.gravity = Gravity.LEFT | Gravity.BOTTOM; in updateDimensions()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v34/
DPermissionRationaleViewHandlerImpl.kt135 val gravity = in createView() constant
136 rootView.requireViewById<LinearLayout>(R.id.permission_rationale_singleton).gravity in createView()
137 val verticalGravity = Gravity.VERTICAL_GRAVITY_MASK and gravity in createView()
/packages/apps/Launcher3/src/com/android/launcher3/
DHotseat.java193 lp.gravity = Gravity.LEFT; in setInsets()
196 lp.gravity = Gravity.RIGHT; in setInsets()
201 lp.gravity = Gravity.BOTTOM; in setInsets()

1234