Home
last modified time | relevance | path

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

1234567891011

/packages/apps/Calendar/src/com/android/calendar/
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 …]
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 …]
/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/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/Browser/src/com/android/browser/view/
DScrollerView.java724 final int bottom = getScrollRange(); in onTouchEvent() local
726 if (mScroller.springBack(mScrollX, mScrollY, 0, bottom, 0, 0)) { in onTouchEvent()
730 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, bottom)) { in onTouchEvent()
975 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { in findFocusableViewInBounds() argument
995 if (top < viewBottom && viewTop < bottom) { in findFocusableViewInBounds()
1002 (viewBottom < bottom); in findFocusableViewInBounds()
1077 mTempRect.bottom = mTempRect.top + height; in pageScroll()
1079 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll()
1099 mTempRect.bottom = height; in fullScroll()
1105 mTempRect.bottom = view.getBottom() + mPaddingBottom; in fullScroll()
[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/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 …]
/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/UnifiedEmail/src/com/android/mail/browse/
DFolderSpan.java105 fm.descent = Math.max(fm.bottom, padding); in getSize()
107 fm.bottom = fm.descent; in getSize()
143 int y, int bottom, Paint paint) { in draw() argument
152 mFontMetrics.bottom = Math.max(mFontMetrics.bottom, padding); in draw()
153 top = y + mFontMetrics.top - mFontMetrics.bottom; in draw()
154 bottom = y; in draw()
155 y = bottom - mFontMetrics.bottom; in draw()
173 final RectF rect = new RectF(left, top, right, bottom); in draw()
DConversationContainer.java210 public final int bottom; field in ConversationContainer.OverlayPosition
212 public OverlayPosition(int top, int bottom) { in OverlayPosition() argument
214 this.bottom = bottom; in OverlayPosition()
524 itemPos.top, itemPos.bottom, adapterItem); in positionOverlays()
525 positionOverlay(adapterIndex, itemPos.top, itemPos.bottom, postAddView); in positionOverlays()
539 final int regionTop = flip ? itemPos.bottom : spacerTop; in positionOverlays()
544 adapterIndex, itemPos.top, itemPos.bottom, adapterItem); in positionOverlays()
545 positionOverlay(adapterIndex, itemPos.top, itemPos.bottom, postAddView); in positionOverlays()
761 return webPxToScreenPx(mOverlayPositions[spacerIndex].bottom); in getOverlayBottom()
831 final int bottom = childBottom - mOffsetY; in layoutOverlay() local
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java184 - mSweepPadding.bottom; in getTargetInset()
435 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent()
491 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent()
615 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint;
653 - mSweepPadding.bottom;
655 mMargins.bottom = 0;
664 mMargins.bottom = mSweepPadding.bottom;
677 final int offset = mSweepPadding.bottom * 2;
678 mContentOffset.bottom -= offset;
679 mMargins.bottom += offset;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java194 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
195 super.onLayout(changeSize, left, top, right, bottom); in onLayout()
270 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
319 int bottom = (int) FloatMath.ceil(top + height / scale); in getRange() local
326 bottom = Math.min(mImageHeight, bottom); in getRange()
328 out.set(left, top, right, bottom); in getRange()
436 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) { in render()
644 source.bottom /= 2f; in drawTile()
647 source.bottom = (sTileSize + source.bottom) / 2f; in drawTile()
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
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java358 int maxHeight = (availableHeightPx - workspacePadding.top - workspacePadding.bottom); in updateAvailableDimensions()
389 cellHeightPx = iconSizePx + iconDrawablePaddingPx + (int) Math.ceil(fm.bottom - fm.top); in updateIconSize()
577 heightPx - workspacePadding.bottom - insets.bottom); in getWorkspacePageIndicatorBounds()
582 heightPx - workspacePadding.bottom - insets.bottom); in getWorkspacePageIndicatorBounds()
585 int pageIndicatorTop = heightPx - insets.bottom - workspacePadding.bottom; in getWorkspacePageIndicatorBounds()
619 int paddingTop = searchBarBounds.bottom; in getWorkspacePadding()
630 searchBarBounds.bottom, in getWorkspacePadding()
661 int pageSpace = availableHeightPx - workspacePadding.top - workspacePadding.bottom; in getOverviewModeScale()
768 workspace.setPadding(padding.left, padding.top, padding.right, padding.bottom); in layout()
856 padding.bottom = Math.max(0, pageIndicatorHeight - paddingTB); in layout()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java1298 final int bottom = child.getBottom(); in recycleOffscreenViews() local
1318 final int colBottom = bottom + rec.getMarginBelow(spanIndex); in recycleOffscreenViews()
2173 final int bottom = mItemBottoms[index] + mItemMargin;
2174 if (bottom > lowest) {
2175 lowest = bottom;
2382 final int bottom = mItemBottoms[index] + mItemMargin;
2383 if (bottom > lowest) {
2384 lowest = bottom;
2905 final int bottom = mItemBottoms[index];
2906 if (bottom < topMost) {
[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/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/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java325 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
376 int bottom = (int) Math.ceil(top + height / scale); in getRange() local
383 bottom = Math.min(mImageHeight, bottom); in getRange()
385 out.set(left, top, right, bottom); in getRange()
442 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) { in draw()
654 source.bottom /= 2f; in drawTile()
657 source.bottom = (mTileSize + source.bottom) / 2f; in drawTile()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java325 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
376 int bottom = (int) Math.ceil(top + height / scale); in getRange() local
383 bottom = Math.min(mImageHeight, bottom); in getRange()
385 out.set(left, top, right, bottom); in getRange()
442 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) { in draw()
654 source.bottom /= 2f; in drawTile()
657 source.bottom = (mTileSize + source.bottom) / 2f; in drawTile()
/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/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java397 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom); in cropImageAndSetWallpaper()
425 cropRect.bottom = cropRect.top + defaultWallpaperSize.y / cropScale; in cropImageAndSetWallpaper()
430 Math.min(Math.min(rotatedInSize[1] - cropRect.bottom, cropRect.top), in cropImageAndSetWallpaper()
433 cropRect.bottom += expandHeight; in cropImageAndSetWallpaper()
692 mCropBounds.bottom /= scaleDownSampleSize;
710 roundedTrueCrop.bottom = roundedTrueCrop.top + fullSize.getHeight();
712 if (roundedTrueCrop.bottom > fullSize.getHeight()) {
715 Math.max(0, roundedTrueCrop.bottom - roundedTrueCrop.height());
717 roundedTrueCrop.bottom -= adjustment;
869 cropRect.bottom = inHeight;
[all …]

1234567891011