/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/ |
DrawableStubActivity.java | 16 package androidx.vectordrawable.graphics.drawable.tests;
|
/frameworks/support/navigation/safe-args-generator/src/tests/test-data/a/b/ |
R.java | 28 public static final class drawable { class in class:R
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/ |
TestUtilsMatchers.java | 21 import android.graphics.drawable.Drawable; 40 * Returns a matcher that matches <code>ImageView</code>s which have drawable flat-filled 43 public static Matcher drawable(@ColorInt final int color) { method in class:TestUtilsMatchers 49 description.appendText("with drawable of color: "); 56 Drawable drawable = view.getDrawable(); local 57 if (drawable == null) { 63 // all pixels in a Drawable are of the same specified color. 65 TestUtils.assertAllPixelsOfColor("", drawable, view.getWidth() 104 Drawable drawable = view.getBackground(); local [all...] |
/prebuilts/jdk/jdk8/linux-x86/include/linux/ |
jawt_md.h | 43 Drawable drawable; member in struct:jawt_X11DrawingSurfaceInfo
|
/prebuilts/jdk/jdk9/linux-x86/include/linux/ |
jawt_md.h | 42 Drawable drawable; member in struct:jawt_X11DrawingSurfaceInfo
|
/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
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
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/support/compat/src/main/java/androidx/core/graphics/drawable/ |
RoundedBitmapDrawableFactory.java | 17 package androidx.core.graphics.drawable; 68 * Returns a new drawable by creating it from a bitmap, setting initial target density based on 80 * Returns a new drawable, creating it by opening a given file path and decoding the bitmap. 84 final RoundedBitmapDrawable drawable = create(res, BitmapFactory.decodeFile(filepath)); local 85 if (drawable.getBitmap() == null) { 88 return drawable; 93 * Returns a new drawable, creating it by decoding a bitmap from the given input stream. 97 final RoundedBitmapDrawable drawable = create(res, BitmapFactory.decodeStream(is)); local 98 if (drawable.getBitmap() == null) { 101 return drawable; [all...] |
DrawableCompat.java | 17 package androidx.core.graphics.drawable; 23 import android.graphics.drawable.Drawable; 24 import android.graphics.drawable.DrawableContainer; 25 import android.graphics.drawable.InsetDrawable; 42 * Helper for accessing features in {@link android.graphics.drawable.Drawable}. 54 * Call {@link Drawable#jumpToCurrentState() Drawable.jumpToCurrentState()}. 56 * @param drawable The Drawable against which to invoke the method [all...] |
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/ |
DrawableCompatTest.java | 31 import android.graphics.drawable.Drawable; 32 import android.graphics.drawable.GradientDrawable; 37 import androidx.core.graphics.drawable.DrawableCompat; 47 final Drawable original = new GradientDrawable(); 48 final Drawable wrappedDrawable = DrawableCompat.wrap(original); 59 final Drawable original = new GradientDrawable(); 60 final Drawable wrappedDrawable = DrawableCompat.wrap(original); 68 final Drawable drawable = new GradientDrawable() local 82 final Drawable drawable = new GradientDrawable(); local 101 Drawable drawable = new GradientDrawable(); local 113 final Drawable drawable = new GradientDrawable(); local [all...] |
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
AnimatedVectorDrawableDupPerf.java | 18 import android.graphics.drawable.AnimatedVectorDrawable; 19 import android.graphics.drawable.VectorDrawable; 41 R.drawable.animation_vector_linear_progress_bar, 42 R.drawable.animation_vector_linear_progress_bar, 43 R.drawable.animation_vector_linear_progress_bar, 44 R.drawable.animation_vector_linear_progress_bar, 45 R.drawable.animation_vector_linear_progress_bar, 46 R.drawable.animation_vector_linear_progress_bar, 47 R.drawable.animation_vector_linear_progress_bar, 48 R.drawable.animation_vector_linear_progress_bar 77 final AnimatedVectorDrawable drawable = new AnimatedVectorDrawable(); local [all...] |
VectorDrawablePerformance.java | 18 import android.graphics.drawable.VectorDrawable; 38 R.drawable.vector_icon_filltype_nonzero, 39 R.drawable.vector_icon_filltype_evenodd, 40 R.drawable.vector_icon_gradient_1, 41 R.drawable.vector_icon_gradient_2, 42 R.drawable.vector_icon_gradient_3, 43 R.drawable.vector_icon_gradient_1_clamp, 44 R.drawable.vector_icon_gradient_2_repeat, 45 R.drawable.vector_icon_gradient_3_mirror, 46 R.drawable.vector_icon_state_list_simple 98 final VectorDrawable drawable = new VectorDrawable(); local [all...] |
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
QueueAdapter.java | 81 ContextCompat.getDrawable(getContext(), R.drawable.ic_equalizer_white_24dp)); 84 ContextCompat.getDrawable(getContext(), R.drawable.ic_play_arrow_white_24dp));
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
AppCompatSpinnerTest.java | 105 spinner.setPopupBackgroundResource(R.drawable.test_background_blue); 110 mActivityTestRule.getActivity(), R.drawable.test_background_green)); 122 spinner.setPopupBackgroundResource(R.drawable.test_background_red); 127 mActivityTestRule.getActivity(), R.drawable.test_background_blue));
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
ContactPhotoLoader.java | 23 import android.graphics.drawable.Drawable; 26 import android.support.v4.graphics.drawable.RoundedBitmapDrawable; 27 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory; 54 private static Bitmap drawableToBitmap(Drawable drawable, int width, int height) { 57 drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); 58 drawable.draw(canvas); 70 Drawable getIcon() { 71 Drawable drawable = createPhotoIconDrawable() local 104 final RoundedBitmapDrawable drawable = local 119 LetterTileDrawable drawable = new LetterTileDrawable(context.getResources()); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
CustomAnimationScaleListDrawableTest.java | 17 package android.graphics.drawable.cts; 22 import android.graphics.drawable.Animatable; 23 import android.graphics.drawable.Drawable; 24 import android.graphics.drawable.DrawableContainer; 39 * This test is used to verify that the CustomAnimationScaleListDrawable's current drawable depends 40 * on animation duration scale. When the scale is 0, it is a static drawable, otherwise, it is an 41 * animatable drawable. 46 private static final int DRAWABLE_ID = R.drawable.custom_animation_scale_list_drawable; 65 // current drawable choose the animatable one [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapDrawableResource.java | 3 import android.graphics.drawable.BitmapDrawable; 6 import com.bumptech.glide.load.resource.drawable.DrawableResource; 10 * A {@link com.bumptech.glide.load.engine.Resource} that wraps an {@link android.graphics.drawable.BitmapDrawable} 13 * {@link android.graphics.drawable.BitmapDrawable} to avoid rendering issues if used in multiple views and 21 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) { 22 super(drawable); 28 return Util.getBitmapByteSize(drawable.getBitmap()); 33 bitmapPool.put(drawable.getBitmap());
|
GlideBitmapDrawableResource.java | 4 import com.bumptech.glide.load.resource.drawable.DrawableResource; 13 public GlideBitmapDrawableResource(GlideBitmapDrawable drawable, BitmapPool bitmapPool) { 14 super(drawable); 20 return Util.getBitmapByteSize(drawable.getBitmap()); 25 bitmapPool.put(drawable.getBitmap());
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/drawable/ |
GlideDrawable.java | 1 package com.bumptech.glide.load.resource.drawable; 3 import android.graphics.drawable.Animatable; 4 import android.graphics.drawable.Drawable; 7 * A base class for drawables that are either static equivalents of {@link android.graphics.drawable.BitmapDrawable} or 10 public abstract class GlideDrawable extends Drawable implements Animatable { 11 /** A constant indicating that an animated drawable should loop continuously. */ 14 * A constant indicating that an animated drawable should loop for its default number of times. For animated GIFs, 20 * Returns {@code true} if this drawable is animated.
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/ |
GlideBitmapDrawableTranscoder.java | 15 * {@link android.graphics.Bitmap}s into {@link android.graphics.drawable.BitmapDrawable}s. 32 GlideBitmapDrawable drawable = new GlideBitmapDrawable(resources, toTranscode.get()); local 33 return new GlideBitmapDrawableResource(drawable, bitmapPool);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowStateListDrawable.java | 3 import android.graphics.drawable.Drawable; 4 import android.graphics.drawable.StateListDrawable; 18 private Map<List<Integer>, Drawable> stateToDrawable; 22 stateToDrawable = new HashMap<List<Integer>, Drawable>(); 34 public void addState(int[] stateSet, Drawable drawable) { 35 stateToDrawable.put(createStateList(stateSet), drawable); local 39 * Non Android accessor to retrieve drawable added for a specific state. 42 * @return Drawable added via {@link #addState(int[], android.graphics.drawable.Drawable) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
StateListDrawableTest.java | 4 import android.graphics.drawable.Drawable; 5 import android.graphics.drawable.StateListDrawable; 21 Drawable drawable = ShadowDrawable.createFromPath("/foo"); local 25 stateListDrawable.addState(states, drawable); 28 Drawable drawableForState = shadow.getDrawableForState(states); 35 Drawable drawable = ShadowDrawable.createFromPath("/foo"); local 38 stateListDrawable.addState(StateSet.WILD_CARD, drawable); [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/ |
TestR.java | 19 public static class drawable { class in class:TestR
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowStateListDrawableTest.java | 8 import android.graphics.drawable.Drawable; 9 import android.graphics.drawable.StateListDrawable; 20 Drawable drawable = ShadowDrawable.createFromPath("/foo"); local 24 stateListDrawable.addState(states, drawable); 27 Drawable drawableForState = shadow.getDrawableForState(states); 34 Drawable drawable = ShadowDrawable.createFromPath("/foo"); local 37 stateListDrawable.addState(StateSet.WILD_CARD, drawable); [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowStateListDrawable.java | 4 import android.graphics.drawable.Drawable; 5 import android.graphics.drawable.StateListDrawable; 21 private final Map<List<Integer>, Drawable> stateToDrawable = new HashMap<>(); 32 public void addState(int[] stateSet, Drawable drawable) { 33 stateToDrawable.put(createStateList(stateSet), drawable); local 41 * Non Android accessor to retrieve drawable added for a specific state. 44 * @return Drawable added via {@link #addState(int[], android.graphics.drawable.Drawable) [all...] |