Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 – 25 of 32) sorted by relevance

12

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowImageView.java23 private int resourceId; field in ShadowImageView
53 this.resourceId = resId; in setImageResource()
63 protected Drawable buildDrawable(int resourceId) { in buildDrawable() argument
64 if (isDrawableXml(resourceId)) { in buildDrawable()
66 int[] resourceIds = resourceLoader.getDrawableIds(resourceId); in buildDrawable()
72 if (resourceLoader.isAnimatableXml(resourceId)) { in buildDrawable()
80 shadowOf(layerDrawable).setLoadedFromResourceId(resourceId); in buildDrawable()
85 getResources(), resourceId)); in buildDrawable()
95 private boolean isDrawableXml(int resourceId) { in isDrawableXml() argument
97 .isDrawableXml(resourceId); in isDrawableXml()
[all …]
DShadowDrawable.java67 public static Drawable createFromResourceId(int resourceId) { in createFromResourceId() argument
69 shadowOf(bitmap).setLoadedFromResourceId(resourceId); in createFromResourceId()
197 public void setLoadedFromResourceId(int resourceId) { in setLoadedFromResourceId() argument
198 loadedFromResourceId = resourceId; in setLoadedFromResourceId()
DShadowTypedValue.java196 typedValue.resourceId = other.resourceId; in setTo()
212 if (typedValue.resourceId != 0) { in toString()
213 sb.append(" r=0x").append(Integer.toHexString(typedValue.resourceId)); in toString()
DShadowRemoteViews.java82 public void setImageViewResource(int viewId, final int resourceId) { in setImageViewResource() argument
86 ((ImageView) view).setImageResource(resourceId); in setImageViewResource()
DShadowBitmapFactory.java96 public static void provideWidthAndHeightHints(int resourceId, int width, int height) { in provideWidthAndHeightHints() argument
97 widthAndHeightMap.put("resource:" + getResourceName(resourceId), new Point(width, height)); in provideWidthAndHeightHints()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DIntegerResourceLoader.java13 public int getValue( int resourceId ) { in getValue() argument
14 … String resourceIdDebugString = String.valueOf(resourceId) + " (" + "0x" + Integer.toHexString(res… in getValue()
15 String resourceName = resourceExtractor.getResourceName(resourceId); in getValue()
17 throw new IllegalArgumentException("No such resource: " + resourceId); in getValue()
28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem); in getValue() local
32 return getValue(resourceId); in getValue()
DResourceLoader.java425 public boolean isDrawableXml( int resourceId ) { in isDrawableXml() argument
427 return drawableResourceLoader.isXml( resourceId ); in isDrawableXml()
430 public boolean isAnimatableXml( int resourceId ) { in isAnimatableXml() argument
432 return drawableResourceLoader.isAnimationDrawable( resourceId ); in isAnimatableXml()
435 public int[] getDrawableIds( int resourceId ) { in getDrawableIds() argument
437 return drawableResourceLoader.getDrawableIds( resourceId ); in getDrawableIds()
440 public Drawable getXmlDrawable( int resourceId ) { in getXmlDrawable() argument
441 return drawableResourceLoader.getXmlDrawable( resourceId ); in getXmlDrawable()
444 public Drawable getAnimDrawable( int resourceId ) { in getAnimDrawable() argument
445 return getInnerRClassDrawable( resourceId, "$anim", AnimationDrawable.class ); in getAnimDrawable()
[all …]
DDrawableResourceLoader.java61 public boolean isXml(int resourceId) { in isXml() argument
62 return documents.containsKey(resourceExtractor.getResourceName(resourceId)); in isXml()
133 protected int[] getDrawableIds(int resourceId) { in getDrawableIds() argument
134 String resourceName = resourceExtractor.getResourceName(resourceId); in getDrawableIds()
155 public boolean isAnimationDrawable(int resourceId) { in isAnimationDrawable() argument
156 Document document = documents.get(resourceExtractor.getResourceName(resourceId)); in isAnimationDrawable()
DStringResourceLoader.java12 public String getValue(int resourceId) { in getValue() argument
13 return stringResolver.getValue(resourceExtractor.getResourceName(resourceId)); in getValue()
DDimenResourceLoader.java14 public float getValue(int resourceId) { in getValue() argument
15 return dimenResolver.getValue(resourceExtractor.getResourceName(resourceId)); in getValue()
DRawResourceLoader.java18 public InputStream getValue(int resourceId) { in getValue() argument
19 String resourceFileName = resourceExtractor.getResourceName(resourceId); in getValue()
DStringArrayResourceLoader.java24 public String[] getArrayValue(int resourceId) { in getArrayValue() argument
25 String resourceName = resourceExtractor.getResourceName(resourceId); in getArrayValue()
DResourceExtractor.java86 public String getResourceName(int resourceId) { in getResourceName() argument
87 return resourceIdToString.get(resourceId); in getResourceName()
DPluralResourceLoader.java24 public String getValue(int resourceId, int quantity) { in getValue() argument
25 String name = resourceExtractor.getResourceName(resourceId); in getValue()
DPreferenceLoader.java68 public PreferenceScreen inflatePreferences(Context context, int resourceId) { in inflatePreferences() argument
69 return inflatePreferences(context, resourceExtractor.getResourceName(resourceId)); in inflatePreferences()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DCanvasReplayStateView.js90 selectResource: function(resourceId) argument
92 if (resourceId === this._resourceSelector.selectedOption().value)
96 if (resourceId === option.value) {
221 var resourceId = argument.resourceId;
222 if (!resourceId || this._resourceIdToDescription[resourceId])
224 this._resourceIdToDescription[resourceId] = argument.description;
255 …(argument.description, WebInspector.UIString("Show state of this resource."), argument.resourceId);
405 _resourceKindId: function(resourceId) argument
407 var description = (resourceId && this._resourceIdToDescription[resourceId]) || "";
DCanvasProfileView.js350 var contextId = contexts[i].resourceId || "";
1142 if (callArgument.resourceId) {
1144 element.__resourceId = callArgument.resourceId;
1221 getResourceState: function(resourceId, userCallback) argument
1223 resourceId = resourceId || this._defaultResourceId;
1224 if (!resourceId) {
1228 var effectiveResourceId = /** @type {!CanvasAgent.ResourceId} */ (resourceId);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestAttributeSet.java127 public boolean getAttributeBooleanValue(int resourceId, boolean defaultValue) { in getAttributeBooleanValue() argument
134 Integer resourceId = defaultValue; in getAttributeResourceValue() local
136 resourceId = resourceExtractor.getResourceId(value); in getAttributeResourceValue()
138 return resourceId == null ? defaultValue : resourceId; in getAttributeResourceValue()
142 public int getAttributeResourceValue(int resourceId, int defaultValue) { in getAttributeResourceValue() argument
143 String attrName = resourceExtractor.getResourceName(resourceId); in getAttributeResourceValue()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
DImageViewHasDrawableMatcher.java35 private String nameOrUnset(ResourceLoader resourceLoader, int resourceId) { in nameOrUnset() argument
36 return resourceId == 0 ? "unset" : resourceLoader.getNameForId(resourceId); in nameOrUnset()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DTypedValueTest.java66 expectedValue.resourceId = 5; in testSetTo()
76 assertThat(expectedValue.resourceId, equalTo(actualValue.resourceId)); in testSetTo()
/external/chromium_org/chrome/browser/ui/cocoa/apps/
Dapp_shim_menu_controller_mac.mm78 resourceId:(int)resourceId
96 resourceId:(int)resourceId
109 resourceId_ = resourceId;
177 resourceId:IDS_ABOUT_MAC
184 resourceId:IDS_HIDE_APP_MAC
191 resourceId:IDS_EXIT_MAC
198 resourceId:0
208 resourceId:0
215 resourceId:0
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DSelectPopupDialog.java109 int resourceId; in getSelectDialogLayout() local
112 resourceId = styledAttributes.getResourceId(isMultiChoice ? 0 : 1, 0); in getSelectDialogLayout()
114 return resourceId; in getSelectDialogLayout()
/external/droiddriver/src/com/google/android/droiddriver/finders/
DBy.java102 public static ByAttribute<String> resourceId(String resourceId) { in resourceId() method in By
103 return attribute(Attribute.RESOURCE_ID, OBJECT_EQUALS, resourceId); in resourceId()
/external/chromium/chrome/browser/ui/cocoa/translate/
Dbefore_translate_infobar_controller.mm17 int resourceId, const string16& param) {
18 string16 title = l10n_util::GetStringFUTF16(resourceId, param);
/external/chromium_org/chrome/browser/ui/cocoa/infobars/
Dbefore_translate_infobar_controller.mm18 int resourceId, const base::string16& param) {
19 base::string16 title = l10n_util::GetStringFUTF16(resourceId, param);

12