Home
last modified time | relevance | path

Searched refs:vectorDrawable (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.cpp46 for (auto& vectorDrawable : mVectorDrawables) { in syncContents() local
47 vectorDrawable.first->syncProperties(); in syncContents()
156 for (auto& [vectorDrawable, cachedMatrix] : mVectorDrawables) { in prepareListAndChildren()
158 if (vectorDrawable->isDirty()) { in prepareListAndChildren()
163 const SkRect& bounds = vectorDrawable->properties().getBounds(); in prepareListAndChildren()
166 vectorDrawable->setPropertyChangeWillBeConsumed(true); in prepareListAndChildren()
H A DSkiaRecordingCanvas.h81 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
/aosp14/frameworks/base/libs/hwui/canvas/
H A DCanvasOpBuffer.h108 [[nodiscard]] bool hasVectorDrawables() const { return mHas.vectorDrawable; } in hasVectorDrawables()
128 bool vectorDrawable : 1 = false; member
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimatedVectorDrawable.java540 VectorDrawable vectorDrawable = (VectorDrawable) res.getDrawable( in inflate() local
542 vectorDrawable.setAllowCaching(false); in inflate()
543 vectorDrawable.setCallback(mCallback); in inflate()
544 pathErrorScale = vectorDrawable.getPixelSize(); in inflate()
548 state.mVectorDrawable = vectorDrawable; in inflate()
588 VectorDrawable vectorDrawable, boolean ignoreInvalidAnim) { in updateAnimatorProperty() argument
598 Object targetNameObj = vectorDrawable.getTargetByName(targetName); in updateAnimatorProperty()
619 updateAnimatorProperty(anim, targetName, vectorDrawable, ignoreInvalidAnim); in updateAnimatorProperty()
677 final VectorDrawable vectorDrawable = mAnimatedVectorState.mVectorDrawable; in applyTheme() local
678 if (vectorDrawable != null && vectorDrawable.canApplyTheme()) { in applyTheme()
[all …]
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DSkiaDisplayListTests.cpp112 VectorDrawableRoot vectorDrawable(new VectorDrawable::Group()); in TEST() local
113 vectorDrawable.mutateStagingProperties()->setBounds(bounds); in TEST()
114 skiaDL.appendVD(&vectorDrawable); in TEST()
125 EXPECT_EQ(vectorDrawable.mutateProperties()->getBounds(), bounds); in TEST()
H A DRenderNodeDrawableTests.cpp1194 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group)); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
1195 vectorDrawable->mutateStagingProperties()->setScaledSize(CANVAS_WIDTH / 10, CANVAS_HEIGHT / 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
1200 vectorDrawable->mutateStagingProperties()->setBounds( in RENDERTHREAD_SKIA_PIPELINE_TEST()
1202 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
1203 vectorDrawable->mutateStagingProperties()->setBounds( in RENDERTHREAD_SKIA_PIPELINE_TEST()
1205 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
H A DRenderNodeTests.cpp305 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group)); in RENDERTHREAD_TEST() local
309 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_TEST()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DExpandableNotificationRowTest.java748 AnimatedVectorDrawable vectorDrawable = mock(AnimatedVectorDrawable.class); in testSetIconAnimationRunningGroup_Run() local
749 setDrawableIconsInImageView(mockIcon, drawable, vectorDrawable); in testSetIconAnimationRunningGroup_Run()
757 verify(vectorDrawable, times(1)).start(); in testSetIconAnimationRunningGroup_Run()
/aosp14/frameworks/base/libs/hwui/
H A DSkiaCanvas.h147 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
H A DSkiaCanvas.cpp768 void SkiaCanvas::drawVectorDrawable(VectorDrawableRoot* vectorDrawable) { in drawVectorDrawable() argument
769 vectorDrawable->drawStaging(this); in drawVectorDrawable()