Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument
87 event.top = top; in computeEventRect()
88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect()
89 event.top += startHour * mHourGap; in computeEventRect()
91 event.bottom = top; 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()
123 float top = event.top; in pointToEvent() local
128 if (y >= top) { in pointToEvent()
[all …]
DDayView.java1316 mExpandAllDayRect.top = mExpandAllDayRect.bottom in remeasure()
2181 dest.top = (int) (mFirstCell - yTranslate); in onDraw()
2305 r.top = 0; in drawAllDayHighlights()
2313 r.top = DAY_HEADER_HEIGHT; in drawAllDayHighlights()
2332 r.top = 0; in drawAllDayHighlights()
2344 mRect.top = DAY_HEADER_HEIGHT + 1; in drawAllDayHighlights()
2345 mRect.bottom = mRect.top + mAlldayHeight + ALLDAY_TOP_MARGIN - 2; in drawAllDayHighlights()
2434 private void drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas, in drawCurrentTimeLine() argument
2439 r.top = top - CURRENT_TIME_LINE_TOP_OFFSET; in drawCurrentTimeLine()
2440 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine()
[all …]
/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
26 canvas.drawRect(left, top, right, top + stroke, 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
34 canvas.drawRect(left, top, right, top + stroke, 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()
38 canvas.drawRect(left + stroke, top + stroke, right - stroke, in drawSelection()
39 top + stroke + border, borderPaint); in drawSelection()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java38 float y = bounds.top + stepY; in drawRuleOfThird()
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird()
65 r.set(0,0,w,bounds.top); in drawShade()
67 r.set(0,bounds.top,bounds.left,h); in drawShade()
71 r.set(bounds.right,bounds.top,w,bounds.bottom); in drawShade()
78 int top = (int) centerY - indicatorSize / 2; in drawIndicator() local
79 indicator.setBounds(left, top, left + indicatorSize, top + indicatorSize); in drawIndicator()
88 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.top); in drawIndicators()
91 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.top); in drawIndicators()
101 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.top); in drawIndicators()
[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()
224 crop.right, crop.top in moveCurrentSelection()
227 l1[1] = crop.top; in moveCurrentSelection()
248 crop.top += dy; in moveCurrentSelection()
269 float top = Math.abs(y - cropped.top); in calculateSelectedEdge() local
274 if ((left <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top) in calculateSelectedEdge()
278 else if ((right <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top) in calculateSelectedEdge()
284 if ((top <= mTouchTolerance) && ((x + mTouchTolerance) >= cropped.left) in calculateSelectedEdge()
285 && ((x - mTouchTolerance) <= cropped.right) && (top < bottom)) { in calculateSelectedEdge()
[all …]
DBoundedRect.java211 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
216 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
260 if (inner.top == newInner.top) { 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.java44 r.left, r.top, in getCornersFromRect()
45 r.right, r.top, in getCornersFromRect()
63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains()
80 r.top = (y < r.top) ? y : r.top; in trapToRect()
101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom); in getEdgePoints()
199 r.top = r.centerY() - finalH / 2; in fixAspectRatioContained()
200 r.bottom = r.top + finalH; in fixAspectRatioContained()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java93 mDrawRect.top + (height / 2), in draw()
117 int y = mDrawRect.top in draw()
126 int top = mDrawRect.top + 4; in draw() local
140 int yMiddle = mDrawRect.top in draw()
141 + ((mDrawRect.bottom - mDrawRect.top) / 2); in draw()
156 top - heightHeight, in draw()
158 top + heightHeight); in draw()
213 boolean verticalCheck = (y >= r.top - hysteresis) in getHit()
225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit()
276 Math.max(0, mImageRect.top - mCropRect.top)); in moveBy()
[all …]
DEvenlySpacedLayout.java84 int top = 0; in layoutHorizontal() local
90 child.layout(left, top, left + w, top + h); in layoutHorizontal()
110 int top = mKeepEndSpace ? spacing : 0; in layoutVertical() local
117 child.layout(left, top, left + w, top + h); in layoutVertical()
118 top += h; in layoutVertical()
119 top += spacing; in layoutVertical()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionImageView.java135 mSrcClipRect.offset(-mSrcRect.left, -mSrcRect.top); in initializeView()
139 mSrcUnclipRect.offset(-mSrcRect.left, -mSrcRect.top); in initializeView()
165 mTranslationYDiff = mDstRect.top - mSrcRect.top; in calculateDiffs()
170 dstClipRect.offset(-mDstRect.left, -mDstRect.top); in calculateDiffs()
174 dstClipRect.top /= mScaleY; in calculateDiffs()
178 mClipTopDiff = dstClipRect.top - mSrcClipRect.top; in calculateDiffs()
184 dstUnclipRect.offset(-mDstRect.left, -mDstRect.top); in calculateDiffs()
190 dstUnclipRect.top /= mScaleY; in calculateDiffs()
224 setTranslationY(mSrcRect.top + mProgress * mTranslationYDiff); in setProgress()
236 mUnclipRect.top = (int) (unclipCenterY - unclipHeight * 0.5f); in setProgress()
[all …]
DWindowLocationUtil.java97 sTmpFloat4[1] = rect.top; in getLocationsInWindow()
102 rect.top = sTmpFloat4[1]; in getLocationsInWindow()
125 sTmpFloat8[1] = clippedBounds.top; in getImageLocationsInWindow()
129 sTmpFloat8[5] = unclippedBitmapRect.top; in getImageLocationsInWindow()
134 clippedBounds.top = sTmpFloat8[1]; in getImageLocationsInWindow()
138 unclippedBitmapRect.top = sTmpFloat8[5]; in getImageLocationsInWindow()
144 sTmpFloat4[1] = clippedBounds.top; in getImageLocationsInWindow()
149 clippedBounds.top = sTmpFloat4[1]; in getImageLocationsInWindow()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java196 return mBounds.bottom - mBounds.top; in getHeight()
272 int yoffset = component.mBounds.top - mScrollY; in renderChild()
299 int top = rect.top; in dispatchTouchEvent() local
301 event.offsetLocation(-left, -top); in dispatchTouchEvent()
303 event.offsetLocation(left, top); in dispatchTouchEvent()
306 event.offsetLocation(left, top); in dispatchTouchEvent()
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
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java281 final int verticalScrollStart = mContainer.top + mThumbHeight / 2; in updateScrollPos()
402 final int verticalScrollStart = mContainer.top + (mThumbHeight / 2); in handleDragMove()
423 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()
442 int top = mContainer.top; in layoutTrack() local
445 mTrackImageView.layout(left, top, right, bottom); in layoutTrack()
454 int top = centerY - (mThumbImageView.getHeight() / 2); in layoutThumb() local
456 int bottom = top + mThumbHeight; in layoutThumb()
457 mThumbImageView.layout(left, top, right, bottom); in layoutThumb()
470 final int previewMinY = mContainer.top + mPreviewMarginTop; in layoutPreview()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset()
185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset()
454 mTrackingStart = getTop() - mMargins.top; in onTouchEvent()
489 final float currentTargetY = getTop() - mMargins.top; in onTouchEvent()
493 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent()
496 value = mAxis.convertToValue(clampedTargetY - parentContent.top); in onTouchEvent()
545 final float effectiveY = getY() - mMargins.top - parentContent.top;
617 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint;
618 if (afterValid) clampRect.top += afterPoint;
654 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top
[all …]
DChartView.java119 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout()
124 child.layout(childRect.left, childRect.top, childRect.right, 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()
147 parentRect.top += sweepMargins.top + (int) sweep.getPoint(); in layoutSweep()
148 parentRect.bottom = parentRect.top; in layoutSweep()
157 parentRect.top += sweepMargins.top; in layoutSweep()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java188 mPositionConfiguration.mPreviewRect.top, in getUncoveredPreviewRect()
190 mPositionConfiguration.mBottomBarRect.top); in getUncoveredPreviewRect()
196 mPositionConfiguration.mPreviewRect.top, in getUncoveredPreviewRect()
201 mPositionConfiguration.mPreviewRect.top, in getUncoveredPreviewRect()
307 float top = bottom - previewLongerEdge; in getPositionConfiguration() local
308 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()
342 float top = bottom - previewLongerEdge; in getPositionConfiguration() local
343 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()
374 float top = Math.round(rect.top); in round() local
377 rect.set(left, top, right, bottom); in round()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/layout/
DScaledLayout.java41 if (lhs.top != rhs.top) {
42 return lhs.top - rhs.top;
180 mRectArray[i].top -= overflowedHeight; in onMeasure()
181 if (mRectArray[i].top < 0) { in onMeasure()
182 mRectArray[i].bottom -= mRectArray[i].top; in onMeasure()
183 mRectArray[i].top = 0; in onMeasure()
186 mRectArray[i].top -= mRectArray[i].bottom - height; in onMeasure()
229 visibleRectArray[j].top - overflowedHeight, in onMeasure()
248 int childTop = paddingTop + mRectArray[i].top; in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/
DBorderCropDrawable.java43 mBoundsShift.top = -mPadding.top; in BorderCropDrawable()
44 mPadding.top = 0; in BorderCropDrawable()
60 bounds.top + mBoundsShift.top, in onBoundsChange()
68 return (padding.left | padding.top | padding.right | padding.bottom) != 0; in getPadding()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java61 ActivityState top = getTopState(); in startState() local
62 top.transitionOnNextPause(top.getClass(), klass, in startState()
64 if (mIsResumed) top.onPause(); in startState()
207 ActivityState top = !mStack.isEmpty() ? mStack.peek().activityState : null; in finishState() local
209 if (top != null) { in finishState()
210 state.transitionOnNextPause(state.getClass(), top.getClass(), in finishState()
218 if (top != null && mIsResumed) top.resume(); in finishState()
219 if (top != null) { in finishState()
221 top.getClass().getSimpleName()); in finishState()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPercentageBarChart.java77 final int top = getPaddingTop(); 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.java40 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); in evaluate() local
43 return new Rect(left, top, right, bottom); in evaluate()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp139 global_rect.rgt = global_rect.top = -2e30; // max values in runBlend()
213 fullRect.top = (int) floor(global_rect.bot); // min-y in runBlend()
215 fullRect.bottom = (int) ceil(global_rect.top);// max-y in runBlend()
217 Mheight = (unsigned short) (fullRect.bottom - fullRect.top + 1); in runBlend()
226 yTopMost = max(0, max(yTopCorners[0], yTopCorners[1]) - fullRect.top + 1); in runBlend()
227 yBottomMost = min(Mheight - 1, min(yBottomCorners[0], yBottomCorners[1]) - fullRect.top - 1); in runBlend()
279 cropping_rect.top = yTopMost; in runBlend()
299 mosaicHeight = cropping_rect.bottom - cropping_rect.top + 1; in runBlend()
604 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
612 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DMarginDrawable.java59 if (s.top < s.bottom && s.left < s.right) { in draw()
61 if (s.top > 0) { in draw()
62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint); 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()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h137 const int top = keyYCoordinates[keyId]; in isOnKey() local
139 const int bottom = top + keyHeights[keyId]; in isOnKey()
140 return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom; in isOnKey()
226 const int top = keyYCoordinates[keyId]; in squaredLengthToEdge() local
228 const int bottom = top + keyHeights[keyId]; in squaredLengthToEdge()
230 const int edgeY = y < top ? top : (y > bottom ? bottom : y); in squaredLengthToEdge()
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java123 public void layout(int left, int top, int right, int bottom) { in layout() argument
141 List<Rect> layouts = getViewLayouts(left, top, right, bottom); in layout()
146 currentView.layout(rect.left, rect.top, rect.right, rect.bottom); in layout()
221 private List<Rect> getViewLayouts(int left, int top, int right, int bottom) { in getViewLayouts() argument
222 return getViewLayouts(left, top, right, bottom, Collections.<Integer>emptyList(), in getViewLayouts()
243 private List<Rect> getViewLayouts(int left, int top, int right, int bottom, in getViewLayouts() argument
248 int relativeBottom = bottom - top; in getViewLayouts()
426 int offset = oldLayoutRect.top - mTempTitleViewForOld.getTop(); in setSelectedPositionSmooth()
437 oldLayoutRect.top - mTempTitleViewForOld.getTop())); in setSelectedPositionSmooth()
449 int distanceCurrentTitle = currentLayoutRect.top - currentView.getTop(); in setSelectedPositionSmooth()
[all …]

12345678910>>...15