Home
last modified time | relevance | path

Searched refs:saveCount (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
DCanvasFrontendTests.cpp51 TEST(CanvasFrontend, saveCount) { in TEST() argument
57 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
62 EXPECT_EQ(2, opCanvas.saveCount()); in TEST()
67 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
72 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
DCanvasOpTests.cpp95 int saveCount = 0; in TEST() local
102 saveCount++; in TEST()
113 EXPECT_EQ(saveCount, 2); in TEST()
630 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
635 EXPECT_EQ(2, opCanvas.saveCount()); in TEST()
640 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
645 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DRoundDrawableWrapper.java51 int saveCount = canvas.save(); in draw() local
54 canvas.restoreToCount(saveCount); in draw()
DPlaceHolderIconDrawable.java50 int saveCount = canvas.save(); in drawInternal() local
54 canvas.restoreToCount(saveCount); in drawInternal()
DUserBadgeDrawable.java92 int saveCount = canvas.save(); in draw() local
102 canvas.restoreToCount(saveCount); in draw()
DClockDrawableWrapper.java429 int saveCount = canvas.save(); in drawInternal() local
434 canvas.restoreToCount(saveCount); in drawInternal()
/frameworks/base/libs/hwui/
DSkiaCanvas.h79 virtual void restoreToCount(int saveCount) override;
80 virtual void restoreUnclippedLayer(int saveCount, const Paint& paint) override;
211 int saveCount; member
215 SaveRec(int saveCount, SaveFlags::Flags saveFlags, size_t clipIndex) in SaveRec()
216 : saveCount(saveCount), saveFlags(saveFlags), clipIndex(clipIndex) {} in SaveRec()
DVectorDrawable.cpp433 int saveCount = outCanvas->save(SaveFlags::MatrixClip); in draw() local
450 outCanvas->restoreToCount(saveCount); in draw()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DStickyHeaderRecyclerView.java98 final int saveCount = canvas.save(); in draw() local
118 canvas.restoreToCount(saveCount); in draw()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DStickyHeaderListView.java115 final int saveCount = canvas.save(); in draw() local
135 canvas.restoreToCount(saveCount); in draw()
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java182 int saveCount = canvas.getSaveCount(); in onDraw() local
186 canvas.restoreToCount(saveCount); in onDraw()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java553 public void restoreUnclippedLayer(int saveCount, Paint paint) { in restoreUnclippedLayer() argument
554 nRestoreUnclippedLayer(mNativeCanvasWrapper, saveCount, paint.getNativeInstance()); in restoreUnclippedLayer()
688 public void restoreToCount(int saveCount) { in restoreToCount() argument
689 if (saveCount < 1) { in restoreToCount()
696 saveCount = 1; in restoreToCount()
698 nRestoreToCount(mNativeCanvasWrapper, saveCount); in restoreToCount()
1482 private static native void nRestoreUnclippedLayer(long nativeCanvas, int saveCount,
1487 private static native void nRestoreToCount(long canvasHandle, int saveCount);
/frameworks/base/core/java/android/widget/
DAbsSeekBar.java829 final int saveCount = canvas.save();
833 canvas.restoreToCount(saveCount);
854 final int saveCount = canvas.save();
860 canvas.restoreToCount(saveCount);
871 final int saveCount = canvas.save();
876 canvas.restoreToCount(saveCount);
DQuickContactBadge.java167 int saveCount = canvas.getSaveCount(); in onDraw() local
171 canvas.restoreToCount(saveCount); in onDraw()
DExpandableListView.java369 int saveCount = 0; in dispatchDraw() local
372 saveCount = canvas.save(); in dispatchDraw()
475 canvas.restoreToCount(saveCount); in dispatchDraw()
DSwitch.java1420 final int saveCount = canvas.save(); in onDraw() local
1423 canvas.restoreToCount(saveCount); in onDraw()
1429 final int saveCount = canvas.save(); in onDraw() local
1457 canvas.restoreToCount(saveCount); in onDraw()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedRotateDrawable.java68 final int saveCount = canvas.save(); in draw() local
71 canvas.restoreToCount(saveCount); in draw()
DRotateDrawable.java155 final int saveCount = canvas.save(); in draw() local
158 canvas.restoreToCount(saveCount); in draw()
DRippleDrawable.java821 final int saveCount = canvas.save(Canvas.CLIP_SAVE_FLAG); in drawSolid() local
829 canvas.restoreToCount(saveCount); in drawSolid()
888 final int saveCount = canvas.save(Canvas.CLIP_SAVE_FLAG); in drawPatterned() local
953 canvas.restoreToCount(saveCount); in drawPatterned()
1113 final int saveCount = mMaskCanvas.save(); in updateMaskShaderIfNeeded() local
1122 mMaskCanvas.restoreToCount(saveCount); in updateMaskShaderIfNeeded()
/frameworks/base/libs/hwui/hwui/
DCanvas.h166 virtual void restoreToCount(int saveCount) = 0;
167 virtual void restoreUnclippedLayer(int saveCount, const Paint& paint) = 0;
/frameworks/base/libs/hwui/canvas/
DCanvasFrontend.cpp92 if (saveCount() <= 1) { in internalRestore()
DCanvasFrontend.h137 int saveCount() const { return mSaveStack.size(); } in saveCount() function
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java301 final int saveCount = c.save(); in onDraw() local
366 c.restoreToCount(saveCount); in onDraw()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp91 int saveCount = layerCanvas->save(); in renderLayerImpl() local
92 SkASSERT(saveCount == 1); in renderLayerImpl()
119 layerCanvas->restoreToCount(saveCount); in renderLayerImpl()
/frameworks/base/core/java/android/view/
DThreadedRenderer.java740 final int saveCount = canvas.save(); in updateRootDisplayList() local
749 canvas.restoreToCount(saveCount); in updateRootDisplayList()

12