/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 | ChartView.java | 118 Gravity.apply(params.gravity, width, height, parentRect, childRect); in onLayout() 123 Gravity.apply(params.gravity, width, height, parentRect, childRect); in onLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 392 lp.gravity = Gravity.LEFT; in layout() 398 targetsLp.gravity = Gravity.TOP; in layout() 403 lp.gravity = Gravity.TOP; in layout() 414 lp.gravity = Gravity.CENTER; in layout() 426 lp.gravity = Gravity.RIGHT; in layout() 432 lp.gravity = Gravity.BOTTOM; in layout() 441 lp.gravity = Gravity.BOTTOM; in layout() 458 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; in layout() 471 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; in layout()
|
/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() 305 private void applyGravity(int gravity, int layoutDirection) { in applyGravity() argument 306 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()
|
D | LineWrapLayout.java | 160 final int majorGravity = layoutParams.gravity & Gravity.VERTICAL_GRAVITY_MASK; in onLayout()
|
/packages/apps/Camera/src/com/android/camera/ |
D | OnScreenHint.java | 141 final int gravity = mGravity; in handleShow() local 142 mParams.gravity = gravity; in handleShow() 143 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) in handleShow() 147 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) in handleShow()
|
/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/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/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/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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
D | TutorialEN.java | 86 int gravity; field in TutorialEN.Bubble 112 this.gravity = Gravity.TOP | Gravity.LEFT; in init() 168 if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) offy -= window.getHeight(); in show() 169 if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) offx -= window.getWidth(); in show()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | TutorialJAJP.java | 88 int gravity; field in TutorialJAJP.Bubble 114 this.gravity = Gravity.TOP | Gravity.LEFT; in init() 170 if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) offy -= window.getHeight(); in show() 171 if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) offx -= window.getWidth(); in show()
|
/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/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsBackgroundDrawable.java | 44 int gravity) { in TransformedImageDrawable() argument 48 mGravity = gravity; in TransformedImageDrawable()
|
/packages/apps/Browser/src/com/android/browser/ |
D | AddBookmarkPage.java | 626 int gravity = mMap.getInt("gravity", -1); in onCreate() local 627 if (gravity != -1) { in onCreate() 629 l.gravity = gravity; in onCreate()
|
D | NavTabScroller.java | 203 lp.gravity = (mHorizontal ? Gravity.CENTER_VERTICAL : Gravity.CENTER_HORIZONTAL); in handleDataChanged()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | SharePopup.java | 212 public void showAtLocation(View parent, int gravity, int x, int y) { in showAtLocation() argument 213 super.showAtLocation(parent, gravity, x, y); in showAtLocation()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ActionBarAdapter.java | 374 params.gravity = Gravity.END; in updateDisplayOptionsInner() 379 params.gravity = Gravity.END; in updateDisplayOptionsInner()
|
/packages/apps/FMRadio/src/com/android/fmradio/views/ |
D | FmSnackBar.java | 122 mWindowParams.gravity = Gravity.LEFT | Gravity.BOTTOM; in init()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
D | GrantPermissionsTvViewHandler.java | 75 outLayoutParams.gravity = Gravity.BOTTOM; in updateWindowAttributes()
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | SettingsDialog.java | 70 lp.gravity = Gravity.BOTTOM | Gravity.CENTER; in onCreate()
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 372 mWindowParams.gravity = Gravity.TOP | Gravity.LEFT; in startDragging()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelper.java | 335 params.gravity = Gravity.CENTER; in addDivider()
|