Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java37 float x = bounds.left + stepX; in drawRuleOfThird()
44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird()
67 r.set(0,bounds.top,bounds.left,h); in drawShade()
69 r.set(bounds.left,bounds.bottom,w,h); in drawShade()
77 int left = (int) centerX - 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()
94 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.bottom); in drawIndicators()
107 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY()); in drawIndicators()
133 path.moveTo(r1.left, r1.top); in drawWallpaperSelectionFrame()
[all …]
DCropObject.java205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; in moveCurrentSelection()
211 dx = Math.max(crop.right + dX, crop.left + minWidthHeight) in moveCurrentSelection()
221 crop.left, crop.bottom in moveCurrentSelection()
245 crop.left += dx; in moveCurrentSelection()
267 float left = Math.abs(x - cropped.left); in calculateSelectedEdge() local
274 if ((left <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top) in calculateSelectedEdge()
275 && ((y - mTouchTolerance) <= cropped.bottom) && (left < right)) { in calculateSelectedEdge()
284 if ((top <= mTouchTolerance) && ((x + mTouchTolerance) >= cropped.left) in calculateSelectedEdge()
288 else if ((bottom <= mTouchTolerance) && ((x + mTouchTolerance) >= cropped.left) in calculateSelectedEdge()
299 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, r.top + r.height() in fixedCornerResize()
[all …]
DBoundedRect.java210 ret.left = (p[0] > ret.left) ? p[0] : ret.left; in resizeInner()
225 ret.left = (p[0] > ret.left) ? p[0] : ret.left; in resizeInner()
261 if (inner.left == newInner.left) in fixedAspectResizeInner()
268 else if (inner.left == newInner.left) in fixedAspectResizeInner()
314 ret.right = ret.left + widthSoFar; in fixedAspectResizeInner()
317 ret.left = ret.right - widthSoFar; in fixedAspectResizeInner()
320 ret.left = ret.right - widthSoFar; in fixedAspectResizeInner()
323 ret.right = ret.left + widthSoFar; in fixedAspectResizeInner()
DCropMath.java44 r.left, r.top, 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()
79 r.left = (x < r.left) ? x : r.left; in trapToRect()
100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right); in getEdgePoints()
203 r.left = r.centerX() - finalW / 2; in fixAspectRatioContained()
204 r.right = r.left + finalW; in fixAspectRatioContained()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java92 path.addCircle(mDrawRect.left + (width / 2), in draw()
115 int x = mDrawRect.left in draw()
124 int left = mDrawRect.left + 1; in draw() local
138 int xMiddle = mDrawRect.left in draw()
139 + ((mDrawRect.right - mDrawRect.left) / 2); in draw()
143 mResizeDrawableWidth.setBounds(left - widthWidth, in draw()
145 left + widthWidth, in draw()
215 boolean horizCheck = (x >= r.left - hysteresis) in getHit()
219 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { in getHit()
275 Math.max(0, mImageRect.left - mCropRect.left), in moveBy()
[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()
27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); in drawSelection()
28 canvas.drawRect(left, top, left + stroke, 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()
35 canvas.drawRect(left, bottom - stroke, right, bottom, selectPaint); in drawSelection()
36 canvas.drawRect(left, top, left + stroke, bottom, selectPaint); in drawSelection()
38 canvas.drawRect(left + stroke, top + stroke, right - stroke, in drawSelection()
40 canvas.drawRect(left + stroke, bottom - stroke - border, right - stroke, in drawSelection()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DLinearColorBar.java192 int left = 0; in onDraw() local
194 int right = left + (int)(width*mRedRatio); in onDraw()
242 if (left < right) { in onDraw()
243 mRect.left = left; in onDraw()
247 width -= (right-left); in onDraw()
248 left = right; in onDraw()
256 if (left < right) { in onDraw()
257 mRect.left = left; in onDraw()
261 width -= (right-left); in onDraw()
262 left = right; in onDraw()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java1311 mExpandAllDayRect.left = Math.max((mHoursWidth - allDayIconWidth) / 2, in remeasure()
1313 mExpandAllDayRect.right = Math.min(mExpandAllDayRect.left + allDayIconWidth, mHoursWidth in remeasure()
2183 dest.left = 0; in onDraw()
2307 r.left = 0; in drawAllDayHighlights()
2315 r.left = 0; in drawAllDayHighlights()
2334 r.left = computeDayLeftPosition(startIndex) + 1; in drawAllDayHighlights()
2347 mRect.left = computeDayLeftPosition(daynum) + 1; in drawAllDayHighlights()
2436 r.left = computeDayLeftPosition(day) - CURRENT_TIME_LINE_SIDE_BUFFER + 1; in drawCurrentTimeLine()
2493 r.left = computeDayLeftPosition(daynum) + 1; in drawSelectedRect()
2496 saveSelectionPosition(r.left, r.top, r.right, r.bottom); in drawSelectedRect()
[all …]
DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument
101 event.left = left + col * (colWidth + mCellMargin); in computeEventRect()
102 event.right = event.left + colWidth; in computeEventRect()
110 if (event.left < selection.right && event.right >= selection.left in eventIntersectsSelection()
121 float left = event.left; in pointToEvent() local
126 if (x >= left) { in pointToEvent()
156 float dx = left - x; in pointToEvent()
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java187 final float targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left in getTargetInset()
189 return mSweepPadding.left + (targetWidth / 2) + mSweepOffset.x; in getTargetInset()
454 mTrackingStart = getLeft() - mMargins.left; in onTouchEvent()
496 final float currentTargetX = getLeft() - mMargins.left; in onTouchEvent()
500 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent()
503 value = mAxis.convertToValue(clampedTargetX - parentContent.left); in onTouchEvent()
546 final float effectiveX = getX() - mMargins.left - parentContent.left;
618 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint;
619 if (afterValid) clampRect.left += afterPoint;
656 mMargins.left = -mSweepPadding.left;
[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()
149 parentRect.left += sweepMargins.left; in layoutSweep()
155 parentRect.left += sweepMargins.left + (int) sweep.getPoint(); in layoutSweep()
156 parentRect.right = parentRect.left; in layoutSweep()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java192 return mBounds.right - mBounds.left; in getWidth()
271 int xoffset = component.mBounds.left - mScrollX; in renderChild()
298 int left = rect.left; 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 …]
DPhotoView.java480 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
481 int w = right - left; in onLayout()
526 int l = mCameraRelativeFrame.left; in updateCameraRect()
693 int left = r.left; in drawTileView() local
695 float progress = calculateMoveOutProgress(left, right, viewW); in drawTileView()
710 if (right - left <= viewW) { in drawTileView()
718 cxPage = (right - left) * scale / 2f; in drawTileView()
816 if (r.left >= w || r.right <= 0 || r.top >= h || r.bottom <= 0) { in draw()
916 canvas.fillRect(r.left, r.top, r.width(), r.height(), mPlaceholderColor); in drawPlaceHolder()
1505 if (curr.left > center && mPrevBound < 0) {
[all …]
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()
225 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles()
271 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
316 int left = (int) FloatMath.floor(cX - width / (2f * scale)); in getRange() local
318 int right = (int) FloatMath.ceil(left + width / scale); in getRange()
323 left = Math.max(0, size * (left / size)); in getRange()
328 out.set(left, top, right, bottom); in getRange()
438 for (int tx = r.left, j = 0; tx < r.right; tx += size, j++) { in render()
636 source.left /= 2f; in drawTile()
[all …]
/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()
164 mTranslationXDiff = mDstRect.left - mSrcRect.left; in calculateDiffs()
170 dstClipRect.offset(-mDstRect.left, -mDstRect.top); in calculateDiffs()
172 dstClipRect.left /= mScaleX; in calculateDiffs()
176 mClipLeftDiff = dstClipRect.left - mSrcClipRect.left; in calculateDiffs()
184 dstUnclipRect.offset(-mDstRect.left, -mDstRect.top); in calculateDiffs()
188 dstUnclipRect.left /= mScaleX; in calculateDiffs()
223 setTranslationX(mSrcRect.left + mProgress * mTranslationXDiff); in setProgress()
235 mUnclipRect.left = (int) (unclipCenterX - unclipWidth * 0.5f); in setProgress()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java832 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
833 super.onLayout(changed, left, top, right, bottom);
1095 int left = Integer.MAX_VALUE;
1103 if (v.getLeft() < left) {
1104 left = v.getLeft();
1114 left -= mSpace;
1115 itemInvisible = left - getScrollX() <= 0;
1120 left = getPaddingLeft();
1129 return fillOneAxis(left, top, false, true);
1278 private boolean fillOneAxis(int left, int top, boolean leftToRight, boolean setInitialPos) {
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DFocusOverlay.java262 float left = mFocusDebugCornersRect.left; in onDraw() local
267 …canvas.drawLines(new float[]{left, top + delta, left, top, left, top, left + delta, top}, mDebugCo… in onDraw()
269 …canvas.drawLines(new float[]{left, bot - delta, left, bot, left, bot, left + delta, bot}, mDebugCo… in onDraw()
274 canvas.drawText(mDebugMessage, left - 4, bot + 44, mDebugTextPaint); in onDraw()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java182 return new RectF(mPositionConfiguration.mPreviewRect.left, in getUncoveredPreviewRect()
187 return new RectF(mPositionConfiguration.mPreviewRect.left, in getUncoveredPreviewRect()
200 return new RectF(mPositionConfiguration.mPreviewRect.left, in getUncoveredPreviewRect()
202 mPositionConfiguration.mBottomBarRect.left, in getUncoveredPreviewRect()
302 float left = right - previewLongerEdge; in getPositionConfiguration() local
303 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
337 float left = right - previewLongerEdge; in getPositionConfiguration() local
338 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
373 float left = Math.round(rect.left); in round() local
377 rect.set(left, top, right, bottom); in round()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java340 void setOverScrollAmount(float r, boolean left) { in setOverScrollAmount() argument
341 if (left && mOverScrollForegroundDrawable != mOverScrollLeft) { in setOverScrollAmount()
343 } else if (!left && mOverScrollForegroundDrawable != mOverScrollRight) { in setOverScrollAmount()
777 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect() local
779 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect()
810 int left = getPaddingLeft(); in getContentRect() local
812 int right = left + getWidth() - getPaddingLeft() - getPaddingRight(); in getContentRect()
814 r.set(left, top, right, bottom); in getContentRect()
904 int left = getPaddingLeft() + (int) Math.ceil(offset / 2f); in onLayout() local
909 child.layout(left, top, in onLayout()
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java394 cropRect.left = Math.max(0, cropRect.left); in cropImageAndSetWallpaper()
404 extraSpace = 2f * Math.min(rotatedInSize[0] - cropRect.right, cropRect.left); in cropImageAndSetWallpaper()
406 extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; in cropImageAndSetWallpaper()
413 cropRect.left -= extraSpace / 2f; in cropImageAndSetWallpaper()
419 cropRect.left -= extraSpace; in cropImageAndSetWallpaper()
690 mCropBounds.left /= scaleDownSampleSize;
699 roundedTrueCrop.right = roundedTrueCrop.left + fullSize.getWidth();
703 int adjustment = roundedTrueCrop.left -
705 roundedTrueCrop.left -= adjustment;
720 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left,
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DRegionModel.java30 public RegionModel(String regionId, int left, int top, in RegionModel() argument
32 this(regionId, DEFAULT_FIT, left, top, width, height); in RegionModel()
35 public RegionModel(String regionId, String fit, int left, int top, in RegionModel() argument
37 this(regionId, fit, left, top, width, height, null); in RegionModel()
40 public RegionModel(String regionId, String fit, int left, int top, in RegionModel() argument
44 mLeft = left; in RegionModel()
83 public void setLeft(int left) { in setLeft() argument
84 mLeft = left; in setLeft()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java354 void setOverScrollAmount(float r, boolean left) { in setOverScrollAmount() argument
355 if (left && mOverScrollForegroundDrawable != mOverScrollLeft) { in setOverScrollAmount()
357 } else if (!left && mOverScrollForegroundDrawable != mOverScrollRight) { in setOverScrollAmount()
409 r.left = (int) (r.left * scale + 0.5f); in scaleRect()
887 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect() local
889 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect()
920 int left = getPaddingLeft(); in getContentRect() local
922 int right = left + getWidth() - getPaddingLeft() - getPaddingRight(); in getContentRect()
924 r.set(left, top, right, bottom); in getContentRect()
1231 int left = topLeft[0]; in visualizeDropLocation() local
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp616 inline void db_HarrisStrengthChunk_f(float **s,const float * const *img,int left,int top,int right,… in db_HarrisStrengthChunk_f() argument
625 chunk_width=right-left+1; in db_HarrisStrengthChunk_f()
637 for(i=top-2;i<top+2;i++) db_IxIyRow_f(Ix[i%5],Iy[i%5],img,i,left-2,chunk_width_p4); in db_HarrisStrengthChunk_f()
643 db_IxIyRow_f(Ix[(i+2)%5],Iy[(i+2)%5],img,(i+2),left-2,chunk_width_p4); in db_HarrisStrengthChunk_f()
651 db_HarrisStrength_row_f(s,gxx,gxy,gyy,i,left,chunk_width); in db_HarrisStrengthChunk_f()
659 inline void db_HarrisStrengthChunk_u(float **s,const unsigned char * const *img,int left,int top,in… in db_HarrisStrengthChunk_u() argument
679 for(i=top-2;i<top+2;i++) db_IxIyRow_u(Ixx[i%5],img,i,left-2,nc); in db_HarrisStrengthChunk_u()
685 db_IxIyRow_u(Ixx[(i+2)%5],img,(i+2),left-2,nc); in db_HarrisStrengthChunk_u()
691 db_HarrisStrength_row_s(s[i]+left,gxx,gxy,gyy,nc); in db_HarrisStrengthChunk_u()
1056 float db_MaxImage_Aligned16_f(float **img,int left,int top,int w,int h) in db_MaxImage_Aligned16_f() argument
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp616 inline void db_HarrisStrengthChunk_f(float **s,const float * const *img,int left,int top,int right,… in db_HarrisStrengthChunk_f() argument
625 chunk_width=right-left+1; in db_HarrisStrengthChunk_f()
637 for(i=top-2;i<top+2;i++) db_IxIyRow_f(Ix[i%5],Iy[i%5],img,i,left-2,chunk_width_p4); in db_HarrisStrengthChunk_f()
643 db_IxIyRow_f(Ix[(i+2)%5],Iy[(i+2)%5],img,(i+2),left-2,chunk_width_p4); in db_HarrisStrengthChunk_f()
651 db_HarrisStrength_row_f(s,gxx,gxy,gyy,i,left,chunk_width); in db_HarrisStrengthChunk_f()
659 inline void db_HarrisStrengthChunk_u(float **s,const unsigned char * const *img,int left,int top,in… in db_HarrisStrengthChunk_u() argument
679 for(i=top-2;i<top+2;i++) db_IxIyRow_u(Ixx[i%5],img,i,left-2,nc); in db_HarrisStrengthChunk_u()
685 db_IxIyRow_u(Ixx[(i+2)%5],img,(i+2),left-2,nc); in db_HarrisStrengthChunk_u()
691 db_HarrisStrength_row_s(s[i]+left,gxx,gxy,gyy,nc); in db_HarrisStrengthChunk_u()
1056 float db_MaxImage_Aligned16_f(float **img,int left,int top,int w,int h) in db_MaxImage_Aligned16_f() argument
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DBlend.cpp212 fullRect.left = (int) floor(global_rect.lft); // min-x in runBlend()
216 Mwidth = (unsigned short) (fullRect.right - fullRect.left + 1); in runBlend()
223 xLeftMost = max(0, max(xLeftCorners[0], xLeftCorners[1]) - fullRect.left + 1); in runBlend()
224 xRightMost = min(Mwidth - 1, min(xRightCorners[0], xRightCorners[1]) - fullRect.left - 1); in runBlend()
274 cropping_rect.left = xLeftMost; in runBlend()
298 mosaicWidth = cropping_rect.right - cropping_rect.left + 1; in runBlend()
613 for (i = cropping_rect.left; i <= cropping_rect.right; i++) in CropFinalMosaic()
621 for (i = cropping_rect.left; i <= cropping_rect.right; i++) in CropFinalMosaic()
629 for (i = cropping_rect.left; i <= cropping_rect.right; i++) in CropFinalMosaic()
725 for (i = cropping_rect.left; i < cropping_rect.right; i++) in PerformFinalBlending()
[all …]

12345678910>>...12