Searched refs:memFactor (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ServiceState.java | 111 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 …]
|
D | ProcessState.java | 348 public void setState(int state, int memFactor, long now, in setState() argument 352 ? (STATE_SERVICE_RESTARTING+(memFactor*STATE_COUNT)) : STATE_NOTHING; in setState() 354 state = PROCESS_STATE_TO_STATE[state] + (memFactor*STATE_COUNT); in setState() 422 public void incStartedServices(int memFactor, long now, String serviceName) { in incStartedServices() argument 430 mCommonProcess.incStartedServices(memFactor, now, serviceName); in incStartedServices() 434 setState(STATE_SERVICE_RESTARTING + (memFactor*STATE_COUNT), now); in incStartedServices() 438 public void decStartedServices(int memFactor, long now, String serviceName) { in decStartedServices() argument 446 mCommonProcess.decStartedServices(memFactor, now, serviceName); in decStartedServices()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessStatsService.java | 139 public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) { in setMemFactorLocked() argument 140 mMemFactorLowered = memFactor < mLastMemOnlyState; in setMemFactorLocked() 141 mLastMemOnlyState = memFactor; in setMemFactorLocked() 146 memFactor += ProcessStats.ADJ_SCREEN_ON; in setMemFactorLocked() 148 if (memFactor != mProcessStats.mMemFactor) { in setMemFactorLocked() 153 mProcessStats.mMemFactor = memFactor; in setMemFactorLocked() 167 service.setMemFactor(memFactor, now); in setMemFactorLocked()
|
D | ServiceRecord.java | 489 public void makeRestarting(int memFactor, long now) { in makeRestarting() argument 500 restartTracker.setRestarting(true, memFactor, now); in makeRestarting()
|
D | ActiveServices.java | 2812 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in bringDownServiceLocked() local 2815 r.tracker.setStarted(false, memFactor, now); in bringDownServiceLocked() 2816 r.tracker.setBound(false, memFactor, now); in bringDownServiceLocked() 3000 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in serviceProcessGoneLocked() local 3002 r.tracker.setExecuting(false, memFactor, now); in serviceProcessGoneLocked() 3003 r.tracker.setBound(false, memFactor, now); in serviceProcessGoneLocked() 3004 r.tracker.setStarted(false, memFactor, now); in serviceProcessGoneLocked()
|
D | ActivityManagerService.java | 24801 private final void setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) { in setProcessTrackerStateLocked() argument 24804 proc.baseProcessTracker.setState(proc.repProcState, memFactor, now, proc.pkgList); in setProcessTrackerStateLocked() 25156 int memFactor; in updateOomAdjLocked() local 25160 memFactor = ProcessStats.ADJ_MEM_FACTOR_CRITICAL; in updateOomAdjLocked() 25162 memFactor = ProcessStats.ADJ_MEM_FACTOR_LOW; in updateOomAdjLocked() 25164 memFactor = ProcessStats.ADJ_MEM_FACTOR_MODERATE; in updateOomAdjLocked() 25167 memFactor = ProcessStats.ADJ_MEM_FACTOR_NORMAL; in updateOomAdjLocked() 25172 if (DEBUG_OOM_ADJ) Slog.d(TAG_OOM_ADJ, "oom: memFactor=" + memFactor in updateOomAdjLocked() 25175 if (memFactor > mLastMemoryLevel) { in updateOomAdjLocked() 25177 memFactor = mLastMemoryLevel; in updateOomAdjLocked() [all …]
|