/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsImplTest.java | 99 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 …]
|
D | BstatsCpuTimesValidationTest.java | 664 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/ |
D | OomAdjuster.java | 646 int procState; field in OomAdjuster.ComputeOomAdjWindowCallback 653 int procState, int schedGroup, int appUid, int logUid, int processStateCurTop) { in initialize() argument 657 this.procState = procState; in initialize() 674 if (procState > processStateCurTop) { in onVisibleActivity() 675 procState = processStateCurTop; in onVisibleActivity() 699 if (procState > processStateCurTop) { in onPausedActivity() 700 procState = processStateCurTop; in onPausedActivity() 733 if (procState > PROCESS_STATE_LAST_ACTIVITY) { in onStoppingActivity() 734 procState = PROCESS_STATE_LAST_ACTIVITY; in onStoppingActivity() 749 if (procState > PROCESS_STATE_CACHED_ACTIVITY) { in onOtherActivity() [all …]
|
D | ProcessMemInfo.java | 23 final int procState; field in ProcessMemInfo 35 procState = _procState; in ProcessMemInfo()
|
D | AppCompactor.java | 482 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()
|
D | ProcessList.java | 759 String procState; in makeProcStateString() local 762 procState = "PER "; in makeProcStateString() 765 procState = "PERU"; in makeProcStateString() 768 procState = "TOP "; in makeProcStateString() 771 procState = "FGSL"; in makeProcStateString() 774 procState = "BTOP"; in makeProcStateString() 777 procState = "FGS "; in makeProcStateString() 780 procState = "BFGS"; in makeProcStateString() 783 procState = "IMPF"; in makeProcStateString() 786 procState = "IMPB"; in makeProcStateString() [all …]
|
D | ContentProviderConnection.java | 82 public void trackProcState(int procState, int seq, long now) { in trackProcState() argument 84 association.trackProcState(procState, seq, now); in trackProcState()
|
D | ConnectionRecord.java | 148 public void trackProcState(int procState, int seq, long now) { in trackProcState() argument 150 association.trackProcState(procState, seq, now); in trackProcState()
|
D | PendingIntentRecord.java | 364 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/ |
D | MirrorActiveUids.java | 31 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()
|
D | ActivityTaskManagerInternal.java | 519 public abstract void onUidActive(int uid, int procState); in onUidActive() argument 522 public abstract void onUidProcStateChanged(int uid, int procState); in onUidProcStateChanged() argument
|
/frameworks/native/libs/binder/ |
D | IUidObserver.cpp | 59 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/android/net/ |
D | NetworkPolicyManager.java | 356 public static boolean isProcStateAllowedWhileIdleOrPowerSaveMode(int procState) { 357 return procState <= FOREGROUND_THRESHOLD_STATE; 364 public static boolean isProcStateAllowedWhileOnRestrictBackground(int procState) { 365 return procState <= FOREGROUND_THRESHOLD_STATE;
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | AssociationState.java | 76 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()
|
D | ProcessState.java | 737 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 …]
|
/frameworks/base/core/java/android/app/ |
D | ActivityManager.java | 166 public void onUidStateChanged(int uid, int procState, long procStateSeq) { in onUidStateChanged() argument 168 procState, mContext)); in onUidStateChanged() 660 public static final boolean isProcStateBackground(int procState) { in isProcStateBackground() argument 661 return procState >= PROCESS_STATE_TRANSIENT_BACKGROUND; in isProcStateBackground() 665 public static boolean isForegroundService(int procState) { in isForegroundService() argument 666 return procState == PROCESS_STATE_FOREGROUND_SERVICE_LOCATION in isForegroundService() 667 || procState == PROCESS_STATE_FOREGROUND_SERVICE; in isForegroundService() 2956 public static @Importance int procStateToImportance(int procState) { 2957 if (procState == PROCESS_STATE_NONEXISTENT) { 2959 } else if (procState >= PROCESS_STATE_HOME) { [all …]
|
D | IUidObserver.aidl | 54 void onUidStateChanged(int uid, int procState, long procStateSeq); in onUidStateChanged() argument
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ResumeActivityItem.java | 79 public static ResumeActivityItem obtain(int procState, boolean isForward) { in obtain() argument 84 instance.mProcState = procState; in obtain()
|
D | LaunchActivityItem.java | 101 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/ |
D | NetworkPolicyLogger.java | 91 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/ |
D | IUidObserver.h | 37 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq) = 0;
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | ObjectPoolTests.java | 139 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/ |
D | PowerManagerInternal.java | 190 public abstract void updateUidProcState(int uid, int procState); in updateUidProcState() argument
|
D | BatteryStats.java | 604 public static int mapToInternalProcessState(int procState) { in mapToInternalProcessState() argument 605 if (procState == ActivityManager.PROCESS_STATE_NONEXISTENT) { in mapToInternalProcessState() 607 } else if (procState == ActivityManager.PROCESS_STATE_TOP) { in mapToInternalProcessState() 609 } else if (ActivityManager.isForegroundService(procState)) { in mapToInternalProcessState() 612 } else if (procState <= ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND) { in mapToInternalProcessState() 615 } else if (procState <= ActivityManager.PROCESS_STATE_RECEIVER) { in mapToInternalProcessState() 617 } else if (procState <= ActivityManager.PROCESS_STATE_TOP_SLEEPING) { in mapToInternalProcessState() 619 } else if (procState <= ActivityManager.PROCESS_STATE_HEAVY_WEIGHT) { in mapToInternalProcessState() 789 public abstract long[] getCpuFreqTimes(int which, int procState); in getCpuFreqTimes() argument 793 public abstract long[] getScreenOffCpuFreqTimes(int which, int procState); in getScreenOffCpuFreqTimes() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 636 public void onUidStateChanged(int uid, int procState, long procStateSeq) { in onUidStateChanged() argument 637 mHandler.onUidStateChanged(uid, procState); in onUidStateChanged() 792 public void onUidStateChanged(int uid, int procState) { in onUidStateChanged() argument 793 obtainMessage(MSG_ON_UID_STATE_CHANGED, uid, procState).sendToTarget(); in onUidStateChanged() 917 public void handleUidStateChanged(int uid, int procState) { in handleUidStateChanged() argument 919 if (procState > ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND) { in handleUidStateChanged()
|