Searched refs:uidRec (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveUids.java | 99 final UidRecord uidRec = mActiveUids.valueAt(i); in dump() local 100 if (dumpPackage != null && UserHandle.getAppId(uidRec.getUid()) != dumpAppId) { in dump() 110 pw.print(" UID "); UserHandle.formatUid(pw, uidRec.getUid()); in dump() 111 pw.print(": "); pw.println(uidRec); in dump() 112 pw.print(" curProcState="); pw.print(uidRec.getCurProcState()); in dump() 114 ActivityManager.printCapabilitiesFull(pw, uidRec.getCurCapability()); in dump() 116 uidRec.forEachProcess(app -> { in dump() 126 UidRecord uidRec = mActiveUids.valueAt(i); in dumpProto() local 127 if (dumpPackage != null && UserHandle.getAppId(uidRec.getUid()) != dumpAppId) { in dumpProto() 130 uidRec.dumpDebug(proto, fieldId); in dumpProto()
|
D | OomAdjuster.java | 486 UidRecord uidRec = app.getUidRecord(); in performUpdateOomAdjLSP() local 487 if (uidRec != null) { in performUpdateOomAdjLSP() 489 Slog.i(TAG_UID_OBSERVERS, "Starting update of " + uidRec); in performUpdateOomAdjLSP() 491 uidRec.reset(); in performUpdateOomAdjLSP() 508 if (uidRec != null) { in performUpdateOomAdjLSP() 511 uidRec.forEachProcess(this::updateAppUidRecIfNecessaryLSP); in performUpdateOomAdjLSP() 512 if (uidRec.getCurProcState() != PROCESS_STATE_NONEXISTENT in performUpdateOomAdjLSP() 513 && (uidRec.getSetProcState() != uidRec.getCurProcState() in performUpdateOomAdjLSP() 514 || uidRec.getSetCapability() != uidRec.getCurCapability() in performUpdateOomAdjLSP() 515 || uidRec.isSetAllowListed() != uidRec.isCurAllowListed())) { in performUpdateOomAdjLSP() [all …]
|
D | ProcessList.java | 2949 UidRecord uidRec = mActiveUids.get(proc.uid); 2950 if (uidRec == null) { 2951 uidRec = new UidRecord(proc.uid, mService); 2954 Slog.i(TAG_UID_OBSERVERS, "Creating new process uid: " + uidRec); 2959 uidRec.setCurAllowListed(true); 2960 uidRec.setSetAllowListed(true); 2962 uidRec.updateHasInternetPermission(); 2963 mActiveUids.put(proc.uid, uidRec); 2964 EventLogTags.writeAmUidRunning(uidRec.getUid()); 2965 mService.noteUidProcessState(uidRec.getUid(), uidRec.getCurProcState(), [all …]
|
D | ActivityManagerService.java | 5224 UidRecord uidRec = mProcessList.mActiveUids.get(uid); in isAppForeground() local 5225 if (uidRec == null || uidRec.isIdle()) { in isAppForeground() 5228 return uidRec.getCurProcState() <= PROCESS_STATE_IMPORTANT_FOREGROUND; in isAppForeground() 5570 UidRecord uidRec = mProcessList.getUidRecordLOSP(uid); in getAppStartModeLOSP() local 5572 + packageName + " rec=" + uidRec + " always=" + alwaysRestrict + " idle=" in getAppStartModeLOSP() 5573 + (uidRec != null ? uidRec.isIdle() : false)); in getAppStartModeLOSP() 5574 if (uidRec == null || alwaysRestrict || forcedStandby || uidRec.isIdle()) { in getAppStartModeLOSP() 5576 if (uidRec == null) { in getAppStartModeLOSP() 5580 ephemeral = uidRec.isEphemeral(); in getAppStartModeLOSP() 13196 final UidRecord uidRec = mProcessList.getUidRecordLOSP(uid); in broadcastIntentLocked() local [all …]
|
D | ActiveServices.java | 752 UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(r.appInfo.uid); in startServiceLocked() local 753 return new ComponentName("?", "app is in background uid " + uidRec); in startServiceLocked() 1644 void foregroundServiceProcStateChangedLocked(UidRecord uidRec) { in foregroundServiceProcStateChangedLocked() argument 1645 ServiceMap smap = mServiceMap.get(UserHandle.getUserId(uidRec.getUid())); in foregroundServiceProcStateChangedLocked() 1650 if (active.mUid == uidRec.getUid()) { in foregroundServiceProcStateChangedLocked() 1651 if (uidRec.getCurProcState() <= PROCESS_STATE_TOP) { in foregroundServiceProcStateChangedLocked() 1865 final UidRecord uidRec = r.app.getUidRecord(); in setServiceForegroundInnerLocked() local 1866 if (uidRec != null) { in setServiceForegroundInnerLocked() 1868 uidRec.getCurProcState() <= PROCESS_STATE_TOP; in setServiceForegroundInnerLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerServiceTest.java | 187 final UidRecord uidRec = addUidRecord(TEST_UID); in incrementProcStateSeqAndNotifyAppsLocked() local 191 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() 200 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() 213 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() 222 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() 231 uidRec.waitingForNetwork = false; in incrementProcStateSeqAndNotifyAppsLocked() 233 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() 242 uidRec.waitingForNetwork = true; in incrementProcStateSeqAndNotifyAppsLocked() 244 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() 255 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked() [all …]
|