Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 255) sorted by relevance

1234567891011

/packages/apps/Settings/src/com/android/settings/applications/
DLinearColorBar.java194 int right = left + (int)(width*mRedRatio); in onDraw() local
195 int right2 = right + (int)(width*mYellowRatio); in onDraw()
203 indicatorLeft = right; in onDraw()
242 if (left < right) { in onDraw()
244 mRect.right = right; in onDraw()
247 width -= (right-left); in onDraw()
248 left = right; in onDraw()
251 mLastLeftDiv = right; in onDraw()
254 right = right2; in onDraw()
256 if (left < right) { in onDraw()
[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()
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()
35 canvas.drawRect(left, bottom - stroke, right, 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()
40 canvas.drawRect(left + stroke, bottom - stroke - border, right - stroke, in drawSelection()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird()
71 r.set(bounds.right,bounds.top,w,bounds.bottom); in drawShade()
91 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.top); in drawIndicators()
97 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.bottom); in drawIndicators()
110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); in drawIndicators()
134 path.lineTo(r1.right, r1.top); in drawWallpaperSelectionFrame()
138 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
139 path.moveTo(r1.right, r1.top); in drawWallpaperSelectionFrame()
140 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
142 path.lineTo(r2.right, r2.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()
212 - crop.right; in moveCurrentSelection()
224 crop.right, crop.top in moveCurrentSelection()
251 crop.right += dx; in moveCurrentSelection()
268 float right = Math.abs(x - cropped.right); in calculateSelectedEdge() local
275 && ((y - mTouchTolerance) <= cropped.bottom) && (left < right)) { in calculateSelectedEdge()
278 else if ((right <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top) in calculateSelectedEdge()
285 && ((x - mTouchTolerance) <= cropped.right) && (top < bottom)) { in calculateSelectedEdge()
289 && ((x - mTouchTolerance) <= cropped.right)) { in calculateSelectedEdge()
[all …]
DBoundedRect.java215 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
220 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
263 else if (inner.right == newInner.right) in fixedAspectResizeInner()
266 if (inner.right == newInner.right) 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.java45 r.right, r.top, in getCornersFromRect()
46 r.right, r.bottom, in getCornersFromRect()
63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains()
81 r.right = (x > r.right) ? x : r.right; in trapToRect()
100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right); in getEdgePoints()
204 r.right = r.left + finalW; in fixAspectRatioContained()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java125 int right = mDrawRect.right + 1; in draw() local
139 + ((mDrawRect.right - mDrawRect.left) / 2); in draw()
149 mResizeDrawableWidth.setBounds(right - widthWidth, in draw()
151 right + widthWidth, in draw()
216 && (x < r.right + hysteresis); in getHit()
222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit()
279 Math.min(0, mImageRect.right - mCropRect.right), in moveBy()
334 } else if (r.right > mImageRect.right) { in growBy()
335 r.offset(-(r.right - mImageRect.right), 0); in growBy()
351 (int) mCropRect.right, (int) mCropRect.bottom); in getCropRect()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java1313 mExpandAllDayRect.right = Math.min(mExpandAllDayRect.left + allDayIconWidth, mHoursWidth in remeasure()
2184 dest.right = mViewWidth; in onDraw()
2284 final int right = computeDayLeftPosition(mNumDays); in drawScrollLine() local
2292 canvas.drawLine(GRID_LINE_LEFT_MARGIN, y, right, y, p); in drawScrollLine()
2308 r.right = mViewWidth; in drawAllDayHighlights()
2316 r.right = mHoursWidth; in drawAllDayHighlights()
2335 r.right = computeDayLeftPosition(mNumDays); in drawAllDayHighlights()
2348 mRect.right = computeDayLeftPosition(daynum + 1); in drawAllDayHighlights()
2437 r.right = computeDayLeftPosition(day + 1) + CURRENT_TIME_LINE_SIDE_BUFFER + 1; in drawCurrentTimeLine()
2494 r.right = computeDayLeftPosition(daynum + 1) + 1; in drawSelectedRect()
[all …]
DEventGeometry.java102 event.right = event.left + colWidth; in computeEventRect()
110 if (event.left < selection.right && event.right >= selection.left in eventIntersectsSelection()
122 float right = event.right; in pointToEvent() local
127 if (x <= right) { in pointToEvent()
141 float dx = x - right; in pointToEvent()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java184 mPositionConfiguration.mPreviewRect.right, in getUncoveredPreviewRect()
189 mPositionConfiguration.mPreviewRect.right, in getUncoveredPreviewRect()
195 return new RectF(mPositionConfiguration.mBottomBarRect.right, in getUncoveredPreviewRect()
197 mPositionConfiguration.mPreviewRect.right, in getUncoveredPreviewRect()
301 float right = width; in getPositionConfiguration() local
302 float left = right - previewLongerEdge; in getPositionConfiguration()
303 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
336 float right = width - barSize; in getPositionConfiguration() local
337 float left = right - previewLongerEdge; in getPositionConfiguration()
338 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndldic.c1199 NJ_UINT16 right, mid = 0, left, max; in search_range_by_yomi() local
1214 right = max - 1; in search_range_by_yomi()
1236 while (left <= right) { in search_range_by_yomi()
1237 mid = left + ((right - left) / 2); in search_range_by_yomi()
1268 printf(" [%d][%d][%d]COMPARE:[%s] = %d\n", left, mid, right, str, ret); in search_range_by_yomi()
1276 right = mid - 1; in search_range_by_yomi()
1352 for (right = mid + 1; right < max; right++) { in search_range_by_yomi()
1386 *to = right - 1; in search_range_by_yomi()
1397 NJ_UINT16 right, mid = 0, left, max = 0; in search_range_by_yomi_multi() local
1433 right = max - 1; in search_range_by_yomi_multi()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java188 - mSweepPadding.right; in getTargetInset()
431 acceptDrag = event.getX() > getWidth() - (mSweepPadding.right * 8); in onTouchEvent()
500 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent()
618 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint;
657 mMargins.right = mSweepPadding.right;
660 - mSweepPadding.right;
662 mMargins.right = 0;
685 final int offset = mSweepPadding.right * 2;
686 mContentOffset.right -= offset;
687 mMargins.right += offset;
[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()
150 parentRect.right += sweepMargins.right; in layoutSweep()
156 parentRect.right = parentRect.left; in layoutSweep()
/packages/apps/Camera2/src/com/android/camera/ui/
DFocusOverlay.java264 float right = mFocusDebugCornersRect.right; in onDraw() local
268 …canvas.drawLines(new float[]{right, top + delta, right, top, right, top, right - delta, top}, mDeb… in onDraw()
270 …canvas.drawLines(new float[]{right, bot - delta, right, bot, right, bot, right - delta, bot}, mDeb… in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
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()
271 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
318 int right = (int) FloatMath.ceil(left + width / scale); in getRange() local
325 right = Math.min(mImageWidth, right); 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()
637 source.right /= 2f; in drawTile()
640 source.right = (sTileSize + source.right) / 2f; in drawTile()
DPhotoView.java480 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
481 int w = right - left; in onLayout()
528 int r = mCameraRelativeFrame.right; in updateCameraRect()
694 int right = r.right; 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()
1508 int prevDist = center - prev.right;
1512 } else if (curr.right < center && mNextBound > 0) {
[all …]
DGLView.java192 return mBounds.right - mBounds.left; in getWidth()
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
359 boolean sizeChanged = (right - left) != (mBounds.right - mBounds.left) in setBounds()
361 mBounds.set(left, top, right, bottom); in setBounds()
400 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java395 cropRect.right = Math.min(rotatedInSize[0], cropRect.right); 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()
414 cropRect.right += extraSpace / 2f; in cropImageAndSetWallpaper()
417 cropRect.right += extraSpace; in cropImageAndSetWallpaper()
693 mCropBounds.right /= scaleDownSampleSize;
699 roundedTrueCrop.right = roundedTrueCrop.left + fullSize.getWidth();
701 if (roundedTrueCrop.right > fullSize.getWidth()) {
704 Math.max(0, roundedTrueCrop.right - roundedTrueCrop.width());
706 roundedTrueCrop.right -= adjustment;
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DWindowLocationUtil.java98 sTmpFloat4[2] = rect.right; in getLocationsInWindow()
103 rect.right = sTmpFloat4[2]; in getLocationsInWindow()
126 sTmpFloat8[2] = clippedBounds.right; in getImageLocationsInWindow()
130 sTmpFloat8[6] = unclippedBitmapRect.right; in getImageLocationsInWindow()
135 clippedBounds.right = sTmpFloat8[2]; in getImageLocationsInWindow()
139 unclippedBitmapRect.right = sTmpFloat8[6]; in getImageLocationsInWindow()
145 sTmpFloat4[2] = clippedBounds.right; in getImageLocationsInWindow()
150 clippedBounds.right = sTmpFloat4[2]; in getImageLocationsInWindow()
DTransitionImageView.java173 dstClipRect.right /= mScaleX; in calculateDiffs()
177 mClipRightDiff = dstClipRect.right - mSrcClipRect.right; in calculateDiffs()
189 dstUnclipRect.right /= mScaleX; in calculateDiffs()
237 mUnclipRect.right = (int) (unclipCenterX + unclipWidth * 0.5f); in setProgress()
246 mClipRect.right = mSrcClipRect.right + mClipRightDiff * mProgress; in setProgress()
302 mExcludeRect.right /= (1f + mScaleXDiff * mProgress); in setExcludeClipRect()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DOpenWnnClauseConverterJAJP.java326 if (connectible(stem.partOfSpeech.right, terminal.left)) { in addClause()
330 if (connectible(stem.partOfSpeech.right, fzk.partOfSpeech.left) in addClause()
331 && connectible(fzk.partOfSpeech.right, terminal.left)) { in addClause()
381 private boolean connectible(int right, int left) { in connectible() argument
383 if (mConnectMatrix[left][right] != 0) { in connectible()
443 if (connectible(word.partOfSpeech.right, follow.partOfSpeech.left)) { in getAncillaryPattern()
444 … fzks.add(new WnnWord(key, key, new WnnPOS(word.partOfSpeech.left, follow.partOfSpeech.right))); in getAncillaryPattern()
498 if (w.partOfSpeech.right == word.partOfSpeech.right) { in getIndependentWords()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java326 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
375 int right = (int) Math.ceil(left + width / scale); in getRange() local
382 right = Math.min(mImageWidth, right); in getRange()
385 out.set(left, top, right, bottom); in getRange()
444 for (int tx = r.left, j = 0; tx < r.right; tx += size, j++) { in draw()
647 source.right /= 2f; in drawTile()
650 source.right = (mTileSize + source.right) / 2f; in drawTile()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java326 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
375 int right = (int) Math.ceil(left + width / scale); in getRange() local
382 right = Math.min(mImageWidth, right); in getRange()
385 out.set(left, top, right, bottom); in getRange()
444 for (int tx = r.left, j = 0; tx < r.right; tx += size, j++) { in draw()
647 source.right /= 2f; in drawTile()
650 source.right = (mTileSize + source.right) / 2f; in drawTile()
/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()
706 int x,next_x,last,right; in db_HarrisStrength_f() local
712 right=next_x-1; in db_HarrisStrength_f()
713 if(right>last) right=last; in db_HarrisStrength_f()
715 db_HarrisStrengthChunk_f(s,img,x,3,right,h-4,temp); in db_HarrisStrength_f()
1381 int i,j,right; in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
1384 right=left+128; in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
1385 for(i=top;i<=bottom;i++) for(j=left;j<right;j++) in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
1408 void db_MaxSuppressFilter_5x5_Aligned16_f(float **sf,float **s,int left,int top,int right,int botto… in db_MaxSuppressFilter_5x5_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()
706 int x,next_x,last,right; in db_HarrisStrength_f() local
712 right=next_x-1; in db_HarrisStrength_f()
713 if(right>last) right=last; in db_HarrisStrength_f()
715 db_HarrisStrengthChunk_f(s,img,x,3,right,h-4,temp); in db_HarrisStrength_f()
1381 int i,j,right; in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
1384 right=left+128; in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
1385 for(i=top;i<=bottom;i++) for(j=left;j<right;j++) in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
1408 void db_MaxSuppressFilter_5x5_Aligned16_f(float **sf,float **s,int left,int top,int right,int botto… in db_MaxSuppressFilter_5x5_Aligned16_f() argument
[all …]

1234567891011