/packages/apps/Camera2/src/com/android/camera/ui/ |
D | TopRightWeightedLayout.java | 104 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/ |
D | CircleView.kt | 44 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/ |
D | TaskbarInsetsController.kt | 179 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/ |
D | MatchParentShrinkingLinearLayout.java | 1157 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 …]
|
D | UsageView.java | 71 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/ |
D | ListEmptyView.java | 64 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/ |
D | OnScreenHint.java | 144 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/ |
D | ArrowTipView.java | 196 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/ |
D | ViewLayoutUtils.java | 78 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/ |
D | AbstractNavButtonLayoutter.kt | 74 params.gravity = Gravity.CENTER in getParamsToCenterView() 100 gravity: Int in repositionContextualContainer() 110 contextualContainerParams.gravity = gravity or Gravity.CENTER_VERTICAL in repositionContextualContainer()
|
D | PhoneLandscapeNavLayoutter.kt | 81 navButtonContainer.gravity = Gravity.CENTER in layoutButtons() 158 gravity: Int in repositionContextualContainer() 167 contextualContainerParams.gravity = gravity or Gravity.CENTER_HORIZONTAL in repositionContextualContainer()
|
D | TaskbarNavLayoutter.kt | 75 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/ |
D | SeascapePagedViewHandler.kt | 141 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()
|
D | PortraitPagedViewHandler.java | 258 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 …]
|
D | LandscapePagedViewHandler.kt | 259 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/ |
D | ModeOptionsOverlay.java | 198 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/ |
D | LandscapePagedViewHandlerTest.kt | 133 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()
|
D | SeascapePagedViewHandlerTest.kt | 135 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/ |
D | CaptionWindowLayout.java | 382 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/ |
D | CarSystemBarPanelButtonViewController.java | 68 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/ |
D | BaseContainerInterface.java | 262 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/ |
D | InterpolatingLayout.java | 291 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/ |
D | UdfpsEnrollView.java | 169 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/ |
D | PermissionRationaleViewHandlerImpl.kt | 135 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/ |
D | Hotseat.java | 193 lp.gravity = Gravity.LEFT; in setInsets() 196 lp.gravity = Gravity.RIGHT; in setInsets() 201 lp.gravity = Gravity.BOTTOM; in setInsets()
|