Class of android.app.usage · UsageStatsManager.java · Android's reference
public final class UsageStatsManager
Usage statistics: the app is in the active standby bucket.
public static final int INTERVAL_DAILY = 0 sourcepublic static final int INTERVAL_WEEKLY = 1 sourcepublic static final int INTERVAL_MONTHLY = 2 sourcepublic static final int INTERVAL_YEARLY = 3 sourcepublic static final int INTERVAL_BEST = 4 sourcepublic static final int STANDBY_BUCKET_ACTIVE = 10 sourcepublic static final int STANDBY_BUCKET_WORKING_SET = 20 sourcepublic static final int STANDBY_BUCKET_FREQUENT = 30 sourcepublic static final int STANDBY_BUCKET_RARE = 40 sourcepublic static final int STANDBY_BUCKET_RESTRICTED = 45 sourcepublic int getAppStandbyBucket() sourcepublic boolean isAppInactive(String packageName) sourceMade 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.