@Implements(value=android.content.pm.ResolveInfo.class) public class ShadowResolveInfo extends java.lang.Object
Constructor and Description |
---|
ShadowResolveInfo() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.CharSequence |
loadLabel(android.content.pm.PackageManager mgr) |
static android.content.pm.ResolveInfo |
newResolveInfo(java.lang.String displayName,
java.lang.String packageName)
Creates a
ResolveInfo . |
static android.content.pm.ResolveInfo |
newResolveInfo(java.lang.String displayName,
java.lang.String packageName,
java.lang.String activityName)
Creates a
ResolveInfo . |
void |
setLabel(java.lang.String l)
Sets the value returned by
loadLabel(android.content.pm.PackageManager) . |
public static android.content.pm.ResolveInfo newResolveInfo(java.lang.String displayName, java.lang.String packageName)
Creates a ResolveInfo
.
displayName
- Display name.packageName
- Package name.public static android.content.pm.ResolveInfo newResolveInfo(java.lang.String displayName, java.lang.String packageName, java.lang.String activityName)
Creates a ResolveInfo
.
displayName
- Display name.packageName
- Package name.activityName
- Activity name.@Implementation protected java.lang.CharSequence loadLabel(android.content.pm.PackageManager mgr)
public void setLabel(java.lang.String l)
Sets the value returned by loadLabel(android.content.pm.PackageManager)
.
l
- Label.