public class ApplicationsState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationsState.AppEntry |
static interface |
ApplicationsState.AppFilter |
static interface |
ApplicationsState.Callbacks |
static class |
ApplicationsState.CompoundFilter |
class |
ApplicationsState.Session |
static class |
ApplicationsState.SizeInfo |
static class |
ApplicationsState.VolumeFilter |
Modifier and Type | Method and Description |
---|---|
void |
ensureIcon(ApplicationsState.AppEntry entry) |
Looper |
getBackgroundLooper() |
ApplicationsState.AppEntry |
getEntry(String packageName,
int userId) |
static ApplicationsState |
getInstance(Application app) |
boolean |
haveDisabledApps() |
void |
invalidatePackage(String pkgName,
int userId) |
ApplicationsState.Session |
newSession(ApplicationsState.Callbacks callbacks) |
static String |
normalize(String str) |
void |
removePackage(String pkgName,
int userId) |
void |
requestSize(String packageName,
int userId) |
public static final int SIZE_UNKNOWN
public static final int SIZE_INVALID
public static final Comparator<ApplicationsState.AppEntry> ALPHA_COMPARATOR
public static final Comparator<ApplicationsState.AppEntry> SIZE_COMPARATOR
public static final Comparator<ApplicationsState.AppEntry> INTERNAL_SIZE_COMPARATOR
public static final Comparator<ApplicationsState.AppEntry> EXTERNAL_SIZE_COMPARATOR
public static final ApplicationsState.AppFilter FILTER_PERSONAL
public static final ApplicationsState.AppFilter FILTER_WITHOUT_DISABLED_UNTIL_USED
public static final ApplicationsState.AppFilter FILTER_WORK
public static final ApplicationsState.AppFilter FILTER_DOWNLOADED_AND_LAUNCHER
public static final ApplicationsState.AppFilter FILTER_THIRD_PARTY
public static final ApplicationsState.AppFilter FILTER_DISABLED
public static final ApplicationsState.AppFilter FILTER_ALL_ENABLED
public static final ApplicationsState.AppFilter FILTER_EVERYTHING
public static final ApplicationsState.AppFilter FILTER_WITH_DOMAIN_URLS
public static final ApplicationsState.AppFilter FILTER_NOT_HIDE
public static ApplicationsState getInstance(Application app)
public Looper getBackgroundLooper()
public ApplicationsState.Session newSession(ApplicationsState.Callbacks callbacks)
public boolean haveDisabledApps()
public ApplicationsState.AppEntry getEntry(String packageName, int userId)
public void ensureIcon(ApplicationsState.AppEntry entry)
public void requestSize(String packageName, int userId)
public void removePackage(String pkgName, int userId)
public void invalidatePackage(String pkgName, int userId)