Home
last modified time | relevance | path

Searched refs:resId (Results 1 – 13 of 13) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContext.java45 public String getString(int resId) { in getString() argument
46 return realContext.getResources().getString(resId); in getString()
50 public CharSequence getText(int resId) { in getText() argument
51 return realContext.getResources().getText(resId); in getText()
55 public String getString(int resId, Object... formatArgs) { in getString() argument
56 return realContext.getResources().getString(resId, formatArgs); in getString()
DShadowFragment.java114 public final String getString(int resId) { in getString() argument
118 return activity.getString(resId); in getString()
122 public final String getString(int resId, Object... formatArgs) { in getString() argument
126 return activity.getString(resId, formatArgs); in getString()
DShadowImageView.java52 public void setImageResource(int resId) { in setImageResource() argument
53 this.resourceId = resId; in setImageResource()
54 setImageDrawable(buildDrawable(resId)); in setImageResource()
DShadowStateListDrawable.java25 public void addState(int stateId, int resId) { in addState() argument
26 stateToResource.put(stateId, resId); in addState()
DShadowMediaPlayer.java30 public static MediaPlayer create(Context context, int resId) { in create() argument
32 shadowOf(mp).sourceResId = resId; in create()
DShadowToast.java30 public static Toast makeText(Context context, int resId, int duration) { in makeText() argument
31 return makeText(context, context.getResources().getString(resId), duration); in makeText()
DShadowTextView.java180 public final void setHint(int resId) { in setHint() argument
181 this.hintText = getResources().getText(resId); in setHint()
DShadowView.java870 … int resId = attributeSet.getAttributeResourceValue("android", "contentDescription", 0); in applyContentDescriptionAttribute() local
871 contentDescription = context.getResources().getString(resId); in applyContentDescriptionAttribute()
/external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
DBitmapHelper.java38 int resId = res.getIdentifier(name, null, null); in decodeDrawableResource() local
42 BitmapFactory.decodeResource(res, resId, options); in decodeDrawableResource()
47 return BitmapFactory.decodeResource(res, resId, options); in decodeDrawableResource()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DDrawableResourceLoader.java65 public Drawable getXmlDrawable(int resId) { in getXmlDrawable() argument
67 if (!isXml(resId)) { in getXmlDrawable()
71 Document xmlDoc = documents.get(resourceExtractor.getResourceName(resId)); in getXmlDrawable()
168 int resId = resourceExtractor.getResourceId(drawableName.getNodeValue()); in buildStateListDrawable() local
170 shDrawable.addState(stateId, resId); in buildStateListDrawable()
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/
DWindowAndroid.java108 public void showError(int resId) { in showError() argument
109 showError(mApplicationContext.getString(resId)); in showError()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestWindow.java116 @Override public void setFeatureDrawableResource(int featureId, int resId) { in setFeatureDrawableResource() argument
118 featureDrawableResourceResId = resId; in setFeatureDrawableResource()
DTestMenuItem.java217 public MenuItem setActionView(int resId) { in setActionView() argument