Lines Matching defs:is

11  * distributed under the License is distributed on an "AS IS" BASIS,
47 * A Drawable is a general abstraction for "something that can be drawn." Most
55 * mechanisms for its client to interact with what is being drawn:
59 * Drawable where it is drawn and how large it should be. All Drawables
65 * information about how to frame content that is placed inside of them.
66 * For example, a Drawable that is intended to be the frame for a button
71 * in which state it is to be drawn, such as "focused", "selected", etc.
75 * continuous controller that can modify the Drawable is displayed, such as
82 * simple way to do this is through the system facilities such as
104 * whose overall size is modified based on the current level.
135 * Specify a bounding rectangle for the Drawable. This is where the drawable
136 * will draw when its draw() method is called.
153 * Specify a bounding rectangle for the Drawable. This is where the drawable
154 * will draw when its draw() method is called.
163 * method is called.
174 * same values as getBounds(), but the returned object is guaranteed to not
186 * object may be the same object stored in the drawable (though this is not
187 * guaranteed), so if a persistent copy of the bounds is needed, call
247 * this call is ignored. This can improve the look when scaled or rotated,
266 * @param who The drawable that is requesting the update.
279 * @param when The time (in milliseconds) to run. The timebase is
298 * Implement this interface if you want to create an drawable that is RTL aware
340 * redrawn. Does nothing if there is no Callback attached to the
356 * scheduled. Does nothing if there is no Callback attached to the
373 * unscheduled. Does nothing if there is no Callback attached to the
427 * Clients can use this to determine whether it is necessary to calculate
447 * Drawable to change, then it is responsible for calling
452 * until a new state array is given to it, so you must not modify this
489 * is just the drawable itself. For drawables that change state like
503 * Drawable to change, then it is responsible for calling
531 * Set whether this Drawable is visible. This generally does not impact
532 * the Drawable's behavior, but is a hint that can be used by some
541 * @return boolean Returns true if the new visibility is different than
558 * Return the opacity/transparency of this Drawable. The returned value is
568 * and only shows one of them at a time, if only one of the children is
585 * either is UNKNOWN, that is returned; else, if either is TRANSLUCENT,
586 * that is returned; else, if either is TRANSPARENT, that is returned;
587 * else, OPAQUE is returned.
589 * <p>This is to help in implementing {@link #getOpacity}.
615 * Returns a Region representing the part of the Drawable that is completely
620 * Region if they want to supply this optimization information, but it is
636 * the Drawable to change (that is, it needs to be drawn), else false
637 * if it looks the same and there is no need to redraw it since its
644 * the Drawable to change (that is, it needs to be drawn), else false
645 * if it looks the same and there is no need to redraw it since its
673 * Drawable as a background, it is suggested that the View use at least this
678 * doesn't have a suggested minimum width, 0 is returned.
687 * Drawable as a background, it is suggested that the View use at least this
692 * doesn't have a suggested minimum height, 0 is returned.
703 * actually has a padding, else false. When false is returned, the padding
704 * is always set to 0.
713 * drawable is guaranteed to not share its state with any other drawable.
714 * This is especially useful when you need to modify properties of drawables
732 public static Drawable createFromStream(InputStream is, String srcName) {
733 return createFromResourceStream(null, null, is, srcName, null);
741 InputStream is, String srcName) {
742 return createFromResourceStream(res, value, is, srcName, null);
750 InputStream is, String srcName, BitmapFactory.Options opts) {
752 if (is == null) {
756 /* ugh. The decodeStream contract is that we have already allocated
764 // Special stuff for compatibility mode: if the target density is not
765 // the same as the display density, but the resource -is- the same as
773 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts);
816 * Returns null if the tag is not a valid drawable.
913 * This abstract class is used by {@link Drawable}s to store shared constant state and data
929 * is running in. Note that using this means the density-dependent
938 * density of their caller (that is depending on whether it is