Home
last modified time | relevance | path

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

123456

/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.java93 int bottom = getHeight() - 1; in onDraw() local
101 c.drawRect(0, 0, right, bottom, p); in onDraw()
119 lines [ptr++] = bottom - halfBorderWidth; in onDraw()
121 lines [ptr++] = bottom - halfBorderWidth; in onDraw()
125 lines [ptr++] = bottom; in onDraw()
129 lines [ptr++] = bottom; in onDraw()
DDayView.java1237 mExpandAllDayRect.bottom = mFirstCell - EXPAND_ALL_DAY_BOTTOM_MARGIN; in remeasure()
1238 mExpandAllDayRect.top = mExpandAllDayRect.bottom in remeasure()
2071 dest.bottom = (int) (mViewHeight - yTranslate); in onDraw()
2194 r.bottom = DAY_HEADER_HEIGHT; in drawAllDayHighlights()
2202 r.bottom = mFirstCell - 1; in drawAllDayHighlights()
2220 r.bottom = mFirstCell - 1; in drawAllDayHighlights()
2231 mRect.bottom = mRect.top + mAlldayHeight + ALLDAY_TOP_MARGIN - 2; in drawAllDayHighlights()
2326 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine()
2373 r.bottom = r.top + mCellHeight + HOUR_GAP; in drawSelectedRect()
2377 saveSelectionPosition(r.left, r.top, r.right, r.bottom); in drawSelectedRect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
DCropView.java94 bounds.set(0, bounds.top, 1, bounds.bottom); in setCropBounds()
107 cropBounds.right * width, cropBounds.bottom * height); in getCropBoundsDisplayed()
128 float bottom = Math.abs(y - cropped.bottom); in detectMovingEdges() local
129 if ((top <= TOUCH_TOLERANCE) & (top < bottom)) { in detectMovingEdges()
132 else if (bottom <= TOUCH_TOLERANCE) { in detectMovingEdges()
149 deltaY = (deltaY > 0) ? Math.min(displayBounds.bottom - cropped.bottom, deltaY) in moveEdges()
160 cropped.top = Math.min(cropped.top + deltaY, cropped.bottom - minHeight); in moveEdges()
166 cropped.bottom = Math.max(cropped.bottom + deltaY, cropped.top + minHeight); in moveEdges()
214 private void drawShadow(Canvas canvas, float left, float top, float right, float bottom) { in drawShadow() argument
216 canvas.clipRect(left, top, right, bottom); in drawShadow()
[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/Gallery2/src/com/android/gallery3d/ui/
DGLView.java187 return mBounds.bottom - mBounds.top; in getHeight()
310 public void setPaddings(int left, int top, int right, int bottom) { in setPaddings() argument
311 mPaddings.set(left, top, right, bottom); in setPaddings()
314 public void layout(int left, int top, int right, int bottom) { in layout() argument
315 boolean sizeChanged = setBounds(left, top, right, bottom); in layout()
318 onLayout(true, left, top, right, bottom); in layout()
321 onLayout(false, left, top, right, bottom); in layout()
325 private boolean setBounds(int left, int top, int right, int bottom) { in setBounds() argument
327 || (bottom - top) != (mBounds.bottom - mBounds.top); in setBounds()
328 mBounds.set(left, top, right, bottom); in setBounds()
[all …]
DCropView.java183 rect.right * mImageWidth, rect.bottom * mImageHeight); in getCropRectangle()
314 && r.top >= d && r.bottom < height - d) return; in startParkingAnimation()
349 offsetY + (input.bottom * mImageHeight - y) * s); in mapRect()
387 mImageHeight * (highlight.top + highlight.bottom) * 0.5f); in calculateTarget()
400 (highlight.top + highlight.bottom) * mImageHeight / 2); in calculateTarget()
459 dy = Utils.clamp(dy, -r.top , 1 - r.bottom); in moveEdges()
461 r.bottom += dy; in moveEdges()
471 float bottom = r.bottom - MIN_SELECTION_LENGTH / mImageHeight; in moveEdges() local
479 r.top = Utils.clamp(point.y, 0, bottom); in moveEdges()
482 r.bottom = Utils.clamp(point.y, top, 1f); in moveEdges()
[all …]
DTileImageView.java178 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
179 super.onLayout(changeSize, left, top, right, bottom); in onLayout()
253 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
299 int bottom = (int) Math.ceil(top + height / scale); in getRange() local
306 bottom = Math.min(mImageHeight, bottom); in getRange()
308 out.set(left, top, right, bottom); in getRange()
382 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) { in render()
573 source.bottom /= 2f; in drawTile()
576 source.bottom = (TILE_SIZE + source.bottom) / 2f; in drawTile()
DManageCacheDrawer.java104 int bottom = (height + 1) / 2; in drawCachingPin() local
106 int y = bottom - h - mCachePinMargin; in drawCachingPin()
115 y = bottom - textHeight; in drawCachingPin()
/packages/apps/Camera/src/com/android/camera/ui/
DIndicatorControlBar.java85 boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
100 mZoomControl.layout(0, offset, width, bottom - top - offset); in onLayout()
103 mSecondLevelIcon.layout(0, bottom - top - offset, width, bottom - top); in onLayout()
/packages/apps/Settings/src/com/android/settings/widget/
DChartView.java120 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout()
124 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout()
134 sweep.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in layoutSweep()
143 parentRect.bottom = parentRect.top; in layoutSweep()
153 parentRect.bottom += sweepMargins.bottom; in layoutSweep()
DChartSweepView.java177 - mSweepPadding.bottom; in getTargetInset()
419 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent()
475 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent()
599 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint;
637 - mSweepPadding.bottom;
639 mMargins.bottom = 0;
648 mMargins.bottom = mSweepPadding.bottom;
661 final int offset = mSweepPadding.bottom * 2;
662 mContentOffset.bottom -= offset;
663 mMargins.bottom += offset;
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPercentageBarChart.java70 final int bottom = getHeight() - getPaddingBottom(); in onDraw() local
87 canvas.drawRect(lastX, top, right, bottom, e.paint); in onDraw()
91 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw()
96 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint); in onDraw()
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DMosaicTypes.h37 left = right = top = bottom = 0.0; in MosaicRect()
47 return bottom - top; in Height()
53 int left, right, top, bottom; variable
/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 …]
DStopProgressView.java73 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
74 super.onLayout(changed, left, top, right, bottom); in onLayout()
76 mHeight = (bottom - top) * 2 / 3; in onLayout()
/packages/apps/Settings/src/com/android/settings/drawable/
DInsetBoundsDrawable.java34 public void setBounds(int left, int top, int right, int bottom) { in setBounds() argument
35 super.setBounds(left + mInsetBoundsSides, top, right - mInsetBoundsSides, bottom); in setBounds()
DDrawableWrapper.java48 public void setBounds(int left, int top, int right, int bottom) { in setBounds() argument
49 super.setBounds(left, top, right, bottom); in setBounds()
50 mDrawable.setBounds(left, top, right, bottom); in setBounds()
/packages/apps/VideoEditor/src/com/android/videoeditor/
DKenBurnsActivity.java441 + mStartRect.right + ", " + mStartRect.bottom); in showBitmapRectangle()
459 + mEndRect.right + ", " + mEndRect.bottom); in showBitmapRectangle()
492 + ", " + mMatrixRect.bottom); in saveBitmapRectangle()
498 final int bottom = (int)(((-mMatrixRect.top + lp.height)/scale) / mImageViewScale); in saveBitmapRectangle() local
500 mStartRect.set(left, top, right, bottom); in saveBitmapRectangle()
503 + mStartRect.right + ", " + mStartRect.bottom); in saveBitmapRectangle()
519 + ", " + mMatrixRect.bottom); in saveBitmapRectangle()
525 final int bottom = (int)(((-mMatrixRect.top + lp.height)/scale) / mImageViewScale); in saveBitmapRectangle() local
527 mEndRect.set(left, top, right, bottom); in saveBitmapRectangle()
530 + mEndRect.right + ", " + mEndRect.bottom); in saveBitmapRectangle()
/packages/apps/Contacts/src/com/android/contacts/widget/
DTransitionAnimationView.java80 mClipMargins.bottom = a.getDimensionPixelOffset( in TransitionAnimationView()
106 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
107 super.onLayout(changed, left, top, right, bottom); in onLayout()
114 int height = bottom - top; in onLayout()
121 width - mClipMargins.right, height - mClipMargins.bottom); in onLayout()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLMock.java130 float left, float right, float bottom, float top, in glOrthof() argument
133 float ty = -(top + bottom) / (top - bottom); in glOrthof()
137 0, 2 / (top - bottom), 0, 0, in glOrthof()
DGLViewMock.java58 int right, int bottom) { in onLayout() argument
64 item.layout(left, top, right, bottom); in onLayout()
/packages/apps/Mms/src/com/android/mms/ui/
DQuickContactDivot.java123 final int bottom = getHeight(); in computeBounds() local
148 (int)(bottom - mDrawableIntrinsicHeight), in computeBounds()
150 (int)(bottom)); in computeBounds()
/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/Browser/src/com/android/browser/
DTabScrollView.java85 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
86 super.onLayout(changed, left, top, right, bottom); in onLayout()
233 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
234 super.onLayout(changed, left, top, right, bottom); in onLayout()

123456