/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
DefaultSuggestionView.java | 25 import android.graphics.drawable.Drawable; 83 Drawable icon1 = getSuggestionDrawableIcon1(suggestion); 84 Drawable icon2 = getSuggestionDrawableIcon2(suggestion); 104 public Drawable getSuggestionDrawableIcon1(SuggestionCursor suggestion) { 107 Drawable icon1 = source.getIcon(icon1Id); 111 public Drawable getSuggestionDrawableIcon2(SuggestionCursor suggestion) { 156 private void setIcon1(Drawable icon) { 163 private void setIcon2(Drawable icon) { 168 * Sets the drawable in an image view, makes sure the view is only visible if ther [all...] |
CorpusView.java | 22 import android.graphics.drawable.Drawable; 56 public void setIcon(Drawable icon) {
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
Drawable.java | 17 package android.graphics.drawable; 36 * A Drawable is a general abstraction for "something that can be drawn." Most 37 * often you will deal with Drawable as the type of resource retrieved for 38 * drawing things to the screen; the Drawable class provides a generic API for 40 * Unlike a {@link android.view.View}, a Drawable does not have any facility to 43 * <p>In addition to simple drawing, Drawable provides a number of generic 48 * Drawable where it is drawn and how large it should be. All Drawables 55 * For example, a Drawable that is intended to be the frame for a button 59 * <li> The {@link #setState} method allows the client to tell the Drawable 64 * continuous controller that can modify the Drawable is displayed, such a 729 Drawable drawable = createFromXmlInner(r, parser, attrs); local 745 Drawable drawable; local [all...] |
InsetDrawable.java | 17 package android.graphics.drawable; 31 * A Drawable that insets another Drawable by a specified distance. 44 public class InsetDrawable extends Drawable implements Drawable.Callback 55 public InsetDrawable(Drawable drawable, int inset) { 56 this(drawable, inset, inset, inset, inset); 59 public InsetDrawable(Drawable drawable, int insetLeft, int insetTop [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 44 public class ScaleDrawable extends Drawable implements Drawable.Callback { 53 public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) { 56 mScaleState.mDrawable = drawable; 61 if (drawable != null) [all...] |
DrawableContainer.java | 17 package android.graphics.drawable; 22 public class DrawableContainer extends Drawable implements Drawable.Callback { 36 private Drawable mCurrDrawable; 43 // overrides from Drawable 163 public void invalidateDrawable(Drawable who) 170 public void scheduleDrawable(Drawable who, Runnable what, long when) 177 public void unscheduleDrawable(Drawable who, Runnable what) 205 Drawable d = mDrawableContainerState.mDrawables[idx]; 232 public Drawable getCurrent() [all...] |
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); 72 final Drawable drawable = st.mDrawable local 233 Drawable drawable = null; local [all...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
IconTitleDrawable.java | 23 import android.graphics.drawable.Drawable; 29 public final class IconTitleDrawable extends Drawable { 32 private final Drawable mIcon; 37 public IconTitleDrawable(String title, Drawable icon, Config config) { 62 Drawable icon = mIcon; 97 Drawable icon = mIcon;
|
/frameworks/base/core/java/android/widget/ |
ScrollBarDrawable.java | 23 import android.graphics.drawable.Drawable; 31 public class ScrollBarDrawable extends Drawable { 32 private Drawable mVerticalTrack; 33 private Drawable mHorizontalTrack; 34 private Drawable mVerticalThumb; 35 private Drawable mHorizontalThumb; 149 Drawable track; 177 final Drawable thumb = mVerticalThumb; 181 final Drawable thumb = mHorizontalThumb [all...] |
ImageSwitcher.java | 22 import android.graphics.drawable.Drawable; 52 public void setImageDrawable(Drawable drawable) 55 image.setImageDrawable(drawable);
|
AbsSeekBar.java | 23 import android.graphics.drawable.Drawable; 29 private Drawable mThumb; 65 Drawable thumb = a.getDrawable(com.android.internal.R.styleable.SeekBar_thumb); 82 * If the thumb is a valid drawable (i.e. not null), half its width will be 85 * @param thumb Drawable representing the thumb 87 public void setThumb(Drawable thumb) { 91 // Assuming the thumb drawable is symmetric, set the thumb offset 152 protected boolean verifyDrawable(Drawable who) { 160 Drawable progressDrawable = getProgressDrawable() [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
LiveFolderAdapter.java | 31 import android.graphics.drawable.Drawable; 45 private final HashMap<String, Drawable> mIcons = new HashMap<String, Drawable>(); 46 private final HashMap<Long, SoftReference<Drawable>> mCustomIcons = 47 new HashMap<Long, SoftReference<Drawable>>(); 95 final Drawable icon = loadIcon(context, cursor, holder); 130 private Drawable loadIcon(Context context, Cursor cursor, ViewHolder holder) { 131 Drawable icon = null; 139 final SoftReference<Drawable> reference = mCustomIcons.get(holder.id) 183 final Drawable drawable = icon.get(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
SearchEditText.java | 20 import android.graphics.drawable.Drawable; 33 private Drawable mMagnifyingGlass;
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
MockIconLoader.java | 21 import android.graphics.drawable.Drawable; 37 public Drawable getIcon(String drawableId) { 41 return mContext.getResources().getDrawable(android.R.drawable.star_on); 51 .appendEncodedPath(String.valueOf(android.R.drawable.star_on))
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
CandidateViewButton.java | 22 import android.graphics.drawable.Drawable; 50 Drawable d = getBackground();
|
/frameworks/base/core/java/android/text/style/ |
DrawableMarginSpan.java | 19 import android.graphics.drawable.Drawable; 29 public DrawableMarginSpan(Drawable b) { 33 public DrawableMarginSpan(Drawable b, int pad) { 77 private Drawable mDrawable;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
DrawableBgMinSize.java | 22 import android.graphics.drawable.Drawable; 34 * Views should obey their background {@link Drawable}'s minimum size 35 * requirements ({@link Drawable#getMinimumHeight()} and 36 * {@link Drawable#getMinimumWidth()}) when possible. 38 * This Activity exercises a few Views with background {@link Drawable}s. 42 private Drawable mBackgroundDrawable; 43 private Drawable mBigBackgroundDrawable; 58 mBackgroundDrawable = getResources().getDrawable(R.drawable.drawable_background); 59 mBigBackgroundDrawable = getResources().getDrawable(R.drawable.big_drawable_background) [all...] |
/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) {
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerGaugePreference.java | 23 import android.graphics.drawable.Drawable; 39 private Drawable mIcon; 45 public PowerGaugePreference(Context context, Drawable icon, BatterySipper info) { 50 mGauge.bar = context.getResources().getDrawable(R.drawable.app_gauge); 71 void setIcon(Drawable icon) { 82 mIcon = getContext().getResources().getDrawable(android.R.drawable.sym_def_app_icon);
|
/cts/tests/tests/text/src/android/text/style/cts/ |
ImageSpanTest.java | 29 import android.graphics.drawable.BitmapDrawable; 30 import android.graphics.drawable.Drawable; 56 args = {android.graphics.drawable.Drawable.class} 62 args = {android.graphics.drawable.Drawable.class, int.class} 68 args = {android.graphics.drawable.Drawable.class, java.lang.String.class} 74 args = {android.graphics.drawable.Drawable.class, java.lang.String.class, int.class 169 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass); local [all...] |
/frameworks/base/core/java/android/view/ |
MenuItem.java | 21 import android.graphics.drawable.Drawable; 140 * @param icon The new icon (as a Drawable) to be displayed. 143 public MenuItem setIcon(Drawable icon); 151 * lazily get the Drawable when this item is being shown. 159 * Returns the icon for this item as a Drawable (getting it from resources if it hasn't been 162 * @return The icon as a Drawable. 164 public Drawable getIcon();
|
/frameworks/base/services/java/com/android/server/status/ |
AnimatedImageView.java | 20 import android.graphics.drawable.AnimationDrawable; 21 import android.graphics.drawable.Drawable; 40 Drawable drawable = getDrawable(); local 44 if (drawable instanceof AnimationDrawable) { 45 mAnim = (AnimationDrawable)drawable; 55 public void setImageDrawable(Drawable drawable) { 56 super.setImageDrawable(drawable); [all...] |
/packages/apps/IM/src/com/android/im/app/ |
ChatBackgroundMaker.java | 26 import android.graphics.drawable.Drawable; 30 private final Drawable mIncomingBg; 31 private final Drawable mDivider; 36 mIncomingBg = res.getDrawable(R.drawable.textfield_im_received); 37 mDivider = res.getDrawable(R.drawable.text_divider_horizontal);
|
/frameworks/base/core/java/android/app/ |
SuggestionsAdapter.java | 31 import android.graphics.drawable.ColorDrawable; 32 import android.graphics.drawable.Drawable; 33 import android.graphics.drawable.StateListDrawable; 70 private WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 71 private SparseArray<Drawable.ConstantState> mBackgroundsCache; 98 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { 112 mBackgroundsCache = new SparseArray<Drawable.ConstantState>(); 290 Drawable background = getItemBackground(backgroundColor); 346 * Gets a drawable with no color when selected or pressed, and the given color whe 388 Drawable drawable = getDrawableFromResourceValue(value); local 516 Drawable drawable = checkIconCache(drawableUri); local 527 Drawable drawable = checkIconCache(drawableId); local 609 Drawable drawable = getActivityIconWithCache(component); local 619 Drawable drawable = getActivityIconWithCache(mSearchable.getSearchActivity()); local 645 Drawable drawable = getActivityIcon(component); local 671 Drawable drawable = pm.getDrawable(pkg, iconId, activityInfo.applicationInfo); local [all...] |
/packages/apps/Phone/src/com/android/phone/ |
InCallMenuItemView.java | 21 import android.graphics.drawable.Drawable; 44 private Drawable mIndicatorDrawable; 45 private Drawable mIcon; 105 public void setIcon(Drawable icon) { 119 Drawable iconDrawable = getResources().getDrawable(resId); 128 int resId = mIndicatorState ? android.R.drawable.button_onoff_indicator_on 129 : android.R.drawable.button_onoff_indicator_off;
|