Searched refs:rect (Results 101 - 125 of 272) sorted by relevance

1234567891011

/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/data/
H A DVideoProvider.java123 Rect rect = new Rect();
124 paint.getTextBounds(string, 0, string.length(), rect);
126 int hOffset = (height - rect.height()) / 2;
127 int wOffset = (width - rect.width()) / 2;
132 canvas.drawText(string, width / 2, (height + rect.height()) / 2, paint);
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/data/
H A DVideoProvider.java123 Rect rect = new Rect();
124 paint.getTextBounds(string, 0, string.length(), rect);
126 int hOffset = (height - rect.height()) / 2;
127 int wOffset = (width - rect.width()) / 2;
132 canvas.drawText(string, width / 2, (height + rect.height()) / 2, paint);
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DVideoSurfaceView.java127 Rect rect = mSurfaceHolder.getSurfaceFrame();
128 mSurfaceListener.onSurfaceCreated(this, rect.width(), rect.height());
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DFindRegion.java121 RectF rect = new RectF();
122 rect.set(minx, miny, maxx, maxy);
123 return rect;
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
H A DVideoSurfaceView.java117 Rect rect = holder.getSurfaceFrame();
118 mSurfaceListener.onSurfaceCreated(this, rect.width(), rect.height());
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
H A DVideoSurfaceViewWithMp1.java116 Rect rect = mSurfaceHolder.getSurfaceFrame();
117 mSurfaceListener.onSurfaceCreated(this, rect.width(), rect.height());
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsViewTouchHandler.java190 Rect rect = mRv.getStackActionButtonBoundsFromStackLayout();
192 mRv.getStackActionButton().pointInView(x - rect.left, y - rect.top, 0 /* slop */);
196 Rect rect = mRv.getStackActionButtonBoundsFromStackLayout();
197 mRv.getStackActionButton().drawableHotspotChanged(x - rect.left, y - rect.top);
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputWindowHandle.cpp135 const SkIRect& rect = it.rect(); local
136 mInfo->addTouchableRegion(Rect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom));
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiProducerActivity.java282 public ColorPulse(int color1, int color2, Rect rect) { argument
285 if (rect != null) {
286 mRect = new Rect(rect.left + BORDER_WIDTH / 2, rect.top + BORDER_WIDTH / 2,
287 rect.right - BORDER_WIDTH / 2, rect.bottom - BORDER_WIDTH / 2);
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/
H A DGridModelTest.java254 // Construct a rect from the two selection points.
259 // inclusive. Expand the rect by 1 pixel in all directions to account for this.
275 if (Rect.intersects(selectionArea, item.rect)) {
429 return mItems.get(adapterPosition).rect;
438 public void showBand(Rect rect) { argument
454 public Rect rect; field in class:GridModelTest.TestHost.Item
458 rect = r;
463 return name + ": " + rect;
/frameworks/base/libs/hwui/
H A DCanvasState.h132 void setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, argument
134 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
/frameworks/base/libs/hwui/pipeline/skia/
H A DAnimatedDrawables.h43 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); variable
44 canvas->drawRoundRect(rect, mRx->value, mRy->value, mPaint->value);
H A DRenderNodeDrawable.cpp77 SkRect rect = possibleRect.toSkRect(); local
79 if (pendingClip && !pendingClip->contains(rect)) {
82 canvas->clipRRect(SkRRect::MakeRectXY(rect, radius, radius), SkClipOp::kIntersect, true);
85 (void)rect.intersect(*pendingClip);
87 canvas->clipRect(rect);
221 // Render transparent rect to increment overdraw for repaint area.
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/
H A DFancyHolder.java92 Rect rect = new Rect(
99 return rect.contains((int) event.getRawX(), (int) event.getRawY());
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/simple/
H A DDemoHolder.java89 Rect rect = new Rect(
96 return rect.contains((int) event.getRawX(), (int) event.getRawY());
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/
H A DFancyHolder.java92 Rect rect = new Rect(
99 return rect.contains((int) event.getRawX(), (int) event.getRawY());
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/simple/
H A DDemoHolder.java89 Rect rect = new Rect(
96 return rect.contains((int) event.getRawX(), (int) event.getRawY());
/frameworks/av/media/ndk/include/media/
H A DNdkImage.h585 * @param rect the cropped rectangle of the image will be filled here if the method call succeeeds.
589 * <li>{@link AMEDIA_ERROR_INVALID_PARAMETER} if image or rect is NULL.</li>
593 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect);
/frameworks/base/graphics/java/android/graphics/
H A DRegion.java255 * Perform the specified Op on this region and the specified rect. Return
264 * Perform the specified Op on this region and the specified rect. Return
281 * Set this region to the result of performing the Op on the specified rect
284 public boolean op(Rect rect, Region region, Op op) { argument
285 return nativeOp(mNativeRegion, rect, region.mNativeRegion,
416 private static native boolean nativeGetBounds(long native_region, Rect rect); argument
422 private static native boolean nativeOp(long native_dst, Rect rect, argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DImageShader.java415 public void setSourceRect(RectF rect) { argument
416 setSourceRect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
460 public void setTargetRect(RectF rect) { argument
461 setTargetCoords(new float[] { rect.left, rect
[all...]
/frameworks/native/libs/nativewindow/include/android/
H A Dnative_window.h34 #include <android/rect.h>
/frameworks/support/car/src/main/java/androidx/car/app/
H A DCarAlertDialog.java196 Rect rect = new Rect();
197 button.getHitRect(rect);
199 int hitWidth = Math.abs(rect.right - rect.left);
207 rect.left -= amountToIncrease;
208 rect.right += amountToIncrease;
210 touchDelegate = new TouchDelegate(rect, button);
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestProperties.cpp550 const hwc_rect_t& rect = curr.rects[i]; local
551 dmp << "\t\trect: left " << rect.left << ", top " << rect.top
552 << ", right " << rect.right << ", bottom " << rect.bottom << "\n";
672 const hwc_rect_t& rect = curr.rects[i]; local
673 dmp << "\t\trect: left " << rect.left << ", top " << rect.top
674 << ", right " << rect.right << ", bottom " << rect
[all...]
/frameworks/native/services/surfaceflinger/tests/
H A DTransaction_test.cpp71 void fillBufferColor(const ANativeWindow_Buffer& buffer, const Rect& rect, const Color& color) { argument
72 int32_t x = rect.left;
73 int32_t y = rect.top;
74 int32_t width = rect.right - rect.left;
75 int32_t height = rect.bottom - rect.top;
107 void expectBufferColor(const sp<GraphicBuffer>& outBuffer, uint8_t* pixels, const Rect& rect, argument
109 int32_t x = rect.left;
110 int32_t y = rect
205 expectColor(const Rect& rect, const Color& color, uint8_t tolerance = 0) argument
210 expectBorder(const Rect& rect, const Color& color, uint8_t tolerance = 0) argument
247 expectQuadrant(const Rect& rect, const Color& topLeft, const Color& topRight, const Color& bottomLeft, const Color& bottomRight, bool filtered = false, uint8_t tolerance = 0) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java322 * Translate the screen rect to the application frame.
324 public void translateRectInScreenToAppWinFrame(Rect rect) { argument
325 rect.scale(applicationInvertedScale);
379 public void translateRectInAppWindowToScreen(Rect rect) { argument
380 rect.scale(applicationScale);
386 public void translateRectInScreenToAppWindow(Rect rect) { argument
387 rect.scale(applicationInvertedScale);

Completed in 611 milliseconds

1234567891011