Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
H A DAppIdleHistoryTests.java22 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
103 REASON_MAIN_USAGE); in testBuckets()
108 REASON_MAIN_USAGE); in testBuckets()
168 assertEquals(REASON_MAIN_USAGE | REASON_SUB_USAGE_MOVE_TO_FOREGROUND, in testReason()
191 assertEquals(REASON_MAIN_USAGE | REASON_SUB_USAGE_MOVE_TO_FOREGROUND, in testNullPackage()
H A DAppStandbyControllerTests.java30 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
1042 REASON_MAIN_USAGE); in testOverrides()
1096 REASON_MAIN_USAGE); in testOverrides()
1099 REASON_MAIN_USAGE | REASON_SUB_USAGE_SYSTEM_INTERACTION); in testOverrides()
1102 REASON_MAIN_USAGE | REASON_SUB_USAGE_SYNC_ADAPTER); in testOverrides()
1105 REASON_MAIN_USAGE | REASON_SUB_USAGE_EXEMPTED_SYNC_SCHEDULED_NON_DOZE); in testOverrides()
1112 REASON_MAIN_USAGE | REASON_SUB_USAGE_USER_INTERACTION); in testOverrides()
1117 REASON_MAIN_USAGE | REASON_SUB_USAGE_MOVE_TO_FOREGROUND); in testOverrides()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DBaseAppStateTimeSlotEventsTracker.java23 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
331 REASON_MAIN_USAGE, REASON_SUB_USAGE_USER_INTERACTION, true); in onUserInteractionStarted()
H A DAppBatteryTracker.java26 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
2012 REASON_MAIN_USAGE, REASON_SUB_USAGE_USER_INTERACTION, true); in onUserInteractionStarted()
H A DAppRestrictionController.java39 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
2260 curBucket, true, REASON_MAIN_USAGE, REASON_SUB_USAGE_USER_INTERACTION); in handleBackgroundRestrictionChanged()
2283 reason & REASON_SUB_MASK, REASON_MAIN_USAGE, in dispatchAutoRestrictedBucketFeatureFlagChanged()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DBackgroundRestrictionTest.java44 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
504 STANDBY_BUCKET_RESTRICTED, REASON_MAIN_USAGE); in testTogglingBackgroundRestrictInternal()
528 eq(REASON_MAIN_USAGE), in testTogglingBackgroundRestrictInternal()
584 bucket, REASON_MAIN_USAGE); in testTogglingStandbyBucket()
599 STANDBY_BUCKET_RESTRICTED, REASON_MAIN_USAGE); in testTogglingStandbyBucket()
837 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitor()
1085 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitor()
1087 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitor()
1961 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitorExemptions()
2167 eq(REASON_MAIN_USAGE), in testBgCurrentDrainMonitorExemptions()
[all …]
/aosp14/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManager.java188 public static final int REASON_MAIN_USAGE = 0x0300; field in UsageStatsManager
1258 case REASON_MAIN_USAGE: in reasonToString()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
H A DAppIdleHistory.java24 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
298 int bucketingReason = REASON_MAIN_USAGE | usageReason; in reportUsage()
596 reason = REASON_MAIN_USAGE | REASON_SUB_USAGE_USER_INTERACTION; in setIdle()
H A DAppStandbyController.java25 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
999 || oldMainReason == REASON_MAIN_USAGE in checkAndUpdateStandbyState()
1035 reason = REASON_MAIN_USAGE | REASON_SUB_USAGE_ACTIVE_TIMEOUT; in checkAndUpdateStandbyState()
1176 final int reason = REASON_MAIN_USAGE | subReason; in reportEventLocked()
1231 && (prevBucketReason & REASON_MAIN_MASK) != REASON_MAIN_USAGE; in reportEventLocked()
1544 if ((reason & REASON_MAIN_MASK) == REASON_MAIN_USAGE) { in isUserUsage()
1899 reason = REASON_MAIN_USAGE | REASON_SUB_USAGE_ACTIVE_TIMEOUT; in setAppStandbyBucket()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DAppStateTrackerTest.java19 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
915 UsageStatsManager.STANDBY_BUCKET_ACTIVE, REASON_MAIN_USAGE); in testExemptedBucket()
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt9367 Landroid/app/usage/UsageStatsManager;->REASON_MAIN_USAGE:I