/frameworks/base/core/tests/coretests/src/android/app/usage/ |
H A D | UsageStatsTest.java | 31 private UsageStats left; field in class:UsageStatsTest 36 left = new UsageStats(); 42 left.mPackageName = "com.test"; 43 left.mBeginTimeStamp = 100000; 47 left.add(right); 49 assertThat(left.getFirstTimeStamp()).isEqualTo(99999); 54 left.mPackageName = "com.test"; 55 left.mEndTimeStamp = 100000; 59 left.add(right); 61 assertThat(left [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | RectF.java | 27 * represented by the coordinates of its 4 edges (left, top, right bottom). 30 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom). 33 public float left; field in class:RectF 45 * checking is performed, so the caller must ensure that left <= right and 48 * @param left The X coordinate of the left side of the rectangle 53 public RectF(float left, float top, float right, float bottom) { argument 54 this.left = left; 62 * rectangle (which is left unmodifie 197 set(float left, float top, float right, float bottom) argument 302 contains(float left, float top, float right, float bottom) argument 344 intersect(float left, float top, float right, float bottom) argument 417 intersects(float left, float top, float right, float bottom) argument 466 union(float left, float top, float right, float bottom) argument [all...] |
H A D | Insets.java | 31 public final int left; field in class:Insets 36 private Insets(int left, int top, int right, int bottom) { argument 37 this.left = left; 48 * @param left the left inset 55 public static Insets of(int left, int top, int right, int bottom) { argument 56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { 59 return new Insets(left, top, right, bottom); 70 return (r == null) ? NONE : of(r.left, [all...] |
H A D | Rect.java | 32 * represented by the coordinates of its 4 edges (left, top, right bottom). 35 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom). 39 * into the column and row described by its left and top coordinates, but not 43 public int left; field in class:Rect 70 * checking is performed, so the caller must ensure that left <= right and 73 * @param left The X coordinate of the left side of the rectangle 78 public Rect(int left, int top, int right, int bottom) { argument 79 this.left = left; 299 set(int left, int top, int right, int bottom) argument 384 inset(int left, int top, int right, int bottom) argument 419 contains(int left, int top, int right, int bottom) argument 461 intersect(int left, int top, int right, int bottom) argument 539 intersects(int left, int top, int right, int bottom) argument 567 union(int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | GlobalSortKeyComparator.java | 29 public int compare(NotificationRecord left, NotificationRecord right) { argument 30 if (left.getGlobalSortKey() == null) { 31 Slog.wtf(TAG, "Missing left global sort key: " + left); 38 return left.getGlobalSortKey().compareTo(right.getGlobalSortKey());
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | ReprocessFormatsMap.java | 77 int left = entry.length; 81 left--; 84 if (left < 1) { 90 left--; 99 if (left < length) { 103 "expected: %d)", inputFormat, left, length)); 107 left -= length; 132 int left = mEntry.length; 136 left--; 139 if (left < [all...] |
/frameworks/base/libs/hwui/ |
H A 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; member in class:android::uirenderer::Rect 53 inline Rect() : left(0), top(0), right(0), bottom(0) {} 55 inline Rect(float left, float top, float right, float bottom) argument 56 : left(left), top(top), right(right), bottom(bottom) {} 58 inline Rect(float width, float height) : left(0.0f), top(0.0f), right(width), bottom(height) {} 62 left(rect.fLeft) 69 left(rec 88 set(float left, float top, float right, float bottom) argument [all...] |
H A D | ProfileRenderer.cpp | 22 void ProfileRenderer::drawRect(float left, float top, float right, float bottom, argument 24 mRenderer.drawRect(left, top, right, bottom, &paint);
|
/frameworks/base/core/java/android/animation/ |
H A D | RectEvaluator.java | 59 * (left, top, right, and bottom). 73 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 78 return new Rect(left, top, right, bottom); 80 mRect.set(left, top, right, bottom);
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | RectEvaluator.java | 61 * (left, top, right, and bottom). 75 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 80 return new Rect(left, top, right, bottom); 82 mRect.set(left, top, right, bottom);
|
/frameworks/native/include/ui/ |
H A D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} 27 float getWidth() const { return right - left; } 34 (left > other.left) ? left : other.left, 41 float left = 0.0f; member in class:android::FloatRect 48 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/frameworks/native/libs/ui/include/ui/ |
H A D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} 27 float getWidth() const { return right - left; } 34 (left > other.left) ? left : other.left, 41 float left = 0.0f; member in class:android::FloatRect 48 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} 27 float getWidth() const { return right - left; } 34 (left > other.left) ? left : other.left, 41 float left = 0.0f; member in class:android::FloatRect 48 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/frameworks/native/libs/ui/ |
H A D | Rect.cpp | 34 left = 0; 44 if (left < rhs.left) { 46 } else if (left == rhs.left) { 60 right -= left - x; 62 left = x; 68 left += x; 76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); 81 const Rect result(left 104 int left = height - result.bottom; local [all...] |
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
H A D | From2iToMS_16x16.c | 33 LVM_INT32 temp1,left,right; local 37 left = (LVM_INT32)*src; 44 temp1 = (left+right)>>1; 49 temp1 = (left-right)>>1; 62 LVM_FLOAT temp1,left,right; local 66 left = (LVM_FLOAT)*src; 73 temp1 = (left + right) / 2.0f; 78 temp1 = (left - right) / 2.0f;
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | InsetUtils.java | 33 inOutInsets.left += insetsToAdd.left;
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | RectFEvaluator.java | 33 * (left, top, right, and bottom). 45 float left = startValue.left + ((endValue.left - startValue.left) * fraction); 49 mRect.set(left, top, right, bottom);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Image.h | 78 inline bool operator==(const Range& left, const Range& right) { argument 79 return left.start == right.start && left.end == right.end; 83 * Inset lengths from all edges of a rectangle. `left` and `top` are measured 84 * from the left and top 89 int32_t left = 0; member in struct:aapt::Bounds 96 : left(l), top(t), right(r), bottom(b) {} 102 return left != 0 || top != 0 || right != 0 || bottom != 0; 105 inline bool operator==(const Bounds& left, const Bounds& right) { argument 106 return left [all...] |
/frameworks/base/services/core/java/com/android/server/wm/animation/ |
H A D | ClipRectLRAnimation.java | 24 * Special case of ClipRectAnimation that animates only the left/right 46 tr.setClipRect(mFromRect.left + (int) ((mToRect.left - mFromRect.left) * it),
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
H A D | MathExpr.java | 32 MathExpr(Expr left, String op, Expr right) { argument 33 super(left, right); 83 final Expr left = getLeft(); 85 if (left.isDynamic() == right.isDynamic()) { 89 Expr dyn = left.isDynamic() ? left : right; 91 Expr constExpr = left.isDynamic() ? right : left; 108 final Expr left = getLeft(); 110 Preconditions.check(left [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | SystemViewInfo.java | 29 public SystemViewInfo(String name, Object cookie, int left, int top, argument 31 super(name, cookie, left, top, right, bottom); 34 public SystemViewInfo(String name, Object cookie, int left, int top, argument 36 super(name, cookie, left, top, right, bottom, viewObject,
|
/frameworks/native/libs/arect/include/android/ |
H A D | rect.h | 42 * In a valid ARect, left <= right and top <= bottom. ARect with left=0, top=10, 50 int32_t left; member in struct:ARect
|
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/ |
H A D | BoundsRule.java | 23 * rectangular bound - left/top/right/bottom. 117 if (left == null) { 118 result.left = rect.left; 120 result.left = doCalculate(rect.left, left, rect.width()); 126 result.right = doCalculate(rect.left, right, rect.width()); 145 this.left = boundsRule.left ! 156 public ValueRule left; field in class:BoundsRule [all...] |
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | CardViewBindingAdapter.java | 37 public static void setContentPaddingLeft(CardView view, int left) { argument 41 view.setContentPadding(left, top, right, bottom); 46 int left = view.getContentPaddingLeft(); 49 view.setContentPadding(left, top, right, bottom); 54 int left = view.getContentPaddingLeft(); 57 view.setContentPadding(left, top, right, bottom); 62 int left = view.getContentPaddingLeft(); 65 view.setContentPadding(left, top, right, bottom);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | TaskPositionerTests.java | 102 // Start a drag resize starting upper left. 104 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y, r); 124 mPositioner.resizeDrag(r.left, 2000.0f); 126 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), 129 // Start a drag resize left and see that only the left coord changes.. 131 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, midY, r); 133 // Drag to the left. 144 mPositioner.resizeDrag(r.left, 0.0f); 145 assertBoundsEquals(new Rect(r.left [all...] |