Lines Matching refs:procState
46 void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq,
53 static int32_t procStateToImportance(int32_t procState);
64 int32_t UidObserver::procStateToImportance(int32_t procState) { in procStateToImportance() argument
66 if (procState == ActivityManager::PROCESS_STATE_NONEXISTENT) { in procStateToImportance()
68 } else if (procState >= ActivityManager::PROCESS_STATE_HOME) { in procStateToImportance()
70 } else if (procState == ActivityManager::PROCESS_STATE_HEAVY_WEIGHT) { in procStateToImportance()
72 } else if (procState >= ActivityManager::PROCESS_STATE_TOP_SLEEPING) { in procStateToImportance()
74 } else if (procState >= ActivityManager::PROCESS_STATE_SERVICE) { in procStateToImportance()
76 } else if (procState >= ActivityManager::PROCESS_STATE_TRANSIENT_BACKGROUND) { in procStateToImportance()
78 } else if (procState >= ActivityManager::PROCESS_STATE_IMPORTANT_FOREGROUND) { in procStateToImportance()
80 } else if (procState >= ActivityManager::PROCESS_STATE_FOREGROUND_SERVICE) { in procStateToImportance()
126 void UidObserver::onUidStateChanged(uid_t uid, int32_t procState, in onUidStateChanged() argument
132 mCallback(uid, procStateToImportance(procState), mCookie); in onUidStateChanged()