/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsTest.java | 48 private UsageStats left; field in UsageStatsTest 53 left = new UsageStats(); in setUp() 59 left.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd() 60 left.mBeginTimeStamp = 100000; in testEarlierBeginTimeTakesPriorityOnAdd() 64 left.add(right); in testEarlierBeginTimeTakesPriorityOnAdd() 66 assertEquals(left.getFirstTimeStamp(), 99999); in testEarlierBeginTimeTakesPriorityOnAdd() 71 left.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd() 72 left.mEndTimeStamp = 100000; in testLaterEndTimeTakesPriorityOnAdd() 76 left.add(right); in testLaterEndTimeTakesPriorityOnAdd() 78 assertEquals(left.getLastTimeStamp(), 100001); in testLaterEndTimeTakesPriorityOnAdd() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 36 public float left; field in RectF 56 public RectF(float left, float top, float right, float bottom) { in RectF() argument 57 this.left = left; in RectF() 72 left = top = right = bottom = 0.0f; in RectF() 74 left = r.left; in RectF() 83 left = top = right = bottom = 0.0f; in RectF() 85 left = r.left; in RectF() 98 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 103 int result = (left != +0.0f ? Float.floatToIntBits(left) : 0); in hashCode() 112 return "RectF(" + left + ", " + top + ", " in toString() [all …]
|
D | Rect.java | 48 public int left; field in Rect 83 public Rect(int left, int top, int right, int bottom) { in Rect() argument 84 this.left = left; in Rect() 99 left = top = right = bottom = 0; in Rect() 101 left = r.left; in Rect() 113 left = top = right = bottom = 0; in Rect() 115 left = r.left; in Rect() 138 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 143 int result = left; in hashCode() 153 sb.append("Rect("); sb.append(left); sb.append(", "); in toString() [all …]
|
D | Insets.java | 35 public final int left; field in Insets 40 private Insets(int left, int top, int right, int bottom) { in Insets() argument 41 this.left = left; in Insets() 59 public static @NonNull Insets of(int left, int top, int right, int bottom) { in of() argument 60 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of() 63 return new Insets(left, top, right, bottom); in of() 74 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of() 83 return new Rect(left, top, right, bottom); in toRect() 94 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); in add() 105 return Insets.of(a.left - b.left, a.top - b.top, a.right - b.right, a.bottom - b.bottom); in subtract() [all …]
|
D | Outline.java | 175 public void setRect(int left, int top, int right, int bottom) { in setRect() argument 176 setRoundRect(left, top, right, bottom, 0.0f); in setRect() 183 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 191 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument 192 if (left >= right || top >= bottom) { in setRoundRect() 202 mRect.set(left, top, right, bottom); in setRoundRect() 210 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 244 public void setOval(int left, int top, int right, int bottom) { in setOval() argument 245 if (left >= right || top >= bottom) { in setOval() 250 if ((bottom - top) == (right - left)) { in setOval() [all …]
|
D | Path.java | 471 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 486 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo() 501 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument 504 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 532 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 540 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath() 551 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 563 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument 564 detectSimplePath(left, top, right, bottom, dir); in addRect() 565 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 33 #define RECT_ARGS(r) (r).left, (r).top, (r).right, (r).bottom 34 #define SK_RECT_ARGS(r) (r).left(), (r).top(), (r).right(), (r).bottom() 42 float left; 53 inline Rect() : left(0), top(0), right(0), bottom(0) {} in Rect() 55 inline Rect(float left, float top, float right, float bottom) in Rect() argument 56 : left(left), top(top), right(right), bottom(bottom) {} in Rect() 58 inline Rect(float width, float height) : left(0.0f), top(0.0f), right(width), bottom(height) {} in Rect() 62 left(rect.fLeft) in Rect() 69 left(rect.fLeft) in Rect() 78 inline void clear() { left = top = right = bottom = 0.0f; } in clear() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | ReprocessFormatsMap.java | 77 int left = entry.length; in ReprocessFormatsMap() local 81 left--; in ReprocessFormatsMap() 84 if (left < 1) { in ReprocessFormatsMap() 90 left--; in ReprocessFormatsMap() 99 if (left < length) { in ReprocessFormatsMap() 103 "expected: %d)", inputFormat, left, length)); in ReprocessFormatsMap() 107 left -= length; in ReprocessFormatsMap() 132 int left = mEntry.length; in getInputs() local 136 left--; in getInputs() 139 if (left < 1) { in getInputs() [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 34 left = 0; in makeInvalid() 44 if (left < rhs.left) { in operator <() 46 } else if (left == rhs.left) { in operator <() 60 right -= left - x; in offsetTo() 62 left = x; in offsetTo() 68 left += x; in offsetBy() 76 this->left += _left; in inset() 84 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() 89 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() 94 result->left = max(left, with.left); in intersect() [all …]
|
D | Region.cpp | 138 int left = current->left; in reverseRectsResolvingJunctions() local 148 if (prev.right <= left) break; in reverseRectsResolvingJunctions() 150 if (prev.right > left && prev.right < right) { in reverseRectsResolvingJunctions() 155 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions() 156 dst.add(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions() 157 right = prev.left; in reverseRectsResolvingJunctions() 162 if (prev.left >= right) { in reverseRectsResolvingJunctions() 167 if (prev.left >= right) break; in reverseRectsResolvingJunctions() 169 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions() 170 dst.add(Rect(left, top, prev.left, bottom)); in reverseRectsResolvingJunctions() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 125 false /* preserveOrientation */, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing() 145 mPositioner.resizeDrag(r.left, 2000.0f); in testBasicFreeWindowResizing() 147 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing() 152 false /* preserveOrientation */, r.left - MOUSE_DELTA_X, midY); in testBasicFreeWindowResizing() 165 mPositioner.resizeDrag(r.left, 0.0f); in testBasicFreeWindowResizing() 166 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() 170 mPositioner.resizeDrag(r.left, 1000.0f); in testBasicFreeWindowResizing() 171 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() 181 final int midX = (r.left + r.right) / 2; in testFreeWindowResizingTestAllEdges() 187 false /* preserveOrientation */, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testFreeWindowResizingTestAllEdges() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 190 outRect.left = container.left in apply() 191 + ((container.right - container.left - w)/2) + xAdj; in apply() 192 outRect.right = outRect.left + w; in apply() 195 if (outRect.left < container.left) { in apply() 196 outRect.left = container.left; in apply() 204 outRect.left = container.left + xAdj; in apply() 205 outRect.right = outRect.left + w; in apply() 215 outRect.left = outRect.right - w; in apply() 218 if (outRect.left < container.left) { in apply() 219 outRect.left = container.left; in apply() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | Image.h | 78 inline bool operator==(const Range& left, const Range& right) { 79 return left.start == right.start && left.end == right.end; 89 int32_t left = 0; member 96 : left(l), top(t), right(r), bottom(b) {} in Bounds() 102 return left != 0 || top != 0 || right != 0 || bottom != 0; in nonZero() 105 inline bool operator==(const Bounds& left, const Bounds& right) { 106 return left.left == right.left && left.top == right.top && 107 left.right == right.right && left.bottom == right.bottom;
|
/frameworks/libs/net/common/devicetests/com/android/testutils/ |
D | NetworkStatsUtils.kt | 41 val left = NetworkStats.Entry() in <lambda>() constant 45 leftTrimmedEmpty.getValues(i, left) in <lambda>() 46 val j: Int = rightTrimmedEmpty.findIndexHinted(left.iface, left.uid, left.set, left.tag, in <lambda>() 47 left.metered, left.roaming, left.defaultNetwork, i) in <lambda>() 50 if (left != right) return false in <lambda>()
|
/frameworks/native/libs/ui/include/ui/ |
D | Rect.h | 54 left = top = 0; in Rect() 60 left = l; in Rect() 67 left = lt.x; in Rect() 76 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect() 83 left = 0; in Rect() 92 left = top = right = bottom = 0; in clear() 108 return right - left; in getWidth() 121 return Rect(right - left, bottom - top); in getBounds() 125 left = lt.x; in setLeftTop() 136 return Point(left, top); in leftTop() [all …]
|
D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 27 float getWidth() const { return right - left; } in getWidth() 34 (left > other.left) ? left : other.left, in intersect() 45 float left = 0.0f; variable 52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rect.h | 54 left = top = 0; in Rect() 60 left = l; in Rect() 67 left = lt.x; in Rect() 76 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect() 83 left = 0; in Rect() 92 left = top = right = bottom = 0; in clear() 108 return right - left; in getWidth() 121 return Rect(right - left, bottom - top); in getBounds() 125 left = lt.x; in setLeftTop() 136 return Point(left, top); in leftTop() [all …]
|
D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 27 float getWidth() const { return right - left; } in getWidth() 34 (left > other.left) ? left : other.left, in intersect() 45 float left = 0.0f; variable 52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilter.java | 87 int left = (tempRect.left+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes() local 95 if (left < 0) { in drawBoxes() 96 left = 0; in drawBoxes() 97 } else if (left > dims[0]) { in drawBoxes() 98 left = dims[0]; in drawBoxes() 113 if (left > 0 && top > 0) { in drawBoxes() 114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 133 for (int k = 0; k < (right - left); k++) { in drawBoxes() [all …]
|
/frameworks/libs/net/common/framework/android/net/util/ |
D | LinkPropertiesUtils.java | 137 @Nullable LinkProperties left, @Nullable LinkProperties right) { in compareAddresses() 145 return new CompareResult<>(left != null ? left.getLinkAddresses() : null, in compareAddresses() 156 public static boolean isIdenticalAddresses(@NonNull LinkProperties left, in isIdenticalAddresses() argument 158 final Collection<InetAddress> leftAddresses = left.getAddresses(); in isIdenticalAddresses() 171 public static boolean isIdenticalDnses(@NonNull LinkProperties left, in isIdenticalDnses() argument 173 final Collection<InetAddress> leftDnses = left.getDnsServers(); in isIdenticalDnses() 176 final String leftDomains = left.getDomains(); in isIdenticalDnses() 194 public static boolean isIdenticalHttpProxy(@NonNull LinkProperties left, in isIdenticalHttpProxy() argument 196 return Objects.equals(left.getHttpProxy(), right.getHttpProxy()); in isIdenticalHttpProxy() 206 public static boolean isIdenticalInterfaceName(@NonNull LinkProperties left, in isIdenticalInterfaceName() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ExpandableOutlineView.java | 88 int left = Math.max(translation, 0); 92 outline.setRect(left, top, right, bottom); 106 int left; in getClipPath() local 117 left = Math.max(translation, 0) - halfExtraWidth; in getClipPath() 125 left = mOutlineRect.left; in getClipPath() 143 getRoundedRectPath(left, top, right, bottom, topRoundness, in getClipPath() 148 public static void getRoundedRectPath(int left, int top, int right, int bottom, in getRoundedRectPath() argument 151 int width = right - left; in getRoundedRectPath() 157 outPath.moveTo(left, top + topRoundness); in getRoundedRectPath() 158 outPath.quadTo(left, top, left + topRoundnessX, top); in getRoundedRectPath() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | From2iToMS_16x16.cpp | 33 LVM_INT32 temp1,left,right; in From2iToMS_16x16() local 37 left = (LVM_INT32)*src; in From2iToMS_16x16() 44 temp1 = (left+right)>>1; in From2iToMS_16x16() 49 temp1 = (left-right)>>1; in From2iToMS_16x16() 61 LVM_FLOAT temp1,left,right; in From2iToMS_Float() local 65 left = (LVM_FLOAT)*src; in From2iToMS_Float() 72 temp1 = (left + right) / 2.0f; in From2iToMS_Float() 77 temp1 = (left - right) / 2.0f; in From2iToMS_Float()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | StyledCornersBitmapDrawable.java | 249 float left = bounds.left + mBorderWidth / 2; in draw() local 258 flapCornerRectF.offsetTo(left, top); in draw() 273 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); in draw() 304 float left = bounds.left; in drawFakeCornersForCompatibilityMode() local 313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode() 315 mCompatibilityModePath.moveTo(left, top); in drawFakeCornersForCompatibilityMode() 316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); in drawFakeCornersForCompatibilityMode() 341 fakeCornerRectF.offsetTo(left, bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode() 343 mCompatibilityModePath.moveTo(left, bottom); in drawFakeCornersForCompatibilityMode() 344 mCompatibilityModePath.lineTo(left, bottom - mCornerRoundRadius); in drawFakeCornersForCompatibilityMode() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; in testFaceSquareFilter() local 97 if (left < 0) { in testFaceSquareFilter() 98 left = 0; in testFaceSquareFilter() 99 } else if (left > bitmap.getWidth()) { in testFaceSquareFilter() 100 left = bitmap.getWidth(); in testFaceSquareFilter() 115 if (left > 0 && top > 0) { in testFaceSquareFilter() 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 135 for (int k = 0; k < (right - left); k++) { in testFaceSquareFilter() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NearestTouchFrameTest.java | 59 View left = mockViewAt(0, 0, 10, 10); in testNoActionOnLargeDevices() local 62 mNearestTouchFrame.addView(left); in testNoActionOnLargeDevices() 69 verify(left, never()).onTouchEvent(eq(ev)); in testNoActionOnLargeDevices() 75 View left = mockViewAt(0, 0, 10, 10); in testInvisibleViews() local 77 when(left.getVisibility()).thenReturn(View.INVISIBLE); in testInvisibleViews() 79 mNearestTouchFrame.addView(left); in testInvisibleViews() 86 verify(left, never()).onTouchEvent(eq(ev)); in testInvisibleViews() 94 View left = mockViewAt(0, 0, 10, 10); in testNearestView_DetachedViewsExcluded() local 95 when(left.isAttachedToWindow()).thenReturn(false); in testNearestView_DetachedViewsExcluded() 98 mNearestTouchFrame.addView(left); in testNearestView_DetachedViewsExcluded() [all …]
|