/frameworks/base/core/java/android/view/ |
H A D | AppTransitionAnimationSpec.java | 19 public final Rect rect; field in class:AppTransitionAnimationSpec 21 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { argument 23 this.rect = rect; 29 rect = in.readParcelable(null); 41 dest.writeParcelable(rect, 0 /* flags */); 58 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}";
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationExpandButton.java | 59 private void extendRectToMinTouchSize(Rect rect) { argument 61 rect.left = rect.centerX() - touchTargetSize / 2; 62 rect.right = rect.left + touchTargetSize; 63 rect.top = rect.centerY() - touchTargetSize / 2; 64 rect.bottom = rect.top + touchTargetSize;
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RectShape.java | 43 final RectF rect = rect(); 44 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 45 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); 56 protected final RectF rect() { method in class:RectShape
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaProfileRenderer.cpp | 24 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); local 25 mCanvas->drawRect(rect, paint); 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], local 32 mCanvas->drawRect(rect, paint);
|
H A D | AnimatedDrawables.h | 43 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); variable 44 canvas->drawRoundRect(rect, mRx->value, mRy->value, mPaint->value);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/ |
H A D | AppTransitionAnimationSpecCompat.java | 31 public AppTransitionAnimationSpecCompat(int taskId, Bitmap buffer, Rect rect) { argument 34 mRect = rect;
|
/frameworks/native/services/surfaceflinger/ |
H A D | LayerProtoHelper.cpp | 33 void LayerProtoHelper::writeToProto(const Rect& rect, RectProto* rectProto) { argument 34 rectProto->set_left(rect.left); 35 rectProto->set_top(rect.top); 36 rectProto->set_bottom(rect.bottom); 37 rectProto->set_right(rect.right); 40 void LayerProtoHelper::writeToProto(const FloatRect& rect, FloatRectProto* rectProto) { argument 41 rectProto->set_left(rect.left); 42 rectProto->set_top(rect.top); 43 rectProto->set_bottom(rect.bottom); 44 rectProto->set_right(rect [all...] |
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
H A D | parcelable_composer_layer.cpp | 94 for (auto& rect: layer_.visible_regions) { 95 ret = parcel->writeInt32(rect.left); 96 ret = parcel->writeInt32(rect.top); 97 ret = parcel->writeInt32(rect.right); 98 ret = parcel->writeInt32(rect.bottom); 105 for (auto& rect: layer_.damaged_regions) { 106 ret = parcel->writeInt32(rect.left); 107 ret = parcel->writeInt32(rect.top); 108 ret = parcel->writeInt32(rect.right); 109 ret = parcel->writeInt32(rect 200 hwc_rect_t rect; local 220 hwc_rect_t rect; local [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 47 // Then translate so that the upper left corner of the rotated full rect is at (0,0). 59 public static void rotateRect(final int degrees, final int px, final int py, final Rect rect) { argument 60 final RectF rectF = new RectF(rect); 64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
|
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
H A D | ViewGroupUtils.java | 42 * will be the bounding rect of the real transformed rect. 44 * @param descendant view defining the original coordinate system of rect 45 * @param rect (in/out) the rect to offset from descendant to this view's coordinate system 47 static void offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) { argument 63 rectF.set(rect); 65 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f), 70 * Retrieve the transformed bounding rect of an arbitrary descendant view. 74 * @param out rect t [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | FillBuffer.cpp | 55 const android_native_rect_t& rect) { 64 bool inside = rect.left <= x && x < rect.right && 65 rect.top <= y && y < rect.bottom; 68 bool inside = rect.left <= 2*x && 2*x < rect.right && 69 rect.top <= 2*y && 2*y < rect.bottom; 54 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
|
/frameworks/native/libs/ui/ |
H A D | DebugUtils.cpp | 321 std::string to_string(const android::Rect& rect) { argument 322 return StringPrintf("(%4d,%4d,%4d,%4d)", rect.left, rect.top, rect.right, rect.bottom);
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
H A D | FakeComposerUtils.h | 31 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_rect_t& rect) { argument 32 return os << "(" << rect.left << "," 33 << rect.top << "," 34 << rect.right << "," 35 << rect.bottom << ")"; 38 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_frect_t& rect) { argument 39 return os << "(" << rect.left << "," 40 << rect.top << "," 41 << rect.right << "," 42 << rect [all...] |
/frameworks/av/media/libeffects/loudness/dsp/core/ |
H A D | dynamic_range_compression.cpp | 83 const float rect = std::max(overshoot, 0.0f); local 85 const float cv = rect * slope_; 112 const float rect = std::max(overshoot, 0.0f); local 114 const float cv = rect * slope_;
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 58 * @param size a non-{@code null} rect 62 * @throws NullPointerException if {@code rect} was {@code null} 64 public static Rect createRect(RectF rect) { argument 65 checkNotNull(rect, "rect must not be null"); 68 rect.roundOut(r); 74 * Map the rectangle in {@code rect} with the transform in {@code transform} into 81 * @param rect a non-{@code null} rectangle 86 public static Rect mapRect(Matrix transform, Rect rect) { argument 88 checkNotNull(rect, "rec 105 createSize(Rect rect) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | LargeBitmap.java | 44 * Decodes a rectangle region in the image specified by rect. 46 * @param rect The rectangle that specified the region to be decode. 52 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) 56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, 57 rect [all...] |
H A D | BitmapRegionDecoder.java | 174 * Decodes a rectangle region in the image specified by rect. 176 * @param rect The rectangle that specified the region to be decode. 187 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 191 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() 192 || rect.top >= getHeight()) 194 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 195 rect [all...] |
H A D | Outline.java | 120 * or round rect support clipping. 170 * Sets the Outline to the rounded rect defined by the input rect, and 180 public void setRect(@NonNull Rect rect) { argument 181 setRect(rect.left, rect.top, rect.right, rect.bottom); 185 * Sets the Outline to the rounded rect defined by the input rect, an 207 setRoundRect(@onNull Rect rect, float radius) argument 269 setOval(@onNull Rect rect) argument [all...] |
H A D | YuvImage.java | 214 private void adjustRectangle(Rect rect) { argument 215 int width = rect.width(); 216 int height = rect.height(); 221 rect.left &= ~1; 222 rect.top &= ~1; 223 rect.right = rect.left + width; 224 rect.bottom = rect.top + height; 230 rect [all...] |
/frameworks/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 55 assert false : "Outline is not a rect shadow"; 145 // called. So, setting a clip rect at 0,0 will clip the top left part of the shadow. 195 * Differs from {@link RectF#isEmpty()} as this first converts the rect to int and then checks. 202 private static boolean isRectEmpty(RectF rect) { argument 203 return (int) rect.left >= (int) rect.right || (int) rect.top >= (int) rect.bottom;
|
/frameworks/minikin/libs/minikin/ |
H A D | MeasuredText.cpp | 67 MinikinRect rect; local 78 rect.join(nextRect); 81 return rect;
|
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/ |
H A D | EglRectBlt.java | 106 * Draws a viewport-filling rect, texturing it with the specified texture object and rect. 117 void setTexRect(Rect rect) { argument 118 mTexCoords[0] = rect.left / (float)mTexWidth; 119 mTexCoords[1] = 1.0f - rect.bottom / (float)mTexHeight; 120 mTexCoords[2] = rect.right / (float)mTexWidth; 121 mTexCoords[3] = 1.0f - rect.bottom / (float)mTexHeight; 122 mTexCoords[4] = rect.left / (float)mTexWidth; 123 mTexCoords[5] = 1.0f - rect.top / (float)mTexHeight; 124 mTexCoords[6] = rect [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/ |
H A D | BoundsRule.java | 113 * @param rect Represents the current bounds. 116 public void calculateBounds(Rect rect, Rect result) { argument 118 result.left = rect.left; 120 result.left = doCalculate(rect.left, left, rect.width()); 124 result.right = rect.right; 126 result.right = doCalculate(rect.left, right, rect.width()); 130 result.top = rect.top; 132 result.top = doCalculate(rect [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | MeteringRectangle.java | 128 * @param rect a non-{@code null} rectangle with all x,y,w,h dimensions >= 0 134 public MeteringRectangle(Rect rect, int meteringWeight) { argument 135 checkNotNull(rect, "rect must not be null"); 137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative"); 138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative"); 139 mWidth = checkArgumentNonnegative(rect.width(), "rect [all...] |
/frameworks/base/core/jni/ |
H A D | android_text_MeasuredParagraph.cpp | 120 minikin::MinikinRect rect = toMeasuredParagraph(ptr)->getBounds(textBuffer, range); local 123 r.fLeft = rect.mLeft; 124 r.fTop = rect.mTop; 125 r.fRight = rect.mRight; 126 r.fBottom = rect.mBottom;
|