public class PackageUserState extends Object
Modifier and Type | Field and Description |
---|---|
int |
appLinkGeneration |
boolean |
blockUninstall |
long |
ceDataInode |
ArraySet<String> |
disabledComponents |
int |
domainVerificationStatus |
int |
enabled |
ArraySet<String> |
enabledComponents |
boolean |
hidden |
boolean |
installed |
String |
lastDisableAppCaller |
boolean |
notLaunched |
boolean |
stopped |
boolean |
suspended |
Constructor and Description |
---|
PackageUserState() |
PackageUserState(PackageUserState o) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled(ComponentInfo componentInfo,
int flags)
Test if the given component is considered enabled.
|
boolean |
isInstalled(int flags)
Test if this package is installed.
|
boolean |
isMatch(ComponentInfo componentInfo,
int flags)
Test if the given component is considered installed, enabled and a match
for the given flags.
|
public long ceDataInode
public boolean installed
public boolean stopped
public boolean notLaunched
public boolean hidden
public boolean suspended
public boolean blockUninstall
public int enabled
public String lastDisableAppCaller
public int domainVerificationStatus
public int appLinkGeneration
public PackageUserState()
public PackageUserState(PackageUserState o)
public boolean isInstalled(int flags)
public boolean isMatch(ComponentInfo componentInfo, int flags)
Expects at least one of PackageManager.MATCH_DIRECT_BOOT_AWARE
and
PackageManager.MATCH_DIRECT_BOOT_UNAWARE
are specified in flags
.
public boolean isEnabled(ComponentInfo componentInfo, int flags)