/external/glide/library/src/main/java/com/bumptech/glide/load/resource/drawable/ |
DrawableResource.java | 1 package com.bumptech.glide.load.resource.drawable; 3 import android.graphics.drawable.Drawable; 8 * Simple wrapper for an Android {@link Drawable} which returns a 9 * {@link android.graphics.drawable.Drawable.ConstantState#newDrawable() new drawable} 10 * based on it's {@link android.graphics.drawable.Drawable.ConstantState state}. 12 * <b>Suggested usages only include {@code T}s where the new drawable is of the same or descendant class.</b 17 protected final T drawable; field in class:DrawableResource [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableStubActivity.java | 16 package android.graphics.drawable.cts;
|
VectorDrawableSizeTest.java | 17 package android.graphics.drawable.cts; 24 import android.graphics.drawable.VectorDrawable; 47 {"size_1", R.drawable.vector_icon_size_1, 7}, 48 {"size_2", R.drawable.vector_icon_size_2, 9} 70 VectorDrawable drawable = (VectorDrawable) mResources.getDrawable(mResId, null); local 71 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicWidth()); 72 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicHeight());
|
Animatable2_AnimationCallbackTest.java | 17 package android.graphics.drawable.cts; 19 import android.graphics.drawable.Animatable2.AnimationCallback;
|
ShapeDrawable_ShaderFactoryTest.java | 17 package android.graphics.drawable.cts; 22 import android.graphics.drawable.ShapeDrawable.ShaderFactory;
|
/external/mesa3d/src/gallium/include/state_tracker/ |
xlib_sw_winsys.h | 19 Drawable drawable; member in struct:xlib_drawable
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
Animatable.java | 17 package android.graphics.drawable; 24 * Starts the drawable's animation. 29 * Stops the drawable's animation.
|
DrawableInflater.java | 17 package android.graphics.drawable; 36 * Instantiates a drawable XML file into its corresponding 37 * {@link android.graphics.drawable.Drawable} objects. 48 private static final HashMap<String, Constructor<? extends Drawable>> CONSTRUCTOR_MAP = 55 * Loads the drawable resource with the specified identifier. 57 * @param context the context in which the drawable should be loaded 58 * @param id the identifier of the drawable resource 59 * @return a drawable, or {@code null} if the drawable failed to loa 137 Drawable drawable = inflateFromTag(name); local [all...] |
Animatable2.java | 17 package android.graphics.drawable; 51 * @param drawable The drawable started the animation. 53 public void onAnimationStart(Drawable drawable) {}; 57 * @param drawable The drawable finished the animation. 59 public void onAnimationEnd(Drawable drawable) {};
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/ |
AnimatedVectorDrawable_VectorDrawableAnimatorRT_Delegate.java | 17 package android.graphics.drawable; 22 import android.graphics.drawable.AnimatedVectorDrawable.VectorDrawableAnimatorRT;
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
Parallaxable.java | 17 package com.android.bitmap.drawable; 19 import android.graphics.drawable.Drawable; 22 * {@link Drawable}s that support a parallax effect when drawing should
|
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
MenuTinter.java | 19 import android.graphics.drawable.Drawable; 21 import android.support.v4.graphics.drawable.DrawableCompat; 39 Drawable drawable = item.getIcon(); local 40 if (drawable != null) { 41 drawable = DrawableCompat.wrap(drawable); 42 drawable.mutate(); 43 DrawableCompat.setTint(drawable, ContextCompat.getColor(context, refColor)) [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifDrawableResource.java | 3 import com.bumptech.glide.load.resource.drawable.DrawableResource; 10 public GifDrawableResource(GifDrawable drawable) { 11 super(drawable); 16 return drawable.getData().length + Util.getBitmapByteSize(drawable.getFirstFrame()); 21 drawable.stop(); 22 drawable.recycle();
|
GifDrawableTransformation.java | 25 GifDrawable drawable = resource.get(); local 27 // The drawable needs to be initialized with the correct width and height in order for a view displaying it 30 // transformed dimensions will be so that our drawable can report the correct intrinsic width and height. 39 drawable.setFrameTransformation(wrapped, transformedFrame);
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
BitmapView.java | 24 import com.android.bitmap.drawable.ExtendedBitmapDrawable; 48 ExtendedBitmapDrawable drawable = getTypedDrawable(); local 49 drawable.setDecodeDimensions(w, h); 58 ExtendedBitmapDrawable drawable = getTypedDrawable(); local 60 drawable.setParallaxFraction(fraction);
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
DrawableConverter.java | 22 import android.graphics.drawable.BitmapDrawable; 23 import android.graphics.drawable.Drawable; 26 import android.support.v4.graphics.drawable.RoundedBitmapDrawable; 27 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory; 35 /** Converts the provided drawable to a bitmap using the drawable's intrinsic width and height. */ 37 public static Bitmap drawableToBitmap(@Nullable Drawable drawable) { 38 return drawableToBitmap(drawable, 0, 0) 89 RoundedBitmapDrawable drawable = local [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
BitmapDrawableTest.java | 8 import android.graphics.drawable.BitmapDrawable; 9 import android.graphics.drawable.Drawable; 35 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); local 36 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(drawable.getBitmap()).getDescription()); 41 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); local 43 drawable.draw(canvas) 51 BitmapDrawable drawable = (BitmapDrawable) Drawable.createFromStream(emptyInputStream, "source string value"); local 57 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); local 92 Drawable drawable = resources.getDrawable(R.drawable.an_image); local 98 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); local [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawable/ |
UserIconDrawableTest.java | 17 package com.android.settingslib.drawable; 43 R.drawable.home);
|
/frameworks/support/compat/ics/android/support/v4/graphics/drawable/ |
DrawableWrapper.java | 17 package android.support.v4.graphics.drawable; 21 import android.graphics.drawable.Drawable; 25 * Interface which allows a {@link android.graphics.drawable.Drawable} to get/set wrapped 32 Drawable getWrappedDrawable(); 33 void setWrappedDrawable(Drawable drawable);
|
TintAwareDrawable.java | 17 package android.support.v4.graphics.drawable; 27 * Interface which allows a {@link android.graphics.drawable.Drawable} to receive tinting calls
|
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/ |
DrawableStubActivity.java | 16 package android.support.graphics.drawable.tests; 20 import android.support.graphics.drawable.animated.test.R;
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
TestUtilsMatchers.java | 21 import android.graphics.drawable.Drawable; 39 * Returns a matcher that matches <code>ImageView</code>s which have drawable flat-filled 42 public static Matcher drawable(@ColorInt final int color) { method in class:TestUtilsMatchers 48 description.appendText("with drawable of color: "); 55 Drawable drawable = view.getDrawable(); local 56 if (drawable == null) { 62 // all pixels in a Drawable are of the same specified color. 64 TestUtils.assertAllPixelsOfColor("", drawable, view.getWidth() 103 Drawable drawable = view.getBackground(); local [all...] |
/packages/apps/Settings/tests/robotests/src/android/net/ |
NetworkBadging.java | 22 import android.graphics.drawable.ColorDrawable; 23 import android.graphics.drawable.Drawable; 43 private static Drawable drawable; field in class:NetworkBadging 45 public static Drawable getWifiIcon(
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/ |
DrawableContentAssist.java | 17 package com.android.ide.eclipse.adt.internal.editors.drawable; 24 * Content Assist Processor for /res/drawable XML files
|
/frameworks/support/compat/tests/java/android/support/v4/graphics/ |
DrawableCompatTest.java | 31 import android.graphics.drawable.Drawable; 32 import android.graphics.drawable.GradientDrawable; 36 import android.support.v4.graphics.drawable.DrawableCompat; 46 final Drawable original = new GradientDrawable(); 47 final Drawable wrappedDrawable = DrawableCompat.wrap(original); 58 final Drawable original = new GradientDrawable(); 59 final Drawable wrappedDrawable = DrawableCompat.wrap(original); 67 final Drawable drawable = new GradientDrawable() local 81 final Drawable drawable = new GradientDrawable(); local 100 Drawable drawable = new GradientDrawable(); local 112 final Drawable drawable = new GradientDrawable(); local [all...] |