HomeSort by relevance Sort by last modified time
    Searched full:layerdrawable (Results 1 - 25 of 70) sorted by null

1 2 3

  /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);
  /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/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);
  /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;
  /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/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);
  /frameworks/base/docs/html/sdk/api_diff/21/changes/
android.graphics.drawable.LayerDrawable.html 10 android.graphics.drawable.LayerDrawable
74 Class android.graphics.drawable.<A HREF="../../../../reference/android/graphics/drawable/LayerDrawable.html" target="_top"><font size="+2"><code>LayerDrawable</code></font></A>
86 <A NAME="android.graphics.drawable.LayerDrawable.getPaddingMode_added()"></A>
87 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/graphics/drawable/LayerDrawable.html#getPaddingMode()" target="_top"><code>getPaddingMode</code></A>()</nobr>
93 <A NAME="android.graphics.drawable.LayerDrawable.setPaddingMode_added(int)"></A>
94 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/graphics/drawable/LayerDrawable.html#setPaddingMode(int)" target="_top"><code>setPaddingMode</code></A>(<code>int</code>)</nobr>
109 <A NAME="android.graphics.drawable.LayerDrawable.PADDING_MODE_NEST"></A>
110 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/graphics/drawable/LayerDrawable.html#PADDING_MODE_NEST" target="_top"><code>PADDING_MODE_NEST</code></A></nobr>
116 <A NAME="android.graphics.drawable.LayerDrawable.PADDING_MODE_STACK"></A
    [all...]
pkg_android.graphics.drawable.html 141 <A NAME="LayerDrawable"></A>
142 <nobr><A HREF="android.graphics.drawable.LayerDrawable.html">LayerDrawable</A></nobr>
  /packages/apps/Camera2/src/com/android/camera/ui/
BottomBar.java 24 import android.graphics.drawable.LayerDrawable;
78 // for Android L, these backgrounds are RippleDrawables (ISA LayerDrawable)
80 private final LayerDrawable[] mShutterButtonBackgrounds;
104 mShutterButtonBackgrounds = new LayerDrawable[len];
107 LayerDrawable shutterBackground = mShutterButtonBackgrounds[i] =
108 (LayerDrawable) context.getResources().getDrawable(drawableId).mutate();
148 LayerDrawable layerDrawable = (LayerDrawable) mCancelButton.getBackground();
149 ColorDrawable colorDrawable = (ColorDrawable) layerDrawable.getDrawable(0)
    [all...]
  /frameworks/opt/colorpicker/src/com/android/colorpicker/
ColorStateDrawable.java 22 import android.graphics.drawable.LayerDrawable;
28 public class ColorStateDrawable extends LayerDrawable {
  /frameworks/base/docs/html/sdk/api_diff/11/changes/
android.graphics.drawable.LayerDrawable.html 10 android.graphics.drawable.LayerDrawable
74 Class android.graphics.drawable.<A HREF="../../../../reference/android/graphics/drawable/LayerDrawable.html" target="_top"><font size="+2"><code>LayerDrawable</code></font></A>
86 <A NAME="android.graphics.drawable.LayerDrawable.setOpacity_added(int)"></A>
87 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/graphics/drawable/LayerDrawable.html#setOpacity(int)" target="_top"><code>setOpacity</code></A>(<code>int</code>)</nobr>
pkg_android.graphics.drawable.html 112 <A NAME="LayerDrawable"></A>
113 <nobr><A HREF="android.graphics.drawable.LayerDrawable.html">LayerDrawable</A></nobr>
  /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/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 58 public class LayerDrawable extends Drawable implements Drawable.Callback {
91 public LayerDrawable(Drawable[] layers) {
102 LayerDrawable(Drawable[] layers, LayerState state) {
119 LayerDrawable() {
123 LayerDrawable(LayerState state, Resources res, Theme theme) {
143 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.LayerDrawable);
254 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.LayerDrawable);
964 ChildDrawable(ChildDrawable orig, LayerDrawable owner, Resources res) {
1001 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);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
DrawableResourceLoaderTest.java 4 import android.graphics.drawable.LayerDrawable;
103 assertThat( drawable, instanceOf( LayerDrawable.class ) );

Completed in 4793 milliseconds

1 2 3