Home
last modified time | relevance | path

Searched refs:memFactor (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java111 public void setMemFactor(int memFactor, long now) { in setMemFactor() argument
113 setRestarting(true, memFactor, now); in setMemFactor()
116 setStarted(true, memFactor, now); in setMemFactor()
119 setBound(true, memFactor, now); in setMemFactor()
122 setExecuting(true, memFactor, now); in setMemFactor()
262 private void updateRunning(int memFactor, long now) { in updateRunning() argument
264 || mExecState != STATE_NOTHING) ? memFactor : STATE_NOTHING; in updateRunning()
277 public void setStarted(boolean started, int memFactor, long now) { in setStarted() argument
282 updateStartedState(memFactor, now); in setStarted()
285 public void setRestarting(boolean restarting, int memFactor, long now) { in setRestarting() argument
[all …]
DProcessState.java356 public void setState(int state, int memFactor, long now, in setState() argument
360 ? (STATE_SERVICE_RESTARTING+(memFactor*STATE_COUNT)) : STATE_NOTHING; in setState()
362 state = PROCESS_STATE_TO_STATE[state] + (memFactor*STATE_COUNT); in setState()
430 public void incStartedServices(int memFactor, long now, String serviceName) { in incStartedServices() argument
438 mCommonProcess.incStartedServices(memFactor, now, serviceName); in incStartedServices()
442 setState(STATE_SERVICE_RESTARTING + (memFactor*STATE_COUNT), now); in incStartedServices()
446 public void decStartedServices(int memFactor, long now, String serviceName) { in decStartedServices() argument
454 mCommonProcess.decStartedServices(memFactor, now, serviceName); in decStartedServices()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java128 public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) { in setMemFactorLocked() argument
129 mMemFactorLowered = memFactor < mLastMemOnlyState; in setMemFactorLocked()
130 mLastMemOnlyState = memFactor; in setMemFactorLocked()
132 memFactor += ProcessStats.ADJ_SCREEN_ON; in setMemFactorLocked()
134 if (memFactor != mProcessStats.mMemFactor) { in setMemFactorLocked()
139 mProcessStats.mMemFactor = memFactor; in setMemFactorLocked()
152 service.setMemFactor(memFactor, now); in setMemFactorLocked()
DServiceRecord.java353 public void makeRestarting(int memFactor, long now) { in makeRestarting() argument
364 restartTracker.setRestarting(true, memFactor, now); in makeRestarting()
DActiveServices.java2072 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in bringDownServiceLocked() local
2075 r.tracker.setStarted(false, memFactor, now); in bringDownServiceLocked()
2076 r.tracker.setBound(false, memFactor, now); in bringDownServiceLocked()
2260 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in serviceProcessGoneLocked() local
2262 r.tracker.setExecuting(false, memFactor, now); in serviceProcessGoneLocked()
2263 r.tracker.setBound(false, memFactor, now); in serviceProcessGoneLocked()
2264 r.tracker.setStarted(false, memFactor, now); in serviceProcessGoneLocked()
DActivityManagerService.java20396 private final void setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) { in setProcessTrackerStateLocked() argument
20399 proc.baseProcessTracker.setState(proc.repProcState, memFactor, now, proc.pkgList); in setProcessTrackerStateLocked()
20695 int memFactor; in updateOomAdjLocked() local
20699 memFactor = ProcessStats.ADJ_MEM_FACTOR_CRITICAL; in updateOomAdjLocked()
20701 memFactor = ProcessStats.ADJ_MEM_FACTOR_LOW; in updateOomAdjLocked()
20703 memFactor = ProcessStats.ADJ_MEM_FACTOR_MODERATE; in updateOomAdjLocked()
20706 memFactor = ProcessStats.ADJ_MEM_FACTOR_NORMAL; in updateOomAdjLocked()
20711 if (DEBUG_OOM_ADJ) Slog.d(TAG_OOM_ADJ, "oom: memFactor=" + memFactor in updateOomAdjLocked()
20714 if (memFactor > mLastMemoryLevel) { in updateOomAdjLocked()
20716 memFactor = mLastMemoryLevel; in updateOomAdjLocked()
[all …]