/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | CacheOomRankerTest.java | 172 ProcessList list = new ProcessList(); in reRankLruCachedApps_lruImpactsOrdering() 174 ProcessRecord lastUsed40MinutesAgo = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_lruImpactsOrdering() 177 ProcessRecord lastUsed42MinutesAgo = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_lruImpactsOrdering() 180 ProcessRecord lastUsed60MinutesAgo = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_lruImpactsOrdering() 183 ProcessRecord lastUsed15MinutesAgo = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_lruImpactsOrdering() 186 ProcessRecord lastUsed17MinutesAgo = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_lruImpactsOrdering() 190 ProcessRecord lastUsed30MinutesAgo = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_lruImpactsOrdering() 209 ProcessList list = new ProcessList(); in reRankLruCachedApps_rssImpactsOrdering() 211 ProcessRecord rss10k = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_rssImpactsOrdering() 214 ProcessRecord rss20k = nextProcessRecord(ProcessList.UNKNOWN_ADJ, in reRankLruCachedApps_rssImpactsOrdering() [all …]
|
D | AppChildProcessTest.java | 77 private ProcessList mProcessList; 98 final ProcessList pList = new ProcessList(); in setUp() 260 public ProcessList getProcessList(ActivityManagerService service) { in getProcessList()
|
D | MockingOomAdjusterTests.java | 41 import static com.android.server.am.ProcessList.BACKUP_APP_ADJ; 42 import static com.android.server.am.ProcessList.CACHED_APP_MAX_ADJ; 43 import static com.android.server.am.ProcessList.CACHED_APP_MIN_ADJ; 44 import static com.android.server.am.ProcessList.FOREGROUND_APP_ADJ; 45 import static com.android.server.am.ProcessList.HEAVY_WEIGHT_APP_ADJ; 46 import static com.android.server.am.ProcessList.HOME_APP_ADJ; 47 import static com.android.server.am.ProcessList.PERCEPTIBLE_APP_ADJ; 48 import static com.android.server.am.ProcessList.PERCEPTIBLE_LOW_APP_ADJ; 49 import static com.android.server.am.ProcessList.PERCEPTIBLE_MEDIUM_APP_ADJ; 50 import static com.android.server.am.ProcessList.PERCEPTIBLE_RECENT_FOREGROUND_APP_ADJ; [all …]
|
D | ApplicationExitInfoTest.java | 107 private ProcessList mProcessList; 124 mProcessList = spy(new ProcessList()); in setUp() 125 ProcessList.sKillHandler = null; in setUp() 136 setFieldValue(ProcessList.class, mProcessList, "mAppExitInfoTracker", mAppExitInfoTracker); in setUp() 153 ProcessList.sKillHandler = null; in tearDown() 1082 public ProcessList getProcessList(ActivityManagerService service) { in getProcessList()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjuster.java | 72 import static com.android.server.am.ProcessList.TAG_PROCESS_OBSERVERS; 232 private final ProcessList mProcessList; 371 OomAdjuster(ActivityManagerService service, ProcessList processList, ActiveUids activeUids) { in OomAdjuster() 384 OomAdjuster(ActivityManagerService service, ProcessList processList, ActiveUids activeUids, in OomAdjuster() 420 mNumSlots = ((ProcessList.CACHED_APP_MAX_ADJ - ProcessList.CACHED_APP_MIN_ADJ + 1) >> 1) in OomAdjuster() 421 / ProcessList.CACHED_APP_IMPORTANCE_LEVELS; in OomAdjuster() 611 final int cachedAdj = oldAdj >= ProcessList.CACHED_APP_MIN_ADJ in performUpdateOomAdjLSP() 612 ? oldAdj : ProcessList.UNKNOWN_ADJ; in performUpdateOomAdjLSP() 625 if (!success || (wasCached == state.isCached() && oldAdj != ProcessList.INVALID_ADJ in performUpdateOomAdjLSP() 669 } else if (state.getCurRawAdj() == ProcessList.UNKNOWN_ADJ) { in performUpdateOomAdjLSP() [all …]
|
D | ProcessStateRecord.java | 52 private int mMaxAdj = ProcessList.UNKNOWN_ADJ; 58 private int mCurRawAdj = ProcessList.INVALID_ADJ; 64 private int mSetRawAdj = ProcessList.INVALID_ADJ; 70 private int mCurAdj = ProcessList.INVALID_ADJ; 76 private int mSetAdj = ProcessList.INVALID_ADJ; 82 private int mVerifiedAdj = ProcessList.INVALID_ADJ; 101 private int mCurSchedGroup = ProcessList.SCHED_GROUP_BACKGROUND; 107 private int mSetSchedGroup = ProcessList.SCHED_GROUP_BACKGROUND; 381 private int mCachedAdj = ProcessList.INVALID_ADJ; 387 private int mCachedSchedGroup = ProcessList.SCHED_GROUP_BACKGROUND; [all …]
|
D | ProcessServiceRecord.java | 199 if (adj < ProcessList.FOREGROUND_APP_ADJ) { in modifyRawOomAdj() 201 } else if (adj < ProcessList.VISIBLE_APP_ADJ) { in modifyRawOomAdj() 202 adj = ProcessList.VISIBLE_APP_ADJ; in modifyRawOomAdj() 203 } else if (adj < ProcessList.PERCEPTIBLE_APP_ADJ) { in modifyRawOomAdj() 204 adj = ProcessList.PERCEPTIBLE_APP_ADJ; in modifyRawOomAdj() 205 } else if (adj < ProcessList.PERCEPTIBLE_LOW_APP_ADJ) { in modifyRawOomAdj() 206 adj = ProcessList.PERCEPTIBLE_LOW_APP_ADJ; in modifyRawOomAdj() 207 } else if (adj < ProcessList.CACHED_APP_MIN_ADJ) { in modifyRawOomAdj() 208 adj = ProcessList.CACHED_APP_MIN_ADJ; in modifyRawOomAdj() 209 } else if (adj < ProcessList.CACHED_APP_MAX_ADJ) { in modifyRawOomAdj()
|
D | PhantomProcessRecord.java | 81 mAdj = ProcessList.NATIVE_ADJ; in PhantomProcessRecord() 125 ProcessList.PROC_KILL_TIMEOUT); in killLocked() 128 ProcessList.killProcessGroup(mUid, mPid); in killLocked() 141 + ProcessList.PROC_KILL_TIMEOUT + "ms");
|
D | AppProfiler.java | 485 && (lastPssTime + ProcessList.PSS_SAFE_TIME_FROM_STATE_CHANGE) < now) { in collectPssInBackground() 492 + (lastPssTime + ProcessList.PSS_SAFE_TIME_FROM_STATE_CHANGE - now) in collectPssInBackground() 537 + ProcessList.PSS_MAX_INTERVAL, profile.getLastStateTime() in updateNextPssTimeLPf() 538 + ProcessList.minTimeFromStateChange(mTestPssMode))) { in updateNextPssTimeLPf() 575 + " state=" + ProcessList.makeProcStateString(procState)); in recordPssSampleLPf() 884 && now > lastStateTime + ProcessList.PSS_SAFE_TIME_FROM_STATE_CHANGE) in requestPssAllProcsLPr() 885 || now > (lastStateTime + ProcessList.PSS_ALL_INTERVAL)) { in requestPssAllProcsLPr() 958 if (numCachedAndEmpty <= ProcessList.TRIM_CRITICAL_THRESHOLD) { in updateLowMemStateLSP() 960 } else if (numCachedAndEmpty <= ProcessList.TRIM_LOW_THRESHOLD) { in updateLowMemStateLSP() 1183 if (profile.getCurRawAdj() > ProcessList.PERCEPTIBLE_APP_ADJ in performAppGcsLPf() [all …]
|
D | ProcessList.java | 165 public final class ProcessList { class 787 ProcessList() { in ProcessList() method in ProcessList 993 mCachedRestoreLevel = (getMemLevel(ProcessList.CACHED_APP_MAX_ADJ) / 1024) / 3; in updateOomLevels() 1051 if (setAdj >= ProcessList.CACHED_APP_MIN_ADJ) { in makeOomAdjString() 1053 ProcessList.CACHED_APP_MIN_ADJ, compact); in makeOomAdjString() 1054 } else if (setAdj >= ProcessList.SERVICE_B_ADJ) { in makeOomAdjString() 1056 ProcessList.SERVICE_B_ADJ, compact); in makeOomAdjString() 1057 } else if (setAdj >= ProcessList.PREVIOUS_APP_ADJ) { in makeOomAdjString() 1059 ProcessList.PREVIOUS_APP_ADJ, compact); in makeOomAdjString() 1060 } else if (setAdj >= ProcessList.HOME_APP_ADJ) { in makeOomAdjString() [all …]
|
D | ProcessProfileRecord.java | 35 import com.android.server.am.ProcessList.ProcStateMemTracker; 51 private final ProcessList.ProcStateMemTracker mProcStateMemTracker = 52 new ProcessList.ProcStateMemTracker(); 548 return ProcessList.computeNextPssTime(procState, mProcStateMemTracker, test, sleeping, now); in computeNextPssTime()
|
D | UidRecord.java | 327 proto.write(UidRecordProto.CURRENT, ProcessList.makeProcStateProtoEnum(mCurProcState)); in dumpDebug() 357 sb.append(ProcessList.makeProcStateString(mCurProcState)); in toString()
|
D | CachedAppOptimizer.java | 114 ProcessList.CACHED_APP_MIN_ADJ; 116 ProcessList.CACHED_APP_MAX_ADJ; 843 if (mCompactThrottleMinOomAdj < ProcessList.CACHED_APP_MIN_ADJ) { in updateMinOomAdjThrottle() 854 if (mCompactThrottleMaxOomAdj > ProcessList.CACHED_APP_MAX_ADJ) { in updateMaxOomAdjThrottle() 1071 && (proc.mState.getSetAdj() <= ProcessList.PERCEPTIBLE_APP_ADJ)) { in handleMessage() 1334 if (proc.mState.getCurAdj() < ProcessList.CACHED_APP_MIN_ADJ in freezeProcess()
|
D | ActivityManagerService.java | 746 final ProcessList mProcessList; 1810 app.mState.setMaxAdj(ProcessList.SYSTEM_ADJ); in setSystemProcess() 3020 ProcessList.remove(pid); in handleAppDiedLocked() 3093 ProcessList.killProcessGroup(app.uid, pid); in appDiedLocked() 3110 + ProcessList.makeOomAdjString(setAdj, true) + " " in appDiedLocked() 3111 + ProcessList.makeProcStateString(setProcState), app.info.uid); in appDiedLocked() 3614 ProcessList.SERVICE_ADJ, ApplicationExitInfo.REASON_USER_REQUESTED, in killBackgroundProcesses() 3643 UserHandle.USER_ALL, ProcessList.CACHED_APP_MIN_ADJ, in killAllBackgroundProcesses() 4162 ProcessList.INVALID_ADJ, callerWillRestart, false /* allowRestart */, doit, in forceStopPackageLocked() 4371 app.mState.setCurAdj(ProcessList.INVALID_ADJ); in attachApplicationLocked() [all …]
|
D | CacheOomRanker.java | 213 >= ProcessList.UNKNOWN_ADJ) { in reRankLruCachedAppsLSP()
|
D | ContentProviderHelper.java | 1326 long startTime, ProcessList processList, @UserIdInt int expectedUserId) { in incProviderCountLocked() 1352 && r.mState.getSetAdj() <= ProcessList.PERCEPTIBLE_LOW_APP_ADJ) { in incProviderCountLocked() 1614 || r.mState.getSetSchedGroup() != ProcessList.SCHED_GROUP_BACKGROUND; in requestTargetProviderPermissionsReviewIfNeededLocked()
|
D | ProcessRecord.java | 1011 ProcessList.killProcessGroup(uid, mPid); in killLocked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | VrController.java | 28 import com.android.server.am.ProcessList; 119 setVrRenderThreadLocked(0, ProcessList.SCHED_GROUP_TOP_APP, true); 166 if (curSchedGroup == ProcessList.SCHED_GROUP_TOP_APP) { in onTopProcChangedLocked() 396 if (!inVr || inPersistentVr || schedGroup != ProcessList.SCHED_GROUP_TOP_APP) { in setVrRenderThreadLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerInternalTest.java | 65 final ProcessList dummyList = new ProcessList(); in setUp()
|
D | ProcessRecordTests.java | 77 final ProcessList processList = new ProcessList(); in setUpOnce()
|
D | ActivityManagerServiceTest.java | 36 import static com.android.server.am.ProcessList.NETWORK_STATE_BLOCK; 37 import static com.android.server.am.ProcessList.NETWORK_STATE_NO_CHANGE; 38 import static com.android.server.am.ProcessList.NETWORK_STATE_UNBLOCK; 81 import com.android.server.am.ProcessList.IsolatedUidRange; 82 import com.android.server.am.ProcessList.IsolatedUidRangeAllocator; 427 public void verifyIsolatedUid(ProcessList.IsolatedUidRange range, int uid) { in verifyIsolatedUid() 431 public void verifyIsolatedUidAllocator(ProcessList.IsolatedUidRange range) { in verifyIsolatedUidAllocator()
|
D | OomAdjusterTests.java | 68 MyOomAdjuster(ActivityManagerService service, ProcessList processList, in MyOomAdjuster()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyLogger.java | 41 import com.android.server.am.ProcessList; 107 + ProcessList.makeProcStateString(procState) + ",seq=" + procStateSeq in uidStateChanged() 559 return data.ifield1 + ":" + ProcessList.makeProcStateString(data.ifield2) in getContent()
|
/frameworks/base/core/proto/android/server/ |
D | activitymanagerservice.proto | 827 // Activity manager's version of Process enum, see ProcessList.java 995 // sync with com.android.server.am.am.ProcessList.java
|
/frameworks/base/services/ |
D | art-profile | 5995 …roid/server/am/ServiceRecord;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6000 …g/Integer;Ljava/lang/Integer;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6001 …er/am/ActivityManagerService;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6002 …kManagerService$LocalService;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6009 …server/am/ProcessStateRecord;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6194 …->getProcessList(Lcom/android/server/am/ActivityManagerService;)Lcom/android/server/am/ProcessList; 6271 …ProcessList;Lcom/android/server/am/ProcessList;]Lcom/android/server/am/ProcessRecord;Lcom/android/… 6280 …tworkPolicyRulesUpdated(IJ)V+]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6322 …os/Bundle;Landroid/os/Bundle;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… 6361 …/android/server/am/AppErrors;]Lcom/android/server/am/ProcessList;Lcom/android/server/am/ProcessLis… [all …]
|