Home
last modified time | relevance | path

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

12345678910>>...15

/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/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/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/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 …]
DEvenlySpacedLayout.java83 int left = mKeepEndSpace ? spacing : 0; in layoutHorizontal() local
90 child.layout(left, top, left + w, top + h); in layoutHorizontal()
91 left += w; in layoutHorizontal()
92 left += spacing; in layoutHorizontal()
111 int left = 0; in layoutVertical() local
117 child.layout(left, top, left + w, top + h); in layoutVertical()
/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
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/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 …]
DWindowLocationUtil.java96 sTmpFloat4[0] = rect.left; in getLocationsInWindow()
101 rect.left = sTmpFloat4[0]; in getLocationsInWindow()
124 sTmpFloat8[0] = clippedBounds.left; in getImageLocationsInWindow()
128 sTmpFloat8[4] = unclippedBitmapRect.left; in getImageLocationsInWindow()
133 clippedBounds.left = sTmpFloat8[0]; in getImageLocationsInWindow()
137 unclippedBitmapRect.left = sTmpFloat8[4]; in getImageLocationsInWindow()
143 sTmpFloat4[0] = clippedBounds.left; in getImageLocationsInWindow()
148 clippedBounds.left = sTmpFloat4[0]; in getImageLocationsInWindow()
/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 …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java423 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()
441 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left; in layoutTrack() local
443 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth); in layoutTrack()
445 mTrackImageView.layout(left, top, right, bottom); in layoutTrack()
453 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left; in layoutThumb() local
455 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth); in layoutThumb()
457 mThumbImageView.layout(left, top, right, bottom); in layoutThumb()
472 final int left, right; in layoutPreview() local
475 left = right - mPreviewTextView.getMeasuredWidth(); in layoutPreview()
[all …]
/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()
456 mTrackingStart = getLeft() - mMargins.left; in onTouchEvent()
498 final float currentTargetX = getLeft() - mMargins.left; in onTouchEvent()
502 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent()
505 value = mAxis.convertToValue(clampedTargetX - parentContent.left); in onTouchEvent()
548 final float effectiveX = getX() - mMargins.left - parentContent.left;
620 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint;
621 if (afterValid) clampRect.left += afterPoint;
658 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/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/
DBorderCropDrawable.java39 mBoundsShift.left = -mPadding.left; in BorderCropDrawable()
40 mPadding.left = 0; in BorderCropDrawable()
59 bounds.left + mBoundsShift.left, in onBoundsChange()
68 return (padding.left | padding.top | padding.right | padding.bottom) != 0; in getPadding()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.h111 bool operator()(const DictProbability &left, const DictProbability &right) { in operator()
112 if (left.getProbability() != right.getProbability()) { in operator()
113 return left.getProbability() > right.getProbability(); in operator()
115 if (left.getTimestamp() != right.getTimestamp()) { in operator()
116 return left.getTimestamp() < right.getTimestamp(); in operator()
118 return left.getDictPos() > right.getDictPos(); in operator()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DRectEvaluatorCompat.java39 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); in evaluate() local
43 return new Rect(left, top, right, bottom); in evaluate()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DWnnPOS.java26 public int left = 0; field in WnnPOS
42 public WnnPOS(int left, int right) { in WnnPOS() argument
43 this.left = left; in WnnPOS()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp450 const EntryInfoToTurncate &left, const EntryInfoToTurncate &right) const { in operator ()() argument
451 if (left.mPriority != right.mPriority) { in operator ()()
452 return left.mPriority < right.mPriority; in operator ()()
454 if (left.mCount != right.mCount) { in operator ()()
455 return left.mCount < right.mCount; in operator ()()
457 if (left.mKey != right.mKey) { in operator ()()
458 return left.mKey < right.mKey; in operator ()()
460 if (left.mPrevWordCount != right.mPrevWordCount) { in operator ()()
461 return left.mPrevWordCount > right.mPrevWordCount; in operator ()()
463 for (int i = 0; i < left.mPrevWordCount; ++i) { in operator ()()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h136 const int left = keyXCoordinates[keyId]; in isOnKey() local
138 const int right = left + keyWidths[keyId] + 1; in isOnKey()
140 return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom; in isOnKey()
225 const int left = keyXCoordinates[keyId]; in squaredLengthToEdge() local
227 const int right = left + keyWidths[keyId]; in squaredLengthToEdge()
229 const int edgeX = x < left ? left : (x > right ? right : x); in squaredLengthToEdge()
/packages/apps/Launcher2/src/com/android/launcher2/
DButtonDropTarget.java134 final int left; in getIconRect() local
139 left = right - width; in getIconRect()
141 left = to.left + getPaddingLeft(); in getIconRect()
142 right = left + width; in getIconRect()
148 to.set(left, top, right, bottom); in getIconRect()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java240 if (mFocusRangeLeft <= focusableRect.left && focusableRect.right <= mFocusRangeRight) { in focusFind()
246 } else if (focusableRect.left <= mFocusRangeLeft in focusFind()
264 if (mFocusRangeLeft <= focusableRect.left && focusableRect.left <= mFocusRangeRight) { in focusFind()
265 int overlappedWidth = mFocusRangeRight - focusableRect.left; in focusFind()
308 focusedRect.left = Math.min(focusedRect.left, rightMostFocusablePosition); in updateUpDownFocusState()
311 if (focusedRect.left > mFocusRangeRight || focusedRect.right < mFocusRangeLeft) { in updateUpDownFocusState()
313 mFocusRangeLeft = focusedRect.left; in updateUpDownFocusState()
317 mFocusRangeLeft = Math.max(mFocusRangeLeft, focusedRect.left); in updateUpDownFocusState()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPercentageBarChart.java75 final int left = getPaddingLeft(); in onDraw() local
80 final int width = right - left; in onDraw()
96 if (lastX < left) { in onDraw()
97 canvas.drawRect(left, top, nextX, bottom, e.paint); in onDraw()
106 canvas.drawRect(left, top, nextX, bottom, mEmptyPaint); in onDraw()
108 float lastX = left; in onDraw()

12345678910>>...15