Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.cpp42 for (auto& vectorDrawable : mVectorDrawables) { in syncContents() local
43 vectorDrawable.first->syncProperties(); in syncContents()
157 for (auto& [vectorDrawable, cachedMatrix] : mVectorDrawables) { in prepareListAndChildren()
159 if (vectorDrawable->isDirty()) { in prepareListAndChildren()
164 const SkRect& bounds = vectorDrawable->properties().getBounds(); in prepareListAndChildren()
167 vectorDrawable->setPropertyChangeWillBeConsumed(true); in prepareListAndChildren()
DSkiaRecordingCanvas.h81 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
/frameworks/base/libs/hwui/canvas/
DCanvasOpBuffer.h108 [[nodiscard]] bool hasVectorDrawables() const { return mHas.vectorDrawable; } in hasVectorDrawables()
128 bool vectorDrawable : 1 = false; member
/frameworks/base/graphics/java/android/graphics/drawable/
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 …]
/frameworks/base/core/java/android/view/
DPointerIcon.java471 VectorDrawable vectorDrawable, float pointerScale) { in getBitmapDrawableFromVectorDrawable() argument
475 (int) (vectorDrawable.getIntrinsicWidth() * pointerScale), in getBitmapDrawableFromVectorDrawable()
476 (int) (vectorDrawable.getIntrinsicHeight() * pointerScale), in getBitmapDrawableFromVectorDrawable()
479 vectorDrawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in getBitmapDrawableFromVectorDrawable()
480 vectorDrawable.draw(canvas); in getBitmapDrawableFromVectorDrawable()
/frameworks/base/libs/hwui/tests/unit/
DSkiaDisplayListTests.cpp110 VectorDrawableRoot vectorDrawable(new VectorDrawable::Group()); in TEST() local
111 vectorDrawable.mutateStagingProperties()->setBounds(bounds); in TEST()
112 skiaDL.appendVD(&vectorDrawable); in TEST()
123 EXPECT_EQ(vectorDrawable.mutateProperties()->getBounds(), bounds); in TEST()
DRenderNodeDrawableTests.cpp1198 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group)); in RENDERTHREAD_TEST() local
1199 vectorDrawable->mutateStagingProperties()->setScaledSize(CANVAS_WIDTH / 10, CANVAS_HEIGHT / 10); in RENDERTHREAD_TEST()
1204 vectorDrawable->mutateStagingProperties()->setBounds( in RENDERTHREAD_TEST()
1206 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_TEST()
1207 vectorDrawable->mutateStagingProperties()->setBounds( in RENDERTHREAD_TEST()
1209 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_TEST()
DRenderNodeTests.cpp304 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group)); in RENDERTHREAD_TEST() local
308 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_TEST()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowTest.java753 AnimatedVectorDrawable vectorDrawable = mock(AnimatedVectorDrawable.class); in testSetIconAnimationRunningGroup_Run() local
754 setDrawableIconsInImageView(mockIcon, drawable, vectorDrawable); in testSetIconAnimationRunningGroup_Run()
762 verify(vectorDrawable, times(1)).start(); in testSetIconAnimationRunningGroup_Run()
/frameworks/base/libs/hwui/
DSkiaCanvas.h149 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
DSkiaCanvas.cpp814 void SkiaCanvas::drawVectorDrawable(VectorDrawableRoot* vectorDrawable) { in drawVectorDrawable() argument
815 vectorDrawable->drawStaging(this); in drawVectorDrawable()