Home
last modified time | relevance | path

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

12345678910>>...37

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java51 private UsageStats left; field in UsageStatsTest
56 left = new UsageStats(); in setUp()
62 left.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
63 left.mBeginTimeStamp = 100000; in testEarlierBeginTimeTakesPriorityOnAdd()
67 left.add(right); in testEarlierBeginTimeTakesPriorityOnAdd()
69 assertEquals(left.getFirstTimeStamp(), 99999); in testEarlierBeginTimeTakesPriorityOnAdd()
74 left.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
75 left.mEndTimeStamp = 100000; in testLaterEndTimeTakesPriorityOnAdd()
79 left.add(right); in testLaterEndTimeTakesPriorityOnAdd()
81 assertEquals(left.getLastTimeStamp(), 100001); in testLaterEndTimeTakesPriorityOnAdd()
[all …]
/frameworks/base/graphics/java/android/graphics/
DRectF.java36 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 …]
DRect.java48 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 …]
DInsets.java35 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 …]
DOutline.java175 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 …]
/frameworks/base/libs/hwui/
DRect.h33 #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/
DReprocessFormatsMap.java77 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/
DRect.cpp34 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 …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java119 final int left = displayBounds.centerX() - windowSize / 2; in testMoveWindow() local
121 final Rect r = new Rect(left, top, left + windowSize, top + windowSize); in testMoveWindow()
123 mPositioner.startDrag(false /* resizing */, false /* preserveOrientation */, left, top); in testMoveWindow()
126 mPositioner.notifyMoveLocked(left - MOUSE_DELTA_X, top - MOUSE_DELTA_Y); in testMoveWindow()
131 mPositioner.notifyMoveLocked(left, top); in testMoveWindow()
148 r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing()
168 mPositioner.resizeDrag(r.left, 2000.0f); in testBasicFreeWindowResizing()
170 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
175 r.left - MOUSE_DELTA_X, midY); in testBasicFreeWindowResizing()
188 mPositioner.resizeDrag(r.left, 0.0f); in testBasicFreeWindowResizing()
[all …]
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp40 for (int32_t i = r.left; i < r.right; i++) { in drawRect()
54 void RefreshRateOverlay::SevenSegmentDrawer::drawSegment(Segment segment, int left, in drawSegment() argument
61 return Rect(left, 0, left + DIGIT_WIDTH, DIGIT_SPACE); in drawSegment()
63 return Rect(left, 0, left + DIGIT_SPACE, DIGIT_HEIGHT / 2); in drawSegment()
65 return Rect(left + DIGIT_WIDTH - DIGIT_SPACE, 0, left + DIGIT_WIDTH, in drawSegment()
68 return Rect(left, DIGIT_HEIGHT / 2 - DIGIT_SPACE / 2, left + DIGIT_WIDTH, in drawSegment()
71 return Rect(left, DIGIT_HEIGHT / 2, left + DIGIT_SPACE, DIGIT_HEIGHT); in drawSegment()
73 return Rect(left + DIGIT_WIDTH - DIGIT_SPACE, DIGIT_HEIGHT / 2, left + DIGIT_WIDTH, in drawSegment()
76 return Rect(left, DIGIT_HEIGHT - DIGIT_SPACE, left + DIGIT_WIDTH, DIGIT_HEIGHT); in drawSegment()
83 void RefreshRateOverlay::SevenSegmentDrawer::drawDigit(int digit, int left, const half4& color, in drawDigit() argument
[all …]
/frameworks/base/core/java/android/view/
DGravity.java190 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/native/libs/ui/include/ui/
DFloatRect.h27 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
29 float getWidth() const { return right - left; } in getWidth()
36 (left > other.left) ? left : other.left, in intersect()
47 float left = 0.0f; variable
54 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
58 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo()
DRect.h56 left = top = 0; in Rect()
62 left = l; in Rect()
69 left = lt.x; in Rect()
78 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect()
85 left = 0; in Rect()
94 left = top = right = bottom = 0; in clear()
110 return right - left; in getWidth()
123 return Rect(right - left, bottom - top); in getBounds()
127 left = lt.x; in setLeftTop()
138 return Point(left, top); in leftTop()
[all …]
/frameworks/native/include/ui/
DFloatRect.h27 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
29 float getWidth() const { return right - left; } in getWidth()
36 (left > other.left) ? left : other.left, in intersect()
47 float left = 0.0f; variable
54 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
58 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo()
DRect.h56 left = top = 0; in Rect()
62 left = l; in Rect()
69 left = lt.x; in Rect()
78 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect()
85 left = 0; in Rect()
94 left = top = right = bottom = 0; in clear()
110 return right - left; in getWidth()
123 return Rect(right - left, bottom - top); in getBounds()
127 left = lt.x; in setLeftTop()
138 return Point(left, top); in leftTop()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DFloatRect.h27 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
29 float getWidth() const { return right - left; } in getWidth()
36 (left > other.left) ? left : other.left, in intersect()
47 float left = 0.0f; variable
54 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
58 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo()
DRect.h56 left = top = 0; in Rect()
62 left = l; in Rect()
69 left = lt.x; in Rect()
78 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect()
85 left = 0; in Rect()
94 left = top = right = bottom = 0; in clear()
110 return right - left; in getWidth()
123 return Rect(right - left, bottom - top); in getBounds()
127 left = lt.x; in setLeftTop()
138 return Point(left, top); in leftTop()
[all …]
/frameworks/base/tools/aapt2/compile/
DImage.h78 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilter.java87 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/av/media/libeffects/lvm/lib/Common/src/
DFrom2iToMS_16x16.cpp33 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/libs/net/common/src_frameworkcommon/android/net/util/
DLinkPropertiesUtils.java137 @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/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java89 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/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java249 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNearestTouchFrameTest.java59 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 …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java51 public int compare(NotificationRecord left, NotificationRecord right) { in compare() argument
52 final int leftImportance = left.getImportance(); in compare()
64 if (left.getRankingScore() != right.getRankingScore()) { in compare()
65 return -1 * Float.compare(left.getRankingScore(), right.getRankingScore()); in compare()
69 boolean leftImportantColorized = isImportantColorized(left); in compare()
77 boolean leftImportantOngoing = isImportantOngoing(left); in compare()
85 boolean leftMessaging = isImportantMessaging(left); in compare()
92 boolean leftPeople = isImportantPeople(left); in compare()
95 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare()
118 final int leftPackagePriority = left.getPackagePriority(); in compare()
[all …]

12345678910>>...37