Package org.robolectric.res
Class ResourceIds
java.lang.Object
org.robolectric.res.ResourceIds
Utility class to that checks if a resource ID is a framework resource or application resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getEntryIdentifier
(int resId) static int
getPackageIdentifier
(int resId) static int
getTypeIdentifier
(int resId) static boolean
isFrameworkResource
(int resId) static int
makeIdentifer
(int packageIdentifier, int typeIdentifier, int entryIdenifier)
-
Constructor Details
-
ResourceIds
public ResourceIds()
-
-
Method Details
-
isFrameworkResource
public static boolean isFrameworkResource(int resId) -
getPackageIdentifier
public static int getPackageIdentifier(int resId) -
getTypeIdentifier
public static int getTypeIdentifier(int resId) -
getEntryIdentifier
public static int getEntryIdentifier(int resId) -
makeIdentifer
public static int makeIdentifer(int packageIdentifier, int typeIdentifier, int entryIdenifier)
-