Home
last modified time | relevance | path

Searched refs:rects (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/native/include/private/ui/
DRegionHelper.h53 RECT const* rects; member
58 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } in region()
60 : rects(_r), count(_c), dx(), dy() { } in region()
62 : rects(_r), count(_c), dx(_dx), dy(_dy) { } in region()
171 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner()
172 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner()
175 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner()
176 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner()
203 RECT const * rects = reg.rects; in advance() local
204 RECT const * const end = rects + count; in advance()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DRegionUtils.java42 public static void rectListToRegion(List<Rect> rects, Region outRegion) { in rectListToRegion() argument
44 final int n = rects.size(); in rectListToRegion()
46 outRegion.union(rects.get(i)); in rectListToRegion()
60 final ArrayList<Rect> rects = new ArrayList<>(); in forEachRectReverse() local
63 rects.add(new Rect(rect)); in forEachRectReverse()
67 Collections.reverse(rects); in forEachRectReverse()
68 rects.forEach(rectConsumer); in forEachRectReverse()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaProfileRenderer.cpp28 void SkiaProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { in drawRects() argument
30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], in drawRects()
31 rects[index + 3]); in drawRects()
DSkiaProfileRenderer.h29 void drawRects(const float* rects, int count, const SkPaint& paint) override;
/frameworks/base/graphics/java/android/graphics/
DPath.java57 public Region rects; field in Path
78 if (src.rects != null) { in Path()
79 rects = new Region(src.rects); in Path()
93 if (rects != null) rects.setEmpty(); in reset()
108 if (rects != null) rects.setEmpty(); in rewind()
124 if (rects != null && src.rects != null) { in set()
125 rects.set(src.rects); in set()
126 } else if (rects != null && src.rects == null) { in set()
127 rects.setEmpty(); in set()
128 } else if (src.rects != null) { in set()
[all …]
/frameworks/base/core/java/android/view/
DGestureExclusionTracker.java68 final List<Rect> rects = new ArrayList<>(mRootGestureExclusionRects); in computeChangedRects() local
76 rects.addAll(info.mExclusionRects); in computeChangedRects()
87 if (!mGestureExclusionRects.equals(rects)) { in computeChangedRects()
88 mGestureExclusionRects = rects; in computeChangedRects()
89 return rects; in computeChangedRects()
95 public void setRootSystemGestureExclusionRects(@NonNull List<Rect> rects) { in setRootSystemGestureExclusionRects() argument
96 Preconditions.checkNotNull(rects, "rects must not be null"); in setRootSystemGestureExclusionRects()
97 mRootGestureExclusionRects = rects; in setRootSystemGestureExclusionRects()
DDisplayCutout.java161 private Bounds(Rect[] rects, boolean copyArguments) { in Bounds() argument
162 if (rects.length != BOUNDS_POSITION_LENGTH) { in Bounds()
164 "rects must have exactly 4 elements: rects=" + Arrays.toString(rects)); in Bounds()
169 mRects[i] = new Rect(rects[i]); in Bounds()
172 for (Rect rect : rects) { in Bounds()
176 + Arrays.toString(rects)); in Bounds()
179 mRects = rects; in Bounds()
197 Rect[] rects = new Rect[BOUNDS_POSITION_LENGTH]; in getRects() local
199 rects[i] = new Rect(mRects[i]); in getRects()
201 return rects; in getRects()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestProperties.cpp550 const hwc_rect_t& rect = curr.rects[i]; in dump()
579 hwc_rect_t* rects = new hwc_rect_t[damage.numRects]; in update() local
580 if (!rects) { in update()
586 rects[i].left = regionScalar[i].left * mBufferArea.width; in update()
587 rects[i].top = regionScalar[i].top * mBufferArea.height; in update()
588 rects[i].right = regionScalar[i].right * mBufferArea.width; in update()
589 rects[i].bottom = regionScalar[i].bottom * mBufferArea.height; in update()
592 damage.rects = static_cast<hwc_rect_t const*>(rects); in update()
594 damage.rects = nullptr; in update()
604 if (surfaceDamage.numRects > 0 && surfaceDamage.rects) in freeSurfaceDamages()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.cpp307 status_t DistortionMapper::mapRawRectToCorrected(int32_t *rects, int rectCount, bool clamp, in mapRawRectToCorrected() argument
313 rects[i], in mapRawRectToCorrected()
314 rects[i + 1], in mapRawRectToCorrected()
315 rects[i] + rects[i + 2] - 1, in mapRawRectToCorrected()
316 rects[i + 1] + rects[i + 3] - 1 in mapRawRectToCorrected()
322 rects[i] = coords[0]; in mapRawRectToCorrected()
323 rects[i + 1] = coords[1]; in mapRawRectToCorrected()
324 rects[i + 2] = coords[2] - coords[0] + 1; in mapRawRectToCorrected()
325 rects[i + 3] = coords[3] - coords[1] + 1; in mapRawRectToCorrected()
394 status_t DistortionMapper::mapCorrectedRectToRaw(int32_t *rects, int rectCount, bool clamp, in mapCorrectedRectToRaw() argument
[all …]
DDistortionMapper.h91 status_t mapRawRectToCorrected(int32_t *rects, int rectCount, bool clamp,
115 status_t mapCorrectedRectToRaw(int32_t *rects, int rectCount, bool clamp,
/frameworks/base/core/jni/android/graphics/
DRegion.cpp215 std::vector<int32_t> rects; in Region_createFromParcel() local
216 p->readInt32Vector(&rects); in Region_createFromParcel()
218 if ((rects.size() % 4) != 0) { in Region_createFromParcel()
223 for (size_t x = 0; x + 4 <= rects.size(); x += 4) { in Region_createFromParcel()
224 region->op(rects[x], rects[x+1], rects[x+2], rects[x+3], SkRegion::kUnion_Op); in Region_createFromParcel()
239 std::vector<int32_t> rects; in Region_writeToParcel() local
243 rects.push_back(r.fLeft); in Region_writeToParcel()
244 rects.push_back(r.fTop); in Region_writeToParcel()
245 rects.push_back(r.fRight); in Region_writeToParcel()
246 rects.push_back(r.fBottom); in Region_writeToParcel()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp149 std::array<int32_t, 8> rects = { in TEST() local
154 auto rectsOrig = rects; in TEST()
155 res = m.mapCorrectedRectToRaw(rects.data(), 2, /*clamp*/true); in TEST()
158 for (size_t i = 0; i < rects.size(); i++) { in TEST()
159 EXPECT_EQ(rects[i], rectsOrig[i]); in TEST()
162 res = m.mapRawRectToCorrected(rects.data(), 2, /*clamp*/true); in TEST()
165 for (size_t i = 0; i < rects.size(); i++) { in TEST()
166 EXPECT_EQ(rects[i], rectsOrig[i]); in TEST()
/frameworks/native/libs/ui/
DRegion.cpp340 Rect* rects = mStorage.editArray(); in scaleSelf() local
342 rects->left = static_cast<int32_t>(rects->left * sx + 0.5f); in scaleSelf()
343 rects->right = static_cast<int32_t>(rects->right * sx + 0.5f); in scaleSelf()
344 rects->top = static_cast<int32_t>(rects->top * sy + 0.5f); in scaleSelf()
345 rects->bottom = static_cast<int32_t>(rects->bottom * sy + 0.5f); in scaleSelf()
346 rects++; in scaleSelf()
776 Rect* rects = reg.mStorage.editArray(); in translate() local
778 rects->offsetBy(dx, dy); in translate()
779 rects++; in translate()
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp440 EGLint rects[4]; in damageFrame() local
441 frame.map(dirty, rects); in damageFrame()
442 if (!eglSetDamageRegionKHR(mEglDisplay, frame.mSurface, rects, 1)) { in damageFrame()
460 EGLint rects[4]; in swapBuffers() local
461 frame.map(screenDirty, rects); in swapBuffers()
462 eglSwapBuffersWithDamageKHR(mEglDisplay, frame.mSurface, rects, screenDirty.isEmpty() ? 0 : 1); in swapBuffers()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java454 final ArrayList<Rect> rects = mHorizontalDividerRects; in onDraw() local
455 for (int i = rects.size() - 1; i >= 0; i--) { in onDraw()
456 drawable.setBounds(rects.get(i)); in onDraw()
464 final ArrayList<Rect> rects = mVerticalDividerRects; in onDraw() local
465 for (int i = rects.size() - 1; i >= 0; i--) { in onDraw()
466 drawable.setBounds(rects.get(i)); in onDraw()
/frameworks/base/libs/hwui/
DIProfileRenderer.h26 virtual void drawRects(const float* rects, int count, const SkPaint& paint) = 0;
/frameworks/native/opengl/include/EGL/
Deglext.h282 … PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
284 …APIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
446 …LSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
448 …RY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
916 …LSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
918 …RY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
1036 …APBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1038 …eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1044 …PBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1046 …glSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
/frameworks/native/services/surfaceflinger/layerproto/
DLayerProtoParser.cpp137 region.rects.push_back(generateRect(rectProto)); in generateRegion()
280 static_cast<int>(rects.size())); in to_string()
282 for (auto& rect : rects) { in to_string()
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h898 const android_native_rect_t* rects, size_t numRects) in native_window_set_surface_damage() argument
901 rects, numRects); in native_window_set_surface_damage()
/frameworks/native/opengl/tests/hwc/
DhwcColorEquiv.cpp365 layer->visibleRegionScreen.rects = &layer->displayFrame; in main()
379 layer->visibleRegionScreen.rects = &layer->displayFrame; in main()
/frameworks/native/include/android/
Dsurface_control.h295 ASurfaceControl* surface_control, const ARect rects[],
/frameworks/native/opengl/libs/EGL/
DeglApi.cpp253 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface draw, EGLint* rects, in eglSwapBuffersWithDamageKHR() argument
259 return cnx->platform.eglSwapBuffersWithDamageKHR(dpy, draw, rects, n_rects); in eglSwapBuffersWithDamageKHR()
619 EGLBoolean eglSetDamageRegionKHR(EGLDisplay dpy, EGLSurface surface, EGLint* rects, in eglSetDamageRegionKHR() argument
624 return cnx->platform.eglSetDamageRegionKHR(dpy, surface, rects, n_rects); in eglSetDamageRegionKHR()
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
DLayerProtoParser.h75 std::vector<Rect> rects; variable
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp1589 android_native_rect_t* rects = nullptr; in QueuePresentKHR() local
1624 allocator->pUserData, rects, in QueuePresentKHR()
1629 rects = new_rects; in QueuePresentKHR()
1648 android_native_rect_t* cur_rect = &rects[r]; in QueuePresentKHR()
1654 native_window_set_surface_damage(window, rects, rcount); in QueuePresentKHR()
1759 if (rects) { in QueuePresentKHR()
1760 allocator->pfnFree(allocator->pUserData, rects); in QueuePresentKHR()
/frameworks/base/libs/hwui/debug/
Dnullegl.cpp148 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLint* rects, in eglSwapBuffersWithDamageKHR() argument

12