Searched refs:top (Results 1 - 25 of 391) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DSelectionRenderer.java24 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, argument
26 canvas.drawRect(left, top, right, top + stroke, paint);
28 canvas.drawRect(left, top, left + stroke, bottom, paint);
29 canvas.drawRect(right - stroke, top, right, bottom, paint);
32 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, argument
34 canvas.drawRect(left, top, right, top + stroke, selectPaint);
36 canvas.drawRect(left, top, left + stroke, bottom, selectPaint);
37 canvas.drawRect(right - stroke, top, righ
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { argument
87 event.top = top;
88 event.top += (int) (startTime * cellMinuteHeight);
89 event.top += startHour * mHourGap;
91 event.bottom = top;
96 if (event.bottom < event.top + mMinEventHeight) {
97 event.bottom = event.top + mMinEventHeight;
111 && event.top < selection.bottom && event.bottom >= selection.top) {
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
H A DRectEvaluatorCompat.java40 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction);
43 return new Rect(left, top, right, bottom);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DTextViewCompatUtils.java36 final Drawable start, final Drawable top, final Drawable end, final Drawable bottom) {
38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
42 start, top, end, bottom);
35 setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView, final Drawable start, final Drawable top, final Drawable end, final Drawable bottom) argument
H A DViewCompatUtils.java49 public static void setPaddingRelative(final View view, final int start, final int top, argument
52 view.setPadding(start, top, end, bottom);
55 CompatUtils.invoke(view, null, METHOD_setPaddingRelative, start, top, end, bottom);
/packages/apps/Camera2/src/com/android/camera/ui/
H A DMarginDrawable.java59 if (s.top < s.bottom && s.left < s.right) {
61 if (s.top > 0) {
62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint);
65 canvas.drawRect(0, s.top, s.left + 1, s.bottom, mPaint);
68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint);
H A DProgressOverlay.java45 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
46 super.onLayout(changed, left, top, right, bottom);
49 mCenterY = (bottom - top) / 2;
62 params.setMargins((int) area.left, (int) area.top, 0, 0);
H A DGridLines.java53 canvas.drawLine(mDrawBounds.left + x, mDrawBounds.top,
57 canvas.drawLine(mDrawBounds.left, mDrawBounds.top + y,
58 mDrawBounds.right, mDrawBounds.top + y, mPaint);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropDrawingUtils.java38 float y = bounds.top + stepY;
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p);
65 r.set(0,0,w,bounds.top);
67 r.set(0,bounds.top,bounds.left,h);
71 r.set(bounds.right,bounds.top,w,bounds.bottom);
78 int top = (int) centerY - indicatorSize / 2;
79 indicator.setBounds(left, top, left + indicatorSize, top + indicatorSize);
88 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.top);
91 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.top);
[all...]
H A DCropObject.java208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top;
215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight)
224 crop.right, crop.top
227 l1[1] = crop.top;
248 crop.top += dy;
269 float top = Math.abs(y - cropped.top);
274 if ((left <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top)
278 else if ((right <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top)
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DRoundedRectRevealOutlineProvider.java67 mOutline.top = (int) ((1 - progress) * mStartRect.top + progress * mEndRect.top);
69 mOutline.top -= mOutlineRadius;
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
H A DViewGroupFocusHelper.java40 outRect.top = 0;
47 outRect.top += (1 - v.getScaleY()) * v.getHeight() / 2;
50 outRect.bottom = outRect.top + (int) (v.getScaleY() * v.getHeight());
56 outRect.top += child.getTop();
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DMosaicTypes.h37 left = right = top = bottom = 0.0;
47 return bottom - top;
53 int left, right, top, bottom; member in class:MosaicRect
59 double lft, rgt, top, bot; member in class:BlendRect
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DSoftLandingInterpolator.java35 private final float top; field in class:SoftLandingInterpolator
44 top = mI + epsilon;
55 } else if (input < top) {
56 final float alpha = (input - bottom) / (top - bottom);
/packages/apps/Gallery/src/com/android/camera/
H A DEvenlySpacedLayout.java84 int top = 0;
90 child.layout(left, top, left + w, top + h);
110 int top = mKeepEndSpace ? spacing : 0;
117 child.layout(left, top, left + w, top + h);
118 top += h;
119 top += spacing;
H A DActionMenuButton.java78 final int top = getExtendedPaddingTop();
81 top + layout.getLineTop(0) - PADDING_V,
84 top + layout.getLineBottom(0) + PADDING_V);
H A DHighlightView.java93 mDrawRect.top + (height / 2),
117 int y = mDrawRect.top
126 int top = mDrawRect.top + 4;
140 int yMiddle = mDrawRect.top
141 + ((mDrawRect.bottom - mDrawRect.top) / 2);
156 top - heightHeight,
158 top + heightHeight);
211 // verticalCheck makes sure the position is between the top and
213 boolean verticalCheck = (y >= r.top
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DWindowLocationUtil.java97 sTmpFloat4[1] = rect.top;
102 rect.top = sTmpFloat4[1];
125 sTmpFloat8[1] = clippedBounds.top;
129 sTmpFloat8[5] = unclippedBitmapRect.top;
134 clippedBounds.top = sTmpFloat8[1];
138 unclippedBitmapRect.top = sTmpFloat8[5];
144 sTmpFloat4[1] = clippedBounds.top;
149 clippedBounds.top = sTmpFloat4[1];
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DFolderListLayout.java47 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
49 super.onLayout(changed, left, top, right, bottom);
/packages/apps/Camera2/src/com/android/camera/widget/
H A DCling.java38 public void onLayoutChange(View v, int left, int top, int right, int bottom,
56 * Layout on top of a reference view.
77 * Adjust the translation of the cling to stay on top of the reference view.
86 // Align center with the reference view and move on top
88 int top = refTopY - getHeight();
95 setTranslationY(top - currentTop);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTintedDrawableSpan.java43 int iconSize = fm.bottom - fm.top;
50 int start, int end, float x, int top, int y, int bottom, Paint paint) {
56 super.draw(canvas, text, start, end, x, top, y, bottom, paint);
49 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
H A DPointMeteringParameters.java45 * normalized portrait coordinates such that (0, 0) is top left
48 * normalized portrait coordinates such that (0, 0) is top left
107 int yCenterSensor = (int) (cropRegion.top + nsc.y * cropRegion.height());
117 meteringRegion.top = clamp(meteringRegion.top, cropRegion.top, cropRegion.bottom);
120 meteringRegion.bottom = clamp(meteringRegion.bottom, cropRegion.top,
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetImageView.java104 mDstRectF.top = 0;
107 mDstRectF.top = (myHeight - scaledHeight) / 2;
116 int top = Utilities.boundToRange(
119 mBadge.setBounds(left, top, bounds.width() + left, bounds.height() + top);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPercentageBarChart.java77 final int top = getPaddingTop();
97 canvas.drawRect(left, top, nextX, bottom, e.paint);
101 canvas.drawRect(lastX, top, nextX, bottom, e.paint);
106 canvas.drawRect(left, top, nextX, bottom, mEmptyPaint);
121 canvas.drawRect(lastX, top, right, bottom, e.paint);
125 canvas.drawRect(lastX, top, nextX, bottom, e.paint);
130 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterCropRepresentation.java71 || mCrop.top != crop.mCrop.top) {
98 crop.top *= bitmapHeight;
109 crop.top /= bitmapHeight;
156 writer.name(BOUNDS[1]).value(mCrop.top);
170 mCrop.top = (float) reader.nextDouble();

Completed in 343 milliseconds

1234567891011>>