Searched refs:gravity (Results 51 - 75 of 141) sorted by relevance

123456

/frameworks/base/core/java/android/content/pm/
H A DActivityInfo.java1128 + windowLayout.heightFraction + ", " + windowLayout.gravity);
1174 dest.writeInt(windowLayout.gravity);
1311 * the minimal allowed size, and the gravity to be applied.
1320 public WindowLayout(int width, float widthFraction, int height, float heightFraction, int gravity, argument
1326 this.gravity = gravity;
1336 gravity = source.readInt();
1378 public final int gravity; field in class:ActivityInfo.WindowLayout
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsOnboarding.java396 final int gravity;
399 gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
404 gravity = Gravity.BOTTOM | (layoutDirection == View.LAYOUT_DIRECTION_LTR
409 mWindowManager.addView(mLayout, getWindowLayoutParams(gravity, x));
475 private WindowManager.LayoutParams getWindowLayoutParams(int gravity, int x) { argument
487 lp.gravity = gravity;
/frameworks/base/core/java/android/widget/
H A DRelativeLayout.java274 * Defines which View is ignored when the gravity is applied. This setting has no
275 * effect if the gravity is <code>Gravity.START | Gravity.TOP</code>.
277 * @param viewId The id of the View to be ignored by gravity, or 0 if no View
292 * @return the gravity.
308 * relative to one another to be significant, setting gravity will affect
312 * @param gravity See {@link android.view.Gravity}
320 public void setGravity(int gravity) { argument
321 if (mGravity != gravity) {
322 if ((gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {
323 gravity |
[all...]
H A DToolbar.java1064 lp.gravity = Gravity.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1376 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1387 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1965 switch (getChildVerticalGravity(lp.gravity)) {
1993 private int getChildVerticalGravity(int gravity) { argument
1994 final int vgrav = gravity & Gravity.VERTICAL_GRAVITY_MASK;
2010 * @param gravity Horizontal gravity to match against
2012 private void addCustomViewsWithGravity(List<View> views, int gravity) { argument
2015 final int absGrav = Gravity.getAbsoluteGravity(gravity, getLayoutDirectio
2040 getChildHorizontalGravity(int gravity) argument
2213 LayoutParams(int width, int height, int gravity) argument
2218 LayoutParams(int gravity) argument
[all...]
H A DCheckedTextView.java373 final int gravity = Gravity.getAbsoluteGravity(mCheckMarkGravity, getLayoutDirection());
374 final int hgrav = gravity & Gravity.HORIZONTAL_GRAVITY_MASK;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DToolbar.java1052 lp.gravity = GravityCompat.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1365 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1377 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1971 switch (getChildVerticalGravity(lp.gravity)) {
1999 private int getChildVerticalGravity(int gravity) { argument
2000 final int vgrav = gravity & Gravity.VERTICAL_GRAVITY_MASK;
2016 * @param gravity Horizontal gravity to match against
2018 private void addCustomViewsWithGravity(List<View> views, int gravity) { argument
2021 final int absGrav = GravityCompat.getAbsoluteGravity(gravity,
2047 getChildHorizontalGravity(int gravity) argument
2224 LayoutParams(int width, int height, int gravity) argument
2229 LayoutParams(int gravity) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DTaskLaunchParamsModifier.java36 * The modifier is fairly simple. For the new task it tries default position based on the gravity
102 int verticalGravity = layout.gravity & Gravity.VERTICAL_GRAVITY_MASK;
103 int horizontalGravity = layout.gravity & Gravity.HORIZONTAL_GRAVITY_MASK;
117 // Some fancy gravity setting that we don't support yet. We just put the activity in the
119 Slog.w(TAG, "Received unsupported gravity: " + layout.gravity
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DScreenDecorations.java251 private void updateView(View v, int gravity, int rotation) { argument
252 ((FrameLayout.LayoutParams)v.getLayoutParams()).gravity = gravity;
320 lp.gravity = Gravity.BOTTOM | Gravity.RIGHT;
322 lp.gravity = Gravity.TOP | Gravity.LEFT;
337 lp.gravity = Gravity.TOP | Gravity.LEFT;
339 lp.gravity = Gravity.BOTTOM | Gravity.RIGHT;
563 public static void boundsFromDirection(DisplayCutout displayCutout, int gravity, Rect out) { argument
565 switch (gravity) {
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayAdapter.java194 int gravity = chooseOverlayGravity(number);
200 mOverlays.add(new OverlayDisplayHandle(name, modes, gravity, secure, number));
371 public OverlayDisplayHandle(String name, List<OverlayMode> modes, int gravity, argument
375 mGravity = gravity;
H A DOverlayDisplayWindow.java97 int width, int height, int densityDpi, int gravity, boolean secure,
103 mGravity = gravity;
231 mWindowParams.gravity = Gravity.TOP | Gravity.LEFT;
96 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDisplayListLayersActivity.java73 params.gravity = Gravity.CENTER_HORIZONTAL;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java120 * @param gravity alignment of the popup relative to the anchor
122 public void setGravity(int gravity) { argument
123 mDropDownGravity = gravity;
181 * If the popup's resolved gravity is {@link Gravity#LEFT}, this will
183 * anchor view. If the resolved gravity is {@link Gravity#RIGHT}, the
253 // If the resolved drop-down gravity is RIGHT, the popup's right
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java38 * and height based on the level, as well as a gravity to control where it is
68 * Creates a new clip drawable with the specified gravity and orientation.
71 * @param gravity gravity constant (see {@link Gravity} used to position
76 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument
79 mState.mGravity = gravity;
H A DScaleDrawable.java41 * and height based on the level, as well as a gravity to control where it is
76 * Creates a new scale drawable with the specified gravity and scale
80 * @param gravity gravity constant (see {@link Gravity} used to position
87 public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) { argument
90 mState.mGravity = gravity;
H A DLayerDrawable.java660 * default layer gravity behavior. See {@link #setLayerGravity(int, int)}
720 * Sets the gravity used to position or stretch the specified layer within
725 * If gravity is specified as {@link Gravity#NO_GRAVITY}, the default
728 * gravity in that direction defaults to {@link Gravity#FILL_HORIZONTAL} or
729 * {@link Gravity#FILL_VERTICAL}; otherwise, gravity in that direction
733 * @param gravity the gravity to set for the layer
738 public void setLayerGravity(int index, int gravity) { argument
740 childDrawable.mGravity = gravity;
745 * @return the gravity use
1611 resolveGravity(int gravity, int width, int height, int intrinsicWidth, int intrinsicHeight) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQuickQSPanel.java228 lp.gravity = Gravity.CENTER;
260 lp.gravity = Gravity.CENTER;
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DDrawerInteractionTest.java75 contentViewLayoutParams.gravity = Gravity.NO_GRAVITY;
76 drawerViewLayoutParams.gravity = Gravity.START;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DMenuPopupHelper.java129 * @param gravity alignment of the popup relative to the anchor
131 public void setGravity(int gravity) { argument
132 mDropDownGravity = gravity;
190 * If the popup's resolved gravity is {@link Gravity#LEFT}, this will
192 * anchor view. If the resolved gravity is {@link Gravity#RIGHT}, the
267 // If the resolved drop-down gravity is RIGHT, the popup's right
H A DStandardMenuPopup.java142 public void setGravity(int gravity) { argument
143 mDropDownGravity = gravity;
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/
H A DCoordinatorLayout.java775 resolveKeylineGravity(lp.gravity), layoutDirection)
963 resolveAnchoredChildGravity(lp.gravity), layoutDirection);
976 // Align to the anchor. This puts us in an assumed right/bottom child view gravity.
1005 // Offset by the child view's gravity itself. The above assumed right/bottom gravity.
1052 * gravity and anchorGravity.
1092 * the CoordinatorLayout. The child's gravity will affect how it is positioned with
1102 resolveKeylineGravity(lp.gravity), layoutDirection);
1181 GravityCompat.apply(resolveGravity(lp.gravity), child.getMeasuredWidth(),
1190 * Return the given gravity valu
1194 resolveGravity(int gravity) argument
1208 resolveKeylineGravity(int gravity) argument
1216 resolveAnchoredChildGravity(int gravity) argument
2727 public int gravity = Gravity.NO_GRAVITY; field in class:CoordinatorLayout.LayoutParams
[all...]
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
H A DPagerTitleStrip.java77 android.R.attr.gravity
228 * Only the vertical gravity component is used.
230 * @param gravity {@link Gravity} constant for positioning title text
232 public void setGravity(int gravity) { argument
233 mGravity = gravity;
/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
H A DTestService.java121 wmlp.gravity = Gravity.CENTER | Gravity.LEFT;
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipDismissViewController.java97 lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNavigationBarInflaterView.java334 // To support gravity, wrap in RelativeLayout and apply gravity to it.
335 // Children wanting to use gravity must be smaller then the frame.
340 // Compute gravity to apply
341 int gravity = (landscape) ? (start ? Gravity.TOP : Gravity.BOTTOM)
343 if (sizeStr.endsWith(WEIGHT_CENTERED_SUFFIX)) gravity = Gravity.CENTER;
345 // Set default gravity, flipped if needed in reversed layouts (270 RTL and 90 LTR)
346 frame.setDefaultGravity(gravity);
347 frame.setGravity(gravity); // Apply gravity t
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBrightnessMirrorController.java95 lp.gravity = r.getInteger(R.integer.notification_panel_layout_gravity);

Completed in 1863 milliseconds

123456