/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() 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/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 51 draw3Patch(bitmap, canvas, left, right); in draw() 61 float right, float bottom) { in drawVerticallyStretched() argument 62 draw(bitmap, canvas, left, top, right); in drawVerticallyStretched() 70 draw3Patch(bitmap, canvas, left, right); in drawVerticallyStretched() 75 private void draw3Patch(Bitmap bitmap, Canvas canvas, float left, float right) { in draw3Patch() argument 83 drawRegion(bitmap, canvas, halfWidth, width, right - halfWidth, right); in draw3Patch() 88 left + halfWidth, right - halfWidth); in draw3Patch() 94 mSrc.right = srcRight; in drawRegion() 97 mDst.right = dstRight; in drawRegion()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 44 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 …]
|
D | CropObject.java | 205 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 …]
|
D | BoundedRect.java | 215 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()
|
D | CropMath.java | 45 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/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) { 68 out.top = right; 69 out.right = bottom; 80 out.bottom = Math.max(insets.right, insets.bottom); 81 out.left = out.right = 0; 84 out.bottom = insets.right; 86 out.right = 0; 93 public void mapRect(int left, int top, int right, int bottom, Rect out) { 96 out.right = top; 97 out.bottom = right; [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 125 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/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 184 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/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
D | SwipeButtonHelper.java | 259 public void startHintAnimation(boolean right, @Nullable Runnable onFinishedListener) { in startHintAnimation() argument 261 startHintAnimationPhase1(right, onFinishedListener); in startHintAnimation() 265 final boolean right, @Nullable final Runnable onFinishedListener) { in startHintAnimationPhase1() argument 266 final SwipeButtonView targetView = right ? rightIcon : leftIcon; in startHintAnimationPhase1() 267 ValueAnimator animator = getAnimatorToRadius(right, hintGrowAmount); in startHintAnimationPhase1() 292 startUnlockHintAnimationPhase2(right, onFinishedListener); in startHintAnimationPhase1() 305 boolean right, @Nullable final Runnable onFinishedListener) { in startUnlockHintAnimationPhase2() argument 306 ValueAnimator animator = getAnimatorToRadius(right, 0); in startUnlockHintAnimationPhase2() 331 private ValueAnimator getAnimatorToRadius(final boolean right, int radius) { in getAnimatorToRadius() argument 332 final SwipeButtonView targetView = right ? rightIcon : leftIcon; in getAnimatorToRadius() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherRootView.java | 67 && (insets.left > 0 || insets.right > 0 || insets.bottom > 0)) { in handleSystemWindowInsets() 69 mConsumedInsets.right = insets.right; in handleSystemWindowInsets() 73 } else if ((insets.right > 0 || insets.left > 0) && in handleSystemWindowInsets() 76 mConsumedInsets.right = insets.right; in handleSystemWindowInsets() 92 if (lp.leftMargin != mConsumedInsets.left || lp.rightMargin != mConsumedInsets.right || in handleSystemWindowInsets() 95 lp.rightMargin = mConsumedInsets.right; in handleSystemWindowInsets() 113 mConsumedInsets.right, mConsumedInsets.bottom); in onApplyWindowInsets() 138 if (mConsumedInsets.right > 0) { in dispatchDraw() 140 canvas.drawRect(width - mConsumedInsets.right, 0, width, getHeight(), mOpaquePaint); in dispatchDraw()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFastScroller.java | 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() 441 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left; in layoutTrack() 443 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth); in layoutTrack() local 445 mTrackImageView.layout(left, top, right, bottom); in layoutTrack() 453 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left; in layoutThumb() 455 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth); in layoutThumb() local 457 mThumbImageView.layout(left, top, right, bottom); in layoutThumb() 472 final int left, right; in layoutPreview() local 474 right = mContainer.right - mTrackWidth - mPreviewMarginLeftRight; in layoutPreview() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | MarginDrawable.java | 59 if (s.top < s.bottom && s.left < s.right) { in draw() 62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint); in draw() 67 if (s.right < cb.right) { in draw() 68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw() 71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchFragment.java | 231 public void onRightButtonClick(@NonNull Button right) { in onRightButtonClick() argument 274 public void onUpdateFabButtons(@NonNull Button left, @NonNull Button right) { in onUpdateFabButtons() argument 283 right.setClickable(true); in onUpdateFabButtons() 284 right.setVisibility(INVISIBLE); in onUpdateFabButtons() 289 right.setText(R.string.sw_lap_button); in onUpdateFabButtons() 290 right.setContentDescription(resources.getString(R.string.sw_lap_button)); in onUpdateFabButtons() 291 right.setClickable(canRecordLaps); in onUpdateFabButtons() 292 right.setVisibility(canRecordLaps ? VISIBLE : INVISIBLE); in onUpdateFabButtons() 296 right.setClickable(true); in onUpdateFabButtons() 297 right.setVisibility(VISIBLE); in onUpdateFabButtons() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 102 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartSweepView.java | 188 - mSweepPadding.right; in getTargetInset() 436 acceptDrag = event.getX() > getWidth() - (mSweepPadding.right * 8); in onTouchEvent() 505 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent() 623 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint; 662 mMargins.right = mSweepPadding.right; 665 - mSweepPadding.right; 667 mMargins.right = 0; 690 final int offset = mSweepPadding.right * 2; 691 mContentOffset.right -= offset; 692 mMargins.right += offset; [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 188 - mSweepPadding.right; in getTargetInset() 436 acceptDrag = event.getX() > getWidth() - (mSweepPadding.right * 8); in onTouchEvent() 505 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent() 623 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint; 662 mMargins.right = mSweepPadding.right; 665 - mSweepPadding.right; 667 mMargins.right = 0; 690 final int offset = mSweepPadding.right * 2; 691 mContentOffset.right -= offset; 692 mMargins.right += offset; [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_writing_helper.h | 111 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/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | language_model_dict_content.cpp | 450 const EntryInfoToTurncate &left, const EntryInfoToTurncate &right) const { in operator ()() 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 ()() 464 if (left.mPrevWordIds[i] != right.mPrevWordIds[i]) { in operator ()() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
D | RectEvaluatorCompat.java | 41 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() local 43 return new Rect(left, top, right, bottom); in evaluate()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLView.java | 192 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
|
D | TileImageView.java | 193 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument 194 super.onLayout(changeSize, left, top, right, bottom); in onLayout() 270 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles() 317 int right = (int) Math.ceil(left + width / scale); in getRange() local 324 right = Math.min(mImageWidth, right); in getRange() 327 out.set(left, top, right, bottom); in getRange() 437 for (int tx = r.left, j = 0; tx < r.right; tx += size, j++) { in render() 636 source.right /= 2f; in drawTile() 639 source.right = (sTileSize + source.right) / 2f; in drawTile()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | OverlayRenderer.java | 30 private int right; field in OverlayRenderer 69 public void layout(int left, int top, int right, int bottom) { in layout() argument 71 this.right = right; in layout() 85 return right - left; in getWidth()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 198 int right = start; in binarySort() local 200 while (left < right) { in binarySort() 201 int mid = (left + right) >>> 1; in binarySort() 232 right = mid; in binarySort() 279 int right = start; in binarySort() local 281 while (left < right) { in binarySort() 282 int mid = ((left + right) >>> 1); in binarySort() 316 right = mid; in binarySort()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | PercentageBarChart.java | 76 final int right = getWidth() - getPaddingRight(); in onDraw() local 80 final int width = right - left; in onDraw() 84 float nextX = right; in onDraw() 120 if (nextX > right) { in onDraw() 121 canvas.drawRect(lastX, top, right, bottom, e.paint); in onDraw() 130 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint); in onDraw()
|