Home
last modified time | relevance | path

Searched refs:REASON_MAIN_USAGE (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java22 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
103 REASON_MAIN_USAGE); in testBuckets()
108 REASON_MAIN_USAGE); in testBuckets()
170 assertEquals(REASON_MAIN_USAGE | REASON_SUB_USAGE_MOVE_TO_FOREGROUND, in testReason()
193 assertEquals(REASON_MAIN_USAGE | REASON_SUB_USAGE_MOVE_TO_FOREGROUND, in testNullPackage()
DAppStandbyControllerTests.java30 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
1072 REASON_MAIN_USAGE); in testOverrides()
1126 REASON_MAIN_USAGE); in testOverrides()
1129 REASON_MAIN_USAGE | REASON_SUB_USAGE_SYSTEM_INTERACTION); in testOverrides()
1132 REASON_MAIN_USAGE | REASON_SUB_USAGE_SYNC_ADAPTER); in testOverrides()
1135 REASON_MAIN_USAGE | REASON_SUB_USAGE_EXEMPTED_SYNC_SCHEDULED_NON_DOZE); in testOverrides()
1142 REASON_MAIN_USAGE | REASON_SUB_USAGE_USER_INTERACTION); in testOverrides()
1147 REASON_MAIN_USAGE | REASON_SUB_USAGE_MOVE_TO_FOREGROUND); in testOverrides()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTimeSlotEventsTracker.java23 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
331 REASON_MAIN_USAGE, REASON_SUB_USAGE_USER_INTERACTION, true); in onUserInteractionStarted()
DAppBatteryTracker.java26 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
2051 REASON_MAIN_USAGE, REASON_SUB_USAGE_USER_INTERACTION, true); in onUserInteractionStarted()
DAppRestrictionController.java47 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
2291 curBucket, true, REASON_MAIN_USAGE, REASON_SUB_USAGE_USER_INTERACTION); in handleBackgroundRestrictionChanged()
2314 reason & REASON_SUB_MASK, REASON_MAIN_USAGE, in dispatchAutoRestrictedBucketFeatureFlagChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java44 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
503 STANDBY_BUCKET_RESTRICTED, REASON_MAIN_USAGE); in testTogglingBackgroundRestrictInternal()
527 eq(REASON_MAIN_USAGE), in testTogglingBackgroundRestrictInternal()
583 bucket, REASON_MAIN_USAGE); in testTogglingStandbyBucket()
598 STANDBY_BUCKET_RESTRICTED, REASON_MAIN_USAGE); in testTogglingStandbyBucket()
836 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitor()
1084 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitor()
1086 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitor()
1960 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitorExemptions()
2166 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitorExemptions()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java191 public static final int REASON_MAIN_USAGE = 0x0300; field in UsageStatsManager
1336 case REASON_MAIN_USAGE: in reasonToString()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java24 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
299 int bucketingReason = REASON_MAIN_USAGE | usageReason; in reportUsage()
607 reason = REASON_MAIN_USAGE | REASON_SUB_USAGE_USER_INTERACTION; in setIdle()
DAppStandbyController.java25 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
1005 || oldMainReason == REASON_MAIN_USAGE in checkAndUpdateStandbyState()
1041 reason = REASON_MAIN_USAGE | REASON_SUB_USAGE_ACTIVE_TIMEOUT; in checkAndUpdateStandbyState()
1182 final int reason = REASON_MAIN_USAGE | subReason; in reportEventLocked()
1237 && (prevBucketReason & REASON_MAIN_MASK) != REASON_MAIN_USAGE; in reportEventLocked()
1550 if ((reason & REASON_MAIN_MASK) == REASON_MAIN_USAGE) { in isUserUsage()
1905 reason = REASON_MAIN_USAGE | REASON_SUB_USAGE_ACTIVE_TIMEOUT; in setAppStandbyBucket()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java19 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
917 UsageStatsManager.STANDBY_BUCKET_ACTIVE, REASON_MAIN_USAGE); in testExemptedBucket()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt9367 Landroid/app/usage/UsageStatsManager;->REASON_MAIN_USAGE:I