Home
last modified time | relevance | path

Searched refs:uidRec (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DActiveUids.java99 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()
DOomAdjuster.java720 final UidRecord uidRec = pr.getUidRecord(); in collectReachableProcessesLocked() local
721 if (uidRec != null) { in collectReachableProcessesLocked()
722 uids.put(uidRec.getUid(), uidRec); in collectReachableProcessesLocked() local
967 UidRecord uidRec = mActiveUids.valueAt(i); in updateOomAdjInnerLSP() local
968 activeUids.put(uidRec.getUid(), uidRec); in updateOomAdjInnerLSP() local
1076 final UidRecord uidRec = activeUids.valueAt(i); in resetUidRecordsLsp() local
1078 Slog.i(TAG_UID_OBSERVERS, "Starting update of " + uidRec); in resetUidRecordsLsp()
1080 uidRec.reset(); in resetUidRecordsLsp()
1469 final UidRecord uidRec = app.getUidRecord(); in updateAppUidRecLSP() local
1470 if (uidRec != null) { in updateAppUidRecLSP()
[all …]
DProcessList.java3260 UidRecord uidRec = mActiveUids.get(proc.uid);
3261 if (uidRec == null) {
3262 uidRec = new UidRecord(proc.uid, mService);
3265 Slog.i(TAG_UID_OBSERVERS, "Creating new process uid: " + uidRec);
3270 uidRec.setCurAllowListed(true);
3271 uidRec.setSetAllowListed(true);
3273 uidRec.updateHasInternetPermission();
3274 mActiveUids.put(proc.uid, uidRec);
3275 EventLogTags.writeAmUidRunning(uidRec.getUid());
3276 mService.noteUidProcessState(uidRec.getUid(), uidRec.getCurProcState(),
[all …]
DCachedAppOptimizer.java1515 UidRecord uidRec = app.getUidRecord(); in unfreezeAppInternalLSP() local
1516 if (uidRec != null && uidRec.isFrozen()) { in unfreezeAppInternalLSP()
1517 uidRec.setFrozen(false); in unfreezeAppInternalLSP()
1518 postUidFrozenMessage(uidRec.getUid(), false); in unfreezeAppInternalLSP()
1659 final UidRecord uidRec = app.getUidRecord(); in onCleanupApplicationRecordLocked() local
1660 if (uidRec != null) { in onCleanupApplicationRecordLocked()
1661 final boolean isFrozen = uidRec.getNumOfProcs() > 1 in onCleanupApplicationRecordLocked()
1662 && uidRec.areAllProcessesFrozen(app); in onCleanupApplicationRecordLocked()
1663 if (isFrozen != uidRec.isFrozen()) { in onCleanupApplicationRecordLocked()
1664 uidRec.setFrozen(isFrozen); in onCleanupApplicationRecordLocked()
[all …]
DOomAdjusterModernImpl.java743 final UidRecord uidRec = app.getUidRecord(); in accept() local
745 if (uidRec != null) { in accept()
746 uids.put(uidRec.getUid(), uidRec); in accept() local
950 final UidRecord uidRec = app.getUidRecord(); in fullUpdateLSP() local
951 if (uidRec != null) { in fullUpdateLSP()
953 Slog.i(TAG_UID_OBSERVERS, "Starting update of " + uidRec); in fullUpdateLSP()
955 uidRec.reset(); in fullUpdateLSP()
DActiveServices.java872 final UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(uid); in updateAppRestrictedAnyInBackgroundLocked() local
873 if (uidRec != null) { in updateAppRestrictedAnyInBackgroundLocked()
874 final ProcessRecord app = uidRec.getProcessInPackage(packageName); in updateAppRestrictedAnyInBackgroundLocked()
1103 UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(appUid); in startServiceLocked() local
1104 return new ComponentName("?", "app is in background uid " + uidRec); in startServiceLocked()
2060 void foregroundServiceProcStateChangedLocked(UidRecord uidRec) { in foregroundServiceProcStateChangedLocked() argument
2061 ServiceMap smap = mServiceMap.get(UserHandle.getUserId(uidRec.getUid())); in foregroundServiceProcStateChangedLocked()
2066 if (active.mUid == uidRec.getUid()) { in foregroundServiceProcStateChangedLocked()
2067 if (uidRec.getCurProcState() <= PROCESS_STATE_TOP) { in foregroundServiceProcStateChangedLocked()
2116 final UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(uid); in isForegroundServiceAllowedInBackgroundRestricted() local
[all …]
DAppProfiler.java541 final UidRecord uidRec = mService.mProcessList.getUidRecordLOSP(uid); in updateCachedAppsSnapshot() local
542 if (uidRec != null) { in updateCachedAppsSnapshot()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceTest.java323 final UidRecord uidRec = addUidRecord(TEST_UID); in incrementProcStateSeqAndNotifyAppsLocked() local
327 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked()
334 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked()
345 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked()
352 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked()
359 uidRec.procStateSeqWaitingForNetwork = 0; in incrementProcStateSeqAndNotifyAppsLocked()
361 verifySeqCounterAndInteractions(uidRec, in incrementProcStateSeqAndNotifyAppsLocked()
518 final UidRecord uidRec = new UidRecord(uid, mAms); in addUidRecord() local
519 uidRec.procStateSeqWaitingForNetwork = 1; in addUidRecord()
520 uidRec.hasInternetPermission = true; in addUidRecord()
[all …]
DMockingOomAdjusterTests.java3264 UidRecord uidRec = mService.mOomAdjuster.mActiveUids.get(mUid); in build() local
3265 if (uidRec == null) { in build()
3266 uidRec = new UidRecord(mUid, mService); in build()
3267 mService.mOomAdjuster.mActiveUids.put(mUid, uidRec); in build()
3269 uidRec.addProcess(app); in build()
3270 app.setUidRecord(uidRec); in build()