Searched refs:gravity (Results 1 - 25 of 43) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/ui/
H A DTopRightWeightedLayout.java91 * Swap gravity:
101 // gravity swap
104 int gravity = layoutParams.gravity;
107 if ((gravity & Gravity.LEFT) != 0) { // if gravity left is set . . .
108 gravity &= ~Gravity.LEFT; // unset left
109 gravity |= Gravity.BOTTOM; // and set bottom
112 if ((gravity & Gravity.BOTTOM) != 0) { // etc
113 gravity
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DListEmptyView.java64 int gravity =
66 ((LinearLayout.LayoutParams) mEmptyImageHint.getLayoutParams()).gravity = gravity;
67 ((LinearLayout.LayoutParams) mEmptyTextHint.getLayoutParams()).gravity = gravity;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DViewLayoutUtils.java78 if (params.gravity != layoutGravity) {
79 params.gravity = layoutGravity;
84 if (params.gravity != layoutGravity) {
85 params.gravity = layoutGravity;
89 throw new IllegalArgumentException("Layout parameter doesn't have gravity: "
/packages/apps/LegacyCamera/src/com/android/camera/
H A DOnScreenHint.java144 final int gravity = mGravity;
145 mParams.gravity = gravity;
146 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK)
150 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK)
/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());
207 // clear the horizontal gravity flags
230 // clear the vertical gravity flags
262 // clear the fill gravity flag
291 applyGravity(int gravity, int layoutDirection) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/widget/
H A DModeOptionsOverlay.java53 // need a reference to set the onClickListener and fix the layout gravity on orientation change
181 * Set the layout gravity of the child layout to be bottom or top right
198 modeOptionsParams.gravity = Gravity.BOTTOM;
200 modeOptionsToggleParams.gravity = BOTTOM_RIGHT;
206 modeOptionsParams.gravity = Gravity.RIGHT;
208 modeOptionsToggleParams.gravity = TOP_RIGHT;
/packages/apps/Settings/src/com/android/settings/graph/
H A DUsageView.java65 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0);
66 if (gravity == Gravity.END) {
72 // Set gravity.
79 } else if (gravity != Gravity.START) {
80 throw new IllegalArgumentException("Unsupported gravity " + 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...]
H A DChartView.java118 Gravity.apply(params.gravity, width, height, parentRect, childRect);
123 Gravity.apply(params.gravity, width, height, parentRect, childRect);
/packages/apps/Car/Hvac/src/com/android/car/hvac/
H A DHvacUiService.java165 params.gravity = Gravity.BOTTOM | Gravity.LEFT;
302 String windowTitle, int windowHeight, int gravity) {
304 windowTitle, windowHeight, gravity);
315 int windowHeight, int gravity) {
329 lp.gravity = gravity;
301 createTemperatureBarOverlay(LayoutInflater inflater, String windowTitle, int windowHeight, int gravity) argument
314 createTemperatureBarLayoutParams(String windowTitle, int windowHeight, int gravity) argument
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DCheckBoxItem.java49 lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DInterpolatingLayout.java291 int gravity = params.gravity;
292 if (gravity == -1) {
293 gravity = Gravity.START | Gravity.TOP;
311 Gravity.apply(gravity, child.getMeasuredWidth(), child.getMeasuredHeight(),
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
H A DCaptionWindowLayout.java72 // The following values indicates a gravity of a window.
244 * <p>According to CEA-708B, the anchor id indicates the gravity of the window as the follows.
248 * <h4>Anchor id and the gravity of a window</h4>
277 * <p>In order to handle the gravity of a window, there are two steps. First, set the size of
279 * determined in a ratio. Second, set the gravity of the window. {@link CaptionWindowLayout} is
280 * inherited from {@link RelativeLayout}. Hence, we could set the gravity of its child view,
283 * <p>The gravity of the window is also related to its size. When it should be pushed to a one
341 int gravity = Gravity.CENTER;
350 gravity = Gravity.LEFT;
380 gravity
[all...]
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
H A DRttChatMessageViewHolder.java47 params.gravity = message.isRemote ? Gravity.START : Gravity.END;
/packages/experimental/KBars/app/src/main/java/js/kbars/
H A DMediaModeToggleButton.java44 videoLP.gravity = 17;
/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/apps/Launcher3/src/com/android/launcher3/
H A DHotseat.java159 lp.gravity = Gravity.LEFT;
162 lp.gravity = Gravity.RIGHT;
166 lp.gravity = Gravity.BOTTOM;
H A DDropTargetBar.java95 lp.gravity = grid.isSeascape() ? Gravity.RIGHT : Gravity.LEFT;
113 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.TOP;
/packages/apps/Launcher3/src/com/android/launcher3/popup/
H A DArrowPopup.java311 arrowLp.gravity = lp.gravity = Gravity.BOTTOM;
316 arrowLp.gravity = lp.gravity = Gravity.TOP;
/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/DeskClock/src/com/android/deskclock/timer/
H A DExpiredTimersActivity.java226 lp.gravity = Gravity.CENTER;
236 lp.gravity = Gravity.NO_GRAVITY;
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsBackgroundDrawable.java51 * @param gravity If one of the Gravity center values, the x and y offset will take the width
55 int gravity) {
59 mGravity = gravity;
54 TransformedImageDrawable(Context context, int resourceId, float xPct, float yPct, int gravity) argument
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactsUnavailableFragment.java72 layoutParams.gravity = Gravity.CENTER_HORIZONTAL;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
H A DGrantPermissionsViewHandlerImpl.java76 outLayoutParams.gravity = Gravity.BOTTOM;
/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);

Completed in 3492 milliseconds

12