Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsImplTest.java127 for (int procState = 0; procState < NUM_PROCESS_STATE; ++procState) { in testUpdateProcStateCpuTimes()
128 assertFalse(u.getCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
129 assertFalse(u.getScreenOffCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
151 for (int procState = 0; procState < NUM_PROCESS_STATE; ++procState) { in testUpdateProcStateCpuTimes()
152 final boolean hasTimeInFreq = u.getCpuFreqTimes(timeInFreqs, procState); in testUpdateProcStateCpuTimes()
153 if (procState == testProcStates[i]) { in testUpdateProcStateCpuTimes()
158 assertFalse(u.getScreenOffCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
184 for (int procState = 0; procState < NUM_PROCESS_STATE; ++procState) { in testUpdateProcStateCpuTimes()
185 if (procState == testProcStates[i]) { in testUpdateProcStateCpuTimes()
190 assertTrue(u.getCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
[all …]
/frameworks/base/native/android/
Dactivity_manager.cpp46 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()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
DProcessStateModifier.java66 public void onUidStateChanged(int uid, int procState, long procStateSeq, int capability) {
67 final int newBucket = getProcStateBucket(procState);
143 final int procState; in getModifiedPrice() local
145 procState = mUidProcStateBucketCache.get( in getModifiedPrice()
148 switch (procState) { in getModifiedPrice()
173 private int getProcStateBucket(int procState) { in getProcStateBucket() argument
174 if (procState <= ActivityManager.PROCESS_STATE_TOP) { in getProcStateBucket()
177 if (procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in getProcStateBucket()
180 if (procState <= ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE) { in getProcStateBucket()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java1355 int procState; field in OomAdjuster.ComputeOomAdjWindowCallback
1363 boolean hasVisibleActivities, int procState, int schedGroup, int appUid, in initialize() argument
1369 this.procState = procState; in initialize()
1387 if (procState > processStateCurTop) { in onVisibleActivity()
1388 procState = processStateCurTop; in onVisibleActivity()
1413 if (procState > processStateCurTop) { in onPausedActivity()
1414 procState = processStateCurTop; in onPausedActivity()
1448 if (procState > PROCESS_STATE_LAST_ACTIVITY) { in onStoppingActivity()
1449 procState = PROCESS_STATE_LAST_ACTIVITY; in onStoppingActivity()
1465 if (procState > PROCESS_STATE_CACHED_ACTIVITY) { in onOtherActivity()
[all …]
DUidObserverController.java98 int enqueueUidChange(@Nullable ChangeRecord currentRecord, int uid, int change, int procState, in enqueueUidChange() argument
119 changeRecord.procState = procState; in enqueueUidChange()
232 validateUid.setSetProcState(item.procState); in dispatchUidsChanged()
233 validateUid.setCurProcState(item.procState); in dispatchUidsChanged()
323 final boolean newAboveCut = item.procState <= reg.mCutpoint; in dispatchUidsChangedForObserver()
326 doReport = item.procState != PROCESS_STATE_NONEXISTENT; in dispatchUidsChangedForObserver()
336 + ": " + item.procState + ": " + item.capability); in dispatchUidsChangedForObserver()
339 reg.mLastProcStates.put(item.uid, item.procState); in dispatchUidsChangedForObserver()
341 observer.onUidStateChanged(item.uid, item.procState, in dispatchUidsChangedForObserver()
428 public int procState; field in UidObserverController.ChangeRecord
[all …]
DProcessMemInfo.java23 final int procState; field in ProcessMemInfo
35 procState = _procState; in ProcessMemInfo()
DBaseAppStateEventsTracker.java122 void onUidProcStateChanged(final int uid, final int procState) { in onUidProcStateChanged() argument
128 onUidProcStateChangedUncheckedLocked(uid, procState); in onUidProcStateChanged()
133 void onUidProcStateChangedUncheckedLocked(final int uid, final int procState) { in onUidProcStateChangedUncheckedLocked() argument
134 if (procState < ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in onUidProcStateChangedUncheckedLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DMirrorActiveUids.java38 synchronized void onUidActive(int uid, int procState) { in onUidActive() argument
39 mUidStates.put(uid, procState); in onUidActive()
46 synchronized void onUidProcStateChanged(int uid, int procState) { in onUidProcStateChanged() argument
49 mUidStates.setValueAt(index, procState); in onUidProcStateChanged()
/frameworks/av/media/libmediatranscoding/
DTranscodingUidPolicy.cpp144 void TranscodingUidPolicy::onUidStateChanged(uid_t uid, int32_t procState) { in onUidStateChanged() argument
145 ALOGV("onUidStateChanged: uid %u, procState %d", uid, procState); in onUidStateChanged()
153 if (it != mUidStateMap.end() && it->second != procState) { in onUidStateChanged()
154 isUidGone = (procState == AACTIVITYMANAGER_IMPORTANCE_GONE); in onUidStateChanged()
160 mStateUidMap[procState].insert(uid); in onUidStateChanged()
161 it->second = procState; in onUidStateChanged()
/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()
114 int32_t procState = data.readInt32(); in onTransact() local
117 onUidStateChanged(uid, procState, procStateSeq, capability); in onTransact()
/frameworks/base/apex/jobscheduler/framework/java/android/os/
DPowerExemptionManager.java627 public static @ReasonCode int getReasonCodeFromProcState(int procState) { in getReasonCodeFromProcState() argument
628 if (procState <= PROCESS_STATE_PERSISTENT) { in getReasonCodeFromProcState()
630 } else if (procState <= PROCESS_STATE_PERSISTENT_UI) { in getReasonCodeFromProcState()
632 } else if (procState <= PROCESS_STATE_TOP) { in getReasonCodeFromProcState()
634 } else if (procState <= PROCESS_STATE_BOUND_TOP) { in getReasonCodeFromProcState()
636 } else if (procState <= PROCESS_STATE_FOREGROUND_SERVICE) { in getReasonCodeFromProcState()
638 } else if (procState <= PROCESS_STATE_BOUND_FOREGROUND_SERVICE) { in getReasonCodeFromProcState()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java780 return isProcStateAllowedWhileIdleOrPowerSaveMode(uidState.procState, uidState.capability);
785 int procState, @ProcessCapability int capability) {
786 return procState <= FOREGROUND_THRESHOLD_STATE
795 return uidState.procState <= TOP_THRESHOLD_STATE;
807 return isProcStateAllowedWhileOnRestrictBackground(uidState.procState);
811 public static boolean isProcStateAllowedWhileOnRestrictBackground(int procState) {
813 return procState <= FOREGROUND_THRESHOLD_STATE;
819 public int procState;
823 public UidState(int uid, int procState, long procStateSeq, int capability) {
825 this.procState = procState;
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DProcessInfo.h35 virtual bool overrideProcessInfo(int pid, int procState, int oomScore);
43 int procState; member
DProcessInfoInterface.h28 virtual bool overrideProcessInfo(int pid, int procState, int oomScore);
/frameworks/base/services/core/java/com/android/server/pm/permission/
DOneTimePermissionUserManager.java178 public void onUidStateChanged(int uid, int procState, long procStateSeq,
181 if (procState > ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE
182 && procState != ActivityManager.PROCESS_STATE_NONEXISTENT) {
251 private int getStateFromProcState(int procState) { in getStateFromProcState() argument
252 if (procState == ActivityManager.PROCESS_STATE_NONEXISTENT) { in getStateFromProcState()
255 if (procState > ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in getStateFromProcState()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerServiceTest.java532 pendingChange.procState = procStatesForPendingUidRecords[i]; in testDispatchUids_dispatchNeededChanges()
597 changeItem.procState, changeItem.procStateSeq, in testDispatchUids_dispatchNeededChanges()
641 changeItem.procState = ActivityManager.PROCESS_STATE_LAST_ACTIVITY; in testDispatchUidChanges_procStateCutpoint()
648 changeItem.procState, changeItem.procStateSeq, in testDispatchUidChanges_procStateCutpoint()
652 changeItem.procState = ActivityManager.PROCESS_STATE_RECEIVER; in testDispatchUidChanges_procStateCutpoint()
659 changeItem.procState = ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE; in testDispatchUidChanges_procStateCutpoint()
666 changeItem.procState, changeItem.procStateSeq, in testDispatchUidChanges_procStateCutpoint()
670 changeItem.procState = ActivityManager.PROCESS_STATE_TOP; in testDispatchUidChanges_procStateCutpoint()
677 changeItem.procState = ActivityManager.PROCESS_STATE_CACHED_EMPTY; in testDispatchUidChanges_procStateCutpoint()
684 changeItem.procState, changeItem.procStateSeq, in testDispatchUidChanges_procStateCutpoint()
[all …]
DUidObserverControllerTest.java227 private void addPendingChange(int uid, int change, int procState, long procStateSeq, in addPendingChange() argument
232 record.procState = procState; in addPendingChange()
239 private void assertPendingChange(int uid, int change, int procState, long procStateSeq, in assertPendingChange() argument
247 assertEquals(procState, record.procState); in assertPendingChange()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java104 public static int updateBlockedReasonsWithProcState(int blockedReasons, int procState) { in updateBlockedReasonsWithProcState() argument
105 final int allowedReasons = getAllowedReasonsForProcState(procState); in updateBlockedReasonsWithProcState()
/frameworks/av/media/utils/
DProcessInfo.cpp90 bool ProcessInfo::overrideProcessInfo(int pid, int procState, int oomScore) { in overrideProcessInfo() argument
100 mOverrideMap.emplace(pid, ProcessInfoOverride{procState, oomScore}); in overrideProcessInfo()
/frameworks/base/core/java/android/app/
DActivityManager.java205 public void onUidStateChanged(int uid, int procState, long procStateSeq, int capability) { in onUidStateChanged() argument
207 procState, mContext)); in onUidStateChanged()
787 public static final boolean isProcStateBackground(int procState) { in isProcStateBackground() argument
788 return procState >= PROCESS_STATE_TRANSIENT_BACKGROUND; in isProcStateBackground()
792 public static final boolean isProcStateCached(int procState) { in isProcStateCached() argument
793 return procState >= PROCESS_STATE_CACHED_ACTIVITY; in isProcStateCached()
797 public static boolean isForegroundService(int procState) { in isForegroundService() argument
798 return procState == PROCESS_STATE_FOREGROUND_SERVICE; in isForegroundService()
3319 public static @Importance int procStateToImportance(int procState) { in procStateToImportance() argument
3320 if (procState == PROCESS_STATE_NONEXISTENT) { in procStateToImportance()
[all …]
DIUidObserver.aidl55 void onUidStateChanged(int uid, int procState, long procStateSeq, int capability); in onUidStateChanged() argument
/frameworks/av/services/mediatranscoding/tests/
Dmediatranscodingservice_resource_tests.cpp90 void TranscodingHelper_setProcessInfoOverride(int32_t procState, int32_t oomScore) { in TranscodingHelper_setProcessInfoOverride() argument
98 service->overrideProcessInfo(gResourceManagerClient, getpid(), procState, oomScore); in TranscodingHelper_setProcessInfoOverride()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/
DOngoingCallController.kt239 private fun isProcessVisibleToUser(procState: Int): Boolean { in <lambda>()
240 return procState <= ActivityManager.PROCESS_STATE_TOP in <lambda>()
371 procState: Int, in <lambda>()
381 isCallAppVisible = isProcessVisibleToUser(procState) in <lambda>()
/frameworks/base/core/java/android/os/
DPowerComponents.java281 final int procState; in writePowerUsageSlice() local
284 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
288 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
292 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
296 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
304 .PROCESS_STATE, procState); in writePowerUsageSlice()
/frameworks/base/core/java/com/android/internal/app/procstats/
DAssociationState.java112 public void trackProcState(int procState, int seq, long now) { in trackProcState() argument
113 final int processState = procState; in trackProcState()
114 procState = ProcessState.PROCESS_STATE_TO_STATE[procState]; in trackProcState()
117 mProcState = procState; in trackProcState()
118 } else if (procState < mProcState) { in trackProcState()
119 mProcState = procState; in trackProcState()
121 if (procState < ProcessStats.STATE_HOME) { in trackProcState()
1107 final int procState = SparseMappingTable.getIdFromKey(dkey); in dumpTimesCheckin() local
1109 DumpUtils.printArrayEntry(pw, DumpUtils.STATE_TAGS, procState, 1); in dumpTimesCheckin()
1166 final int procState = SparseMappingTable.getIdFromKey(dkey); in dumpDebug() local
[all …]

1234