/packages/apps/Browser/src/com/android/browser/view/ |
BookmarkContainer.java | 20 import android.graphics.drawable.Drawable; 21 import android.graphics.drawable.StateListDrawable; 22 import android.graphics.drawable.TransitionDrawable; 56 public void setBackgroundDrawable(Drawable d) { 73 Drawable selector = getBackground(); 75 Drawable d = ((StateListDrawable)selector).getCurrent();
|
/packages/apps/Gallery/src/com/android/camera/ |
GalleryPickerItem.java | 24 import android.graphics.drawable.Drawable; 29 private Drawable mFrame; 31 private Drawable mOverlay; 46 mFrame = getResources().getDrawable(R.drawable.frame_gallery_preview); 51 protected boolean verifyDrawable(Drawable who) {
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
CompatTabEclair.java | 19 import android.graphics.drawable.Drawable; 29 private Drawable mIcon; 71 public Drawable getIcon() {
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
RelayController.java | 4 import android.graphics.drawable.Drawable; 20 private Drawable mOffBackground; 21 private Drawable mOnBackground; 29 .getDrawable(R.drawable.toggle_button_off_holo_dark); 30 mOnBackground = res.getDrawable(R.drawable.toggle_button_on_holo_dark);
|
JoystickView.java | 8 import android.graphics.drawable.Drawable; 14 private Drawable mJoystickBackground; 15 private Drawable mJoystickPressed; 16 private Drawable mJoystickNormal; 50 mJoystickBackground = r.getDrawable(R.drawable.joystick_background); 54 mJoystickPressed = r.getDrawable(R.drawable.joystick_pressed_holo_dark); 55 mJoystickNormal = r.getDrawable(R.drawable.joystick_normal_holo_dark); 69 Drawable indicator = fPressed ? mJoystickPressed : mJoystickNormal;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
AnimatedImageView.java | 20 import android.graphics.drawable.AnimationDrawable; 21 import android.graphics.drawable.Drawable; 41 Drawable drawable = getDrawable(); local 45 if (drawable instanceof AnimationDrawable) { 46 mAnim = (AnimationDrawable)drawable; 56 public void setImageDrawable(Drawable drawable) { 57 super.setImageDrawable(drawable); [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
StackActivity.java | 20 import android.graphics.drawable.Drawable; 39 stack.setAdapter(new ArrayAdapter<Drawable>(this, android.R.layout.simple_list_item_1, 40 android.R.id.text1, new Drawable[] { 41 getResources().getDrawable(R.drawable.sunset1), 42 getResources().getDrawable(R.drawable.sunset2),
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorPickerSwatch.java | 21 import android.graphics.drawable.ColorDrawable; 22 import android.graphics.drawable.Drawable; 23 import android.graphics.drawable.LayerDrawable; 64 Drawable[] colorDrawable = new Drawable[] 65 {getContext().getResources().getDrawable(R.drawable.color_picker_swatch)};
|
/packages/apps/Settings/src/com/android/settings/widget/ |
AnimatedImageView.java | 20 import android.graphics.drawable.AnimatedRotateDrawable; 21 import android.graphics.drawable.Drawable; 42 final Drawable drawable = getDrawable(); local 43 if (drawable instanceof AnimatedRotateDrawable) { 44 mDrawable = (AnimatedRotateDrawable) drawable; 45 // TODO: define in drawable xml once we have public attrs. 67 public void setImageDrawable(Drawable drawable) { [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
AnimatedRotateDrawable.java | 17 package android.graphics.drawable; 38 public class AnimatedRotateDrawable extends Drawable implements Drawable.Callback, Runnable, 59 final Drawable drawable = state.mDrawable; local 60 if (drawable != null) { 61 drawable.setFilterBitmap(true); 62 if (drawable instanceof BitmapDrawable) { 63 ((BitmapDrawable) drawable).setAntiAlias(true); 73 final Drawable drawable = st.mDrawable local 245 Drawable drawable = null; local [all...] |
ClipDrawable.java | 17 package android.graphics.drawable; 31 * A Drawable that clips another Drawable based on this Drawable's current 32 * level value. You can control how much the child Drawable gets clipped in width 35 * progress bars, by increasing the drawable's level with {@link 36 * android.graphics.drawable.Drawable#setLevel(int) setLevel()}. 37 * <p class="note"><strong>Note:</strong> The drawable is clipped completely and not visible when 42 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p [all...] |
LevelListDrawable.java | 17 package android.graphics.drawable; 37 * Each Drawable level is defined in a nested <code><item></code>. For example: 41 * <item android:maxLevel="0" android:drawable="@drawable/ic_wifi_signal_1" /> 42 * <item android:maxLevel="1" android:drawable="@drawable/ic_wifi_signal_2" /> 43 * <item android:maxLevel="2" android:drawable="@drawable/ic_wifi_signal_3" /> 44 * <item android:maxLevel="3" android:drawable="@drawable/ic_wifi_signal_4" / [all...] |
Drawable.java | 17 package android.graphics.drawable; 49 * A Drawable is a general abstraction for "something that can be drawn." Most 50 * often you will deal with Drawable as the type of resource retrieved for 51 * drawing things to the screen; the Drawable class provides a generic API for 53 * Unlike a {@link android.view.View}, a Drawable does not have any facility to 56 * <p>In addition to simple drawing, Drawable provides a number of generic 61 * Drawable where it is drawn and how large it should be. All Drawables 68 * For example, a Drawable that is intended to be the frame for a button 72 * <li> The {@link #setState} method allows the client to tell the Drawable 77 * continuous controller that can modify the Drawable is displayed, such a 877 Drawable drawable = createFromXmlInner(r, parser, attrs); local 893 Drawable drawable; local [all...] |
RotateDrawable.java | 17 package android.graphics.drawable; 34 * <p>A Drawable that can rotate another Drawable based on the current level 49 public class RotateDrawable extends Drawable implements Drawable.Callback { 56 * <p>Create a new rotating drawable with an empty state.</p> 63 * <p>Create a new rotating drawable with the specified state. A copy of 65 * drawable.</p> 67 * @param rotateState the state for this drawable 94 * Returns the drawable rotated by this RotateDrawable 245 Drawable drawable = null; local [all...] |
ScaleDrawable.java | 17 package android.graphics.drawable; 31 * A Drawable that changes the size of another Drawable based on its current 32 * level value. You can control how much the child Drawable changes in width 39 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p> 46 public class ScaleDrawable extends Drawable implements Drawable.Callback { 55 public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTextView.java | 5 import android.graphics.drawable.Drawable; 244 public void setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top, 245 Drawable right, Drawable bottom) { 250 public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) [all...] |
/frameworks/support/v4/honeycomb/android/support/v4/app/ |
ActionBarDrawerToggleHoneycomb.java | 24 import android.graphics.drawable.Drawable; 47 Drawable drawable, int contentDescRes) { 55 sii.setHomeAsUpIndicator.invoke(actionBar, drawable); 61 sii.upIndicatorView.setImageDrawable(drawable); 85 public static Drawable getThemeUpIndicator(Activity activity) { 87 final Drawable result = a.getDrawable(0); 100 Drawable.class);
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
AttachmentGridDrawable.java | 8 import android.graphics.drawable.Drawable; 31 private final Drawable mPlaceholder; 32 private final Drawable mProgress; 38 public AttachmentGridDrawable(Resources res, Drawable placeholder, Drawable progress) { 95 // transform item-level coordinates into local drawable coordinate space
|
CompositeDrawable.java | 7 import android.graphics.drawable.Drawable; 15 * A drawable that contains up to 4 other smaller drawables in a regular grid. This class attempts 18 * value, then populate the entries with {@link #getOrCreateDrawable(int)} and a drawable subclass 21 public abstract class CompositeDrawable<T extends Drawable> extends Drawable 22 implements Drawable.Callback { 58 Trace.beginSection("create division drawable"); 144 public void invalidateDrawable(Drawable who) { 149 public void scheduleDrawable(Drawable who, Runnable what, long when) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
FolderPropertiesTests.java | 25 import android.graphics.drawable.Drawable; 124 Drawable inbox = fp.getIcon(Mailbox.TYPE_INBOX, -1, 0); 125 Drawable mail = fp.getIcon(Mailbox.TYPE_MAIL, -1, 0); 126 Drawable parent = fp.getIcon(Mailbox.TYPE_PARENT, -1, 0); 127 Drawable drafts = fp.getIcon(Mailbox.TYPE_DRAFTS, -1, 0); 128 Drawable outbox = fp.getIcon(Mailbox.TYPE_OUTBOX, -1, 0); 129 Drawable sent = fp.getIcon(Mailbox.TYPE_SENT, -1, 0); 130 Drawable trash = fp.getIcon(Mailbox.TYPE_TRASH, -1, 0); 131 Drawable junk = fp.getIcon(Mailbox.TYPE_JUNK, -1, 0) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ColorFilters.java | 24 import android.graphics.drawable.*; 39 private Drawable mDrawable; 40 private Drawable[] mDrawables; 48 private static void addToTheRight(Drawable curr, Drawable prev) { 64 mDrawable = context.getResources().getDrawable(R.drawable.btn_default_normal); 69 R.drawable.btn_circle_normal, 70 R.drawable.btn_check_off, 71 R.drawable.btn_check_on 73 mDrawables = new Drawable[resIDs.length] [all...] |
/frameworks/base/core/java/android/content/pm/ |
PackageItemInfo.java | 21 import android.graphics.drawable.Drawable; 64 * A drawable resource identifier (in the package's resources) of this 70 * A drawable resource identifier (in the package's resources) of this 134 * @return Returns a Drawable containing the item's icon. If the 138 public Drawable loadIcon(PackageManager pm) { 140 Drawable dr = pm.getDrawable(packageName, icon, getApplicationInfo()); 154 * @return Returns a Drawable containing the item's default icon 159 protected Drawable loadDefaultIcon(PackageManager pm) { 171 * @return Returns a Drawable containing the item's logo. If the ite [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SoftKeyToggle.java | 19 import android.graphics.drawable.Drawable; 94 public Drawable getKeyIcon() { 101 public Drawable getKeyIconPopup() { 128 public Drawable getKeyBg() { 137 public Drawable getKeyHlBg() { 260 public Drawable mKeyIcon; 261 public Drawable mKeyIconPopup;
|
/frameworks/base/core/java/android/widget/ |
CompoundButton.java | 24 import android.graphics.drawable.Drawable; 51 private Drawable mButtonDrawable; 74 Drawable d = a.getDrawable(com.android.internal.R.styleable.CompoundButton_button); 173 * Set the background to a given Drawable, identified by its resource id. 175 * @param resid the resource id of the drawable to use as the background 184 Drawable d = null; 192 * Set the background to a given Drawable 194 * @param d The Drawable to use as the background 196 public void setButtonDrawable(Drawable d) [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
AnimationUtils.java | 23 import android.graphics.drawable.BitmapDrawable; 24 import android.graphics.drawable.Drawable; 25 import android.graphics.drawable.LayerDrawable; 150 * Drawable achieving cross-fade, just like TransitionDrawable. We can have 156 public CrossFadeDrawable(Drawable[] layers) { 180 Drawable first = getDrawable(0); 181 Drawable second = getDrawable(1); 197 private static CrossFadeDrawable newCrossFadeDrawable(Drawable first, Drawable second) [all...] |