Home
last modified time | relevance | path

Searched refs:mProcessList (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceTest.java286 sProcessListSettingsListener = mAms.mProcessList.getProcessListSettingsListener(); in setUp()
342 mAms.mProcessList.mProcStateSeqCounter = 42; in incrementProcStateSeqAndNotifyAppsLocked()
403 assertThat(mAms.mProcessList.updateSeInfo(appRec)).doesNotContain( in doNotApplySdkSandboxNextRestrictions()
432 assertThat(mAms.mProcessList.updateSeInfo(appRec)).contains( in applySdkSandboxNextRestrictions()
465 assertThat(mAms.mProcessList.updateSeInfo(appRec)) in applySdkSandboxAuditRestrictions()
502 assertThat(mAms.mProcessList.updateSeInfo(appRec)) in applySdkSandboxNextAndAuditRestrictions()
504 assertThat(mAms.mProcessList.updateSeInfo(appRec)) in applySdkSandboxNextAndAuditRestrictions()
521 mAms.mProcessList.mActiveUids.put(uid, uidRec); in addUidRecord()
533 mAms.mProcessList.addProcessNameLocked(appRec); in addUidRecord()
534 mAms.mProcessList.getLruProcessesLSP().add(appRec); in addUidRecord()
[all …]
DProcessObserverTest.java104 private ProcessList mProcessList; field in ProcessObserverTest
144 mProcessList = spy(mRealProcessList); in setUp()
147 mProcessList.registerProcessObserver(mProcessObserver); in setUp()
153 }).when(mProcessList).isProcStartValidLocked(any(), anyLong()); in setUp()
251 mProcessList.handleProcessStartedLocked(app, app.getPid(), /* usingWrapper */ false, in startProcess()
DServiceTimeoutTest.java90 private ProcessList mProcessList; field in ServiceTimeoutTest
101 mProcessList = spy(new ProcessList()); in setUp()
149 mProcessList.updateLruProcessLocked(app, false, null); in testServiceTimeoutAndProcessKill()
193 return mProcessList; in getProcessList()
DAsyncProcessStartTest.java105 private ProcessList mProcessList; field in AsyncProcessStartTest
143 mProcessList = spy(mRealProcessList); in setUp()
149 }).when(mProcessList).isProcStartValidLocked(any(), anyLong()); in setUp()
264 mProcessList.handleProcessStartedLocked(app, app.getPid(), /* usingWrapper */ false, in startProcessAndWait()
DServiceBindingOomAdjPolicyTest.java136 private ProcessList mProcessList; field in ServiceBindingOomAdjPolicyTest
158 mProcessList = spy(realProcessList); in setUp()
539 mProcessList.addProcessNameLocked(app); in addProcessRecord()
540 mProcessList.updateLruProcessLocked(app, false, null); in addProcessRecord()
567 mProcessList.removeProcessNameLocked(app.processName, app.uid); in removeProcessRecord()
568 mProcessList.removeLruProcessLocked(app); in removeProcessRecord()
629 return mProcessList; in getProcessList()
DActivityManagerInternalTest.java141 mAms.mProcessList.mActiveUids.put(uid, record); in addActiveUidRecord()
146 mAms.mProcessList.mActiveUids.clear(); in clearActiveUids()
DBaseBroadcastQueueTest.java113 ProcessList mProcessList; field in BaseBroadcastQueueTest
179 doReturn(mAppStartInfoTracker).when(mProcessList).getAppStartInfoTracker(); in setUp()
223 return mProcessList; in getProcessList()
DAppChildProcessTest.java77 private ProcessList mProcessList; field in AppChildProcessTest
99 mProcessList = spy(pList); in setUp()
262 return mProcessList; in getProcessList()
DApplicationStartInfoTest.java93 private ProcessList mProcessList; field in ApplicationStartInfoTest
106 mProcessList = spy(new ProcessList()); in setUp()
109 setFieldValue(ProcessList.class, mProcessList, "mAppStartInfoTracker", in setUp()
600 return mProcessList; in getProcessList()
DApplicationExitInfoTest.java107 private ProcessList mProcessList; field in ApplicationExitInfoTest
124 mProcessList = spy(new ProcessList()); in setUp()
136 setFieldValue(ProcessList.class, mProcessList, "mAppExitInfoTracker", mAppExitInfoTracker); in setUp()
1100 return mProcessList; in getProcessList()
DMockingOomAdjusterTests.java230 ? new OomAdjusterModernImpl(mService, mService.mProcessList, in setUp()
232 : new OomAdjuster(mService, mService.mProcessList, new ActiveUids(mService, false), in setUp()
276 ArrayList<ProcessRecord> lru = mService.mProcessList.getLruProcessesLOSP(); in setProcessesToLru()
290 updateProcessRecordNodes(mService.mProcessList.getLruProcessesLOSP()); in updateOomAdj()
296 if (!mService.mProcessList.getLruProcessesLOSP().contains(app)) { in updateOomAdj()
297 mService.mProcessList.getLruProcessesLOSP().add(app); in updateOomAdj()
303 mService.mProcessList.getLruProcessesLOSP().clear(); in updateOomAdj()
319 mService.mProcessList.getLruProcessesLOSP().clear(); in updateOomAdjPending()
2590 final ArrayList<ProcessRecord> lru = mService.mProcessList.getLruProcessesLOSP(); in testUpdateOomAdj_DoAll_Service_KeepWarmingList()
/frameworks/base/services/core/java/com/android/server/am/
DAppProfiler.java507 final int lruSize = mService.mProcessList.getLruSizeLOSP(); in updateCachedAppsSnapshot()
513 mService.mProcessList.forEachLruProcessesLOSP(true, app -> { in updateCachedAppsSnapshot()
541 final UidRecord uidRec = mService.mProcessList.getUidRecordLOSP(uid); in updateCachedAppsSnapshot()
1287 mPendingPssOrRssProfiles.ensureCapacity(mService.mProcessList.getLruSizeLOSP()); in requestPssAllProcsLPr()
1289 mService.mProcessList.forEachLruProcessesLOSP(false, app -> { in requestPssAllProcsLPr()
1393 + " numProcs=" + mService.mProcessList.getLruSizeLOSP() in updateLowMemStateLSP()
1402 || mService.mProcessList.getLruSizeLOSP() >= mLastNumProcesses)) { in updateLowMemStateLSP()
1426 mLastNumProcesses = mService.mProcessList.getLruSizeLOSP(); in updateLowMemStateLSP()
1429 mService.mProcessList.forEachLruProcessesLOSP( in updateLowMemStateLSP()
1611 if (!mService.mProcessList.haveBackgroundProcessLOSP()) { in doLowMemReportIfNeededLocked()
[all …]
DOomAdjuster.java378 final ProcessList mProcessList; field in OomAdjuster
484 mProcessList = processList; in OomAdjuster()
547 mProcessList.forEachLruProcessesLOSP(false, in handleUserSwitchedLocked()
765 mProcessList.getSdkSandboxProcessesForAppLocked(pr.uid); in collectReachableProcessesLocked()
960 ? mProcessList.getLruProcessesLOSP() : processes; in updateOomAdjInnerLSP()
1026 mCacheOomRanker.reRankLruCachedAppsLSP(mProcessList.getLruProcessesLSP(), in updateOomAdjInnerLSP()
1027 mProcessList.getLruProcessServiceStartLOSP()); in updateOomAdjInnerLSP()
1063 assignCachedAdjIfNecessary(mProcessList.getLruProcessesLOSP()); in updateOomAdjInnerLSP()
1298 ArrayList<ProcessRecord> lruList = mProcessList.getLruProcessesLOSP(); in updateAndTrimProcessLSP()
1488 mProcessList.incrementProcStateSeqAndNotifyAppsLOSP(activeUids); in updateUidsLSP()
[all …]
DAppErrors.java563 mService.mProcessList.noteAppRecoverableCrash(r); in sendRecoverableCrashToAppExitInfo()
603 mService.mProcessList.noteAppKill(r, (crashInfo != null in crashApplicationInner()
679 mService.mProcessList.removeProcessLocked(r, false, true, in crashApplicationInner()
700 mService.mProcessList.removeProcessLocked(r, false, false, in crashApplicationInner()
756 mService.mProcessList.noteAppKill(pid, uid, in handleAppCrashInActivityController()
936 mService.mProcessList.removeProcessLocked(app, false, tryAgain,
DProcessProviderRecord.java135 mService.mProcessList.noteProcessDiedLocked(mApp); in onCleanupApplicationRecordLocked()
DContentProviderHelper.java321 callingTag, stable, true, startTime, mService.mProcessList, in getContentProviderImpl()
589 mService.mProcessList.getAppStartInfoTracker() in getContentProviderImpl()
609 stable, false, startTime, mService.mProcessList, expectedUserId); in getContentProviderImpl()
696 mService.mProcessList.getLRURecordForAppLOSP(caller); in getContentProviderImpl()
1237 mService.mProcessList.removeProcessLocked(app, false, true, in processContentProviderPublishTimedOutLocked()
1352 ProcessRecord app = mService.mProcessList in installSystemProviders()
1398 mService.mProcessList.getProcessNamesLOSP().getMap(); in installEncryptionUnawareProviders()
DPhantomProcessRecord.java86 mKillHandler = service.mProcessList.sKillHandler; in PhantomProcessRecord()
DProcessErrorStateRecord.java412 mService.mProcessList.forEachLruProcessesLOSP(false, r -> { in appNotResponding()
573 mService.mProcessList.mAppExitInfoTracker.scheduleLogAnrTrace( in appNotResponding()
DOomAdjusterModernImpl.java944 final ArrayList<ProcessRecord> lru = mProcessList.getLruProcessesLOSP(); in fullUpdateLSP()
978 assignCachedAdjIfNecessary(mProcessList.getLruProcessesLOSP()); in fullUpdateLSP()
1072 assignCachedAdjIfNecessary(mProcessList.getLruProcessesLOSP()); in partialUpdateLSP()
DPhantomProcessList.java129 mKillHandler = service.mProcessList.sKillHandler; in PhantomProcessList()
DProcessRecord.java1295 mService.mProcessList.noteAppKill(this, reasonCode, subReason, description); in killLocked()
1679 return mService.mProcessList.getLruProcessesLOSP(); in getLruProcessList()
DActiveServices.java578 mAm.mProcessList.updateBackgroundRestrictedForUidPackageLocked( in updateBackgroundRestrictedForUidPackage()
872 final UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(uid); in updateAppRestrictedAnyInBackgroundLocked()
1103 UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(appUid); in startServiceLocked()
2116 final UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(uid); in isForegroundServiceAllowedInBackgroundRestricted()
5837 app = mAm.mProcessList.getSharedIsolatedProcess(procName, r.appInfo.uid, in bringUpServiceInnerLocked()
5909 mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, in bringUpServiceInnerLocked()
7524 if (timeout != null && mAm.mProcessList.isInLruListLOSP(proc)) { in serviceTimeout()
8430 final Integer allowedType = mAm.mProcessList.searchEachLruProcessesLOSP(false, pr -> { in shouldAllowFgsWhileInUsePermissionLocked()
8509 final Integer result = mAm.mProcessList.searchEachLruProcessesLOSP( in shouldAllowFgsWhileInUsePermissionByBindingsLocked()
8566 final Pair<Integer, String> isAllowed = mAm.mProcessList.searchEachLruProcessesLOSP( in canBindingClientStartFgsLocked()
[all …]
DActivityManagerShellCommand.java1268 mInternal.mProcessList.getProcessNamesLOSP().getMap();
1425 mInternal.mProcessList.getAppStartInfoTracker()
1448 mInternal.mProcessList.getAppStartInfoTracker()
1473 mInternal.mProcessList.mAppExitInfoTracker.clearHistoryProcessExitInfo(getNextArg(),
DCachedAppOptimizer.java1028 mAm.mProcessList.forEachLruProcessesLOSP(true, process -> { in enableFreezer()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java95 sService.mOomAdjuster = new OomAdjuster(sService, sService.mProcessList, null, in setUpOnce()

12