/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, Bitmap bitmap, Rect rect) { argument 24 this.rect = rect; 30 rect = in.readParcelable(null); 42 dest.writeParcelable(rect, 0 /* flags */); 59 return "{taskId: " + taskId + ", bitmap: " + bitmap + ", rect: " + rect + "}";
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationExpandButton.java | 55 private void extendRectToMinTouchSize(Rect rect) { argument 57 rect.left = rect.centerX() - touchTargetSize / 2; 58 rect.right = rect.left + touchTargetSize; 59 rect.top = rect.centerY() - touchTargetSize / 2; 60 rect.bottom = rect.top + touchTargetSize;
|
/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/support/design/honeycomb/android/support/design/widget/ |
H A D | ViewGroupUtilsHoneycomb.java | 31 public static void offsetDescendantRect(ViewGroup group, View child, Rect rect) { argument 46 rectF.set(rect); 48 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f),
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | ViewGroupUtils.java | 27 void offsetDescendantRect(ViewGroup parent, View child, Rect rect); argument 32 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument 33 parent.offsetDescendantRectToMyCoords(child, rect); 35 // We need to reverse it here so that we get the rect of the view itself rather 37 rect.offset(child.getScrollX(), child.getScrollY()); 43 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument 44 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect); 63 * will be the bounding rect of the real transformed rect. 65 * @param descendant view defining the original coordinate system of rect 68 offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) argument [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/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 | 113 * or round rect support clipping. 158 * Sets the Outline to the rounded rect defined by the input rect, and 168 public void setRect(@NonNull Rect rect) { argument 169 setRect(rect.left, rect.top, rect.right, rect.bottom); 173 * Sets the Outline to the rounded rect defined by the input rect, an 192 setRoundRect(@onNull Rect rect, float radius) argument 249 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/statusbar/ |
H A D | ExpandableOutlineView.java | 81 protected void setOutlineRect(RectF rect) { argument 82 if (rect != null) { 83 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 49 throw new IllegalArgumentException("Outline is not a rect shadow"); 123 // called. So, setting a clip rect at 0,0 will clip the top left part of the shadow. 166 * Differs from {@link RectF#isEmpty()} as this first converts the rect to int and then checks. 172 private static boolean isRectEmpty(RectF rect) { argument 173 return (int) rect.left >= (int) rect.right || (int) rect.top >= (int) rect.bottom;
|
/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/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
H A D | TestSelectionEnvironment.java | 33 public void showBand(Rect rect) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewTransform.java | 62 // This is a window-space rect used for positioning the task in the stack and freeform workspace 63 public RectF rect = new RectF(); field in class:TaskViewTransform 75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom()); 88 rect.set(other.rect); 100 && rect.equals(other.rect); 113 rect.setEmpty(); 130 return ((int) rect.left != v.getLeft()) || ((int) rect [all...] |
/frameworks/support/design/lollipop/android/support/design/widget/ |
H A D | FloatingActionButtonLollipop.java | 159 void getPadding(Rect rect) { argument 167 rect.set(hPadding, vPadding, hPadding, vPadding); 169 rect.set(0, 0, 0, 0);
|
/frameworks/av/media/ndk/ |
H A D | NdkImage.cpp | 549 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) { argument 551 if (image == nullptr || rect == nullptr) { 552 ALOGE("%s: bad argument. image %p rect %p", 553 __FUNCTION__, image, rect); 567 rect->left = 0; 568 rect->top = 0; 569 rect->right = width; 570 rect->bottom = height;
|
/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 | BakedOpRenderer.cpp | 170 void BakedOpRenderer::clearColorBuffer(const Rect& rect) { argument 171 if (rect.contains(Rect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight))) { 175 // Requested rect is subset of viewport - scissor to it to avoid over-clearing 177 mRenderState.scissor().set(rect.left, mRenderTarget.viewportHeight - rect.bottom, 178 rect.getWidth(), rect.getHeight()); 256 bounds.doIntersect(clip->rect); 282 SkRegion::Cliperator it(region, clip->rect.toSkIRect()); 284 const SkIRect& r = it.rect(); [all...] |
H A D | ClipArea.h | 102 ClipBase(const Rect& rect) argument 104 , rect(rect) {} 109 Rect rect; member in struct:android::uirenderer::ClipBase 115 ClipRect(const Rect& rect) argument 116 : ClipBase(rect) {}
|
H A D | DamageAccumulator.cpp | 40 // When this frame is pop'd, this rect is mapped through the above transform 181 SkRect* rect = &frame->pendingDirty; local 184 mapRect(frame->renderNode->properties(), *rect, rect); 186 mapRect(frame->matrix4, *rect, rect); 237 // Root node never has a transform, so this is the fully mapped dirty rect
|