UsageStatsManager

Class of android.app.usage · UsageStatsManager.java · Android's reference

public final class UsageStatsManager

Usage statistics: the app is in the active standby bucket.

Fields

public static final int INTERVAL_DAILY = 0 source
public static final int INTERVAL_WEEKLY = 1 source
public static final int INTERVAL_MONTHLY = 2 source
public static final int INTERVAL_YEARLY = 3 source
public static final int INTERVAL_BEST = 4 source
public static final int STANDBY_BUCKET_ACTIVE = 10 source
public static final int STANDBY_BUCKET_WORKING_SET = 20 source
public static final int STANDBY_BUCKET_FREQUENT = 30 source
public static final int STANDBY_BUCKET_RARE = 40 source
public static final int STANDBY_BUCKET_RESTRICTED = 45 source

Methods

public int getAppStandbyBucket() source
public boolean isAppInactive(String packageName) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.