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.java3096 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in bringDownServiceLocked() local
3099 r.tracker.setStarted(false, memFactor, now); in bringDownServiceLocked()
3100 r.tracker.setBound(false, memFactor, now); in bringDownServiceLocked()
3292 int memFactor = mAm.mProcessStats.getMemFactorLocked(); in serviceProcessGoneLocked() local
3294 r.tracker.setExecuting(false, memFactor, now); in serviceProcessGoneLocked()
3295 r.tracker.setForeground(false, memFactor, now); in serviceProcessGoneLocked()
3296 r.tracker.setBound(false, memFactor, now); in serviceProcessGoneLocked()
3297 r.tracker.setStarted(false, memFactor, now); in serviceProcessGoneLocked()
3339 final int memFactor = mAm.mProcessStats.getMemFactorLocked(); in serviceDoneExecutingLocked() local
3341 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.java16767 final void setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) { in setProcessTrackerStateLocked() argument
16770 proc.getReportedProcState(), memFactor, now, proc.pkgList.mPkgList); in setProcessTrackerStateLocked() local
16889 int memFactor; in updateLowMemStateLocked() local
16891 memFactor = mLowMemDetector.getMemFactor(); in updateLowMemStateLocked()
16903 memFactor = ProcessStats.ADJ_MEM_FACTOR_CRITICAL; in updateLowMemStateLocked()
16905 memFactor = ProcessStats.ADJ_MEM_FACTOR_LOW; in updateLowMemStateLocked()
16907 memFactor = ProcessStats.ADJ_MEM_FACTOR_MODERATE; in updateLowMemStateLocked()
16910 memFactor = ProcessStats.ADJ_MEM_FACTOR_NORMAL; in updateLowMemStateLocked()
16916 if (DEBUG_OOM_ADJ) Slog.d(TAG_OOM_ADJ, "oom: memFactor=" + memFactor in updateLowMemStateLocked()
16919 if (memFactor > mLastMemoryLevel) { in updateLowMemStateLocked()
[all …]