/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowImageView.java | 23 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 …]
|
D | ShadowDrawable.java | 67 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()
|
D | ShadowTypedValue.java | 196 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()
|
D | ShadowRemoteViews.java | 82 public void setImageViewResource(int viewId, final int resourceId) { in setImageViewResource() argument 86 ((ImageView) view).setImageResource(resourceId); in setImageViewResource()
|
D | ShadowBitmapFactory.java | 96 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/ |
D | IntegerResourceLoader.java | 13 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()
|
D | ResourceLoader.java | 425 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 …]
|
D | DrawableResourceLoader.java | 61 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()
|
D | StringResourceLoader.java | 12 public String getValue(int resourceId) { in getValue() argument 13 return stringResolver.getValue(resourceExtractor.getResourceName(resourceId)); in getValue()
|
D | DimenResourceLoader.java | 15 public float getValue(int resourceId) { in getValue() argument 16 return dimenResolver.getValue(resourceExtractor.getResourceName(resourceId)); in getValue()
|
D | RawResourceLoader.java | 18 public InputStream getValue(int resourceId) { in getValue() argument 19 String resourceFileName = resourceExtractor.getResourceName(resourceId); in getValue()
|
D | StringArrayResourceLoader.java | 24 public String[] getArrayValue(int resourceId) { in getArrayValue() argument 25 String resourceName = resourceExtractor.getResourceName(resourceId); in getArrayValue()
|
D | ResourceExtractor.java | 86 public String getResourceName(int resourceId) { in getResourceName() argument 87 return resourceIdToString.get(resourceId); in getResourceName()
|
D | PluralResourceLoader.java | 24 public String getValue(int resourceId, int quantity) { in getValue() argument 25 String name = resourceExtractor.getResourceName(resourceId); in getValue()
|
D | PreferenceLoader.java | 68 public PreferenceScreen inflatePreferences(Context context, int resourceId) { in inflatePreferences() argument 69 return inflatePreferences(context, resourceExtractor.getResourceName(resourceId)); in inflatePreferences()
|
/external/droiddriver/src/io/appium/droiddriver/finders/ |
D | By.java | 51 public static MatchFinder resourceId(int resourceId) { in resourceId() argument 53 return resourceId(targetContext.getResources().getResourceName(resourceId)); in resourceId() 60 public static MatchFinder resourceId(String resourceId) { in resourceId() method in By 61 return new MatchFinder(Predicates.attributeEquals(Attribute.RESOURCE_ID, resourceId)); in resourceId()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/ |
D | TestAttributeSet.java | 127 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/ |
D | ImageViewHasDrawableMatcher.java | 35 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/ |
D | TypedValueTest.java | 66 expectedValue.resourceId = 5; in testSetTo() 76 assertThat(expectedValue.resourceId, equalTo(actualValue.resourceId)); in testSetTo()
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
D | GifRequestBuilder.java | 308 public GifRequestBuilder<ModelType> placeholder(int resourceId) { in placeholder() argument 309 super.placeholder(resourceId); in placeholder() 326 public GifRequestBuilder<ModelType> error(int resourceId) { in error() argument 327 super.error(resourceId); in error()
|
D | DrawableRequestBuilder.java | 318 public DrawableRequestBuilder<ModelType> placeholder(int resourceId) { in placeholder() argument 319 super.placeholder(resourceId); in placeholder() 336 public DrawableRequestBuilder<ModelType> error(int resourceId) { in error() argument 337 super.error(resourceId); in error()
|
D | BitmapRequestBuilder.java | 358 public BitmapRequestBuilder<ModelType, TranscodeType> placeholder(int resourceId) { in placeholder() argument 359 super.placeholder(resourceId); in placeholder() 376 public BitmapRequestBuilder<ModelType, TranscodeType> error(int resourceId) { in error() argument 377 super.error(resourceId); in error()
|
D | GenericRequestBuilder.java | 426 int resourceId) { in placeholder() argument 427 this.placeholderId = resourceId; in placeholder() 452 int resourceId) { in error() argument 453 this.errorId = resourceId; in error()
|
/external/smali/util/src/main/java/org/jf/util/ |
D | NumberUtils.java | 68 int resourceId = value & 0xffff; in isLikelyFloat() local 69 if ((packageId == 0x7f || packageId == 1) && resourceType < 0x1f && resourceId < 0xfff) { in isLikelyFloat()
|
/external/droiddriver/manualtest/src/io/appium/droiddriver/manualtest/ |
D | ManualTest.java | 37 Finder password_edit = By.resourceId("com.google.android.gsf.login:id/password_edit"); in testSetTextForPassword()
|