Home
last modified time | relevance | path

Searched refs:mPhantomProcesses (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DPhantomProcessList.java66 final SparseArray<PhantomProcessRecord> mPhantomProcesses = new SparseArray<>(); field in PhantomProcessList
302 final int index = mPhantomProcesses.indexOfKey(pid); in getOrCreatePhantomProcessIfNeededLocked()
304 final PhantomProcessRecord proc = mPhantomProcesses.valueAt(index); in getOrCreatePhantomProcessIfNeededLocked()
339 mPhantomProcesses.put(pid, proc); in getOrCreatePhantomProcessIfNeededLocked()
391 mPhantomProcesses.remove(proc.mPid); in onPhantomProcessKilledLocked()
431 if (mService.mConstants.MAX_PHANTOM_PROCESSES < mPhantomProcesses.size()) { in trimPhantomProcessesIfNecessary()
432 for (int i = mPhantomProcesses.size() - 1; i >= 0; i--) { in trimPhantomProcessesIfNecessary()
433 mTempPhantomProcesses.add(mPhantomProcesses.valueAt(i)); in trimPhantomProcessesIfNecessary()
473 for (int i = mPhantomProcesses.size() - 1; i >= 0; i--) { in pruneStaleProcessesLocked()
474 final PhantomProcessRecord proc = mPhantomProcesses.valueAt(i); in pruneStaleProcessesLocked()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppChildProcessTest.java160 assertEquals(0, mPhantomProcessList.mPhantomProcesses.size()); in testManageAppChildProcesses()
182 assertEquals(1, mPhantomProcessList.mPhantomProcesses.size()); in testManageAppChildProcesses()
183 assertEquals(pr, mPhantomProcessList.mPhantomProcesses.valueAt(0)); in testManageAppChildProcesses()
193 assertEquals(1, mPhantomProcessList.mPhantomProcesses.size()); in testManageAppChildProcesses()
194 assertEquals(pr, mPhantomProcessList.mPhantomProcesses.valueAt(0)); in testManageAppChildProcesses()
205 assertEquals(2, mPhantomProcessList.mPhantomProcesses.size()); in testManageAppChildProcesses()
211 for (int i = mPhantomProcessList.mPhantomProcesses.size() - 1; i >= 0; i--) { in testManageAppChildProcesses()
212 set.remove(mPhantomProcessList.mPhantomProcesses.valueAt(i)); in testManageAppChildProcesses()