/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UidObserverControllerTest.java | 85 UidRecord.CHANGE_ACTIVE, PROCESS_STATE_FOREGROUND_SERVICE, in testEnqueueUidChange() 88 UidRecord.CHANGE_ACTIVE, change); in testEnqueueUidChange() 89 assertPendingChange(TEST_UID1, UidRecord.CHANGE_ACTIVE, PROCESS_STATE_FOREGROUND_SERVICE, in testEnqueueUidChange() 96 UidRecord.CHANGE_CACHED, PROCESS_STATE_CACHED_RECENT, UNKNOWN_ADJ, in testEnqueueUidChange() 99 UidRecord.CHANGE_CACHED, change); in testEnqueueUidChange() 100 assertPendingChange(TEST_UID1, UidRecord.CHANGE_ACTIVE, PROCESS_STATE_FOREGROUND_SERVICE, in testEnqueueUidChange() 102 assertPendingChange(TEST_UID2, UidRecord.CHANGE_CACHED, PROCESS_STATE_CACHED_RECENT, in testEnqueueUidChange() 106 UidRecord.CHANGE_UNCACHED, PROCESS_STATE_TOP, UNKNOWN_ADJ, in testEnqueueUidChange() 109 UidRecord.CHANGE_ACTIVE | UidRecord.CHANGE_UNCACHED, change); in testEnqueueUidChange() 110 assertPendingChange(TEST_UID1, UidRecord.CHANGE_ACTIVE | UidRecord.CHANGE_UNCACHED, in testEnqueueUidChange() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UidObserverController.java | 212 if ((currentChange & (UidRecord.CHANGE_IDLE | UidRecord.CHANGE_ACTIVE)) == 0) { in mergeWithPendingChange() 213 currentChange |= (pendingChange & (UidRecord.CHANGE_IDLE in mergeWithPendingChange() 214 | UidRecord.CHANGE_ACTIVE)); in mergeWithPendingChange() 217 if ((currentChange & (UidRecord.CHANGE_CACHED | UidRecord.CHANGE_UNCACHED)) == 0) { in mergeWithPendingChange() 218 currentChange |= (pendingChange & (UidRecord.CHANGE_CACHED in mergeWithPendingChange() 219 | UidRecord.CHANGE_UNCACHED)); in mergeWithPendingChange() 224 if ((currentChange & UidRecord.CHANGE_GONE) != 0) { in mergeWithPendingChange() 225 currentChange &= ~(UidRecord.CHANGE_ACTIVE | UidRecord.CHANGE_CACHED); in mergeWithPendingChange() 227 if ((pendingChange & UidRecord.CHANGE_CAPABILITY) != 0) { in mergeWithPendingChange() 228 currentChange |= UidRecord.CHANGE_CAPABILITY; in mergeWithPendingChange() [all …]
|
D | ActiveUids.java | 38 private final SparseArray<UidRecord> mActiveUids = new SparseArray<>(); 47 void put(int uid, UidRecord value) { in put() 70 UidRecord get(int uid) { in get() 80 UidRecord valueAt(int index) { in valueAt() 99 final UidRecord uidRec = mActiveUids.valueAt(i); in dump() 126 UidRecord uidRec = mActiveUids.valueAt(i); in dumpProto()
|
D | OomAdjuster.java | 384 protected final ArrayList<UidRecord> mTmpBecameIdle = new ArrayList<UidRecord>(); 720 final UidRecord uidRec = pr.getUidRecord(); in collectReachableProcessesLocked() 967 UidRecord uidRec = mActiveUids.valueAt(i); in updateOomAdjInnerLSP() 1076 final UidRecord uidRec = activeUids.valueAt(i); in resetUidRecordsLsp() 1469 final UidRecord uidRec = app.getUidRecord(); in updateAppUidRecLSP() 1490 ArrayList<UidRecord> becameIdle = mTmpBecameIdle; in updateUidsLSP() 1498 final UidRecord uidRec = activeUids.valueAt(i); in updateUidsLSP() 1544 uidChange |= UidRecord.CHANGE_IDLE; in updateUidsLSP() 1552 uidChange |= UidRecord.CHANGE_ACTIVE; in updateUidsLSP() 1568 uidChange |= isCached ? UidRecord.CHANGE_CACHED : in updateUidsLSP() [all …]
|
D | UidRecord.java | 40 public final class UidRecord { class 183 public UidRecord(int uid, ActivityManagerService service) { in UidRecord() method in UidRecord
|
D | ProcessList.java | 3260 UidRecord uidRec = mActiveUids.get(proc.uid); 3262 uidRec = new UidRecord(proc.uid, mService); 3453 final UidRecord uidRecord = record.getUidRecord(); 3462 UidRecord.CHANGE_GONE | UidRecord.CHANGE_PROCSTATE); 5182 UidRecord uidRec = mActiveUids.get(uid); 5192 UidRecord uidRec = mActiveUids.get(uid); 5198 UidRecord getUidRecordLOSP(int uid) { 5214 final UidRecord uidRec = mActiveUids.valueAt(i); 5233 int getBlockStateForUid(UidRecord uidRec) { 5269 final UidRecord uidRec = activeUids.valueAt(i); [all …]
|
D | ProcessRecord.java | 106 private UidRecord mUidRecord; 665 UidRecord getUidRecord() { in getUidRecord() 670 void setUidRecord(UidRecord uidRecord) { in setUidRecord()
|
D | OomAdjusterModernImpl.java | 743 final UidRecord uidRec = app.getUidRecord(); in accept() 950 final UidRecord uidRec = app.getUidRecord(); in fullUpdateLSP() 1077 final UidRecord ur = activeUids.valueAt(i); in partialUpdateLSP()
|
D | CachedAppOptimizer.java | 1515 UidRecord uidRec = app.getUidRecord(); in unfreezeAppInternalLSP() 1659 final UidRecord uidRec = app.getUidRecord(); in onCleanupApplicationRecordLocked() 2428 final UidRecord uidRec = proc.getUidRecord(); in freezeProcess()
|
D | ActiveServices.java | 872 final UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(uid); in updateAppRestrictedAnyInBackgroundLocked() 1103 UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(appUid); in startServiceLocked() 2060 void foregroundServiceProcStateChangedLocked(UidRecord uidRec) { in foregroundServiceProcStateChangedLocked() 2116 final UidRecord uidRec = mAm.mProcessList.getUidRecordLOSP(uid); in isForegroundServiceAllowedInBackgroundRestricted() 2633 final UidRecord uidRec = r.app.getUidRecord(); in setServiceForegroundInnerLocked() 5811 final UidRecord uidRecord = app.getUidRecord(); in bringUpServiceInnerLocked() 5842 final UidRecord uidRecord = app.getUidRecord(); in bringUpServiceInnerLocked() 6014 IApplicationThread thread, int pid, UidRecord uidRecord, boolean execInFg, in realStartServiceLocked() 6874 final UidRecord uidRecord = proc.getUidRecord(); in attachApplicationLocked() 8766 final UidRecord uidRecord = mAm.mProcessList.getUidRecordLOSP(callingUid); in shouldAllowFgsStartForegroundNoBindingCheckLocked()
|
D | ServiceRecord.java | 1216 UidRecord uidRecord) { in setProcess()
|
D | AppProfiler.java | 541 final UidRecord uidRec = mService.mProcessList.getUidRecordLOSP(uid); in updateCachedAppsSnapshot()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActivityManagerInternalTest.java | 99 final UidRecord record1 = addActiveUidRecord(TEST_UID1, curProcStateSeq, in verifyNetworkUpdatedProcStateSeq() 101 final UidRecord record2 = addActiveUidRecord(TEST_UID2, curProcStateSeq, in verifyNetworkUpdatedProcStateSeq() 129 private UidRecord addActiveUidRecord(int uid, long curProcStateSeq, in addActiveUidRecord() 131 final UidRecord record = new UidRecord(uid, mAms); in addActiveUidRecord() 140 private void addActiveUidRecord(int uid, UidRecord record) { in addActiveUidRecord()
|
D | ActivityManagerServiceTest.java | 205 UidRecord.CHANGE_PROCSTATE, 206 UidRecord.CHANGE_GONE, 207 UidRecord.CHANGE_GONE | UidRecord.CHANGE_IDLE, 208 UidRecord.CHANGE_IDLE, 209 UidRecord.CHANGE_ACTIVE, 210 UidRecord.CHANGE_CAPABILITY, 323 final UidRecord uidRec = addUidRecord(TEST_UID); in incrementProcStateSeqAndNotifyAppsLocked() 512 private UidRecord addUidRecord(int uid) { in addUidRecord() 517 private UidRecord addUidRecord(int uid, String packageName) { in addUidRecord() 518 final UidRecord uidRec = new UidRecord(uid, mAms); in addUidRecord() [all …]
|
D | MockingOomAdjusterTests.java | 2176 final UidRecord app1UidRecord = new UidRecord(MOCKAPP_UID, mService); in testUpdateOomAdj_UidIdle_StopService() 2177 final UidRecord app2UidRecord = new UidRecord(MOCKAPP2_UID, mService); in testUpdateOomAdj_UidIdle_StopService() 2178 final UidRecord app3UidRecord = new UidRecord(MOCKAPP5_UID, mService); in testUpdateOomAdj_UidIdle_StopService() 2179 final UidRecord clientUidRecord = new UidRecord(MOCKAPP3_UID, mService); in testUpdateOomAdj_UidIdle_StopService() 3264 UidRecord uidRec = mService.mOomAdjuster.mActiveUids.get(mUid); in build() 3266 uidRec = new UidRecord(mUid, mService); in build()
|
/frameworks/base/services/ |
D | art-profile-boot | 434 Lcom/android/server/am/UidRecord;->getCurProcState()I 436 Lcom/android/server/am/ActiveUids;->valueAt(I)Lcom/android/server/am/UidRecord; 449 Lcom/android/server/am/UidRecord;->setCurProcState(I)V 506 Lcom/android/server/am/UidRecord;->reset()V
|
D | art-profile | 316 …m/ProcessRecord;Landroid/app/IApplicationThread;ILcom/android/server/am/UidRecord;ZZI)V+]Landroid/… 350 HSPLcom/android/server/am/ActiveUids;->get(I)Lcom/android/server/am/UidRecord;+]Landroid/util/Spars… 351 …server/am/UidRecord;)V+]Landroid/util/SparseArray;Landroid/util/SparseArray;]Lcom/android/server/a… 403 …ndroid/server/am/ProcessRecord;]Lcom/android/server/am/UidRecord;Lcom/android/server/am/UidRecord;… 420 …UidRecord;II)V+]Landroid/os/PowerManagerInternal;Lcom/android/server/power/PowerManagerService$Loc… 426 …m/android/server/am/ProcessList;]Lcom/android/server/am/UidRecord;Lcom/android/server/am/UidRecord; 459 …m/android/server/am/ProcessList;]Lcom/android/server/am/UidRecord;Lcom/android/server/am/UidRecord; 753 …ndroid/server/am/ProcessRecord;]Lcom/android/server/am/UidRecord;Lcom/android/server/am/UidRecord;… 767 …ndroid/server/am/ProcessRecord;]Lcom/android/server/am/UidRecord;Lcom/android/server/am/UidRecord;… 832 …/server/am/ProcessStatsService;]Lcom/android/server/am/UidRecord;Lcom/android/server/am/UidRecord;… [all …]
|
D | art-wear-profile | 4226 …ver/am/ActiveServices;->foregroundServiceProcStateChangedLocked(Lcom/android/server/am/UidRecord;)V 4270 …oid/server/am/ProcessRecord;Landroid/app/IApplicationThread;ILcom/android/server/am/UidRecord;ZZI)V 4330 HPLcom/android/server/am/ActiveUids;->get(I)Lcom/android/server/am/UidRecord; 4331 HPLcom/android/server/am/ActiveUids;->put(ILcom/android/server/am/UidRecord;)V 4334 HPLcom/android/server/am/ActiveUids;->valueAt(I)Lcom/android/server/am/UidRecord; 4620 PLcom/android/server/am/ActivityManagerService;->doStopUidLocked(ILcom/android/server/am/UidRecord;… 4632 …oid/server/am/ActivityManagerService;->enqueueUidChangeLocked(Lcom/android/server/am/UidRecord;II)V 6662 HPLcom/android/server/am/ProcessList;->getUidRecordLOSP(I)Lcom/android/server/am/UidRecord; 6679 …erver/am/ProcessList;->killAppIfBgRestrictedAndCachedIdleLocked(Lcom/android/server/am/UidRecord;)V 6815 HPLcom/android/server/am/ProcessRecord;->getUidRecord()Lcom/android/server/am/UidRecord; [all …]
|
/frameworks/base/core/proto/android/server/ |
D | activitymanagerservice.proto | 788 // Proto definition of com.android.server.am.UidRecord.java
|