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.java103 public void setMemFactor(int memFactor, long now) { in setMemFactor() argument
105 setRestarting(true, memFactor, now); in setMemFactor()
108 setStarted(true, memFactor, now); in setMemFactor()
111 setBound(true, memFactor, now); in setMemFactor()
114 setExecuting(true, memFactor, now); in setMemFactor()
117 setForeground(true, memFactor, now); in setMemFactor()
283 private void updateRunning(int memFactor, long now) { in updateRunning() argument
286 ? memFactor : STATE_NOTHING; in updateRunning()
299 public void setStarted(boolean started, int memFactor, long now) { in setStarted() argument
304 updateStartedState(memFactor, now); in setStarted()
[all …]
DProcessState.java374 public void setState(int state, int memFactor, long now, in setState() argument
378 ? (STATE_SERVICE_RESTARTING+(memFactor*STATE_COUNT)) : STATE_NOTHING; in setState()
380 state = PROCESS_STATE_TO_STATE[state] + (memFactor*STATE_COUNT); in setState()
467 public void incStartedServices(int memFactor, long now, String serviceName) { in incStartedServices() argument
475 mCommonProcess.incStartedServices(memFactor, now, serviceName); in incStartedServices()
479 setCombinedState(STATE_SERVICE_RESTARTING + (memFactor*STATE_COUNT), now); in incStartedServices()
483 public void decStartedServices(int memFactor, long now, String serviceName) { in decStartedServices() argument
491 mCommonProcess.decStartedServices(memFactor, now, serviceName); in decStartedServices()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java149 public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) { in setMemFactorLocked() argument
150 mMemFactorLowered = memFactor < mLastMemOnlyState; in setMemFactorLocked()
151 mLastMemOnlyState = memFactor; in setMemFactorLocked()
156 memFactor += ProcessStats.ADJ_SCREEN_ON; in setMemFactorLocked()
158 if (memFactor != mProcessStats.mMemFactor) { in setMemFactorLocked()
163 mProcessStats.mMemFactor = memFactor; in setMemFactorLocked()
177 service.setMemFactor(memFactor, now); in setMemFactorLocked()
DActiveServices.java3059 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in bringDownServiceLocked() local
3062 r.tracker.setStarted(false, memFactor, now); in bringDownServiceLocked()
3063 r.tracker.setBound(false, memFactor, now); in bringDownServiceLocked()
3252 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in serviceProcessGoneLocked() local
3254 r.tracker.setExecuting(false, memFactor, now); in serviceProcessGoneLocked()
3255 r.tracker.setForeground(false, memFactor, now); in serviceProcessGoneLocked()
3256 r.tracker.setBound(false, memFactor, now); in serviceProcessGoneLocked()
3257 r.tracker.setStarted(false, memFactor, now); in serviceProcessGoneLocked()
3299 final int memFactor = mAm.mProcessStats.getMemFactorLocked(); in serviceDoneExecutingLocked() local
3301 r.tracker.setExecuting(false, memFactor, now); in serviceDoneExecutingLocked()
[all …]
DServiceRecord.java529 public void makeRestarting(int memFactor, long now) { in makeRestarting() argument
541 restartTracker.setRestarting(true, memFactor, now); in makeRestarting()
DActivityManagerService.java16650 final void setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) { in setProcessTrackerStateLocked() argument
16653 proc.getReportedProcState(), memFactor, now, proc.pkgList.mPkgList); in setProcessTrackerStateLocked() local
16772 int memFactor; in updateLowMemStateLocked() local
16774 memFactor = mLowMemDetector.getMemFactor(); in updateLowMemStateLocked()
16786 memFactor = ProcessStats.ADJ_MEM_FACTOR_CRITICAL; in updateLowMemStateLocked()
16788 memFactor = ProcessStats.ADJ_MEM_FACTOR_LOW; in updateLowMemStateLocked()
16790 memFactor = ProcessStats.ADJ_MEM_FACTOR_MODERATE; in updateLowMemStateLocked()
16793 memFactor = ProcessStats.ADJ_MEM_FACTOR_NORMAL; in updateLowMemStateLocked()
16799 if (DEBUG_OOM_ADJ) Slog.d(TAG_OOM_ADJ, "oom: memFactor=" + memFactor in updateLowMemStateLocked()
16802 if (memFactor > mLastMemoryLevel) { in updateLowMemStateLocked()
[all …]