Home
last modified time | relevance | path

Searched refs:saveCount (Results 1 – 25 of 38) 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.cpp86 int saveCount = 0; in TEST() local
93 saveCount++; in TEST()
104 EXPECT_EQ(saveCount, 2); in TEST()
621 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
626 EXPECT_EQ(2, opCanvas.saveCount()); in TEST()
631 EXPECT_EQ(1, opCanvas.saveCount()); in TEST()
636 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()
DFixedScaleDrawable.java29 int saveCount = canvas.save(); in draw() local
33 canvas.restoreToCount(saveCount); in draw()
DPlaceHolderIconDrawable.java50 int saveCount = canvas.save(); in drawInternal() local
54 canvas.restoreToCount(saveCount); in drawInternal()
/frameworks/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java206 public static void nRestoreUnclippedLayer(long nativeCanvas, int saveCount, in nRestoreUnclippedLayer() argument
208 nRestoreToCount(nativeCanvas, saveCount); in nRestoreUnclippedLayer()
225 public static void nRestoreToCount(long nativeCanvas, int saveCount) { in nRestoreToCount() argument
233 canvasDelegate.restoreTo(saveCount); in nRestoreToCount()
/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/libs/hwui/
DSkiaCanvas.h75 virtual void restoreToCount(int saveCount) override;
76 virtual void restoreUnclippedLayer(int saveCount, const SkPaint& paint) override;
202 int saveCount; member
/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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java381 public GcSnapshot restoreTo(int saveCount) { in restoreTo() argument
382 return doRestoreTo(size(), saveCount); in restoreTo()
547 private GcSnapshot doRestoreTo(int size, int saveCount) { in doRestoreTo() argument
548 if (size <= saveCount) { in doRestoreTo()
555 if (size == saveCount + 1) { // this was the only one that needed restore. in doRestoreTo()
558 return previous.doRestoreTo(size - 1, saveCount); in doRestoreTo()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java537 public void restoreUnclippedLayer(int saveCount, Paint paint) { in restoreUnclippedLayer() argument
538 nRestoreUnclippedLayer(mNativeCanvasWrapper, saveCount, paint.getNativeInstance()); in restoreUnclippedLayer()
672 public void restoreToCount(int saveCount) { in restoreToCount() argument
673 if (saveCount < 1) { in restoreToCount()
680 saveCount = 1; in restoreToCount()
682 nRestoreToCount(mNativeCanvasWrapper, saveCount); in restoreToCount()
1428 private static native void nRestoreUnclippedLayer(long nativeCanvas, int saveCount,
1433 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.java367 int saveCount = 0; in dispatchDraw() local
370 saveCount = canvas.save(); in dispatchDraw()
473 canvas.restoreToCount(saveCount); in dispatchDraw()
DSwitch.java1410 final int saveCount = canvas.save(); in onDraw() local
1413 canvas.restoreToCount(saveCount); in onDraw()
1419 final int saveCount = canvas.save(); in onDraw() local
1447 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.java814 final int saveCount = canvas.save(Canvas.CLIP_SAVE_FLAG); in drawSolid() local
822 canvas.restoreToCount(saveCount); in drawSolid()
870 final int saveCount = canvas.save(Canvas.CLIP_SAVE_FLAG); in drawPatterned() local
931 canvas.restoreToCount(saveCount); in drawPatterned()
/frameworks/base/libs/hwui/canvas/
DCanvasFrontend.cpp75 if (saveCount() <= 1) { in internalRestore()
DCanvasFrontend.h94 int saveCount() const { return mSaveStack.size(); } in saveCount() function
/frameworks/base/libs/hwui/hwui/
DCanvas.h164 virtual void restoreToCount(int saveCount) = 0;
165 virtual void restoreUnclippedLayer(int saveCount, const SkPaint& paint) = 0;
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java300 final int saveCount = c.save(); in onDraw() local
365 c.restoreToCount(saveCount); in onDraw()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp115 int saveCount = layerCanvas->save(); in renderLayersImpl() local
116 SkASSERT(saveCount == 1); in renderLayersImpl()
143 layerCanvas->restoreToCount(saveCount); in renderLayersImpl()
/frameworks/base/core/java/android/view/
DThreadedRenderer.java558 final int saveCount = canvas.save(); in updateRootDisplayList() local
567 canvas.restoreToCount(saveCount); in updateRootDisplayList()

12