Home
last modified time | relevance | path

Searched refs:ACTIVITY_RESUMED (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUserUsageStatsServiceTest.java19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
101 Event event = new Event(ACTIVITY_RESUMED, SystemClock.elapsedRealtime()); in testReportEvent_eventAppearsInQueries()
117 if (outEvent.mEventType == ACTIVITY_RESUMED) { in testReportEvent_eventAppearsInQueries()
156 Event event2 = new Event(ACTIVITY_RESUMED, SystemClock.elapsedRealtime()); in testQueryEarliestEventsForPackage()
166 startTime, now, TEST_PACKAGE_NAME, ACTIVITY_RESUMED); in testQueryEarliestEventsForPackage()
175 if (outEvent.mEventType == ACTIVITY_RESUMED) { in testQueryEarliestEventsForPackage()
192 Event event2 = new Event(ACTIVITY_RESUMED, SystemClock.elapsedRealtime()); in testQueryEarliestEventsForPackage_Caching()
203 startTime, now, TEST_PACKAGE_NAME, ACTIVITY_RESUMED); in testQueryEarliestEventsForPackage_Caching()
212 if (outEvent.mEventType == ACTIVITY_RESUMED) { in testQueryEarliestEventsForPackage_Caching()
221 startTime, now, TEST_PACKAGE_NAME, ACTIVITY_RESUMED); in testQueryEarliestEventsForPackage_Caching()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java21 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
143 left.mActivities.put(1, Event.ACTIVITY_RESUMED); in testParcelable()
144 left.mActivities.put(2, Event.ACTIVITY_RESUMED); in testParcelable()
160 left.update("com.test.activity1", 200000, Event.ACTIVITY_RESUMED, 1); in testActivity()
163 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); in testActivity()
195 left.update("com.test.activity1", 100000, Event.ACTIVITY_RESUMED, 1);
198 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED);
204 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED);
219 left.update("com.test.activity1", 200000, Event.ACTIVITY_RESUMED, 1);
222 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED);
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java21 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
405 if (mActivities.valueAt(i) == ACTIVITY_RESUMED) { in hasForegroundActivity()
420 if (type == ACTIVITY_RESUMED in hasVisibleActivity()
480 if (eventType != ACTIVITY_RESUMED in updateActivity()
492 case ACTIVITY_RESUMED: in updateActivity()
506 case ACTIVITY_RESUMED: in updateActivity()
587 case ACTIVITY_RESUMED: in update()
649 if (eventType == ACTIVITY_RESUMED) { in update()
DUsageEvents.java121 public static final int ACTIVITY_RESUMED = MOVE_TO_FOREGROUND; field in UsageEvents.Event
364 ACTIVITY_RESUMED,
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBackgroundInstallControlServiceTest.java410 generateUsageEvent(UsageEvents.Event.ACTIVITY_RESUMED, USER_ID_1, INSTALLER_NAME_1, 0); in testHandleUsageEvent_permissionDenied()
423 generateUsageEvent(UsageEvents.Event.ACTIVITY_RESUMED, USER_ID_1, INSTALLER_NAME_1, 0); in testHandleUsageEvent_permissionGranted()
450 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_firstActivityResumedHalfTimeFrame()
477 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_firstActivityResumedOneTimeFrame()
506 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_firstActivityResumedOneAndHalfTimeFrame()
513 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_firstActivityResumedOneAndHalfTimeFrame()
629 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_packageAddedInsideTimeFrame()
676 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_fallsBackToAppInfoTimeWhenHistoricalSessionsNotFound()
736 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_usesHistoricalSessionCreateTimeWhenHistoricalSessionsFound()
792 UsageEvents.Event.ACTIVITY_RESUMED, in testHandleUsageEvent_packageAddedOutsideTimeFrame1()
[all …]
/frameworks/base/core/java/android/service/contentcapture/
DActivityEvent.java42 public static final int TYPE_ACTIVITY_RESUMED = Event.ACTIVITY_RESUMED;
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DUsageStatsQueryHelperTest.java204 assertEquals(UsageEvents.Event.ACTIVITY_RESUMED, events.get(0).getEventType()); in testQueryAppMovingToForegroundEvents()
206 assertEquals(UsageEvents.Event.ACTIVITY_RESUMED, events.get(1).getEventType()); in testQueryAppMovingToForegroundEvents()
314 UsageEvents.Event e = createUsageEvent(UsageEvents.Event.ACTIVITY_RESUMED, timestamp); in createActivityResumedEvent()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundInstallControlService.java397 if (event.mEventType != UsageEvents.Event.ACTIVITY_RESUMED in handleUsageEvent()
416 if (event.mEventType != UsageEvents.Event.ACTIVITY_RESUMED) { in handleUsageEvent()
590 case UsageEvents.Event.ACTIVITY_RESUMED: in addEvent()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java159 case UsageEvents.Event.ACTIVITY_RESUMED: in eventToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DAppHibernationServiceTest.java19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
366 generateUsageEvent(ACTIVITY_RESUMED); in testHibernatingPackageIsUnhibernatedForUserWhenActivityResumed()
402 generateUsageEvent(ACTIVITY_RESUMED); in testHibernatingPackageIsUnhibernatedGloballyWhenActivityResumed()
/frameworks/base/services/people/java/com/android/server/people/data/
DUsageStatsQueryHelper.java139 if (e.getEventType() == UsageEvents.Event.ACTIVITY_RESUMED) { in queryAppMovingToForegroundEvents()
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/
DUsageStatsDatabasePerfTest.java95 event.mEventType = UsageEvents.Event.ACTIVITY_RESUMED; in populateIntervalStats()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1108 case Event.ACTIVITY_RESUMED: in reportEvent()
1132 case Event.ACTIVITY_RESUMED: in reportEvent()
1133 logAppUsageEventReportedAtomLocked(Event.ACTIVITY_RESUMED, uid, event.mPackage); in reportEvent()
1145 resumedData.lastEvent = Event.ACTIVITY_RESUMED; in reportEvent()
1275 case Event.ACTIVITY_RESUMED: in getAppUsageEventOccurredAtomEventType()
1648 userId, beginTime, endTime, packageName, Event.ACTIVITY_RESUMED); in calculateEstimatedPackageLaunchTime()
1670 if (event.getEventType() == Event.ACTIVITY_RESUMED) { in calculateEstimatedPackageLaunchTime()
1704 userId, beginTime, now, Event.ACTIVITY_RESUMED); in handleEstimatedLaunchTimesOnUserUnlock()
1723 if (event.getEventType() == Event.ACTIVITY_RESUMED) { in handleEstimatedLaunchTimesOnUserUnlock()
DIntervalStats.java19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
276 case ACTIVITY_RESUMED: in isStatefulEvent()
DUserUsageStatsService.java345 if (event.mEventType == Event.ACTIVITY_RESUMED) { in reportEvent()
1102 } else if (event.mEventType == Event.ACTIVITY_RESUMED in printEvent()
1343 case Event.ACTIVITY_RESUMED: in eventToString()
/frameworks/base/services/core/java/com/android/server/apphibernation/
DAppHibernationService.java960 || eventType == UsageEvents.Event.ACTIVITY_RESUMED
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java2440 case UsageEvents.Event.ACTIVITY_RESUMED:
2597 case UsageEvents.Event.ACTIVITY_RESUMED:
2898 case UsageEvents.Event.ACTIVITY_RESUMED: in handleMessage()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java1146 if ((eventType == UsageEvents.Event.ACTIVITY_RESUMED in onUsageEvent()
1287 case UsageEvents.Event.ACTIVITY_RESUMED: return REASON_SUB_USAGE_MOVE_TO_FOREGROUND; in usageEventToSubReason()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java6768 event = new UsageEvents.Event(UsageEvents.Event.ACTIVITY_RESUMED, sSystemClock.millis()); in testEJDebitTallying()
6912 event = new UsageEvents.Event(UsageEvents.Event.ACTIVITY_RESUMED, sSystemClock.millis()); in testEJDebitTallying_RewardExceedDebits_ActiveSession()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRecord.java6024 mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_RESUMED); in setState()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt9467 field public static final int ACTIVITY_RESUMED = 1; // 0x1