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.java853 … int resId = attributeSet.getAttributeResourceValue("android", "contentDescription", 0); in applyContentDescriptionAttribute() local
854 contentDescription = context.getResources().getString(resId); in applyContentDescriptionAttribute()
/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/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
/external/webkit/Source/WebCore/platform/android/
DPlatformBridge.h125 static String* globalLocalizedName(rawResId resId);
/external/webkit/Source/WebKit/android/jni/
DWebCoreFrameBridge.cpp123 WebCore::PlatformBridge::rawResId resId) in globalLocalizedName() argument
125 switch (resId) { in globalLocalizedName()
142 void initGlobalLocalizedName(WebCore::PlatformBridge::rawResId resId, in initGlobalLocalizedName() argument
146 switch (resId) { in initGlobalLocalizedName()
163 (*pointer) = new String(webFrame->getRawResourceFilename(resId).impl()); in initGlobalLocalizedName()