Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsImplTest.java99 for (int procState = 0; procState < NUM_PROCESS_STATE; ++procState) { in testUpdateProcStateCpuTimes()
100 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
101 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
110 for (int procState = 0; procState < NUM_PROCESS_STATE; ++procState) { in testUpdateProcStateCpuTimes()
111 if (procState == testProcStates[i]) { in testUpdateProcStateCpuTimes()
113 u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
115 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
117 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
137 for (int procState = 0; procState < NUM_PROCESS_STATE; ++procState) { in testUpdateProcStateCpuTimes()
138 if (procState == testProcStates[i]) { in testUpdateProcStateCpuTimes()
[all …]
DBstatsCpuTimesValidationTest.java664 private void doSomeWork(int procState) throws Exception { in doSomeWork() argument
666 switch (procState) { in doSomeWork()
688 throw new IllegalArgumentException("Unknown state: " + procState); in doSomeWork()
691 assertProcState(procState); in doSomeWork()
720 private String getStateName(Class clazz, int procState) { in getStateName() argument
721 return DebugUtils.valueToString(clazz, "PROCESS_STATE_", procState); in getStateName()
870 private static long[] getAllCpuFreqTimes(int uid, int procState) throws Exception { in getAllCpuFreqTimes() argument
873 uid + ",l,ctf," + UID_PROCESS_TYPES[procState] + ",(.*?)\n"); in getAllCpuFreqTimes()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java650 int procState; field in OomAdjuster.ComputeOomAdjWindowCallback
657 int procState, int schedGroup, int appUid, int logUid, int processStateCurTop) { in initialize() argument
661 this.procState = procState; in initialize()
678 if (procState > processStateCurTop) { in onVisibleActivity()
679 procState = processStateCurTop; in onVisibleActivity()
703 if (procState > processStateCurTop) { in onPausedActivity()
704 procState = processStateCurTop; in onPausedActivity()
737 if (procState > PROCESS_STATE_LAST_ACTIVITY) { in onStoppingActivity()
738 procState = PROCESS_STATE_LAST_ACTIVITY; in onStoppingActivity()
753 if (procState > PROCESS_STATE_CACHED_ACTIVITY) { in onOtherActivity()
[all …]
DProcessMemInfo.java23 final int procState; field in ProcessMemInfo
35 procState = _procState; in ProcessMemInfo()
DAppCompactor.java482 for (String procState : procStates) { in parseProcStateThrottle()
484 mProcStateThrottle.add(Integer.parseInt(procState)); in parseProcStateThrottle()
487 + procState); in parseProcStateThrottle()
540 int procState = msg.arg2; in handleMessage() local
649 if (mProcStateThrottle.contains(procState)) { in handleMessage()
652 + "; proc state is " + procState); in handleMessage()
731 lastCompactAction, lastCompactTime, lastOomAdj, procState, in handleMessage()
742 ActivityManager.processStateAmToProto(procState), in handleMessage()
DProcessList.java889 String procState; in makeProcStateString() local
892 procState = "PER "; in makeProcStateString()
895 procState = "PERU"; in makeProcStateString()
898 procState = "TOP "; in makeProcStateString()
901 procState = "FGSL"; in makeProcStateString()
904 procState = "BTOP"; in makeProcStateString()
907 procState = "FGS "; in makeProcStateString()
910 procState = "BFGS"; in makeProcStateString()
913 procState = "IMPF"; in makeProcStateString()
916 procState = "IMPB"; in makeProcStateString()
[all …]
DContentProviderConnection.java82 public void trackProcState(int procState, int seq, long now) { in trackProcState() argument
84 association.trackProcState(procState, seq, now); in trackProcState()
DConnectionRecord.java148 public void trackProcState(int procState, int seq, long now) { in trackProcState() argument
150 association.trackProcState(procState, seq, now); in trackProcState()
DPendingIntentRecord.java364 int procState = controller.mAmInternal.getUidProcessState(callingUid); in sendInner() local
365 if (!ActivityManager.isProcStateBackground(procState)) { in sendInner()
380 Slog.w(TAG, "Not doing whitelist " + this + ": caller state=" + procState); in sendInner()
/frameworks/base/services/core/java/com/android/server/wm/
DMirrorActiveUids.java31 synchronized void onUidActive(int uid, int procState) { in onUidActive() argument
32 mUidStates.put(uid, procState); in onUidActive()
43 synchronized void onUidProcStateChanged(int uid, int procState) { in onUidProcStateChanged() argument
46 mUidStates.setValueAt(index, procState); in onUidProcStateChanged()
DActivityTaskManagerInternal.java525 public abstract void onUidActive(int uid, int procState); in onUidActive() argument
528 public abstract void onUidProcStateChanged(int uid, int procState); in onUidProcStateChanged() argument
/frameworks/native/libs/binder/
DIUidObserver.cpp59 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq) in onUidStateChanged() argument
64 data.writeInt32(procState); in onUidStateChanged()
105 int32_t procState = data.readInt32(); in onTransact() local
107 onUidStateChanged(uid, procState, procStateSeq); in onTransact()
/frameworks/base/core/java/com/android/internal/app/procstats/
DAssociationState.java76 public void trackProcState(int procState, int seq, long now) { in trackProcState() argument
77 procState = ProcessState.PROCESS_STATE_TO_STATE[procState]; in trackProcState()
80 mProcState = procState; in trackProcState()
81 } else if (procState < mProcState) { in trackProcState()
82 mProcState = procState; in trackProcState()
84 if (procState < ProcessStats.STATE_HOME) { in trackProcState()
678 final int procState = SparseMappingTable.getIdFromKey(dkey); in dumpTimesCheckin() local
680 DumpUtils.printArrayEntry(pw, DumpUtils.STATE_TAGS, procState, 1); in dumpTimesCheckin()
729 final int procState = SparseMappingTable.getIdFromKey(dkey); in writeToProto() local
734 DumpUtils.STATE_PROTO_ENUMS, procState, 1); in writeToProto()
DProcessState.java737 int procState = type % STATE_COUNT; in aggregatePss() local
742 if (procState <= STATE_IMPORTANT_FOREGROUND) { in aggregatePss()
744 } else if (procState <= STATE_RECEIVER) { in aggregatePss()
785 final int procState = type % STATE_COUNT; in aggregatePss() local
786 data.processStateTime[procState] += time; in aggregatePss()
791 } else if (procState <= STATE_IMPORTANT_FOREGROUND) { in aggregatePss()
794 } else if (procState <= STATE_RECEIVER) { in aggregatePss()
801 double newAvg = ( (data.processStatePss[procState] in aggregatePss()
802 * (double)data.processStateSamples[procState]) in aggregatePss()
804 ) / (data.processStateSamples[procState]+samples); in aggregatePss()
[all …]
DDumpUtils.java280 int procState, long duration) { in printProcStateDurationProto() argument
283 DumpUtils.STATE_PROTO_ENUMS, procState, 1); in printProcStateDurationProto()
/frameworks/base/core/java/android/app/
DActivityManager.java173 public void onUidStateChanged(int uid, int procState, long procStateSeq) { in onUidStateChanged() argument
175 procState, mContext)); in onUidStateChanged()
667 public static final boolean isProcStateBackground(int procState) { in isProcStateBackground() argument
668 return procState >= PROCESS_STATE_TRANSIENT_BACKGROUND; in isProcStateBackground()
672 public static boolean isForegroundService(int procState) { in isForegroundService() argument
673 return procState == PROCESS_STATE_FOREGROUND_SERVICE_LOCATION in isForegroundService()
674 || procState == PROCESS_STATE_FOREGROUND_SERVICE; in isForegroundService()
2963 public static @Importance int procStateToImportance(int procState) {
2964 if (procState == PROCESS_STATE_NONEXISTENT) {
2966 } else if (procState >= PROCESS_STATE_HOME) {
[all …]
DIUidObserver.aidl54 void onUidStateChanged(int uid, int procState, long procStateSeq); in onUidStateChanged() argument
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java528 public static boolean isProcStateAllowedWhileIdleOrPowerSaveMode(int procState) {
529 return procState <= FOREGROUND_THRESHOLD_STATE;
537 public static boolean isProcStateAllowedWhileOnRestrictBackground(int procState) {
538 return procState <= FOREGROUND_THRESHOLD_STATE;
/frameworks/base/core/java/android/app/servertransaction/
DResumeActivityItem.java79 public static ResumeActivityItem obtain(int procState, boolean isForward) { in obtain() argument
84 instance.mProcState = procState; in obtain()
DLaunchActivityItem.java101 String referrer, IVoiceInteractor voiceInteractor, int procState, Bundle state, in obtain() argument
110 voiceInteractor, procState, state, persistentState, pendingResults, in obtain()
264 int procState, Bundle state, PersistableBundle persistentState, in setValues() argument
275 instance.mProcState = procState; in setValues()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java91 void uidStateChanged(int uid, int procState, long procStateSeq) { in uidStateChanged() argument
94 uid + " state changed to " + procState + " with seq=" + procStateSeq); in uidStateChanged()
95 mUidStateChangeBuffer.uidStateChanged(uid, procState, procStateSeq); in uidStateChanged()
326 public void uidStateChanged(int uid, int procState, long procStateSeq) { in uidStateChanged() argument
333 data.ifield2 = procState; in uidStateChanged()
/frameworks/native/libs/binder/include/binder/
DIUidObserver.h37 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq) = 0;
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DObjectPoolTests.java139 int procState = 4; in testRecycleLaunchActivityItem() local
150 procState, bundle, persistableBundle, resultInfoList(), referrerIntentList(), in testRecycleLaunchActivityItem()
160 procState, bundle, persistableBundle, resultInfoList(), referrerIntentList(), in testRecycleLaunchActivityItem()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java190 public abstract void updateUidProcState(int uid, int procState); in updateUidProcState() argument
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java636 public void onUidStateChanged(int uid, int procState, long procStateSeq) { in onUidStateChanged() argument
637 mHandler.onUidStateChanged(uid, procState); in onUidStateChanged()
794 public void onUidStateChanged(int uid, int procState) { in onUidStateChanged() argument
795 obtainMessage(MSG_ON_UID_STATE_CHANGED, uid, procState).sendToTarget(); in onUidStateChanged()
919 public void handleUidStateChanged(int uid, int procState) { in handleUidStateChanged() argument
921 if (procState > ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND) { in handleUidStateChanged()

123