/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/Settings/src/com/android/settings/widget/ |
D | MatchParentShrinkingLinearLayout.java | 1156 int gravity = lp.gravity; in layoutVertical() local 1157 if (gravity < 0) { in layoutVertical() 1158 gravity = minorGravity; in layoutVertical() 1161 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutVertical() 1283 int gravity = lp.gravity; in layoutHorizontal() local 1284 if (gravity < 0) { in layoutHorizontal() 1285 gravity = minorGravity; in layoutHorizontal() 1288 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { in layoutHorizontal() 1378 public void setGravity(int gravity) { in setGravity() argument 1379 if (mGravity != gravity) { in setGravity() [all …]
|
D | UsageView.java | 68 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0); in UsageView() local 69 if (gravity == Gravity.END) { in UsageView() 82 } else if (gravity != Gravity.START) { in UsageView() 83 throw new IllegalArgumentException("Unsupported gravity " + gravity); in UsageView()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | MatchParentShrinkingLinearLayout.java | 1156 int gravity = lp.gravity; in layoutVertical() local 1157 if (gravity < 0) { in layoutVertical() 1158 gravity = minorGravity; in layoutVertical() 1161 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutVertical() 1283 int gravity = lp.gravity; in layoutHorizontal() local 1284 if (gravity < 0) { in layoutHorizontal() 1285 gravity = minorGravity; in layoutHorizontal() 1288 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { in layoutHorizontal() 1378 public void setGravity(int gravity) { in setGravity() argument 1379 if (mGravity != gravity) { in setGravity() [all …]
|
D | UsageView.java | 68 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0); in UsageView() local 69 if (gravity == Gravity.END) { in UsageView() 82 } else if (gravity != Gravity.START) { in UsageView() 83 throw new IllegalArgumentException("Unsupported gravity " + gravity); in UsageView()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.java | 155 public CircleView setGravity(int gravity) { in setGravity() argument 156 if (mGravity != gravity) { in setGravity() 157 mGravity = gravity; in setGravity() 159 if (gravity != Gravity.NO_GRAVITY && isLayoutDirectionResolved()) { in setGravity() 160 applyGravity(gravity, getLayoutDirection()); in setGravity() 291 private void applyGravity(int gravity, int layoutDirection) { in applyGravity() argument 292 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in applyGravity()
|
/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/TV/tuner/src/com/android/tv/tuner/cc/ |
D | CaptionWindowLayout.java | 341 int gravity = Gravity.CENTER; in initWindow() local 350 gravity = Gravity.LEFT; in initWindow() 380 gravity = Gravity.LEFT; in initWindow() 391 gravity = Gravity.CENTER_HORIZONTAL; in initWindow() 398 gravity = Gravity.RIGHT; in initWindow() 405 gravity |= Gravity.TOP; in initWindow() 409 gravity |= Gravity.CENTER_VERTICAL; in initWindow() 417 gravity |= Gravity.BOTTOM; in initWindow() 427 setGravity(gravity); in initWindow()
|
/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/Car/Hvac/src/com/android/car/hvac/ |
D | HvacUiService.java | 165 params.gravity = Gravity.BOTTOM | Gravity.LEFT; in layoutHvacUi() 302 String windowTitle, int windowHeight, int gravity) { in createTemperatureBarOverlay() argument 304 windowTitle, windowHeight, gravity); in createTemperatureBarOverlay() 315 int windowHeight, int gravity) { in createTemperatureBarLayoutParams() argument 329 lp.gravity = gravity; in createTemperatureBarLayoutParams()
|
/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/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/Launcher3/src/com/android/launcher3/ |
D | Hotseat.java | 88 lp.gravity = Gravity.LEFT; in setInsets() 91 lp.gravity = Gravity.RIGHT; in setInsets() 95 lp.gravity = Gravity.BOTTOM; in setInsets()
|
D | DropTargetBar.java | 95 lp.gravity = grid.isSeascape() ? Gravity.RIGHT : Gravity.LEFT; in setInsets() 113 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.TOP; in setInsets()
|
/packages/apps/Settings/src/com/android/settings/ |
D | IccLockSettings.java | 500 final int gravity = Gravity.getAbsoluteGravity( in createCustomTextToast() local 504 params.gravity = gravity; in createCustomTextToast() 505 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { in createCustomTextToast() 508 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) { in createCustomTextToast()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | IccLockSettings.java | 500 final int gravity = Gravity.getAbsoluteGravity( in createCustomTextToast() local 504 params.gravity = gravity; in createCustomTextToast() 505 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { in createCustomTextToast() 508 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) { in createCustomTextToast()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 623 int gravity = lp.gravity; in onLayout() local 624 if (gravity == -1) { in onLayout() 625 gravity = Gravity.TOP | Gravity.START; in onLayout() 630 int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in onLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | ArrowPopup.java | 323 arrowLp.gravity = lp.gravity = Gravity.BOTTOM; in orientAboutObject() 327 arrowLp.gravity = lp.gravity = Gravity.TOP; in orientAboutObject()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsBackgroundDrawable.java | 55 int gravity) { in TransformedImageDrawable() argument 59 mGravity = gravity; in TransformedImageDrawable()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvViewUiManager.java | 401 lp.gravity = startValue.gravity; in setTvViewPosition() 537 0, 0, ((FrameLayout.LayoutParams) mTvView.getTvViewLayoutParams()).gravity); in applyDisplayMode()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | ExpiredTimersActivity.java | 226 lp.gravity = Gravity.CENTER; in centerFirstTimer() 236 lp.gravity = Gravity.NO_GRAVITY; in uncenterFirstTimer()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 748 final int gravity = incoming ? (Gravity.START | Gravity.CENTER_VERTICAL) : in updateViewAppearance() local 775 mMessageBubble.setGravity(gravity); in updateViewAppearance() 776 updateMessageAttachmentsAppearance(gravity); in updateViewAppearance() 850 private void updateMessageAttachmentsAppearance(final int gravity) { in updateMessageAttachmentsAppearance() argument 851 mMessageAttachmentsView.setGravity(gravity); in updateMessageAttachmentsAppearance()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | ConversationMessageView.java | 204 final int gravity = mIncoming ? (Gravity.START | Gravity.CENTER_VERTICAL) : in updateViewAppearance() local 236 mMessageBubble.setGravity(gravity); in updateViewAppearance()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ConversationMessageView.java | 204 final int gravity = mIncoming ? (Gravity.START | Gravity.CENTER_VERTICAL) : in updateViewAppearance() local 236 mMessageBubble.setGravity(gravity); in updateViewAppearance()
|