/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 208 int left = 0; in binarySort() local 211 while (left < right) { in binarySort() 212 int mid = (left + right) >>> 1; in binarySort() 245 left = mid + 1; in binarySort() 249 int n = start - left; in binarySort() 252 positions[left + 2] = positions[left + 1]; in binarySort() 253 sortKey[left + 2] = sortKey[left + 1]; in binarySort() 254 isDirs[left + 2] = isDirs[left + 1]; in binarySort() 256 positions[left + 1] = positions[left]; in binarySort() 257 sortKey[left + 1] = sortKey[left]; in binarySort() [all …]
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | FocusFinder.java | 52 return destRect.left < srcRect.right; in isPartiallyInDirection() 54 return destRect.right > srcRect.left; in isPartiallyInDirection() 92 return destRect.left < srcRect.left; in isInDirection() 129 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate() 130 && srcRect.left > destRect.left; in isCandidate() 132 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate() 202 ((source.left + source.width() / 2) - ((dest.left + dest.width() / 2)))); in minorAxisDistance() 254 return (rect2.right > rect1.left) && (rect2.left < rect1.right); in beamsOverlap() 266 return src.left >= dest.right; in isToDirectionOf() 268 return src.right <= dest.left; in isToDirectionOf() [all …]
|
/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() 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/ |
D | CropDrawingUtils.java | 37 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 …]
|
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() 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 …]
|
D | BoundedRect.java | 210 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()
|
D | CropMath.java | 44 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/ |
D | HighlightView.java | 92 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 …]
|
D | EvenlySpacedLayout.java | 83 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/modules/Connectivity/tests/common/java/android/net/ |
D | DhcpInfoTest.java | 85 private boolean dhcpInfoEquals(@Nullable DhcpInfo left, @Nullable DhcpInfo right) { in dhcpInfoEquals() argument 86 if (left == null && right == null) return true; in dhcpInfoEquals() 88 if (left == null || right == null) return false; in dhcpInfoEquals() 90 return left.ipAddress == right.ipAddress in dhcpInfoEquals() 91 && left.gateway == right.gateway in dhcpInfoEquals() 92 && left.netmask == right.netmask in dhcpInfoEquals() 93 && left.dns1 == right.dns1 in dhcpInfoEquals() 94 && left.dns2 == right.dns2 in dhcpInfoEquals() 95 && left.serverAddress == right.serverAddress in dhcpInfoEquals() 96 && left.leaseDuration == right.leaseDuration; in dhcpInfoEquals()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 199 int left = 0; in onDraw() local 206 final int right = left + drawable.getIntrinsicWidth(); in onDraw() 207 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight()); in onDraw() 209 left = right + resources.iconMargin; in onDraw() 215 left = addDrawable(canvas, resources.videoCall, left) + resources.iconMargin; in onDraw() 219 left = addDrawable(canvas, resources.hdCall, left) + resources.iconMargin; in onDraw() 223 left = addDrawable(canvas, resources.wifiCall, left) + resources.iconMargin; in onDraw() 227 left = addDrawable(canvas, resources.assistedDialedCall, left) + resources.iconMargin; in onDraw() 231 left = addDrawable(canvas, resources.rttCall, left) + resources.iconMargin; in onDraw() 235 private int addDrawable(Canvas canvas, Drawable drawable, int left) { in addDrawable() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLView.java | 192 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/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 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/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | TaskThumbnailView.java | 235 Math.round(boundsInBitmapSpace.left), in getScaledInsets() 261 canvas.translate(currentDrawnInsets.left, currentDrawnInsets.top); in onDraw() 264 -currentDrawnInsets.left, in onDraw() 315 float left = x + rounding / 2; in drawOnCanvas() local 320 canvas.drawRoundRect(left, top, right, bottom, cornerRadius, cornerRadius, in drawOnCanvas() 322 canvas.drawRoundRect(left, top, right, bottom, cornerRadius, cornerRadius, in drawOnCanvas() 478 - (thumbnailClipHint.left + thumbnailClipHint.right); in updateThumbnailMatrix() 530 thumbnailClipHint.left += availableWidth - croppedWidth; in updateThumbnailMatrix() 532 thumbnailClipHint.left += thumbnailClipHint.right; in updateThumbnailMatrix() 537 if (thumbnailClipHint.left < 0) { in updateThumbnailMatrix() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 187 final float targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left in getTargetInset() 189 return mSweepPadding.left + (targetWidth / 2) + mSweepOffset.x; in getTargetInset() 459 mTrackingStart = getLeft() - mMargins.left; in onTouchEvent() 501 final float currentTargetX = getLeft() - mMargins.left; in onTouchEvent() 505 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent() 508 value = mAxis.convertToValue(clampedTargetX - parentContent.left); in onTouchEvent() 551 final float effectiveX = getX() - mMargins.left - parentContent.left; 623 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint; 624 if (afterValid) clampRect.left += afterPoint; 661 mMargins.left = -mSweepPadding.left; [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() 143 parentRect.left += sweepMargins.left; in layoutSweep() 149 parentRect.left += sweepMargins.left + (int) sweep.getPoint(); in layoutSweep() 150 parentRect.right = parentRect.left; in layoutSweep()
|
/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() 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/notification/app/ |
D | NotificationPreferenceController.java | 189 public int compare(NotificationChannelGroup left, NotificationChannelGroup right) { 191 if (left.getId() == null && right.getId() != null) { 193 } else if (right.getId() == null && left.getId() != null) { 196 return left.getId().compareTo(right.getId()); 200 public static final Comparator<NotificationChannel> CHANNEL_COMPARATOR = (left, right) -> { 201 if (left.isDeleted() != right.isDeleted()) { 202 return Boolean.compare(left.isDeleted(), right.isDeleted()); 203 } else if (left.getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) { 210 return left.getId().compareTo(right.getId());
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 182 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/DeskClock/src/com/android/deskclock/ |
D | AnimatorUtils.kt | 189 return view.left in <lambda>() 192 override fun set(view: View, left: Int) { in <lambda>() 193 view.left = left in <lambda>() 246 val startLeft = from.left - fromInsets.left + targetInsets.left in <lambda>() 252 val endLeft = to.left - toInsets.left + targetInsets.left in <lambda>() 276 view.left = fromLeft in <lambda>()
|
/packages/services/Car/car-lib/src/android/car/navigation/ |
D | navigation_state.proto | 123 // wish to say "Keep left". Note that this is used in contrast to STRAIGHT 133 // Slight left turn at an intersection, from 10 (included) to 45 (excluded) 140 // Regular left turn at an intersection, from 45 (included) to 135 147 // Sharp left turn at an intersection, from 135 (included) to 175 (excluded) 154 // A left turn onto the opposite side of the same street, from 175 161 // A slight left turn to enter a turnpike or freeway. See TURN_SLIGHT_LEFT 167 // A normal left turn to enter a turnpike or freeway. See TURN_NORMAL_LEFT 173 // A sharp left turn to enter a turnpike or freeway. See TURN_SHARP_LEFT 179 // A left u-turn to enter a turnpike or freeway. See U_TURN_LEFT for the 186 // A slight left turn to exit a turnpike or freeway. See TURN_SLIGHT_LEFT [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 ()() 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/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFragment.kt | 274 override fun onUpdateFabButtons(left: Button, right: Button) { in onUpdateFabButtons() 276 left.isClickable = true in onUpdateFabButtons() 277 left.setText(R.string.timer_delete) in onUpdateFabButtons() 278 left.contentDescription = left.resources.getString(R.string.timer_delete) in onUpdateFabButtons() 279 left.visibility = View.VISIBLE in onUpdateFabButtons() 286 left.isClickable = true in onUpdateFabButtons() 287 left.setText(R.string.timer_cancel) in onUpdateFabButtons() 288 left.contentDescription = left.resources.getString(R.string.timer_cancel) in onUpdateFabButtons() 290 left.visibility = if (hasTimers()) View.VISIBLE else View.INVISIBLE in onUpdateFabButtons() 348 override fun onLeftButtonClick(left: Button) { in onLeftButtonClick() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_utils.h | 136 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()
|