HomeSort by relevance Sort by last modified time
    Searched refs:VectorDrawable (Results 1 - 25 of 44) sorted by null

1 2

  /frameworks/base/core/jni/
android_graphics_drawable_VectorDrawable.cpp 22 #include "VectorDrawable.h"
28 using namespace uirenderer::VectorDrawable;
31 * VectorDrawable's pre-draw construction.
34 VectorDrawable::Group* rootGroup = reinterpret_cast<VectorDrawable::Group*>(groupPtr);
35 VectorDrawable::Tree* tree = new VectorDrawable::Tree(rootGroup);
40 VectorDrawable::Group* rootGroup = reinterpret_cast<VectorDrawable::Group*>(groupPtr);
41 VectorDrawable::Tree* treeToCopy = reinterpret_cast<VectorDrawable::Tree*>(treePtr)
    [all...]
android_graphics_drawable_AnimatedVectorDrawable.cpp 28 #include "VectorDrawable.h"
32 using namespace VectorDrawable;
102 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(vectorDrawablePtr);
109 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(nativePtr);
117 VectorDrawable::Path* path = reinterpret_cast<VectorDrawable::Path*>(nativePtr);
127 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr)
    [all...]
  /frameworks/base/libs/hwui/
PropertyValuesHolder.h 19 #include "VectorDrawable.h"
90 GroupPropertyValuesHolder(VectorDrawable::Group* ptr, int propertyId, float startValue,
99 VectorDrawable::Group* mGroup;
105 FullPathColorPropertyValuesHolder(VectorDrawable::FullPath* ptr, int propertyId,
115 VectorDrawable::FullPath* mFullPath;
121 FullPathPropertyValuesHolder(VectorDrawable::FullPath* ptr, int propertyId, float startValue,
130 VectorDrawable::FullPath* mFullPath;
136 PathDataPropertyValuesHolder(VectorDrawable::Path* ptr, PathData* startValue,
144 VectorDrawable::Path* mPath;
150 RootAlphaPropertyValuesHolder(VectorDrawable::Tree* tree, float startValue, float endValue
    [all...]
DisplayList.h 62 namespace VectorDrawable {
65 typedef uirenderer::VectorDrawable::Tree VectorDrawableRoot;
PropertyValuesHolder.cpp 27 using namespace VectorDrawable;
  /packages/apps/Car/Stream/src/com/android/car/stream/
BitmapUtils.java 21 import android.graphics.drawable.VectorDrawable;
31 * Returns a {@link Bitmap} from a {@link VectorDrawable}.
33 * retrieve a bitmap from a VectorDrawable, so this method works around that.
36 public static Bitmap getBitmap(VectorDrawable vectorDrawable) {
37 if (vectorDrawable == null) {
41 Bitmap bitmap = Bitmap.createBitmap(vectorDrawable.getIntrinsicWidth(),
42 vectorDrawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
44 vectorDrawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
45 vectorDrawable.draw(canvas)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
VectorDrawableSizeTest.java 24 import android.graphics.drawable.VectorDrawable;
66 // This test makes sure the size computation for VectorDrawable is using round, instead of
70 VectorDrawable drawable = (VectorDrawable) mResources.getDrawable(mResId, null);
VectorDrawableTest.java 35 import android.graphics.drawable.VectorDrawable;
238 VectorDrawable vectorDrawable = new VectorDrawable();
239 vectorDrawable.setBounds(0, 0, IMAGE_WIDTH, IMAGE_HEIGHT);
241 // Setup VectorDrawable from xml file and draw into the bitmap.
257 vectorDrawable.inflate(mResources, parser, attrs, theme);
260 vectorDrawable.setState(stateSet);
264 vectorDrawable.draw(mCanvas);
313 VectorDrawable vectorDrawable = new VectorDrawable()
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
VectorDrawableTests.java 21 import android.graphics.drawable.VectorDrawable;
36 VectorDrawable vd = (VectorDrawable) getActivity().getResources().getDrawable(
  /frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
BoundsCheckTest.java 24 import android.graphics.drawable.VectorDrawable;
38 private final VectorDrawable mVector1;
44 mVector1 = (VectorDrawable) res.getDrawable(R.drawable.vector_drawable28);
VectorDrawableStaticPerf.java 18 import android.graphics.drawable.VectorDrawable;
VectorDrawable01.java 17 import android.graphics.drawable.VectorDrawable;
86 VectorDrawable vd = (VectorDrawable) button.getBackground();
VectorDrawablePerformance.java 18 import android.graphics.drawable.VectorDrawable;
85 public static VectorDrawable create(Resources resources, int rid) {
98 final VectorDrawable drawable = new VectorDrawable();
119 VectorDrawable []d = new VectorDrawable[icon.length];
VectorCheckbox.java 17 import android.graphics.drawable.VectorDrawable;
  /frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
VectorDrawablePerfTest.java 23 import android.graphics.drawable.VectorDrawable;
63 VectorDrawable vd = (VectorDrawable) activity.getDrawable(resId);
73 // Use different width / height each to force the vectorDrawable abandon the cache.
  /frameworks/base/graphics/java/android/graphics/drawable/
AnimatedVectorDrawable.java 70 * This class animates properties of a {@link android.graphics.drawable.VectorDrawable} with
91 * <li><h4>XML for the VectorDrawable containing properties to be animated</h4>
94 * {@link android.graphics.drawable.VectorDrawable}. These attributes will be animated by
97 * the same VectorDrawable. Elements without animation do not need to be named.
100 * Here are all the animatable attributes in {@link android.graphics.drawable.VectorDrawable}:
165 * Below is an example of a VectorDrawable defined in vectordrawable.xml. This VectorDrawable is
190 * An AnimatedVectorDrawable element has a VectorDrawable attribute, and one or more target
195 * groups and paths in the <a href="#VDExample">VectorDrawable XML above</a>
    [all...]
  /packages/apps/Car/Stream/src/com/android/car/stream/media/
MediaConverter.java 24 import android.graphics.drawable.VectorDrawable;
74 mPlayIcon = getBitmap((VectorDrawable)
76 mPauseIcon = getBitmap((VectorDrawable)
136 private static Bitmap getBitmap(VectorDrawable vectorDrawable, int width, int height) {
139 vectorDrawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
140 vectorDrawable.draw(canvas);
  /packages/apps/Car/Stream/src/com/android/car/stream/radio/
RadioConverter.java 25 import android.graphics.drawable.VectorDrawable;
73 mPlayIcon = getBitmap((VectorDrawable)
75 mPauseIcon = getBitmap((VectorDrawable)
155 * Returns a {@link Bitmap} that corresponds to the given {@link VectorDrawable}.
157 private static Bitmap getBitmap(VectorDrawable vectorDrawable, int width, int height) {
160 vectorDrawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
161 vectorDrawable.draw(canvas);
  /packages/apps/Car/Stream/src/com/android/car/stream/telecom/
RecentCallConverter.java 22 import android.graphics.drawable.VectorDrawable;
44 (VectorDrawable) context.getDrawable(R.drawable.ic_phone));
CurrentCallConverter.java 22 import android.graphics.drawable.VectorDrawable;
91 (VectorDrawable) context.getDrawable(R.drawable.ic_phone));
  /frameworks/base/libs/hwui/tests/unit/
SkiaDisplayListTests.cpp 18 #include <VectorDrawable.h>
97 VectorDrawableRoot vectorDrawable(new VectorDrawable::Group());
98 vectorDrawable.mutateStagingProperties()->setBounds(bounds);
99 skiaDL.mVectorDrawables.push_back(&vectorDrawable);
101 // ensure that the functor and vectorDrawable are properly synced
105 ASSERT_EQ(vectorDrawable.mutateProperties()->getBounds(), bounds);
127 VectorDrawableRoot cleanVD(new VectorDrawable::Group());
139 VectorDrawableRoot dirtyVD(new VectorDrawable::Group());
VectorDrawableTests.cpp 20 #include "VectorDrawable.h"
102 // Check box VectorDrawable path data
350 TEST(VectorDrawable, groupProperties) {
352 VectorDrawable::Group group;
353 VectorDrawable::Group::GroupProperties* properties = group.mutateProperties();
401 TEST(VectorDrawable, drawPathWithoutIncrementingShaderRefCount) {
402 VectorDrawable::FullPath path("m1 1", 4);
SkiaRenderPropertiesTests.cpp 18 #include <VectorDrawable.h>
  /frameworks/base/libs/hwui/pipeline/skia/
SkiaRecordingCanvas.cpp 120 class VectorDrawable : public SkDrawable {
122 VectorDrawable(VectorDrawableRoot* tree) : mRoot(tree) {}
138 * 2) fix VectorDrawable.cpp's Path::draw to not make a temporary path
152 drawDrawable(mDisplayList->allocateDrawable<VectorDrawable>(tree));
  /frameworks/base/libs/hwui/hwui/
Canvas.h 64 namespace VectorDrawable {
68 typedef uirenderer::VectorDrawable::Tree VectorDrawableRoot;
259 * Draws a VectorDrawable onto the canvas.

Completed in 1924 milliseconds

1 2