/frameworks/native/libs/ui/include_private/ui/ |
D | RegionHelper.h | 47 RECT const* rects; member 52 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) {} in region() 53 inline region(RECT const* _r, size_t _c) : rects(_r), count(_c), dx(), dy() {} in region() 55 : rects(_r), count(_c), dx(_dx), dy(_dy) {} in region() 153 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 154 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner() 157 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner() 158 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner() 181 RECT const* rects = reg.rects; in advance() local 182 RECT const* const end = rects + count; in advance() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RegionUtils.java | 42 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() 74 final ArrayList<Rect> rects = new ArrayList<>(); in forEachRectReverse() local 77 rects.add(new Rect(rect)); in forEachRectReverse() 81 Collections.reverse(rects); in forEachRectReverse() 82 rects.forEach(rectConsumer); in forEachRectReverse()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Path.java | 58 public Region rects; field in Path 79 if (src.rects != null) { in Path() 80 rects = new Region(src.rects); in Path() 94 if (rects != null) rects.setEmpty(); in reset() 109 if (rects != null) rects.setEmpty(); in rewind() 125 if (rects != null && src.rects != null) { in set() 126 rects.set(src.rects); in set() 127 } else if (rects != null && src.rects == null) { in set() 128 rects.setEmpty(); in set() 129 } else if (src.rects != null) { in set() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaProfileRenderer.cpp | 28 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()
|
D | SkiaProfileRenderer.h | 29 void drawRects(const float* rects, int count, const SkPaint& paint) override;
|
/frameworks/base/core/java/android/view/ |
D | GestureExclusionTracker.java | 68 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()
|
D | DisplayCutout.java | 167 private Bounds(Rect[] rects, boolean copyArguments) { in Bounds() argument 168 if (rects.length != BOUNDS_POSITION_LENGTH) { in Bounds() 170 "rects must have exactly 4 elements: rects=" + Arrays.toString(rects)); in Bounds() 175 mRects[i] = new Rect(rects[i]); in Bounds() 178 for (Rect rect : rects) { in Bounds() 182 + Arrays.toString(rects)); in Bounds() 185 mRects = rects; in Bounds() 203 Rect[] rects = new Rect[BOUNDS_POSITION_LENGTH]; in getRects() local 205 rects[i] = new Rect(mRects[i]); in getRects() 207 return rects; in getRects()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | DistortionMapper.cpp | 350 status_t DistortionMapper::mapRawRectToCorrected(int32_t *rects, int rectCount, in mapRawRectToCorrected() argument 356 rects[i], in mapRawRectToCorrected() 357 rects[i + 1], in mapRawRectToCorrected() 358 rects[i] + rects[i + 2] - 1, in mapRawRectToCorrected() 359 rects[i + 1] + rects[i + 3] - 1 in mapRawRectToCorrected() 365 rects[i] = coords[0]; in mapRawRectToCorrected() 366 rects[i + 1] = coords[1]; in mapRawRectToCorrected() 367 rects[i + 2] = coords[2] - coords[0] + 1; in mapRawRectToCorrected() 368 rects[i + 3] = coords[3] - coords[1] + 1; in mapRawRectToCorrected() 436 status_t DistortionMapper::mapCorrectedRectToRaw(int32_t *rects, int rectCount, in mapCorrectedRectToRaw() argument [all …]
|
D | ZoomRatioMapper.cpp | 473 void ZoomRatioMapper::scaleRects(int32_t* rects, int rectCount, in scaleRects() argument 479 rects[i], in scaleRects() 480 rects[i + 1], in scaleRects() 481 rects[i] + rects[i + 2] - 1, in scaleRects() 482 rects[i + 1] + rects[i + 3] - 1 in scaleRects() 491 rects[i] = coords[0]; in scaleRects() 492 rects[i + 1] = coords[1]; in scaleRects() 493 rects[i + 2] = coords[2] - coords[0] + 1; in scaleRects() 494 rects[i + 3] = coords[3] - coords[1] + 1; in scaleRects()
|
D | DistortionMapper.h | 103 status_t mapRawRectToCorrected(int32_t *rects, int rectCount, 127 status_t mapCorrectedRectToRaw(int32_t *rects, int rectCount,
|
D | ZoomRatioMapper.h | 87 void scaleRects(int32_t* rects, int rectCount, float scaleRatio, int32_t arrayWidth,
|
/frameworks/base/libs/hwui/jni/ |
D | Region.cpp | 210 std::vector<int32_t> rects; in Region_createFromParcel() local 213 ndk::AParcel_readVector(p, &rects); in Region_createFromParcel() 216 if ((rects.size() % 4) != 0) { in Region_createFromParcel() 221 for (size_t x = 0; x + 4 <= rects.size(); x += 4) { in Region_createFromParcel() 222 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/ |
D | DistortionMapperTest.cpp | 150 std::array<int32_t, 8> rects = { in TEST() local 155 auto rectsOrig = rects; in TEST() 156 res = m.mapCorrectedRectToRaw(rects.data(), 2, mapperInfo, /*clamp*/true); in TEST() 159 for (size_t i = 0; i < rects.size(); i++) { in TEST() 160 EXPECT_EQ(rects[i], rectsOrig[i]); in TEST() 163 res = m.mapRawRectToCorrected(rects.data(), 2, mapperInfo, /*clamp*/true); in TEST() 166 for (size_t i = 0; i < rects.size(); i++) { in TEST() 167 EXPECT_EQ(rects[i], rectsOrig[i]); in TEST()
|
/frameworks/native/libs/ui/ |
D | Region.cpp | 368 Rect* rects = mStorage.data(); in scaleSelf() local 370 rects->left = static_cast<int32_t>(static_cast<float>(rects->left) * sx + 0.5f); in scaleSelf() 371 rects->right = static_cast<int32_t>(static_cast<float>(rects->right) * sx + 0.5f); in scaleSelf() 372 rects->top = static_cast<int32_t>(static_cast<float>(rects->top) * sy + 0.5f); in scaleSelf() 373 rects->bottom = static_cast<int32_t>(static_cast<float>(rects->bottom) * sy + 0.5f); in scaleSelf() 374 rects++; in scaleSelf() 803 Rect* rects = reg.mStorage.data(); in translate() local 805 rects->offsetBy(dx, dy); in translate() 806 rects++; in translate()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuView.java | 454 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/renderthread/ |
D | EglManager.cpp | 505 EGLint rects[4]; in damageFrame() local 506 frame.map(dirty, rects); in damageFrame() 507 if (!eglSetDamageRegionKHR(mEglDisplay, frame.mSurface, rects, 1)) { in damageFrame() 525 EGLint rects[4]; in swapBuffers() local 526 frame.map(screenDirty, rects); in swapBuffers() 527 eglSwapBuffersWithDamageKHR(mEglDisplay, frame.mSurface, rects, screenDirty.isEmpty() ? 0 : 1); in swapBuffers()
|
/frameworks/base/libs/hwui/ |
D | IProfileRenderer.h | 26 virtual void drawRects(const float* rects, int count, const SkPaint& paint) = 0;
|
/frameworks/native/libs/ui/tests/ |
D | Rect_test.cpp | 263 const std::vector<Rect> rects = { in TEST() local 268 for (const auto& a : rects) { in TEST() 269 for (const auto& b : rects) { in TEST()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/ |
D | PrivacyDotViewController.kt | 562 val rects = getLayoutRects() in <lambda>() constant 566 seascapeRect = rects[0], in <lambda>() 567 portraitRect = rects[1], in <lambda>() 568 landscapeRect = rects[2], in <lambda>() 569 upsideDownRect = rects[3] in <lambda>()
|
/frameworks/native/opengl/include/EGL/ |
D | eglext.h | 282 … 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/ |
D | LayerProtoParser.cpp | 127 region.rects.push_back(generateRect(rectProto)); in generateRegion() 270 static_cast<int>(rects.size())); in to_string() 272 for (auto& rect : rects) { in to_string()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcColorEquiv.cpp | 365 layer->visibleRegionScreen.rects = &layer->displayFrame; in main() 379 layer->visibleRegionScreen.rects = &layer->displayFrame; in main()
|
/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 251 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface draw, EGLint* rects, in eglSwapBuffersWithDamageKHR() argument 257 return cnx->platform.eglSwapBuffersWithDamageKHR(dpy, draw, rects, n_rects); in eglSwapBuffersWithDamageKHR() 613 EGLBoolean eglSetDamageRegionKHR(EGLDisplay dpy, EGLSurface surface, EGLint* rects, in eglSetDamageRegionKHR() argument 618 return cnx->platform.eglSetDamageRegionKHR(dpy, surface, rects, n_rects); in eglSetDamageRegionKHR()
|
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
D | LayerProtoParser.h | 75 std::vector<Rect> rects; variable
|
/frameworks/native/libs/nativewindow/include/system/ |
D | window.h | 917 const android_native_rect_t* rects, size_t numRects) in native_window_set_surface_damage() argument 920 rects, numRects); in native_window_set_surface_damage()
|