Home
last modified time | relevance | path

Searched refs:PERCEPTIBLE_APP_ADJ (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceBindingOomAdjPolicyTest.java34 import static com.android.server.am.ProcessList.PERCEPTIBLE_APP_ADJ;
265 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjMoreImportant()
280 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjMoreImportant()
300 PERCEPTIBLE_APP_ADJ, PROCESS_CAPABILITY_NONE, TEST_APP2_NAME, TEST_SERVICE2_NAME, in testServiceDistinctBindingOomAdjLessImportant()
313 PERCEPTIBLE_APP_ADJ, PROCESS_CAPABILITY_NONE, TEST_APP2_NAME, TEST_SERVICE2_NAME, in testServiceDistinctBindingOomAdjLessImportant()
328 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjWaivePriority()
343 PERCEPTIBLE_APP_ADJ, PROCESS_CAPABILITY_NONE, TEST_APP2_NAME, TEST_SERVICE2_NAME, in testServiceDistinctBindingOomAdjWaivePriority()
354 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjWaivePriority()
376 PERCEPTIBLE_APP_ADJ, PROCESS_CAPABILITY_NONE, TEST_APP2_NAME, TEST_SERVICE2_NAME, in testServiceDistinctBindingOomAdjNoIncludeCapabilities()
390 PERCEPTIBLE_APP_ADJ, PROCESS_CAPABILITY_NONE, TEST_APP2_NAME, TEST_SERVICE2_NAME, in testServiceDistinctBindingOomAdjNoIncludeCapabilities()
[all …]
DMockingOomAdjusterTests.java54 import static com.android.server.am.ProcessList.PERCEPTIBLE_APP_ADJ;
537 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_FgServiceLocation()
551 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_FgService()
640 assertProcStates(app, PROCESS_STATE_IMPORTANT_FOREGROUND, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_OverlayUi()
666 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_PerceptibleRecent_FgService()
772 PERCEPTIBLE_APP_ADJ + 1, SCHED_GROUP_DEFAULT); in testUpdateOomAdj_DoOne_ImpFg_AlmostPerceptibleService()
784 assertProcStates(app, PROCESS_STATE_TRANSIENT_BACKGROUND, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_Toast()
1292 assertEquals(PERCEPTIBLE_APP_ADJ, app.mState.getSetAdj()); in testUpdateOomAdj_DoOne_Service_NotVisible()
1307 assertEquals(PERCEPTIBLE_APP_ADJ, app.mState.getSetAdj()); in testUpdateOomAdj_DoOne_Service_Perceptible()
1362 assertEquals(PERCEPTIBLE_APP_ADJ + 1, app.mState.getSetAdj()); in testUpdateOomAdj_DoOne_Service_AlmostPerceptible()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java112 import static com.android.server.am.ProcessList.PERCEPTIBLE_APP_ADJ;
1714 if (adj > PERCEPTIBLE_APP_ADJ) { in onPausedActivity()
1715 adj = PERCEPTIBLE_APP_ADJ; in onPausedActivity()
1738 if (adj > PERCEPTIBLE_APP_ADJ) { in onStoppingActivity()
1739 adj = PERCEPTIBLE_APP_ADJ; in onStoppingActivity()
2016 if (adj > PERCEPTIBLE_APP_ADJ in computeOomAdjLSP()
2025 newAdj = PERCEPTIBLE_APP_ADJ; in computeOomAdjLSP()
2047 newAdj = PERCEPTIBLE_APP_ADJ; in computeOomAdjLSP()
2109 if (adj > PERCEPTIBLE_APP_ADJ in computeOomAdjLSP()
2115 adj = PERCEPTIBLE_APP_ADJ; in computeOomAdjLSP()
[all …]
DProcessServiceRecord.java386 } else if (adj < ProcessList.PERCEPTIBLE_APP_ADJ) { in modifyRawOomAdj()
387 adj = ProcessList.PERCEPTIBLE_APP_ADJ; in modifyRawOomAdj()
DOomAdjusterModernImpl.java50 import static com.android.server.am.ProcessList.PERCEPTIBLE_APP_ADJ;
147 PERCEPTIBLE_APP_ADJ,
DProcessStateRecord.java491 curRawAdj <= ProcessList.PERCEPTIBLE_APP_ADJ); in setCurRawAdj()
DProcessList.java259 public static final int PERCEPTIBLE_APP_ADJ = 200; field in ProcessList
264 static final int VISIBLE_APP_LAYER_MAX = PERCEPTIBLE_APP_ADJ - VISIBLE_APP_ADJ - 1;
404 FOREGROUND_APP_ADJ, VISIBLE_APP_ADJ, PERCEPTIBLE_APP_ADJ,
1184 } else if (setAdj >= ProcessList.PERCEPTIBLE_APP_ADJ) { in makeOomAdjString()
1186 ProcessList.PERCEPTIBLE_APP_ADJ, compact); in makeOomAdjString()
4890 printOomLevel(pw, "PERCEPTIBLE_APP_ADJ", PERCEPTIBLE_APP_ADJ);
DCachedAppOptimizer.java1869 if (proc.mState.getSetAdj() <= ProcessList.PERCEPTIBLE_APP_ADJ) { in shouldOomAdjThrottleCompaction()
DAppProfiler.java1528 if (profile.getCurRawAdj() > ProcessList.PERCEPTIBLE_APP_ADJ in performAppGcsLPf()
/frameworks/av/services/camera/libcameraservice/utils/
DClientManager.h49 const int32_t PERCEPTIBLE_APP_ADJ = 200; variable
51 const int32_t VISIBLE_APP_LAYER_MAX = PERCEPTIBLE_APP_ADJ - VISIBLE_APP_ADJ - 1;
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp161 static constexpr int32_t kSystemNativeClientScore = resource_policy::PERCEPTIBLE_APP_ADJ;