HomeSort by relevance Sort by last modified time
    Searched refs:vectorDrawable (Results 1 - 18 of 18) sorted by null

  /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...]
  /frameworks/base/libs/hwui/pipeline/skia/
SkiaDisplayList.cpp 20 #include "VectorDrawable.h"
34 for (auto& vectorDrawable : mVectorDrawables) {
35 vectorDrawable->syncProperties();
91 for (auto& vectorDrawable : mVectorDrawables) {
93 if (vectorDrawable->isDirty()) {
96 vectorDrawable->setPropertyChangeWillBeConsumed(true);
SkiaRecordingCanvas.h 68 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
AppCompatVectorDrawableIntegrationTest.java 63 Drawable vectorDrawable = view1.getDrawable();
65 vectorDrawable.setBounds(0, 0, WIDTH, HEIGHT);
66 vectorDrawable.draw(mCanvas);
80 vectorDrawable.draw(mCanvas);
  /frameworks/base/libs/hwui/
DisplayList.cpp 28 #include "VectorDrawable.h"
97 for (auto& vectorDrawable : vectorDrawables) {
98 vectorDrawable->syncProperties();
121 for (auto& vectorDrawable : vectorDrawables) {
123 if (vectorDrawable->isDirty()) {
126 vectorDrawable->setPropertyChangeWillBeConsumed(true);
RecordedOp.h 44 namespace VectorDrawable {
351 VectorDrawableOp(VectorDrawable::Tree* tree, BASE_PARAMS_PAINTLESS)
353 , vectorDrawable(tree) {}
354 VectorDrawable::Tree* vectorDrawable;
SkiaCanvas.h 22 #include "VectorDrawable.h"
142 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
SkiaCanvas.cpp 21 #include "VectorDrawable.h"
680 void SkiaCanvas::drawVectorDrawable(VectorDrawableRoot* vectorDrawable) {
681 vectorDrawable->drawStaging(this);
FrameBuilder.cpp 22 #include "VectorDrawable.h"
641 Bitmap& bitmap = op.vectorDrawable->getBitmapUpdateIfDirty();
642 SkPaint* paint = op.vectorDrawable->getPaint();
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
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...]
  /frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
VectorDrawableTest.java 158 // Setup VectorDrawable from xml file and draw into the bitmap.
282 VectorDrawableCompat vectorDrawable =
284 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
288 assertEquals(0, vectorDrawable.getChangingConfigurations());
291 vectorDrawable.setChangingConfigurations(0xff);
292 assertEquals(0xff, vectorDrawable.getChangingConfigurations());
296 constantState = vectorDrawable.getConstantState();
300 vectorDrawable.setChangingConfigurations(0xff00);
302 assertEquals(0xffff, vectorDrawable.getChangingConfigurations());
307 VectorDrawableCompat vectorDrawable
    [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);
  /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());
RenderNodeTests.cpp 18 #include <VectorDrawable.h>
308 VectorDrawable::Group* group = new VectorDrawable::Group();
309 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group));
313 canvas.drawVectorDrawable(vectorDrawable.get());
  /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...]
  /frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
AnimatedVectorDrawableCompat.java 458 VectorDrawableCompat vectorDrawable = VectorDrawableCompat.create(res,
460 vectorDrawable.setAllowCaching(false);
461 vectorDrawable.setCallback(mCallback);
465 mAnimatedVectorState.mVectorDrawable = vectorDrawable;
527 * Instead of creating a VectorDrawable, create a VectorDrawableCompat instance which contains
528 * a delegated VectorDrawable instance.
    [all...]
  /prebuilts/sdk/current/support/graphics/drawable/
android-support-animatedvectordrawable.jar 

Completed in 310 milliseconds