Home
last modified time | relevance | path

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

12345678910>>...28

/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java196 int left = 0; in binarySort() local
199 while (left < right) { in binarySort()
200 int mid = (left + right) >>> 1; in binarySort()
233 left = mid + 1; in binarySort()
237 int n = start - left; in binarySort()
240 positions[left + 2] = positions[left + 1]; in binarySort()
241 sortKey[left + 2] = sortKey[left + 1]; in binarySort()
242 isDirs[left + 2] = isDirs[left + 1]; in binarySort()
244 positions[left + 1] = positions[left]; in binarySort()
245 sortKey[left + 1] = sortKey[left]; in binarySort()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DNetworkStatsUtils.kt54 val left = NetworkStats.Entry() in <lambda>() constant
58 leftTrimmedEmpty.getValues(i, left) in <lambda>()
59 val j: Int = rightTrimmedEmpty.findIndexHinted(left.iface, left.uid, left.set, left.tag, in <lambda>()
60 left.metered, left.roaming, left.defaultNetwork, i) in <lambda>()
64 if (left != right) return false in <lambda>()
66 if (!checkEntryEquals(left, right)) return false in <lambda>()
75 fun assertEntryEquals(left: NetworkStats.Entry, right: NetworkStats.Entry) { in assertEntryEquals()
76 assertTrue(checkEntryEquals(left, right)) in assertEntryEquals()
82 fun checkEntryEquals(left: NetworkStats.Entry, right: NetworkStats.Entry): Boolean { in checkEntryEquals()
83 return TextUtils.equals(left.iface, right.iface) && in checkEntryEquals()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/util/
DPersistableBundleUtils.java69 private static boolean arraysEqual(Object left, Object right) { in arraysEqual() argument
70 if (left instanceof boolean[]) { in arraysEqual()
71 return Arrays.equals((boolean[]) left, (boolean[]) right); in arraysEqual()
72 } else if (left instanceof double[]) { in arraysEqual()
73 return Arrays.equals((double[]) left, (double[]) right); in arraysEqual()
74 } else if (left instanceof int[]) { in arraysEqual()
75 return Arrays.equals((int[]) left, (int[]) right); in arraysEqual()
76 } else if (left instanceof long[]) { in arraysEqual()
77 return Arrays.equals((long[]) left, (long[]) right); in arraysEqual()
78 } else if (left instanceof String[]) { in arraysEqual()
[all …]
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DFocusFinder.java52 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/providers/MediaProvider/pdf/framework/libs/pdfClient/
Drect.cc34 output.left = std::min(x1, x2); in IntRect()
45 Rectangle_i IntRectWithSize(const int left, const int top, const int width, const int height) { in IntRectWithSize() argument
46 return Rectangle_i{left, top, left + width, top + height}; in IntRectWithSize()
50 return IntRect(floor(input.left), floor(input.top), ceil(input.right), ceil(input.bottom)); in OuterIntRect()
55 output.left = std::min(x1, x2); in DoubleRect()
64 output.left = std::max(lhs.left, rhs.left); in Intersect()
76 output.left = std::max(lhs.left, rhs.left); in Intersect()
88 output.left = std::min(lhs.left, rhs.left); in Union()
97 output.left = std::min(lhs.left, rhs.left); in Union()
Drect.h45 int left; member
53 int Width() const { return right - left; } in Width()
57 Point_i Center() const { return Point_i{(left + right) / 2, (top + bottom) / 2}; } in Center()
63 double left; member
71 double Width() const { return right - left; } in Width()
75 Point_d Center() const { return Point_d{(left + right) / 2, (top + bottom) / 2}; } in Center()
81 float left; member
89 float Width() const { return right - left; } in Width()
93 Point_f Center() const { return Point_f{(left + right) / 2, (top + bottom) / 2}; } in Center()
107 return lhs.left == rhs.left && lhs.top == rhs.top && lhs.right == rhs.right &&
[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/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLinkPropertiesUtils.java137 @Nullable LinkProperties left, @Nullable LinkProperties right) { in compareAddresses()
145 return new CompareResult<>(left != null ? left.getLinkAddresses() : null, in compareAddresses()
157 public static boolean isIdenticalAllLinkAddresses(@Nullable LinkProperties left, in isIdenticalAllLinkAddresses() argument
159 if (left == right) return true; in isIdenticalAllLinkAddresses()
160 if (left == null || right == null) return false; in isIdenticalAllLinkAddresses()
161 final List<LinkAddress> leftAddresses = left.getAllLinkAddresses(); in isIdenticalAllLinkAddresses()
174 public static boolean isIdenticalAddresses(@NonNull LinkProperties left, in isIdenticalAddresses() argument
176 final Collection<InetAddress> leftAddresses = left.getAddresses(); in isIdenticalAddresses()
189 public static boolean isIdenticalDnses(@NonNull LinkProperties left, in isIdenticalDnses() argument
191 final Collection<InetAddress> leftDnses = left.getDnsServers(); in isIdenticalDnses()
[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()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/recents/domain/usecase/
DOrganizeDesktopTasksUseCase.kt131 if (maxRight <= availableLayoutBounds.left) { in <lambda>()
207 var left = layoutBounds.left in <lambda>() variable
213 var maxRight = layoutBounds.left in <lambda>()
224 if ((left + width + HORIZONTAL_SPACE_BETWEEN_TASKS) > layoutBounds.right) { in <lambda>()
226 minRight = minOf(minRight, left) in <lambda>()
227 maxRight = maxOf(maxRight, left) in <lambda>()
234 layoutBounds.left + width + HORIZONTAL_SPACE_BETWEEN_TASKS > in <lambda>()
240 left = layoutBounds.left in <lambda>()
246 left.toFloat(), in <lambda>()
248 (left + width).toFloat(), in <lambda>()
[all …]
/packages/services/Car/service/src/com/android/car/telemetry/publisher/net/
DRefinedStats.java82 public static RefinedStats subtract(@NonNull RefinedStats left, @NonNull RefinedStats right) { in subtract() argument
83 RefinedStats result = new RefinedStats(left.mStartMillis, left.mEndMillis); in subtract()
86 for (int l = 0; l < left.mUid.size(); l++) { in subtract()
87 int rIndex = right.findIndex(left.mUid.get(l), left.mTag.get(l)); in subtract()
88 result.mUid.add(left.mUid.get(l)); in subtract()
89 result.mTag.add(left.mTag.get(l)); in subtract()
91 result.mRxBytes.add(left.mRxBytes.get(l)); in subtract()
92 result.mTxBytes.add(left.mTxBytes.get(l)); in subtract()
95 result.mRxBytes.add(Math.max(left.mRxBytes.get(l) - right.mRxBytes.get(rIndex), 0)); in subtract()
96 result.mTxBytes.add(Math.max(left.mTxBytes.get(l) - right.mTxBytes.get(rIndex), 0)); in subtract()
/packages/modules/Connectivity/tests/common/java/android/net/
DDhcpInfoTest.java84 private boolean dhcpInfoEquals(@Nullable DhcpInfo left, @Nullable DhcpInfo right) { in dhcpInfoEquals() argument
85 if (left == null && right == null) return true; in dhcpInfoEquals()
87 if (left == null || right == null) return false; in dhcpInfoEquals()
89 return left.ipAddress == right.ipAddress in dhcpInfoEquals()
90 && left.gateway == right.gateway in dhcpInfoEquals()
91 && left.netmask == right.netmask in dhcpInfoEquals()
92 && left.dns1 == right.dns1 in dhcpInfoEquals()
93 && left.dns2 == right.dns2 in dhcpInfoEquals()
94 && left.serverAddress == right.serverAddress in dhcpInfoEquals()
95 && left.leaseDuration == right.leaseDuration; in dhcpInfoEquals()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSwipePipToHomeAnimator.java145 Rect overflowAppBounds = new Rect(appBounds.left - 1, appBounds.top - 1, in SwipePipToHomeAnimator()
187 mSourceHintRectInsets = new Rect(mSourceRectHint.left - appBounds.left, in SwipePipToHomeAnimator()
226 int left = appBounds.left; in getEnterPipWithOverlaySrcRectHint() local
235 left = appBounds.left + (appBounds.width() - width) / 2; in getEnterPipWithOverlaySrcRectHint()
237 return new Rect(left, top, left + width, top + height); in getEnterPipWithOverlaySrcRectHint()
315 positionX = progress * (mDestinationBoundsTransformed.left - mStartBounds.left) in getRotatedPosition()
316 + mStartBounds.left; in getRotatedPosition()
321 positionX = progress * (mDestinationBoundsTransformed.left - mStartBounds.left) in getRotatedPosition()
322 + mStartBounds.left + mStartBounds.right * (1 - progress); in getRotatedPosition()
329 positionX = progress * (mDestinationBoundsTransformed.left - mStartBounds.left) in getRotatedPosition()
[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 …]
/packages/apps/Settings/src/com/android/settings/connecteddevice/display/
DTopologyClamp.kt34 val left : Float, val right : Float, in <lambda>() constant
66 XCoor(it.left - movingDisplay.width(), it.left, it), in <lambda>()
70 }.plusElement(XCoor(movingDisplay.left, movingDisplay.right, null)) in <lambda>()
92 it.x.left <= it.y.attaching.right && it.x.right >= it.y.attaching.left in <lambda>()
101 hypot(it.x.left - movingDisplay.left, it.y.top - movingDisplay.top) in <lambda>()
104 .map { RectF(it.x.left, it.y.top, it.x.right, it.y.bottom) } in <lambda>()
/packages/apps/Car/systemlibs/car-scalable-ui-lib/src/com/android/car/scalableui/model/
DBounds.java55 Bounds(int left, int top, int right, int bottom) { in Bounds() argument
56 mLeft = left; in Bounds()
84 public Builder setLeft(@Nullable Integer left) { in setLeft() argument
85 mLeft = left; in setLeft()
121 mLeft = rect.left; in setRect()
132 int left = (mLeft != null) ? mLeft : 0; in build() local
141 right = left + width; in build()
143 left = right - width; in build()
151 return new Bounds(left, top, right, bottom); in build()
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.kt44 fun computeEventRect(date: Int, left: Int, top: Int, cellWidth: Int, event: Event): Boolean { in computeEventRect()
89 event.left = left + col * (colWidth + mCellMargin) in computeEventRect()
90 event.right = event.left + colWidth in computeEventRect()
98 return if (event.left < selection.right && event.right >= selection.left && in eventIntersectsSelection()
108 val left: Float = event.left in pointToEvent() constant
112 if (x >= left) { in pointToEvent()
140 val dx = left - x in pointToEvent()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DViewCluster.kt68 val left = cs.cellX in <lambda>() constant
75 if (left < leftEdge[j] || leftEdge[j] < 0) { in <lambda>()
76 leftEdge[j] = left in <lambda>()
86 for (j in left until right) { in <lambda>()
92 for (j in left until right) { in <lambda>()
102 val left = cs.cellX in <lambda>() constant
115 RIGHT -> edgeContainsValue(top, bottom, rightEdge, left) in <lambda>()
116 TOP -> edgeContainsValue(left, right, topEdge, bottom) in <lambda>()
117 BOTTOM -> edgeContainsValue(left, right, bottomEdge, top) in <lambda>()
160 override fun compare(left: View?, right: View?): Int { in <lambda>()
[all …]
/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/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java199 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/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothCodecConfigTest.java103 int left = sCodecTypeArray.length; in selectCodecType() local
104 int right = sTotalConfigs / left; in selectCodecType()
111 int left = sCodecTypeArray.length * sCodecPriorityArray.length; in selectCodecPriority() local
112 int right = sTotalConfigs / left; in selectCodecPriority()
119 int left = sCodecTypeArray.length * sCodecPriorityArray.length * sSampleRateArray.length; in selectSampleRate() local
120 int right = sTotalConfigs / left; in selectSampleRate()
127 int left = in selectBitsPerSample() local
132 int right = sTotalConfigs / left; in selectBitsPerSample()
139 int left = in selectChannelMode() local
145 int right = sTotalConfigs / left; in selectChannelMode()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DViewGroupFocusHelper.java66 outRect.left = sTempRect.left; in viewToRect()
73 outRect.left = (int) (outRect.left + (1 - v.getScaleX()) * sTempRect.width() / 2); in viewToRect()
76 outRect.right = outRect.left + (int) (v.getScaleX() * sTempRect.width()); in viewToRect()
85 outRect.left += child.getX(); in computeLocationRelativeToContainer()
96 outRect.left -= page.getScrollForPage(page.indexOfChild(child)); in computeLocationRelativeToContainer()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java489 sTempRect.left = x - (mDotRadius * 3);
493 sTempRect.left = x - mDotRadius;
533 sTempRect.left = x - diameter;
553 mArrowLeftBounds.left = (int) (sTempRect.left - mGapWidth - size);
555 mArrowLeftBounds.right = (int) (sTempRect.left - mGapWidth);
576 sTempRect.right = sTempRect.left + diameter + ((1 - delta) * diameter);
585 sTempRect.left -= bounceAdjustment;
591 sTempRect.right = sTempRect.left + diameter;
595 sTempRect.left += bounceAdjustment;
614 sTempRect.left = sTempRect.right + mGapWidth;
[all …]

12345678910>>...28