Home
last modified time | relevance | path

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

/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DResourceExtractor.java50 public Integer getResourceId(String resourceName) { in getResourceId() method in ResourceExtractor
52 return getResourceId(resourceName, true); in getResourceId()
54 return getResourceId(resourceName, false); in getResourceId()
60 return getResourceId(value, isSystem); in getLocalResourceId()
63 public Integer getResourceId(String resourceName, boolean isSystemResource) { in getResourceId() method in ResourceExtractor
DDrawableResourceLoader.java147 drawableIds[i] = resourceExtractor.getResourceId(drawableName.getNodeValue()); in getDrawableIds()
168 int resId = resourceExtractor.getResourceId(drawableName.getNodeValue()); in buildStateListDrawable()
DStringResourceLoader.java17 return getValue(resourceExtractor.getResourceId(resourceName, isSystem)); in getValue()
DDimenResourceLoader.java20 return getValue(resourceExtractor.getResourceId(resourceName, isSystem)); in getValue()
DIntegerResourceLoader.java28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem); in getValue()
DResourceLoader.java505 resourceIds.add(resourceExtractor.getResourceId("@drawable/" + tokens[0])); in listNinePatchResources()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowViewStub.java31 mInflatedId = getResourceId(inflatedId); in applyAttributes()
36 mLayoutResource = getResourceId(layoutResId); in applyAttributes()
40 private Integer getResourceId(String inflatedId) { in getResourceId() method in ShadowViewStub
42 return resourceExtractor.getResourceId(inflatedId, false); in getResourceId()
DShadowTypedArray.java58 public int getResourceId(int index, int defValue) { in getResourceId() method in ShadowTypedArray
DShadowImageView.java135 public int getResourceId() { in getResourceId() method in ShadowImageView
DShadowArrayAdapter.java46 public int getResourceId() { in getResourceId() method in ShadowArrayAdapter
DShadowResources.java59 index = resourceExtractor.getResourceId(defType + "/" + name); in getIdentifier()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DArrayAdapterTest.java70 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
78 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter2).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
86 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter3).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
DTypedArrayTest.java69 assertThat(typedArray.getResourceId(0, 2), equalTo(2)); in testResourceIdDefaultValue()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
DHasResourceMatcher.java25 actualResourceId = shadowOf(actual).getResourceId(); in matchesSafely()
DImageViewHasDrawableMatcher.java28 int actualResourceId = shadowOf(actualImageView).getResourceId(); in matchesSafely()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
DResourceExtractorTest.java29 … assertThat(resourceExtractor.getResourceId("android:id/text1"), equalTo(android.R.id.text1)); in shouldPrefixAllSystemResourcesWithAndroid()
DViewLoaderTest.java286 …assertThat(((ShadowImageView) shadowOf(mediaView.findViewById(R.id.image))).getResourceId(), equal… in testImageViewSrcIsSet()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestAttributeSet.java136 resourceId = resourceExtractor.getResourceId(value); in getAttributeResourceValue()
145 return (value == null) ? defaultValue : resourceExtractor.getResourceId(value); in getAttributeResourceValue()
/external/droiddriver/src/com/google/android/droiddriver/
DUiElement.java60 String getResourceId(); in getResourceId() method
/external/droiddriver/src/com/google/android/droiddriver/instrumentation/
DViewElement.java67 put(Attribute.RESOURCE_ID, getResourceId()); in run()
118 private String getResourceId() { in getResourceId() method in ViewElement.SnapshotViewAttributesRunnable
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DSelectPopupDialog.java102 resourceId = styledAttributes.getResourceId(isMultiChoice ? 0 : 1, 0); in getSelectDialogLayout()
DInsertionHandleController.java227 mPasteViewLayouts[i] = attrs.getResourceId(attrs.getIndex(i), 0); in PastePopupMenu()
/external/droiddriver/src/com/google/android/droiddriver/scroll/
DDynamicSentinelStrategy.java172 return uniqueStringElement.getResourceId(); in getUniqueString()
/external/droiddriver/src/com/google/android/droiddriver/base/
DBaseUiElement.java81 public String getResourceId() { in getResourceId() method in BaseUiElement
/external/droiddriver/src/com/google/android/droiddriver/finders/
DByXPath.java147 setAttribute(element, Attribute.RESOURCE_ID, uiElement.getResourceId()); in buildDomNode()