/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveUids.java | 38 private final SparseArray<UidRecord> mActiveUids = new SparseArray<>(); field in ActiveUids 48 mActiveUids.put(uid, value); in put() 56 mActiveUids.remove(uid); in remove() 64 mActiveUids.clear(); in clear() 71 return mActiveUids.get(uid); in get() 76 return mActiveUids.size(); in size() 81 return mActiveUids.valueAt(index); in valueAt() 86 return mActiveUids.keyAt(index); in keyAt() 91 return mActiveUids.indexOfKey(uid); in indexOfKey() 98 for (int i = 0; i < mActiveUids.size(); i++) { in dump() [all …]
|
D | AppRestrictionController.java | 265 private final SparseArrayMap<String, Runnable> mActiveUids = new SparseArrayMap<>(); field in AppRestrictionController 2192 final int index = mActiveUids.indexOfKey(uid, pkgName); in applyRestrictionLevel() 2198 mActiveUids.add(uid, pkgName, () -> { in applyRestrictionLevel() 2220 final int index = mActiveUids.indexOfKey(uid, pkgName); in applyRestrictionLevel() 2222 mActiveUids.add(uid, pkgName, null); in applyRestrictionLevel() 2797 final int index = mActiveUids.indexOfKey(uid); 2801 final int numPackages = mActiveUids.numElementsForKeyAt(index); 2803 final Runnable pendingTask = mActiveUids.valueAt(index, i); 2808 mActiveUids.deleteAt(index); 2823 mActiveUids.add(uid, pkgName, () -> appStandbyInternal.restrictApp(pkgName, [all …]
|
D | ProcessList.java | 497 ActiveUids mActiveUids; field in ProcessList 885 mActiveUids = activeUids; in init() 3260 UidRecord uidRec = mActiveUids.get(proc.uid); 3274 mActiveUids.put(proc.uid, uidRec); 3464 mActiveUids.remove(uid); 4493 if (mActiveUids.size() > 0) { 4494 needSep |= mActiveUids.dump(pw, dumpPackage, dumpAppId, 4556 mActiveUids.dumpProto(proto, dumpPackage, dumpAppId, 5182 UidRecord uidRec = mActiveUids.get(uid); 5192 UidRecord uidRec = mActiveUids.get(uid); [all …]
|
D | OomAdjuster.java | 366 ActiveUids mActiveUids; field in OomAdjuster 486 mActiveUids = activeUids; in OomAdjuster() 963 final int numUids = mActiveUids.size(); in updateOomAdjInnerLSP() 967 UidRecord uidRec = mActiveUids.valueAt(i); in updateOomAdjInnerLSP() 3761 final int N = mActiveUids.size(); in idleUidsLocked() 3774 final UidRecord uidRec = mActiveUids.valueAt(i); in idleUidsLocked() 3824 final UidRecord uidRec = mActiveUids.get(uid); in setUidTempAllowlistStateLSP()
|
D | OomAdjusterModernImpl.java | 979 postUpdateOomAdjInnerLSP(oomAdjReason, mActiveUids, now, nowElapsed, oldTime, true); in fullUpdateLSP()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | KillAppBlocker.java | 41 private List mActiveUids = new ArrayList(); field in KillAppBlocker 48 mActiveUids.remove((Integer) uid); 50 if (mActiveUids.size() == 0) { 101 mActiveUids.add(uid); in waitAppProcessGone() 106 if (mActiveUids.size() == 0) { in waitAppProcessGone()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AppStateTrackerImpl.java | 112 final SparseBooleanArray mActiveUids = new SparseBooleanArray(); field in AppStateTrackerImpl 470 mActiveUids.delete(uid); 988 if (addUidToArray(mActiveUids, uid)) { in handleUidActive() 1005 if (removeUidFromArray(mActiveUids, uid, remove)) { in removeUid() 1024 cleanUpArrayForUser(mActiveUids, removedUserId); in handleUserRemoved() 1206 return mActiveUids.get(uid); in isUidActive() 1301 dumpUids(pw, mActiveUids); in dump() 1372 for (int i = 0; i < mActiveUids.size(); i++) { in dumpProto() 1373 if (mActiveUids.valueAt(i)) { in dumpProto() 1374 proto.write(AppStateTrackerProto.ACTIVE_UIDS, mActiveUids.keyAt(i)); in dumpProto()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActivityManagerInternalTest.java | 141 mAms.mProcessList.mActiveUids.put(uid, record); in addActiveUidRecord() 146 mAms.mProcessList.mActiveUids.clear(); in clearActiveUids()
|
D | ActivityManagerServiceTest.java | 521 mAms.mProcessList.mActiveUids.put(uid, uidRec); in addUidRecord() 549 mAms.mProcessList.incrementProcStateSeqAndNotifyAppsLOSP(mAms.mProcessList.mActiveUids); in verifySeqCounterAndInteractions() 552 + mAms.mProcessList.mActiveUids.size(); in verifySeqCounterAndInteractions() 554 + ",activeUids.size=" + mAms.mProcessList.mActiveUids.size(), in verifySeqCounterAndInteractions() 1311 mAms.mProcessList.mActiveUids.put(Process.myUid(), record); in verifyWaitingForNetworkStateUpdate() 1334 mAms.mProcessList.mActiveUids.clear(); in verifyWaitingForNetworkStateUpdate()
|
D | MockingOomAdjusterTests.java | 246 mService.mOomAdjuster.mActiveUids.clear(); in tearDown() 2216 mService.mOomAdjuster.mActiveUids.put(MOCKAPP_UID, app1UidRecord); in testUpdateOomAdj_UidIdle_StopService() 2217 mService.mOomAdjuster.mActiveUids.put(MOCKAPP2_UID, app2UidRecord); in testUpdateOomAdj_UidIdle_StopService() 2218 mService.mOomAdjuster.mActiveUids.put(MOCKAPP5_UID, app3UidRecord); in testUpdateOomAdj_UidIdle_StopService() 2219 mService.mOomAdjuster.mActiveUids.put(MOCKAPP3_UID, clientUidRecord); in testUpdateOomAdj_UidIdle_StopService() 2262 mService.mOomAdjuster.mActiveUids.clear(); in testUpdateOomAdj_UidIdle_StopService() 3264 UidRecord uidRec = mService.mOomAdjuster.mActiveUids.get(mUid); in build() 3267 mService.mOomAdjuster.mActiveUids.put(mUid, uidRec); in build()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | BackgroundActivityStartControllerLogTests.java | 70 MirrorActiveUids mActiveUids = new MirrorActiveUids(); field in BackgroundActivityStartControllerLogTests 76 setViaReflection(mService, "mActiveUids", mActiveUids); in setup()
|
D | BackgroundActivityStartControllerTests.java | 111 MirrorActiveUids mActiveUids = new MirrorActiveUids(); field in BackgroundActivityStartControllerTests 193 setViaReflection(mService, "mActiveUids", mActiveUids); in setUp()
|
D | BackgroundActivityStartControllerExemptionTests.java | 118 MirrorActiveUids mActiveUids = new MirrorActiveUids(); field in BackgroundActivityStartControllerExemptionTests 171 setViaReflection(mService, "mActiveUids", mActiveUids); in setUp()
|
D | WindowStateTests.java | 1001 mAtm.mActiveUids.onUidInactive(uid); in testHasActiveVisibleWindow() 1002 mAtm.mActiveUids.onUidActive(uid, 0 /* any proc state */); in testHasActiveVisibleWindow() 1003 assertTrue(mAtm.mActiveUids.hasNonAppVisibleWindow(uid)); in testHasActiveVisibleWindow()
|
D | ActivityStarterTests.java | 733 mAtm.mActiveUids.onUidActive(UNIMPORTANT_UID, PROCESS_STATE_BOUND_TOP); in testPinnedSingleInstanceAborted() 734 mAtm.mActiveUids.onUidActive(UNIMPORTANT_UID2, PROCESS_STATE_BOUND_TOP); in testPinnedSingleInstanceAborted()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | BackgroundActivityStartController.java | 353 mCallingUidProcState = mService.mActiveUids.getUidState(callingUid); in BalState() 372 mRealCallingUidProcState = mService.mActiveUids.getUidState(realCallingUid); in BalState() 811 if (mService.mActiveUids.hasNonAppVisibleWindow(state.mCallingUid)) { in checkBackgroundActivityStartAllowedByCaller() 925 if (mService.mActiveUids.hasNonAppVisibleWindow(state.mRealCallingUid)) { in checkBackgroundActivityStartAllowedBySender()
|
D | ActivityTaskManagerService.java | 415 final MirrorActiveUids mActiveUids = new MirrorActiveUids(); field in ActivityTaskManagerService 4342 mActiveUids.dump(pw, " "); in dumpActivitiesLocked() 5595 return mActiveUids.hasNonAppVisibleWindow(uid); in hasActiveVisibleWindow() 7057 mActiveUids.onUidActive(uid, procState); in onUidActive() 7063 mActiveUids.onUidInactive(uid); in onUidInactive() 7069 mActiveUids.onUidProcStateChanged(uid, procState); in onUidProcStateChanged()
|
D | WindowState.java | 3382 mWmService.mAtmService.mActiveUids.onNonAppSurfaceVisibilityChanged(mOwnerUid, shown); in onSurfaceShownChanged()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 1693 instance.mActiveUids.put(UID_1, true); in testStateClearedOnPackageRemoved() 1705 assertEquals(1, instance.mActiveUids.size()); in testStateClearedOnPackageRemoved() 1717 assertEquals(1, instance.mActiveUids.size()); in testStateClearedOnPackageRemoved() 1728 assertEquals(0, instance.mActiveUids.size()); in testStateClearedOnPackageRemoved() 1739 assertEquals(0, instance.mActiveUids.size()); in testStateClearedOnPackageRemoved()
|
/frameworks/native/services/sensorservice/ |
D | SensorService.h | 316 std::unordered_set<uid_t> mActiveUids; variable
|
D | SensorService.cpp | 2555 mActiveUids.insert(uid); in onUidActive() 2567 if (mActiveUids.erase(uid) > 0) { in onUidIdle() 2625 return mActiveUids.find(uid) != mActiveUids.end(); in isUidActiveLocked()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 4620 mActiveUids.clear(); in unregisterSelf() 4630 mActiveUids.insert(uid); in onUidActive() 4637 if (mActiveUids.erase(uid) > 0) { in onUidIdle() 4778 bool active = mActiveUids.find(uid) != mActiveUids.end(); in isUidActiveLocked() 4794 active = mActiveUids.find(uid) != mActiveUids.end(); in isUidActiveLocked() 4816 mActiveUids.insert(uid); in isUidActiveLocked() 4848 mActiveUids.clear(); in binderDied()
|
D | CameraService.h | 876 std::unordered_set<uid_t> mActiveUids; variable
|