Home
last modified time | relevance | path

Searched refs:procState (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java368 String procState; in makeProcStateString() local
371 procState = "N "; in makeProcStateString()
374 procState = "P "; in makeProcStateString()
377 procState = "PU"; in makeProcStateString()
380 procState = "T "; in makeProcStateString()
383 procState = "SB"; in makeProcStateString()
386 procState = "SF"; in makeProcStateString()
389 procState = "TS"; in makeProcStateString()
392 procState = "IF"; in makeProcStateString()
395 procState = "IB"; in makeProcStateString()
[all …]
DProcessMemInfo.java23 final int procState; field in ProcessMemInfo
34 procState = _procState; in ProcessMemInfo()
DActivityManagerService.java2382 int procState;
2394 procState = proc.pssProcState;
2396 if (proc.thread != null && procState == proc.setProcState
2408 if (pss != 0 && proc.thread != null && proc.setProcState == procState
2411 recordPssSampleLocked(proc, procState, pss, tmp[0], tmp[1],
4041 int procState = ActivityManager.PROCESS_STATE_NONEXISTENT; in getPackageProcessState() local
4045 if (procState == ActivityManager.PROCESS_STATE_NONEXISTENT in getPackageProcessState()
4046 || procState > proc.setProcState) { in getPackageProcessState()
4050 procState = proc.setProcState; in getPackageProcessState()
4057 procState = proc.setProcState; in getPackageProcessState()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java667 int procState = type % STATE_COUNT; in aggregatePss() local
672 if (procState <= STATE_IMPORTANT_FOREGROUND) { in aggregatePss()
674 } else if (procState <= STATE_RECEIVER) { in aggregatePss()
715 final int procState = type % STATE_COUNT; in aggregatePss() local
716 data.processStateTime[procState] += time; in aggregatePss()
721 } else if (procState <= STATE_IMPORTANT_FOREGROUND) { in aggregatePss()
724 } else if (procState <= STATE_RECEIVER) { in aggregatePss()
731 double newAvg = ( (data.processStatePss[procState] in aggregatePss()
732 * (double)data.processStateSamples[procState]) in aggregatePss()
734 ) / (data.processStateSamples[procState]+samples); in aggregatePss()
[all …]
DProcessStats.java1633 final ProcessState procState = uids.valueAt(iu); in dumpCheckinLocked() local
1634 procState.dumpProcCheckin(pw, procName, uid, now); in dumpCheckinLocked()
/frameworks/base/core/java/android/app/
DAppImportanceMonitor.java52 public void onProcessStateChanged(int pid, int uid, int procState) {
55 ActivityManager.RunningAppProcessInfo.procStateToImportance(procState),
DIUidObserver.aidl24 void onUidStateChanged(int uid, int procState); in onUidStateChanged() argument
DIProcessObserver.aidl23 void onProcessStateChanged(int pid, int uid, int procState); in onProcessStateChanged() argument
DActivityManager.java399 public static final boolean isProcStateBackground(int procState) { in isProcStateBackground() argument
400 return procState >= PROCESS_STATE_BACKUP; in isProcStateBackground()
2813 public static int procStateToImportance(int procState) { in procStateToImportance() argument
2814 if (procState == PROCESS_STATE_NONEXISTENT) { in procStateToImportance()
2816 } else if (procState >= PROCESS_STATE_HOME) { in procStateToImportance()
2818 } else if (procState >= PROCESS_STATE_SERVICE) { in procStateToImportance()
2820 } else if (procState > PROCESS_STATE_HEAVY_WEIGHT) { in procStateToImportance()
2822 } else if (procState >= PROCESS_STATE_IMPORTANT_BACKGROUND) { in procStateToImportance()
2824 } else if (procState >= PROCESS_STATE_IMPORTANT_FOREGROUND) { in procStateToImportance()
2826 } else if (procState >= PROCESS_STATE_TOP_SLEEPING) { in procStateToImportance()
[all …]
DIApplicationThread.java57 void scheduleResumeActivity(IBinder token, int procState, boolean isForward, Bundle resumeArgs) in scheduleResumeActivity() argument
63 int procState, Bundle state, PersistableBundle persistentState, in scheduleLaunchActivity() argument
DApplicationThreadNative.java122 int procState = data.readInt(); in onTransact() local
125 scheduleResumeActivity(b, procState, isForward, resumeArgs); in onTransact()
154 int procState = data.readInt(); in onTransact() local
164 referrer, voiceInteractor, procState, state, persistentState, ri, pi, in onTransact()
823 public final void scheduleResumeActivity(IBinder token, int procState, boolean isForward, in scheduleResumeActivity() argument
829 data.writeInt(procState); in scheduleResumeActivity()
851 int procState, Bundle state, PersistableBundle persistentState, in scheduleLaunchActivity() argument
870 data.writeInt(procState); in scheduleLaunchActivity()
DActivityThread.java712 int procState, Bundle state, PersistableBundle persistentState, in scheduleLaunchActivity() argument
716 updateProcessState(procState, false); in scheduleLaunchActivity()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java163 public abstract void updateUidProcState(int uid, int procState); in updateUidProcState() argument
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java652 @Override public void onUidStateChanged(int uid, int procState) throws RemoteException {
654 updateUidStateLocked(uid, procState);
2433 final int procState = mUidState.get(uid, ActivityManager.PROCESS_STATE_CACHED_EMPTY); in isUidForegroundOnRestrictBackgroundLocked() local
2434 return isProcStateAllowedWhileOnRestrictBackgroundLocked(procState); in isUidForegroundOnRestrictBackgroundLocked()
2438 final int procState = mUidState.get(uid, ActivityManager.PROCESS_STATE_CACHED_EMPTY); in isUidForegroundOnRestrictPowerLocked() local
2439 return isProcStateAllowedWhileIdleOrPowerSaveMode(procState); in isUidForegroundOnRestrictPowerLocked()
2540 static boolean isProcStateAllowedWhileIdleOrPowerSaveMode(int procState) { in isProcStateAllowedWhileIdleOrPowerSaveMode() argument
2541 return procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE; in isProcStateAllowedWhileIdleOrPowerSaveMode()
2544 static boolean isProcStateAllowedWhileOnRestrictBackgroundLocked(int procState) { in isProcStateAllowedWhileOnRestrictBackgroundLocked() argument
2545 return procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE; in isProcStateAllowedWhileOnRestrictBackgroundLocked()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java463 @Override public void onUidStateChanged(int uid, int procState) throws RemoteException {
464 updateUidState(uid, procState);
646 void updateUidState(int uid, int procState) { in updateUidState() argument
648 if (procState == ActivityManager.PROCESS_STATE_TOP) { in updateUidState()
653 } else if (procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in updateUidState()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java345 @Override public void onUidStateChanged(int uid, int procState) throws RemoteException {
346 handleOnUidStateChanged(uid, procState);
360 void handleOnUidStateChanged(int uid, int procState) { in handleOnUidStateChanged() argument
362 Slog.d(TAG, "onUidStateChanged: uid=" + uid + " state=" + procState); in handleOnUidStateChanged()
365 mUidState.put(uid, procState); in handleOnUidStateChanged()
370 if (isProcessStateForeground(procState)) { in handleOnUidStateChanged()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp644 int CameraService::getCameraPriorityFromProcState(int procState) { in getCameraPriorityFromProcState() argument
647 if (procState < 0) { in getCameraPriorityFromProcState()
649 procState); in getCameraPriorityFromProcState()
654 if (procState == PROCESS_STATE_TOP_SLEEPING) { in getCameraPriorityFromProcState()
655 procState = PROCESS_STATE_TOP; in getCameraPriorityFromProcState()
657 return INT_MAX - procState; in getCameraPriorityFromProcState()
DCameraService.h750 static int getCameraPriorityFromProcState(int procState);
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2489 void updateUidProcStateInternal(int uid, int procState) { in updateUidProcStateInternal() argument
2491 mUidState.put(uid, procState); in updateUidProcStateInternal()
3734 public void updateUidProcState(int uid, int procState) { in updateUidProcState() argument
3735 updateUidProcStateInternal(uid, procState); in updateUidProcState()
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java1634 int procState = mAm.getPackageProcessState(packageName, "com.android.shell");
1636 ActivityManager.RunningAppProcessInfo.procStateToImportance(procState));
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java7266 public void updateUidProcessStateLocked(int procState) { in updateUidProcessStateLocked() argument
7268 if (procState == ActivityManager.PROCESS_STATE_NONEXISTENT) { in updateUidProcessStateLocked()
7270 } else if (procState == ActivityManager.PROCESS_STATE_TOP) { in updateUidProcessStateLocked()
7272 } else if (procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in updateUidProcessStateLocked()
7275 } else if (procState <= ActivityManager.PROCESS_STATE_TOP_SLEEPING) { in updateUidProcessStateLocked()
7277 } else if (procState <= ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND) { in updateUidProcessStateLocked()
7280 } else if (procState <= ActivityManager.PROCESS_STATE_RECEIVER) { in updateUidProcessStateLocked()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java2798 @Override public void onUidStateChanged(int uid, int procState) throws RemoteException { in onUidStateChanged() argument