Searched refs:dr (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/widget/
H A DTextView.java1161 Drawables dr = mDrawables;
1162 if (dr == null) {
1163 mDrawables = dr = new Drawables();
1165 final Rect compoundRect = dr.mCompoundRect;
1173 dr.mDrawableStart = start;
1174 dr.mDrawableSizeStart = compoundRect.width();
1175 dr.mDrawableHeightStart = compoundRect.height();
1177 dr.mDrawableSizeStart = dr.mDrawableHeightStart = 0;
1185 dr
8312 updateDrawablesLayoutDirection(Drawables dr, int layoutDirection) argument
[all...]
H A DImageView.java170 protected boolean verifyDrawable(Drawable dr) { argument
171 return mDrawable == dr || super.verifyDrawable(dr);
181 public void invalidateDrawable(Drawable dr) { argument
182 if (dr == mDrawable) {
192 super.invalidateDrawable(dr);
H A DProgressBar.java989 public void invalidateDrawable(Drawable dr) { argument
991 if (verifyDrawable(dr)) {
992 final Rect dirty = dr.getBounds();
999 super.invalidateDrawable(dr);
H A DEditor.java310 final Drawables dr = mTextView.mDrawables;
311 if (dr != null) {
312 mTextView.setCompoundDrawables(dr.mDrawableLeft, dr.mDrawableTop, icon,
313 dr.mDrawableBottom);
342 final Drawables dr = mTextView.mDrawables;
344 (dr != null ? dr.mDrawableSizeRight : 0) / 2 + (int) (25 * scale + 0.5f);
360 final Drawables dr = mTextView.mDrawables;
362 (vspace - (dr !
[all...]
H A DAbsListView.java2558 public boolean verifyDrawable(Drawable dr) { argument
2559 return mSelector == dr || super.verifyDrawable(dr);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimationDrawable.java280 Drawable dr;
282 dr = r.getDrawable(drawableRes);
292 dr = Drawable.createFromXmlInner(r, parser, attrs);
295 mAnimationState.addFrame(dr, duration);
296 if (dr != null) {
297 dr.setCallback(this);
340 public void addFrame(Drawable dr, int dur) { argument
342 // the array is accessed because super.addChild(dr) has a side effect on mDurations.
343 int pos = super.addChild(dr);
H A DInsetDrawable.java101 Drawable dr;
103 dr = r.getDrawable(drawableRes);
113 dr = Drawable.createFromXmlInner(r, parser, attrs);
116 if (dr == null) {
120 mInsetState.mDrawable = dr;
126 if (dr != null) {
127 dr.setCallback(this);
H A DLevelListDrawable.java125 Drawable dr;
127 dr = r.getDrawable(drawableRes);
137 dr = Drawable.createFromXmlInner(r, parser, attrs);
140 mLevelListState.addLevel(low, high, dr);
H A DMipmapDrawable.java159 Drawable dr;
161 dr = r.getDrawable(drawableRes);
171 dr = Drawable.createFromXmlInner(r, parser, attrs);
174 mMipmapContainerState.addDrawable(dr);
H A DScaleDrawable.java100 Drawable dr = a.getDrawable(com.android.internal.R.styleable.ScaleDrawable_drawable);
110 dr = Drawable.createFromXmlInner(r, parser, attrs);
113 if (dr == null) {
117 mScaleState.mDrawable = dr;
122 if (dr != null) {
123 dr.setCallback(this);
H A DClipDrawable.java87 Drawable dr = a.getDrawable(com.android.internal.R.styleable.ClipDrawable_drawable);
97 dr = Drawable.createFromXmlInner(r, parser, attrs);
100 if (dr == null) {
104 mClipState.mDrawable = dr;
108 dr.setCallback(this);
H A DStateListDrawable.java171 Drawable dr;
173 dr = r.getDrawable(drawableRes);
183 dr = Drawable.createFromXmlInner(r, parser, attrs);
186 mStateListState.addStateSet(states, dr);
H A DDrawableContainer.java516 public final int addChild(Drawable dr) { argument
523 dr.setVisible(false, true);
524 dr.setCallback(mOwner);
526 mDrawables[pos] = dr;
528 mChildrenChangingConfigurations |= dr.getChangingConfigurations();
627 Drawable dr = drawables[i];
628 int s = dr.getIntrinsicWidth();
630 s = dr.getIntrinsicHeight();
632 s = dr.getMinimumWidth();
634 s = dr
[all...]
H A DLayerDrawable.java154 Drawable dr;
156 dr = r.getDrawable(drawableRes);
165 dr = Drawable.createFromXmlInner(r, parser, attrs);
168 addLayer(dr, id, left, top, right, bottom);
/frameworks/base/core/java/android/content/pm/
H A DResolveInfo.java171 Drawable dr;
173 dr = pm.getDrawable(resolvePackageName, icon, null);
174 if (dr != null) {
175 return dr;
181 dr = pm.getDrawable(ci.packageName, icon, ai);
182 if (dr != null) {
183 return dr;
H A DPackageItemInfo.java140 Drawable dr = pm.getDrawable(packageName, icon, getApplicationInfo());
141 if (dr != null) {
142 return dr;
/frameworks/base/core/java/com/android/internal/app/
H A DHeavyWeightSwitcherActivity.java98 void setDrawable(int id, Drawable dr) { argument
99 if (dr != null) {
100 ((ImageView)findViewById(id)).setImageDrawable(dr);
H A DResolverActivity.java193 Drawable dr;
196 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon);
197 if (dr != null) {
198 return dr;
203 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes);
204 if (dr != null) {
205 return dr;
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java368 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
369 dr.setDither(false);
370 return dr;
387 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
388 dr.setDither(false);
389 return dr;
H A DApplicationPackageManager.java624 Drawable dr = getCachedIcon(name);
625 if (dr != null) {
626 return dr;
637 dr = r.getDrawable(resid);
649 + ": " + dr);
650 putCachedIcon(name, dr);
651 return dr;
834 private void putCachedIcon(ResourceName name, Drawable dr) { argument
836 sIconCache.put(name, new WeakReference<Drawable.ConstantState>(dr.getConstantState()));
837 if (DEBUG_ICONS) Log.v(TAG, "Added cached drawable state for " + name + ": " + dr);
[all...]
/frameworks/base/core/java/android/content/res/
H A DResources.java1908 Drawable dr = getCachedDrawable(isColorDrawable ? mColorDrawableCache : mDrawableCache, key);
1910 if (dr != null) {
1911 return dr;
1919 dr = cs.newDrawable(this);
1922 dr = new ColorDrawable(value.data);
1925 if (dr == null) {
1950 dr = Drawable.createFromXml(this, rp);
1965 dr = Drawable.createFromResourceStream(this, value, is,
1968 // System.out.println("Created stream: " + dr);
1980 if (dr !
[all...]
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java146 final float dr = pointAreaRadius / bands;
148 for (int b = 0; b <= bands; b++, r += dr) {
/frameworks/base/core/tests/coretests/src/android/os/
H A DAidlTest.java371 double[] dr = mRemote.doubleArray(d0, d1, d2);
373 assertEquals(1, dr.length);
374 assertEquals(100.1, dr[0]);
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp393 int dr = r52 - r51; local
397 differential = inRange4bitSigned(dr) && inRange4bitSigned(dg)
400 r2 = convert5To8(r51 + dr);
403 pCompressed->high |= (r51 << 27) | ((7 & dr) << 24) | (g51 << 19)
/frameworks/base/core/jni/
H A Dandroid_util_Binder.cpp1157 wp<IBinder::DeathRecipient> dr; local
1158 err = target->unlinkToDeath(origJDR, NULL, flags, &dr);
1159 if (err == NO_ERROR && dr != NULL) {
1160 sp<IBinder::DeathRecipient> sdr = dr.promote();

Completed in 252 milliseconds

12