Home
last modified time | relevance | path

Searched refs:bottom (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSelectionRenderer.java24 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, in drawSelection() argument
27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); in drawSelection()
28 canvas.drawRect(left, top, left + stroke, bottom, paint); in drawSelection()
29 canvas.drawRect(right - stroke, top, right, bottom, paint); in drawSelection()
32 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, in drawSelection() argument
35 canvas.drawRect(left, bottom - stroke, right, bottom, selectPaint); in drawSelection()
36 canvas.drawRect(left, top, left + stroke, bottom, selectPaint); in drawSelection()
37 canvas.drawRect(right - stroke, top, right, bottom, selectPaint); in drawSelection()
40 canvas.drawRect(left + stroke, bottom - stroke - border, right - stroke, in drawSelection()
41 bottom - stroke, borderPaint); in drawSelection()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java91 event.bottom = top; in computeEventRect()
92 event.bottom += (int) (endTime * cellMinuteHeight); in computeEventRect()
93 event.bottom += endHour * mHourGap - 1; in computeEventRect()
96 if (event.bottom < event.top + mMinEventHeight) { in computeEventRect()
97 event.bottom = event.top + mMinEventHeight; in computeEventRect()
111 && event.top < selection.bottom && event.bottom >= selection.top) { in eventIntersectsSelection()
124 float bottom = event.bottom; in pointToEvent() local
129 if (y <= bottom) { in pointToEvent()
134 return y - bottom; in pointToEvent()
147 if (y > bottom) { in pointToEvent()
[all …]
DColorChipView.java97 int bottom = getHeight() - 1; in onDraw() local
105 c.drawRect(0, 0, right, bottom, mPaint); in onDraw()
123 lines [ptr++] = bottom - halfBorderWidth; in onDraw()
125 lines [ptr++] = bottom - halfBorderWidth; in onDraw()
129 lines [ptr++] = bottom; in onDraw()
133 lines [ptr++] = bottom; in onDraw()
DDayView.java1315 mExpandAllDayRect.bottom = mFirstCell - EXPAND_ALL_DAY_BOTTOM_MARGIN; in remeasure()
1316 mExpandAllDayRect.top = mExpandAllDayRect.bottom in remeasure()
2182 dest.bottom = (int) (mViewHeight - yTranslate); in onDraw()
2306 r.bottom = DAY_HEADER_HEIGHT; in drawAllDayHighlights()
2314 r.bottom = mFirstCell - 1; in drawAllDayHighlights()
2333 r.bottom = mFirstCell - 1; in drawAllDayHighlights()
2345 mRect.bottom = mRect.top + mAlldayHeight + ALLDAY_TOP_MARGIN - 2; in drawAllDayHighlights()
2440 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine()
2492 r.bottom = r.top + mCellHeight + HOUR_GAP; in drawSelectedRect()
2496 saveSelectionPosition(r.left, r.top, r.right, r.bottom); in drawSelectedRect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird()
69 r.set(bounds.left,bounds.bottom,w,h); in drawShade()
71 r.set(bounds.right,bounds.top,w,bounds.bottom); in drawShade()
94 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.bottom); in drawIndicators()
97 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.bottom); in drawIndicators()
104 … drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.bottom); in drawIndicators()
136 path.lineTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame()
137 path.moveTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame()
138 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
140 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
[all …]
DCropObject.java208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection()
215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection()
216 - crop.bottom; in moveCurrentSelection()
221 crop.left, crop.bottom in moveCurrentSelection()
228 l2[1] = crop.bottom; in moveCurrentSelection()
254 crop.bottom += dy; in moveCurrentSelection()
270 float bottom = Math.abs(y - cropped.bottom); in calculateSelectedEdge() local
275 && ((y - mTouchTolerance) <= cropped.bottom) && (left < right)) { in calculateSelectedEdge()
279 && ((y - mTouchTolerance) <= cropped.bottom)) { in calculateSelectedEdge()
285 && ((x - mTouchTolerance) <= cropped.right) && (top < bottom)) { in calculateSelectedEdge()
[all …]
DBoundedRect.java221 ret.bottom = (p[1] < ret.bottom) ? p[1] : ret.bottom; in resizeInner()
226 ret.bottom = (p[1] < ret.bottom) ? p[1] : ret.bottom; in resizeInner()
265 } else if (inner.bottom == newInner.bottom) { in fixedAspectResizeInner()
315 ret.bottom = ret.top + heightSoFar; in fixedAspectResizeInner()
318 ret.bottom = ret.top + heightSoFar; in fixedAspectResizeInner()
321 ret.top = ret.bottom - heightSoFar; in fixedAspectResizeInner()
324 ret.top = ret.bottom - heightSoFar; in fixedAspectResizeInner()
DCropMath.java46 r.right, r.bottom, in getCornersFromRect()
47 r.left, r.bottom in getCornersFromRect()
63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains()
82 r.bottom = (y > r.bottom) ? y : r.bottom; in trapToRect()
101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom); in getEdgePoints()
200 r.bottom = r.top + finalH; in fixAspectRatioContained()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSoftLandingInterpolator.java34 private final float bottom; field in SoftLandingInterpolator
43 bottom = mI - epsilon; in SoftLandingInterpolator()
45 upperRange = 1f - bottom; in SoftLandingInterpolator()
50 final float s = slide.getInterpolation((input - bottom) / upperRange) * (1f - mO) + mO; in getInterpolation()
53 if (input < bottom) { in getInterpolation()
56 final float alpha = (input - bottom) / (top - bottom); in getInterpolation()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java183 mPositionConfiguration.mBottomBarRect.bottom, in getUncoveredPreviewRect()
185 mPositionConfiguration.mPreviewRect.bottom); in getUncoveredPreviewRect()
198 mPositionConfiguration.mPreviewRect.bottom); in getUncoveredPreviewRect()
203 mPositionConfiguration.mPreviewRect.bottom); in getUncoveredPreviewRect()
306 float bottom = height; in getPositionConfiguration() local
307 float top = bottom - previewLongerEdge; in getPositionConfiguration()
308 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()
341 float bottom = height - barSize; in getPositionConfiguration() local
342 float top = bottom - previewLongerEdge; in getPositionConfiguration()
343 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java127 int bottom = mDrawRect.bottom + 3; in draw() local
141 + ((mDrawRect.bottom - mDrawRect.top) / 2); in draw()
162 bottom - heightHeight, in draw()
164 bottom + heightHeight); in draw()
214 && (y < r.bottom + hysteresis); in getHit()
228 if ((Math.abs(r.bottom - y) < hysteresis) && horizCheck) { in getHit()
280 Math.min(0, mImageRect.bottom - mCropRect.bottom)); in moveBy()
339 } else if (r.bottom > mImageRect.bottom) { in growBy()
340 r.offset(0F, -(r.bottom - mImageRect.bottom)); in growBy()
351 (int) mCropRect.right, (int) mCropRect.bottom); in getCropRect()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DMarginDrawable.java59 if (s.top < s.bottom && s.left < s.right) { in draw()
65 canvas.drawRect(0, s.top, s.left + 1, s.bottom, mPaint); in draw()
68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw()
70 if (s.bottom < cb.bottom) { in draw()
71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/layout/
DScaledLayout.java179 mRectArray[i].bottom += overflowedHeight; in onMeasure()
182 mRectArray[i].bottom -= mRectArray[i].top; in onMeasure()
185 if (mRectArray[i].bottom > height) { in onMeasure()
186 mRectArray[i].top -= mRectArray[i].bottom - height; in onMeasure()
187 mRectArray[i].bottom = height; in onMeasure()
215 visibleRectArray[i].bottom, in onMeasure()
217 visibleRectArray[i].bottom + visibleRectArray[j].height()); in onMeasure()
224 if (visibleRectArray[i].bottom > height) { in onMeasure()
225 int overflowedHeight = visibleRectArray[i].bottom - height; in onMeasure()
231 visibleRectArray[j].bottom - overflowedHeight); in onMeasure()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DWindowLocationUtil.java99 sTmpFloat4[3] = rect.bottom; in getLocationsInWindow()
104 rect.bottom = sTmpFloat4[3]; in getLocationsInWindow()
127 sTmpFloat8[3] = clippedBounds.bottom; in getImageLocationsInWindow()
131 sTmpFloat8[7] = unclippedBitmapRect.bottom; in getImageLocationsInWindow()
136 clippedBounds.bottom = sTmpFloat8[3]; in getImageLocationsInWindow()
140 unclippedBitmapRect.bottom = sTmpFloat8[7]; in getImageLocationsInWindow()
146 sTmpFloat4[3] = clippedBounds.bottom; in getImageLocationsInWindow()
151 clippedBounds.bottom = sTmpFloat4[3]; in getImageLocationsInWindow()
DTransitionImageView.java175 dstClipRect.bottom /= mScaleY; in calculateDiffs()
179 mClipBottomDiff = dstClipRect.bottom - mSrcClipRect.bottom; in calculateDiffs()
191 dstUnclipRect.bottom /= mScaleY; in calculateDiffs()
238 mUnclipRect.bottom = (int) (unclipCenterY + unclipHeight * 0.5f); in setProgress()
247 mClipRect.bottom = mSrcClipRect.bottom + mClipBottomDiff * mProgress; in setProgress()
304 mExcludeRect.bottom /= (1f + mScaleYDiff * mProgress); in setExcludeClipRect()
/packages/apps/Launcher3/src/com/android/launcher3/
DBorderCropDrawable.java51 mBoundsShift.bottom = mPadding.bottom; in BorderCropDrawable()
52 mPadding.bottom = 0; in BorderCropDrawable()
62 bounds.bottom + mBoundsShift.bottom); in onBoundsChange()
68 return (padding.left | padding.top | padding.right | padding.bottom) != 0; in getPadding()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPercentageBarChart.java78 final int bottom = getHeight() - getPaddingBottom(); in onDraw() local
97 canvas.drawRect(left, top, nextX, bottom, e.paint); in onDraw()
101 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw()
106 canvas.drawRect(left, top, nextX, bottom, mEmptyPaint); in onDraw()
121 canvas.drawRect(lastX, top, right, bottom, e.paint); in onDraw()
125 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw()
130 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint); in onDraw()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DRectEvaluatorCompat.java42 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate() local
43 return new Rect(left, top, right, bottom); in evaluate()
/packages/apps/Settings/src/com/android/settings/widget/
DChartView.java119 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout()
125 childRect.bottom + child.getPaddingBottom()); in onLayout()
129 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout()
139 sweep.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in layoutSweep()
148 parentRect.bottom = parentRect.top; in layoutSweep()
158 parentRect.bottom += sweepMargins.bottom; in layoutSweep()
DChartSweepView.java184 - mSweepPadding.bottom; in getTargetInset()
437 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent()
493 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent()
617 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint;
655 - mSweepPadding.bottom;
657 mMargins.bottom = 0;
666 mMargins.bottom = mSweepPadding.bottom;
679 final int offset = mSweepPadding.bottom * 2;
680 mContentOffset.bottom -= offset;
681 mMargins.bottom += offset;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterCropRepresentation.java68 if (mCrop.bottom != crop.mCrop.bottom in equals()
100 crop.bottom *= bitmapHeight; in findScaledCrop()
111 crop.bottom /= bitmapHeight; in findNormalizedCrop()
158 writer.name(BOUNDS[3]).value(mCrop.bottom); in serializeRepresentation()
174 mCrop.bottom = (float) reader.nextDouble(); in deSerializeRepresentation()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java423 public void onLayoutChange(View v, int left, int top, int right, int bottom, in onLayoutChange() argument
430 mContainer.set(left, top + mRv.getPaddingTop(), right, bottom); in onLayoutChange()
444 int bottom = mContainer.bottom; in layoutTrack() local
445 mTrackImageView.layout(left, top, right, bottom); in layoutTrack()
456 int bottom = top + mThumbHeight; in layoutThumb() local
457 mThumbImageView.layout(left, top, right, bottom); in layoutThumb()
481 int bottom = centerY; in layoutPreview() local
482 int top = bottom - mPreviewTextView.getMeasuredHeight(); in layoutPreview()
485 bottom = top + mPreviewTextView.getMeasuredHeight(); in layoutPreview()
487 mPreviewTextView.layout(left, top, right, bottom); in layoutPreview()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java196 return mBounds.bottom - mBounds.top; in getHeight()
348 public void layout(int left, int top, int right, int bottom) { in layout() argument
349 boolean sizeChanged = setBounds(left, top, right, bottom); in layout()
355 onLayout(sizeChanged, left, top, right, bottom); in layout()
358 private boolean setBounds(int left, int top, int right, int bottom) { in setBounds() argument
360 || (bottom - top) != (mBounds.bottom - mBounds.top); in setBounds()
361 mBounds.set(left, top, right, bottom); in setBounds()
400 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
DTileImageView.java193 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
194 super.onLayout(changeSize, left, top, right, bottom); in onLayout()
269 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
318 int bottom = (int) Math.ceil(top + height / scale); in getRange() local
325 bottom = Math.min(mImageHeight, bottom); in getRange()
327 out.set(left, top, right, bottom); in getRange()
435 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) { in render()
643 source.bottom /= 2f; in drawTile()
646 source.bottom = (sTileSize + source.bottom) / 2f; in drawTile()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndbdic.c577 NJ_UINT32 current,hindo_max_data, bottom, next; in search_node() local
849 bottom = loctset->loct.top; in search_node()
920 bottom = data_offset; in search_node()
947 stem_data = data_top + bottom; in search_node()
953 loctset->loct.bottom = (NJ_UINT32)(stem_data - data_top); in search_node()
971 while (stem_data <= (data_top + loctset->loct.bottom)) { in search_node()
1050 NJ_UINT8 *data, *data_top, *bottom, *data_end; in bdic_search_fore_data() local
1077 bottom = data_top + loctset->loct.bottom; in bdic_search_fore_data()
1100 if (data > bottom) { in bdic_search_fore_data()
1160 if (data > bottom) { in bdic_search_fore_data()
[all …]

12345678910>>...12