Home
last modified time | relevance | path

Searched refs:lastActivity (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java117 long lastActivity; // last time there was some activity on the service. field in ServiceRecord
350 ProtoUtils.toDuration(proto, ServiceRecordProto.LAST_ACTIVITY_TIME, lastActivity, now); in dumpDebug()
477 TimeUtils.formatDuration(lastActivity, now, pw); in dump()
570 lastActivity = SystemClock.uptimeMillis(); in ServiceRecord()
DActiveServices.java801 r.lastActivity = SystemClock.uptimeMillis(); in startServiceInnerLocked()
814 r.lastActivity); in startServiceInnerLocked()
1090 stracker.setStarted(true, mAm.mProcessStats.getMemFactorLocked(), r.lastActivity); in startServiceInnerLocked()
1892 mAm.mProcessStats.getMemFactorLocked(), r.lastActivity); in setServiceForegroundInnerLocked()
2752 s.lastActivity = SystemClock.uptimeMillis(); in bindServiceLocked()
2759 s.lastActivity); in bindServiceLocked()
2817 s.lastActivity = SystemClock.uptimeMillis(); in bindServiceLocked()
3914 r.restartTime = r.lastActivity = SystemClock.uptimeMillis(); in realStartServiceLocked()
5082 info.lastActivityTime = r.lastActivity; in makeRunningServiceInfoLocked()
DOomAdjuster.java1902 || now < (s.lastActivity + mConstants.MAX_SERVICE_INACTIVITY)) { in computeOomAdjLSP()
2045 if (now >= (s.lastActivity in computeOomAdjLSP()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java564 s.lastActivity = SystemClock.uptimeMillis(); in testUpdateOomAdj_DoOne_ServiceB()
608 s.lastActivity = SystemClock.uptimeMillis(); in testUpdateOomAdj_DoOne_Service_Started()
1910 s.lastActivity = now; in testUpdateOomAdj_DoAll_ServiceB()
1913 s.lastActivity = now; in testUpdateOomAdj_DoAll_ServiceB()
1923 s.lastActivity = now; in testUpdateOomAdj_DoAll_ServiceB()
1970 s.lastActivity = now; in testUpdateOomAdj_DoAll_Service_KeepWarmingList()
1983 s2.lastActivity = now - sService.mConstants.MAX_SERVICE_INACTIVITY - 1; in testUpdateOomAdj_DoAll_Service_KeepWarmingList()
2007 s.lastActivity = now - sService.mConstants.MAX_SERVICE_INACTIVITY - 1; in testUpdateOomAdj_DoAll_Service_KeepWarmingList()
2023 s.lastActivity = now; in testUpdateOomAdj_DoAll_Service_KeepWarmingList()
2036 s.lastActivity = now - sService.mConstants.MAX_SERVICE_INACTIVITY - 1; in testUpdateOomAdj_DoAll_Service_KeepWarmingList()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java170 final Activity lastActivity = activityThread.getActivity(token); in testCustomIntentPreservedOnRelaunch() local
172 customIntent.filterEquals(lastActivity.getIntent())); in testCustomIntentPreservedOnRelaunch()