/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
LayerDrawableTest.java | 6 import android.graphics.drawable.LayerDrawable; 50 LayerDrawable layerDrawable = new LayerDrawable(drawables); 51 assertSame("drawables", drawables, shadowOf(layerDrawable).drawables); 56 LayerDrawable layerDrawable = new LayerDrawable(drawables); 57 assertEquals("count", 3, layerDrawable.getNumberOfLayers()); 62 LayerDrawable layerDrawable = new LayerDrawable(drawables) [all...] |
ImageViewTest.java | 9 import android.graphics.drawable.LayerDrawable; 74 assertFalse("LayerDrawable", 75 imageView.getDrawable() instanceof LayerDrawable); 97 assertTrue("LayerDrawable", 98 imageView.getDrawable() instanceof LayerDrawable);
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/ |
RecyclingImageView.java | 21 import android.graphics.drawable.LayerDrawable; 80 } else if (drawable instanceof LayerDrawable) { 81 // The drawable is a LayerDrawable, so recurse on each layer 82 LayerDrawable layerDrawable = (LayerDrawable) drawable; 83 for (int i = 0, z = layerDrawable.getNumberOfLayers(); i < z; i++) { 84 notifyDrawable(layerDrawable.getDrawable(i), isDisplayed);
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/ |
RecyclingImageView.java | 21 import android.graphics.drawable.LayerDrawable; 80 } else if (drawable instanceof LayerDrawable) { 81 // The drawable is a LayerDrawable, so recurse on each layer 82 LayerDrawable layerDrawable = (LayerDrawable) drawable; 83 for (int i = 0, z = layerDrawable.getNumberOfLayers(); i < z; i++) { 84 notifyDrawable(layerDrawable.getDrawable(i), isDisplayed);
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/ |
RecyclingImageView.java | 21 import android.graphics.drawable.LayerDrawable; 80 } else if (drawable instanceof LayerDrawable) { 81 // The drawable is a LayerDrawable, so recurse on each layer 82 LayerDrawable layerDrawable = (LayerDrawable) drawable; 83 for (int i = 0, z = layerDrawable.getNumberOfLayers(); i < z; i++) { 84 notifyDrawable(layerDrawable.getDrawable(i), isDisplayed);
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorStateDrawable.java | 22 import android.graphics.drawable.LayerDrawable; 28 public class ColorStateDrawable extends LayerDrawable {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
RefcountImageView.java | 24 import android.graphics.drawable.LayerDrawable; 76 } else if (drawable instanceof LayerDrawable) { 77 LayerDrawable layerDrawable = (LayerDrawable) drawable; 78 for (int i = 0, z = layerDrawable.getNumberOfLayers(); i < z; i++) { 79 releaseRef(layerDrawable.getDrawable(i));
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLayerDrawable.java | 4 import android.graphics.drawable.LayerDrawable; 12 @Implements(LayerDrawable.class) 15 protected LayerDrawable realLayerDrawable;
|
ShadowImageView.java | 10 import android.graphics.drawable.LayerDrawable; 58 * Build drawable, either LayerDrawable or BitmapDrawable. 79 LayerDrawable layerDrawable = new LayerDrawable(drawables); 80 shadowOf(layerDrawable).setLoadedFromResourceId(resourceId); 81 return layerDrawable;
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
LayerDrawableTest.java | 38 import android.graphics.drawable.LayerDrawable; 53 LayerDrawable layerDrawable = new LayerDrawable(array); 54 assertEquals(array.length, layerDrawable.getNumberOfLayers()); 55 assertSame(bitmapDrawable, layerDrawable.getDrawable(0)); 56 assertSame(colorDrawable, layerDrawable.getDrawable(1)); 59 layerDrawable = new LayerDrawable(array); 60 assertEquals(0, layerDrawable.getNumberOfLayers()) [all...] |
ThemedDrawableTest.java | 28 import android.graphics.drawable.LayerDrawable; 137 LayerDrawable d = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable_theme);
|
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/ |
ThumbnailRadioButton.java | 24 import android.graphics.drawable.LayerDrawable; 37 Each state has a LayerDrawable with a Thumbnail image and a Focus rectangle. 38 It's using original Radio Buttons text as a label, because LayerDrawable showed some issues with Canvas.drawText(). 74 LayerDrawable layerChecked = new LayerDrawable(drawableArray); 84 LayerDrawable layerUnchecked = new LayerDrawable(drawableArray2);
|
/developers/samples/android/renderScript/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/ |
ThumbnailRadioButton.java | 24 import android.graphics.drawable.LayerDrawable; 37 Each state has a LayerDrawable with a Thumbnail image and a Focus rectangle. 38 It's using original Radio Buttons text as a label, because LayerDrawable showed some issues with Canvas.drawText(). 74 LayerDrawable layerChecked = new LayerDrawable(drawableArray); 84 LayerDrawable layerUnchecked = new LayerDrawable(drawableArray2);
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
ThumbnailRadioButton.java | 24 import android.graphics.drawable.LayerDrawable; 37 Each state has a LayerDrawable with a Thumbnail image and a Focus rectangle. 38 It's using original Radio Buttons text as a label, because LayerDrawable showed some issues with Canvas.drawText(). 74 LayerDrawable layerChecked = new LayerDrawable(drawableArray); 84 LayerDrawable layerUnchecked = new LayerDrawable(drawableArray2);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
TintRatingBar.java | 27 import android.graphics.drawable.LayerDrawable; 88 } else if (drawable instanceof LayerDrawable) { 89 LayerDrawable background = (LayerDrawable) drawable; 98 LayerDrawable newBg = new LayerDrawable(outDrawables);
|
/frameworks/base/core/java/android/widget/ |
ToggleButton.java | 22 import android.graphics.drawable.LayerDrawable; 138 if (backgroundDrawable instanceof LayerDrawable) { 139 LayerDrawable layerDrawable = (LayerDrawable) backgroundDrawable; 141 layerDrawable.findDrawableByLayerId(com.android.internal.R.id.toggle);
|
ProgressBar.java | 37 import android.graphics.drawable.LayerDrawable; 403 if (drawable instanceof LayerDrawable) { 404 LayerDrawable background = (LayerDrawable) drawable; 414 LayerDrawable newBg = new LayerDrawable(outDrawables); [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SetupWizardUtils.java | 28 import android.graphics.drawable.LayerDrawable; 124 if (drawable instanceof LayerDrawable) { 125 LayerDrawable layers = (LayerDrawable) drawable;
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
ColorSuggestionListAdapter.java | 10 import android.graphics.drawable.LayerDrawable; 71 LayerDrawable layers = (LayerDrawable) button.getBackground();
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
BottomBar.java | 25 import android.graphics.drawable.LayerDrawable; 134 LayerDrawable layerDrawable = (LayerDrawable) mCancelButton.getBackground(); 135 Drawable d = layerDrawable.getDrawable(0); 369 private LayerDrawable applyCircleDrawableToShutterBackground(LayerDrawable shutterBackground) { 386 private LayerDrawable newDrawableFromConstantState(Drawable.ConstantState constantState) { 387 return (LayerDrawable) constantState.newDrawable(getContext().getResources()); 391 LayerDrawable shutterBackground = applyCircleDrawableToShutterBackground [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
InCallAnimationUtils.java | 25 import android.graphics.drawable.LayerDrawable; 53 private static class CrossFadeDrawable extends LayerDrawable {
|
CallButtonFragment.java | 23 import android.graphics.drawable.LayerDrawable; 224 final LayerDrawable layers = (LayerDrawable) button.getBackground(); 239 final LayerDrawable layers = (LayerDrawable) button.getBackground(); 299 LayerDrawable selectedDrawable = (LayerDrawable) res.getDrawable(R.drawable.btn_selected); 306 LayerDrawable unselectedDrawable = 307 (LayerDrawable) res.getDrawable(R.drawable.btn_unselected); 662 final LayerDrawable layers = (LayerDrawable) mAudioButton.getBackground() [all...] |
/packages/apps/Browser/src/com/android/browser/ |
XLargeUi.java | 25 import android.graphics.drawable.LayerDrawable; 298 LayerDrawable d = new LayerDrawable(array);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
LayerDrawable.java | 60 public class LayerDrawable extends Drawable implements Drawable.Callback { 93 public LayerDrawable(Drawable[] layers) { 104 LayerDrawable(Drawable[] layers, LayerState state) { 121 LayerDrawable() { 125 LayerDrawable(LayerState state, Resources res) { 141 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.LayerDrawable); 252 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.LayerDrawable); 957 ChildDrawable(ChildDrawable orig, LayerDrawable owner, Resources res) { 994 LayerState(LayerState orig, LayerDrawable owner, Resources res) { [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
DrawableResourceLoader.java | 6 import android.graphics.drawable.LayerDrawable; 79 return new LayerDrawable(null);
|