/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RectShape.java | 42 final RectF rect = rect(); 43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); 55 protected final RectF rect() { method in class:RectShape
|
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableOutlineView.java | 64 protected void setOutlineRect(RectF rect) { argument 65 if (rect != null) { 66 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
|
/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/av/media/libeffects/loudness/dsp/core/ |
H A D | dynamic_range_compression.cpp | 84 const float rect = std::max(overshoot, 0.0f); local 86 const float cv = rect * slope_; 113 const float rect = std::max(overshoot, 0.0f); local 115 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. 182 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 185 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() 186 || rect.top >= getHeight()) 188 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 189 rect [all...] |
H A D | Outline.java | 84 * or round rect support clipping. 139 * Sets the Outline to the rounded rect defined by the input rect, and 149 public void setRect(@NonNull Rect rect) { argument 150 setRect(rect.left, rect.top, rect.right, rect.bottom); 154 * Sets the Outline to the rounded rect defined by the input rect, an 173 setRoundRect(@onNull Rect rect, float radius) argument 201 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/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | SpaceNode.java | 34 public void onSpaceNodeMeasured(SpaceNode node, Rect rect); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewTransform.java | 35 public Rect rect = new Rect(); field in class:TaskViewTransform 49 rect.set(o.rect); 61 rect.setEmpty(); 147 " scale: " + scale + " alpha: " + alpha + " visible: " + visible + " rect: " + rect +
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVCanvas.cpp | 42 void YUVCanvas::FillYUVRectangle(const Rect& rect, argument 44 for (int32_t y = rect.top; y < rect.bottom; ++y) { 45 for (int32_t x = rect.left; x < rect.right; ++x) {
|
/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/java/android/view/ |
H A D | FocusFinder.java | 119 // fill in interesting rect from focused 125 // make up a rect at top left or bottom right of root 271 * direction from a source rect? This is the core routine that determines 314 * exclusively in the beam of the source rect. 365 * Includes an edge case for an empty rect (which is used in some cases when 479 * @param source The source rect. 480 * @param dest The destination rect. 655 private void getRect(View view, Rect rect) { argument 656 view.getDrawingRect(rect); 657 mRoot.offsetDescendantRectToMyCoords(view, rect); [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GraphicBuffer.cpp | 169 Rect rect; local 171 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 172 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 173 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 174 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 176 rect.set(Rect(buffer->getWidth(), buffer->getHeight())); 180 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits); 206 clipRect.set(rect.left, rect.top, rect [all...] |
H A D | android_view_TextureView.cpp | 145 Rect rect; local 147 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 148 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 149 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 150 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 152 rect.set(Rect(0x3FFF, 0x3FFF)); 156 int32_t status = native_window_lock(window.get(), &buffer, &rect); 174 clipRect.set(rect.left, rect.top, rect [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | InternalSelectionView.java | 156 // draw background rect 160 // draw forground rect 196 public void getRectForRow(Rect rect, int row) { argument 199 rect.set(mPaddingLeft, 255 // set the row that is closest to the rect
|
/frameworks/base/libs/hwui/ |
H A D | DamageAccumulator.cpp | 40 // When this frame is pop'd, this rect is mapped through the above transform 167 SkRect* rect = &frame->pendingDirty; local 170 mapRect(frame->renderNode->properties(), *rect, rect); 172 mapRect(frame->matrix4, *rect, rect); 223 // Root node never has a transform, so this is the fully mapped dirty rect
|
H A D | Rect.h | 74 inline Rect(const SkRect& rect): argument 75 left(rect.fLeft), 76 top(rect.fTop), 77 right(rect.fRight), 78 bottom(rect.fBottom) { 200 * This function should be used whenever estimating the damage rect of geometry already mapped 221 * with top left at (0.5, 0.5)) will err on the side of a larger damage rect.
|
H A D | StatefulBaseRenderer.cpp | 204 // TODO: consider storing this rect separately, so that this can't be replaced with clip ops 213 const Rect& rect, float radius, bool highPriority) { 214 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority); 249 // clip is required if geometry intersects clip rect 254 // round rect clip is required if RR clip exists, and geometry intersects its corners 265 * Makes the decision conservatively, by rounding out the mapped rect before comparing with the 212 setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, bool highPriority) argument
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputWindowHandle.cpp | 135 const SkIRect& rect = it.rect(); local 136 mInfo->addTouchableRegion(Rect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom));
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 57 * @param rect a RectF instance. 60 public static Quad fromRect(RectF rect) { argument 61 return new Quad(new PointF(rect.left, rect.top), 62 new PointF(rect.right, rect.top), 63 new PointF(rect.left, rect.bottom), 64 new PointF(rect.right, rect 112 fromRotatedRect(RectF rect, float angle) argument 125 fromTransformedRect(RectF rect, Matrix matrix) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 329 /*package*/ static boolean nativeGetBounds(long native_region, Rect rect) { argument 337 rect.left = rect.top = rect.right = rect.bottom = 0; 341 rect.left = bounds.x; 342 rect.top = bounds.y; 343 rect.right = bounds.x + bounds.width; 344 rect.bottom = bounds.y + bounds.height; 389 /*package*/ static boolean nativeOp(long native_dst, Rect rect, lon argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeWindow.java | 50 public void resized(Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, boolean b, argument
|