/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | PaintCompat.java | 101 final Pair<Rect, Rect> rects = obtainEmptyRects(); 102 paint.getTextBounds(TOFU_STRING, 0, TOFU_STRING.length(), rects.first); 103 paint.getTextBounds(string, 0, length, rects.second); 104 return !rects.first.equals(rects.second); 108 Pair<Rect, Rect> rects = sRectThreadLocal.get(); 109 if (rects == null) { 110 rects = new Pair<>(new Rect(), new Rect()); 111 sRectThreadLocal.set(rects); 113 rects [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaProfileRenderer.cpp | 28 void SkiaProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { argument 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], 31 rects[index + 3]);
|
H A D | SkiaProfileRenderer.h | 29 void drawRects(const float* rects, int count, const SkPaint& paint) override;
|
/frameworks/native/include/private/ui/ |
H A D | RegionHelper.h | 53 RECT const* rects; member in struct:android::region_operator::region 58 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } 60 : rects(_r), count(_c), dx(), dy() { } 62 : rects(_r), count(_c), dx(_dx), dy(_dy) { } 171 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; 172 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; 175 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; 176 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; 203 RECT const * rects local [all...] |
/frameworks/base/libs/hwui/ |
H A D | ProfileRenderer.cpp | 27 void ProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { argument 28 mRenderer.drawRects(rects, count, &paint);
|
H A D | IProfileRenderer.h | 26 virtual void drawRects(const float* rects, int count, const SkPaint& paint) = 0;
|
H A D | ProfileRenderer.h | 29 void drawRects(const float* rects, int count, const SkPaint& paint) override;
|
H A D | RecordingCanvas.cpp | 286 void RecordingCanvas::drawSimpleRects(const float* rects, int vertexCount, const SkPaint* paint) { argument 287 if (rects == nullptr) return; 297 float l = rects[index + 0]; 298 float t = rects[index + 1]; 299 float r = rects[index + 2]; 300 float b = rects[index + 3]; 323 Vector<float> rects; local 327 rects.push(r.fLeft); 328 rects.push(r.fTop); 329 rects [all...] |
H A D | BakedOpRenderer.cpp | 188 void BakedOpRenderer::drawRects(const float* rects, int count, const SkPaint* paint) { argument 194 float l = rects[index + 0]; 195 float t = rects[index + 1]; 196 float r = rects[index + 2]; 197 float b = rects[index + 3];
|
H A D | BakedOpRenderer.h | 98 void drawRects(const float* rects, int count, const SkPaint* paint);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 53 public Region rects; field in class:Path 74 if (src.rects != null) { 75 rects = new Region(src.rects); 89 if (rects != null) rects.setEmpty(); 104 if (rects != null) rects.setEmpty(); 120 if (rects != null && src.rects ! [all...] |
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestProperties.cpp | 550 const hwc_rect_t& rect = curr.rects[i]; 579 hwc_rect_t* rects = new hwc_rect_t[damage.numRects]; local 580 if (!rects) { 586 rects[i].left = regionScalar[i].left * mBufferArea.width; 587 rects[i].top = regionScalar[i].top * mBufferArea.height; 588 rects[i].right = regionScalar[i].right * mBufferArea.width; 589 rects[i].bottom = regionScalar[i].bottom * mBufferArea.height; 592 damage.rects = static_cast<hwc_rect_t const*>(rects); 594 damage.rects 685 const android::Rect* rects = visibleRegion.getArray(&size); local [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | DistortionMapper.cpp | 285 status_t DistortionMapper::mapRawRectToCorrected(int32_t *rects, int rectCount) { argument 290 rects[i], 291 rects[i + 1], 292 rects[i] + rects[i + 2], 293 rects[i + 1] + rects[i + 3] 299 rects[i] = coords[0]; 300 rects[i + 1] = coords[1]; 301 rects[ 335 mapCorrectedRectToRaw(int32_t *rects, int rectCount) const argument [all...] |
H A D | DistortionMapper.h | 83 * rects: A pointer to an array of consecutive (x,y, w, h) rectangles 86 status_t mapRawRectToCorrected(int32_t *rects, int rectCount); 102 * rects: A pointer to an array of consecutive (x,y, w, h) rectangles 105 status_t mapCorrectedRectToRaw(int32_t *rects, int rectCount) const;
|
/frameworks/av/services/camera/libcameraservice/tests/ |
H A D | DistortionMapperTest.cpp | 138 std::array<int32_t, 8> rects = { local 143 auto rectsOrig = rects; 144 res = m.mapCorrectedRectToRaw(rects.data(), 2); 147 for (size_t i = 0; i < rects.size(); i++) { 148 EXPECT_EQ(rects[i], rectsOrig[i]); 151 res = m.mapRawRectToCorrected(rects.data(), 2); 154 for (size_t i = 0; i < rects.size(); i++) { 155 EXPECT_EQ(rects[i], rectsOrig[i]);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 215 std::vector<int32_t> rects; local 216 p->readInt32Vector(&rects); 218 if ((rects.size() % 4) != 0) { 223 for (size_t x = 0; x + 4 <= rects.size(); x += 4) { 224 region->op(rects[x], rects[x+1], rects[x+2], rects[x+3], SkRegion::kUnion_Op); 239 std::vector<int32_t> rects; local 243 rects [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuView.java | 449 final ArrayList<Rect> rects = mHorizontalDividerRects; 450 for (int i = rects.size() - 1; i >= 0; i--) { 451 drawable.setBounds(rects.get(i)); 459 final ArrayList<Rect> rects = mVerticalDividerRects; 460 for (int i = rects.size() - 1; i >= 0; i--) { 461 drawable.setBounds(rects.get(i));
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 420 EGLint rects[4]; local 421 frame.map(dirty, rects); 422 if (!eglSetDamageRegionKHR(mEglDisplay, frame.mSurface, rects, 1)) { 440 EGLint rects[4]; local 441 frame.map(screenDirty, rects); 442 eglSwapBuffersWithDamageKHR(mEglDisplay, frame.mSurface, rects, screenDirty.isEmpty() ? 0 : 1);
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 76 const android::Rect* rects = safeRegion.getArray(&count); local 85 const android::Rect* r = &rects[i];
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayCutout.java | 103 * @param boundingRects the bounding rects of the display cutouts as returned by 459 private static Region boundingRectsToRegion(List<Rect> rects) { argument 461 if (rects != null) { 462 for (Rect r : rects) {
|
/frameworks/native/services/surfaceflinger/layerproto/ |
H A D | LayerProtoParser.cpp | 135 region.rects.push_back(generateRect(rectProto)); 281 static_cast<int>(rects.size())); 283 for (auto& rect : rects) {
|
/frameworks/base/libs/hwui/debug/ |
H A D | nullegl.cpp | 148 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLint* rects, argument
|
/frameworks/native/include/layerproto/ |
H A D | LayerProtoParser.h | 74 std::vector<Rect> rects; member in class:android::surfaceflinger::LayerProtoParser::Region
|
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
H A D | LayerProtoParser.h | 74 std::vector<Rect> rects; member in class:android::surfaceflinger::LayerProtoParser::Region
|
/frameworks/native/libs/nativewindow/include/system/ |
H A D | window.h | 859 * native_window_set_surface_damage(..., android_native_rect_t* rects, int numRects) 870 * If numRects is set to 0, rects may be NULL, and the surface damage will be 876 const android_native_rect_t* rects, size_t numRects) 879 rects, numRects); 874 native_window_set_surface_damage( struct ANativeWindow* window, const android_native_rect_t* rects, size_t numRects) argument
|