Package org.robolectric.res
Class ResourceIds
- java.lang.Object
-
- org.robolectric.res.ResourceIds
-
public class ResourceIds extends Object
Utility class to that checks if a resource ID is a framework resource or application resource.
-
-
Constructor Summary
Constructors Constructor Description ResourceIds()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
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)
-
-