/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 48 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 …]
|
D | DayView.java | 1299 mExpandAllDayRect.top = mExpandAllDayRect.bottom in remeasure() 1910 dest.top = (int) (mFirstCell - yTranslate); in onDraw() 2033 r.top = 0; in drawAllDayHighlights() 2041 r.top = DAY_HEADER_HEIGHT; in drawAllDayHighlights() 2060 r.top = 0; in drawAllDayHighlights() 2151 private void drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas, in drawCurrentTimeLine() argument 2156 r.top = top - CURRENT_TIME_LINE_TOP_OFFSET; in drawCurrentTimeLine() 2157 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine() 2321 r.top = mDestRect.top; in drawBgColors() 2339 r.top = lineY; in drawBgColors() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 38 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 …]
|
D | CropObject.java | 208 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 …]
|
D | BoundedRect.java | 211 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()
|
D | CropMath.java | 44 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/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
D | SelectionRenderer.java | 24 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/Gallery/src/com/android/camera/ |
D | HighlightView.java | 93 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 …]
|
D | EvenlySpacedLayout.java | 84 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/Launcher3/src/com/android/launcher3/graphics/ |
D | NinePatchDrawHelper.java | 44 public void draw(Bitmap bitmap, Canvas canvas, float left, float top, float right) { in draw() argument 47 mSrc.top = 0; in draw() 49 mDst.top = top; in draw() 50 mDst.bottom = top + height; in draw() 60 public void drawVerticallyStretched(Bitmap bitmap, Canvas canvas, float left, float top, in drawVerticallyStretched() argument 62 draw(bitmap, canvas, left, top, right); in drawVerticallyStretched() 66 mSrc.top = height - EXTENSION_PX / 4; in drawVerticallyStretched() 68 mDst.top = top + height; in drawVerticallyStretched()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLView.java | 196 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/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 66 public void mapRect(int left, int top, int right, int bottom, Rect out) { 67 out.left = top; 68 out.top = right; 79 out.top = Math.max(insets.top, insets.left); 83 out.top = Math.max(insets.top, insets.left); 93 public void mapRect(int left, int top, int right, int bottom, Rect out) { 95 out.top = left; 96 out.right = top; 103 out.top = Math.max(insets.top, insets.right); 107 out.top = Math.max(insets.top, insets.right);
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartSweepView.java | 183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() 185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset() 457 mTrackingStart = getTop() - mMargins.top; in onTouchEvent() 492 final float currentTargetY = getTop() - mMargins.top; in onTouchEvent() 496 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent() 499 value = mAxis.convertToValue(clampedTargetY - parentContent.top); in onTouchEvent() 548 final float effectiveY = getY() - mMargins.top - parentContent.top; 620 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint; 621 if (afterValid) clampRect.top += afterPoint; 657 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top [all …]
|
D | ChartView.java | 118 child.layout(childRect.left, childRect.top, childRect.right, in onLayout() 123 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout() 133 sweep.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in layoutSweep() 141 parentRect.top += sweepMargins.top + (int) sweep.getPoint(); in layoutSweep() 142 parentRect.bottom = parentRect.top; in layoutSweep() 151 parentRect.top += sweepMargins.top; in layoutSweep()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() 185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset() 457 mTrackingStart = getTop() - mMargins.top; in onTouchEvent() 492 final float currentTargetY = getTop() - mMargins.top; in onTouchEvent() 496 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent() 499 value = mAxis.convertToValue(clampedTargetY - parentContent.top); in onTouchEvent() 548 final float effectiveY = getY() - mMargins.top - parentContent.top; 620 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint; 621 if (afterValid) clampRect.top += afterPoint; 657 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top [all …]
|
D | ChartView.java | 118 child.layout(childRect.left, childRect.top, childRect.right, in onLayout() 123 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout() 133 sweep.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in layoutSweep() 141 parentRect.top += sweepMargins.top + (int) sweep.getPoint(); in layoutSweep() 142 parentRect.bottom = parentRect.top; in layoutSweep() 151 parentRect.top += sweepMargins.top; in layoutSweep()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFastScroller.java | 281 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/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 188 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/tuner/src/com/android/tv/tuner/layout/ |
D | ScaledLayout.java | 39 if (lhs.top != rhs.top) { 40 return lhs.top - rhs.top; 200 mRectArray[i].top -= overflowedHeight; in onMeasure() 201 if (mRectArray[i].top < 0) { in onMeasure() 202 mRectArray[i].bottom -= mRectArray[i].top; in onMeasure() 203 mRectArray[i].top = 0; in onMeasure() 206 mRectArray[i].top -= mRectArray[i].bottom - height; in onMeasure() 254 visibleRectArray[j].top - overflowedHeight, in onMeasure() 273 int childTop = paddingTop + mRectArray[i].top; in onLayout()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 139 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/Gallery2/src/com/android/gallery3d/app/ |
D | StateManager.java | 61 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/TV/src/com/android/tv/menu/ |
D | MenuLayoutManager.java | 120 public void layout(int left, int top, int right, int bottom) { in layout() argument 138 List<Rect> layouts = getViewLayouts(left, top, right, bottom); in layout() 143 currentView.layout(rect.left, rect.top, rect.right, rect.bottom); in layout() 254 private List<Rect> getViewLayouts(int left, int top, int right, int bottom) { in getViewLayouts() argument 256 left, top, right, bottom, Collections.emptyList(), Collections.emptyList()); in getViewLayouts() 278 int top, in getViewLayouts() argument 286 int relativeBottom = bottom - top; in getViewLayouts() 507 int offset = oldLayoutRect.top - mTempTitleViewForOld.getTop(); in setSelectedPositionSmooth() 530 oldLayoutRect.top - mTempTitleViewForOld.getTop())); in setSelectedPositionSmooth() 542 int distanceCurrentTitle = currentLayoutRect.top - currentView.getTop(); in setSelectedPositionSmooth() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | PercentageBarChart.java | 77 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/Settings/src/com/android/settings/deviceinfo/ |
D | PercentageBarChart.java | 77 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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 818 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { 819 super.onLayout(changed, left, top, right, bottom); 1067 int top = Integer.MAX_VALUE; 1078 if (v.getTop() < top) { 1079 top = v.getTop(); 1087 top = getPaddingTop(); 1089 top -= mSpace; 1090 itemInvisible = top - getScrollY() <= 0; 1100 return fillOneAxis(left, top, false, true); 1248 private boolean fillOneAxis(int left, int top, boolean leftToRight, boolean setInitialPos) { [all …]
|