Home
last modified time | relevance | path

Searched refs:mOomAdjuster (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DOomAdjusterDebugLogger.java28 private final OomAdjuster mOomAdjuster; field in OomAdjusterDebugLogger
39 mOomAdjuster = oomAdjuster; in OomAdjusterDebugLogger()
52 msg + ": " + OomAdjuster.oomAdjReasonToString(mOomAdjuster.mLastReason), in maybeLogStacktrace()
69 uid, mOomAdjuster.mAdjSeq, uidstate, olduidstate, capability, oldcapability, flags, in logUidStateChanged()
70 OomAdjuster.oomAdjReasonToString(mOomAdjuster.mLastReason)); in logUidStateChanged()
78 uid, pid, mOomAdjuster.mAdjSeq, procstate, oldprocstate, oomadj, oldoomadj, in logProcStateChanged()
79 OomAdjuster.oomAdjReasonToString(mOomAdjuster.mLastReason)); in logProcStateChanged()
86 uid, 0, mOomAdjuster.mAdjSeq, (int) delay, 0, ""); in logScheduleUidIdle1()
91 uid, pid, mOomAdjuster.mAdjSeq, (int) delay, 0, ""); in logScheduleUidIdle2()
96 0, 0, mOomAdjuster.mAdjSeq, (int) delay, 0, ""); in logScheduleUidIdle3()
[all …]
DProviderMap.java355 mAm.mOomAdjuster.mCachedAppOptimizer.enableFreezer(false); in dumpProvider()
372 mAm.mOomAdjuster.mCachedAppOptimizer.enableFreezer(true); in dumpProvider()
DProcessRecord.java654 mService.mOomAdjuster.onProcessEndLocked(this); in doEarlyCleanupIfNecessaryLocked()
1197 mService.mOomAdjuster.onProcessEndLocked(this); in onCleanupApplicationRecordLSP()
1691 return mService.mOomAdjuster.mCachedAppOptimizer.useFreezer() in isFreezable()
DBroadcastQueueModernImpl.java522 mService.mOomAdjuster.unfreezeTemporarily(queue.app, in updateRunningListLocked()
798 mService.mOomAdjuster.mCachedAppOptimizer.freezeAppAsyncImmediateLSP(r.callerApp); in enqueueBroadcastLocked()
1171 mService.mOomAdjuster.mCachedAppOptimizer.unfreezeTemporarily(app, in dispatchReceivers()
1254 mService.mOomAdjuster.unfreezeTemporarily( in scheduleResultTo()
2087 mService.mOomAdjuster.unfreezeTemporarily(queue.app, in notifyStartedRunning()
DProcessStateRecord.java645 mService.mOomAdjuster.onProcessStateChanged(mApp, prevProcState); in forceProcessStateUpTo()
1104 mCachedCompatChanges[cachedCompatChangeId] = mService.mOomAdjuster in getCachedCompatChange()
DActivityManagerShellCommand.java1166 mInternal.mOomAdjuster.mCachedAppOptimizer.compactApp(app,
1174 mInternal.mOomAdjuster.mCachedAppOptimizer.compactApp(app,
1183 mInternal.mOomAdjuster.mCachedAppOptimizer.compactAllSystem();
1199 mInternal.mOomAdjuster.mCachedAppOptimizer.compactNative(
1202 mInternal.mOomAdjuster.mCachedAppOptimizer.compactNative(
1235 mInternal.mOomAdjuster.mCachedAppOptimizer.forceFreezeAppAsyncLSP(proc);
1237 mInternal.mOomAdjuster.mCachedAppOptimizer.unfreezeAppInternalLSP(proc, 0,
DContentProviderHelper.java327 || mService.mOomAdjuster.evaluateProviderConnectionAdd(r, cpr.proc) in getContentProviderImpl()
1379 mService.mOomAdjuster.initSettings(); in installSystemProviders()
1551 || mService.mOomAdjuster.evaluateProviderConnectionRemoval(conn.client, in handleProviderRemoval()
DAppErrors.java537 mService.mOomAdjuster.mCachedAppOptimizer.unfreezeProcess(initialPid, in scheduleAppCrashLocked()
DActiveServices.java4306 mAm.mOomAdjuster.updateAppFreezeStateLSP(callerApp, OOM_ADJ_REASON_BIND_SERVICE, in bindServiceLocked()
5981 if (!mAm.mOomAdjuster.evaluateServiceConnectionAdd(clientApp, hostApp, cr)) { in getServiceBindingOomAdjPolicyForAddLocked()
5999 if (!mAm.mOomAdjuster.evaluateServiceConnectionRemoval(clientApp, hostApp, cr)) { in getServiceBindingOomAdjPolicyForRemovalLocked()
8152 mAm.mOomAdjuster.mCachedAppOptimizer.enableFreezer(false); in dumpService()
8195 mAm.mOomAdjuster.mCachedAppOptimizer.enableFreezer(true); in dumpService()
DAppProfiler.java1481 mService.mOomAdjuster.mCachedAppOptimizer.unfreezeTemporarily(app, in scheduleTrimMemoryLSP()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java95 sService.mOomAdjuster = new OomAdjuster(sService, sService.mProcessList, null, in setUpOnce()
141 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
150 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop()
160 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction()
170 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
179 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateBoundTop()
188 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateFGS()
199 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
210 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction()
222 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceBindingOomAdjPolicyTest.java172 realAms.mOomAdjuster = spy(realAms.mOomAdjuster); in setUp()
173 realAms.mOomAdjuster.mCachedAppOptimizer = spy(realAms.mOomAdjuster.mCachedAppOptimizer); in setUp()
186 doReturn(true).when(mAms.mOomAdjuster.mCachedAppOptimizer).useFreezer(); in setUp()
187 doNothing().when(mAms.mOomAdjuster.mCachedAppOptimizer).freezeAppAsyncAtEarliestLSP( in setUp()
245 verify(mAms.mOomAdjuster, bindMode).updateOomAdjPendingTargetsLocked(anyInt()); in performTestServiceSelfBindingOomAdj()
246 clearInvocations(mAms.mOomAdjuster); in performTestServiceSelfBindingOomAdj()
251 verify(mAms.mOomAdjuster, unbindMode).updateOomAdjPendingTargetsLocked(anyInt()); in performTestServiceSelfBindingOomAdj()
252 clearInvocations(mAms.mOomAdjuster); in performTestServiceSelfBindingOomAdj()
499 verify(mAms.mOomAdjuster, bindMode).updateOomAdjPendingTargetsLocked(anyInt()); in performTestServiceDistinctBindingOomAdj()
500 clearInvocations(mAms.mOomAdjuster); in performTestServiceDistinctBindingOomAdj()
[all …]
DMockingOomAdjusterTests.java229 mService.mOomAdjuster = mService.mConstants.ENABLE_NEW_OOMADJ in setUp()
234 mService.mOomAdjuster.mAdjSeq = 10000; in setUp()
245 mService.mOomAdjuster.resetInternal(); in tearDown()
246 mService.mOomAdjuster.mActiveUids.clear(); in tearDown()
291 mService.mOomAdjuster.updateOomAdjLocked(OOM_ADJ_REASON_NONE); in updateOomAdj()
299 mService.mOomAdjuster.updateOomAdjLocked(apps[0], OOM_ADJ_REASON_NONE); in updateOomAdj()
302 mService.mOomAdjuster.updateOomAdjLocked(OOM_ADJ_REASON_NONE); in updateOomAdj()
316 mService.mOomAdjuster.enqueueOomAdjTargetLocked(app); in updateOomAdjPending()
318 mService.mOomAdjuster.updateOomAdjPendingTargetsLocked(OOM_ADJ_REASON_NONE); in updateOomAdjPending()
664 mService.mOomAdjuster.updateOomAdjFollowUpTargetsLocked(); in testUpdateOomAdj_DoOne_PerceptibleRecent_FgService()
[all …]
DBaseBroadcastQueueTest.java167 realAms.mOomAdjuster.mCachedAppOptimizer = Mockito.mock(CachedAppOptimizer.class); in setUp()
168 realAms.mOomAdjuster = spy(realAms.mOomAdjuster); in setUp()
DServiceTimeoutTest.java114 realAms.mOomAdjuster.mCachedAppOptimizer = spy(realAms.mOomAdjuster.mCachedAppOptimizer); in setUp()
DBroadcastQueueTest.java777 verify(mAms.mOomAdjuster, atLeastOnce()).unfreezeTemporarily(
1191 }).when(mAms.mOomAdjuster).unfreezeTemporarily(eq(receiverBlueApp), anyInt());
1348 verify(mAms.mOomAdjuster).unfreezeTemporarily(eq(callerApp),
2350 verify(mAms.mOomAdjuster.mCachedAppOptimizer).freezeAppAsyncImmediateLSP(callerApp);
2382 verify(mAms.mOomAdjuster.mCachedAppOptimizer, atLeastOnce())