Searched defs:gravity (Results 1 - 8 of 8) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/widget/
H A DCircleView.java149 * {@link #setRadius(float)} will automatically clear any conflicting gravity bits.
151 * @param gravity the {@link Gravity} flags to use
155 public CircleView setGravity(int gravity) { argument
156 if (mGravity != gravity) {
157 mGravity = gravity;
159 if (gravity != Gravity.NO_GRAVITY && isLayoutDirectionResolved()) {
160 applyGravity(gravity, getLayoutDirection());
214 // clear the horizontal gravity flags
244 // clear the vertical gravity flags
276 // clear the fill gravity flag
305 applyGravity(int gravity, int layoutDirection) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsBackgroundDrawable.java41 * @param gravity If one of the Gravity center values, the x and y offset will take the width
45 int gravity) {
49 mGravity = gravity;
44 TransformedImageDrawable(Resources res, int resourceId, float xPct, float yPct, int gravity) argument
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DSharePopup.java212 public void showAtLocation(View parent, int gravity, int x, int y) { argument
213 super.showAtLocation(parent, gravity, x, y);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DTutorialEN.java86 int gravity; field in class:TutorialEN.Bubble
112 this.gravity = Gravity.TOP | Gravity.LEFT;
168 if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) offy -= window.getHeight();
169 if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) offx -= window.getWidth();
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DTutorialJAJP.java88 int gravity; field in class:TutorialJAJP.Bubble
114 this.gravity = Gravity.TOP | Gravity.LEFT;
170 if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) offy -= window.getHeight();
171 if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) offx -= window.getWidth();
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationMessageView.java748 final int gravity = incoming ? (Gravity.START | Gravity.CENTER_VERTICAL) :
775 mMessageBubble.setGravity(gravity);
776 updateMessageAttachmentsAppearance(gravity);
850 private void updateMessageAttachmentsAppearance(final int gravity) { argument
851 mMessageAttachmentsView.setGravity(gravity);
/packages/apps/Settings/src/com/android/settings/widget/
H A DMatchParentShrinkingLinearLayout.java1156 int gravity = lp.gravity;
1157 if (gravity < 0) {
1158 gravity = minorGravity;
1161 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
1283 int gravity = lp.gravity;
1284 if (gravity < 0) {
1285 gravity = minorGravity;
1288 switch (gravity
1378 setGravity(int gravity) argument
1502 public int gravity = -1; field in class:MatchParentShrinkingLinearLayout.LayoutParams
[all...]
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
H A DCarDrawerLayout.java420 setDrawerLockMode(lockMode, lp.gravity);
592 * @return the absolute gravity of the child drawerView, resolved according
596 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
597 return GravityCompat.getAbsoluteGravity(gravity, ViewCompat.getLayoutDirection(this));
626 * @return the content. NOTE: this is the view with no gravity.
1152 * If there is no drawer with the given gravity this method will return false.
1237 ss.openDrawerGravity = lp.gravity;
1419 public int gravity = Gravity.NO_GRAVITY; field in class:CarDrawerLayout.LayoutParams
1427 gravity
1435 LayoutParams(int width, int height, int gravity) argument
[all...]

Completed in 812 milliseconds