/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/ |
D | UserUsageStatsServiceTest.java | 19 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/ |
D | UsageStatsTest.java | 21 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/ |
D | UsageStats.java | 21 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()
|
D | UsageEvents.java | 121 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/ |
D | BackgroundInstallControlServiceTest.java | 410 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/ |
D | ActivityEvent.java | 42 public static final int TYPE_ACTIVITY_RESUMED = Event.ACTIVITY_RESUMED;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | UsageStatsQueryHelperTest.java | 204 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/ |
D | BackgroundInstallControlService.java | 397 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/ |
D | UsageLogActivity.java | 159 case UsageEvents.Event.ACTIVITY_RESUMED: in eventToString()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/ |
D | AppHibernationServiceTest.java | 19 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/ |
D | UsageStatsQueryHelper.java | 139 if (e.getEventType() == UsageEvents.Event.ACTIVITY_RESUMED) { in queryAppMovingToForegroundEvents()
|
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/ |
D | UsageStatsDatabasePerfTest.java | 95 event.mEventType = UsageEvents.Event.ACTIVITY_RESUMED; in populateIntervalStats()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 1108 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()
|
D | IntervalStats.java | 19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED; 276 case ACTIVITY_RESUMED: in isStatefulEvent()
|
D | UserUsageStatsService.java | 345 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/ |
D | AppHibernationService.java | 960 || eventType == UsageEvents.Event.ACTIVITY_RESUMED
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | QuotaController.java | 2440 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/ |
D | AppStandbyController.java | 1146 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/ |
D | QuotaControllerTest.java | 6768 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/ |
D | ActivityRecord.java | 6024 mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_RESUMED); in setState()
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |
/frameworks/base/core/api/ |
D | current.txt | 9467 field public static final int ACTIVITY_RESUMED = 1; // 0x1
|