/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ServiceRestarterTest.java | 24 import android.app.ActivityManager.RunningAppProcessInfo; 101 am.addOnUidImportanceListener(uid1Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testDisableServiceRestartBackoff() 102 am.addOnUidImportanceListener(uid1Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testDisableServiceRestartBackoff() 103 am.addOnUidImportanceListener(uid2Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testDisableServiceRestartBackoff() 104 am.addOnUidImportanceListener(uid2Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testDisableServiceRestartBackoff() 105 am.addOnUidImportanceListener(uid3Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testDisableServiceRestartBackoff() 106 am.addOnUidImportanceListener(uid3Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testDisableServiceRestartBackoff() 177 RunningAppProcessInfo.IMPORTANCE_SERVICE, waitDuration)); in startKillAndRestart() 179 RunningAppProcessInfo.IMPORTANCE_SERVICE, waitDuration)); in startKillAndRestart() 181 RunningAppProcessInfo.IMPORTANCE_SERVICE, waitDuration)); in startKillAndRestart() [all …]
|
D | ActivityManagerTest.java | 29 import android.app.ActivityManager.RunningAppProcessInfo; 298 RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE); in testFgsProcStatsTracker() 299 am.addOnUidImportanceListener(uidListener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testFgsProcStatsTracker() 314 RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE, timeout)); in testFgsProcStatsTracker() 392 RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE); in testAppFreezerWithAllowOomAdj() 393 am.addOnUidImportanceListener(uid2Listener, RunningAppProcessInfo.IMPORTANCE_CACHED); in testAppFreezerWithAllowOomAdj() 443 RunningAppProcessInfo.IMPORTANCE_CACHED, waitFor)); in testAppFreezerWithAllowOomAdj() 521 am.addOnUidImportanceListener(uid1Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testKillPids() 522 am.addOnUidImportanceListener(uid1Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testKillPids() 523 am.addOnUidImportanceListener(uid2Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testKillPids() [all …]
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | WindowPerfRunPreconditionBase.java | 27 import android.app.ActivityManager.RunningAppProcessInfo; 135 final List<RunningAppProcessInfo> processes = am.getRunningAppProcesses(); in killBackgroundProcesses() 139 for (RunningAppProcessInfo processInfo : processes) { in killBackgroundProcesses() 140 if (processInfo.importanceReasonCode == RunningAppProcessInfo.REASON_UNKNOWN in killBackgroundProcesses() 141 && processInfo.importance > RunningAppProcessInfo.IMPORTANCE_SERVICE) { in killBackgroundProcesses()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | AppForegroundHelper.java | 19 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE; 20 import static android.app.ActivityManager.RunningAppProcessInfo.Importance;
|
D | SystemAppForegroundHelper.java | 19 import static android.app.ActivityManager.RunningAppProcessInfo.Importance;
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemAppForegroundHelperTest.java | 19 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND; 20 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE; 21 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiver.kt | 20 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND 21 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE
|
/frameworks/base/core/java/android/app/ |
D | ActivityManager.aidl | 24 parcelable ActivityManager.RunningAppProcessInfo;
|
D | ActivityManager.java | 192 mListener.onUidImportance(uid, RunningAppProcessInfo.procStateToImportanceForClient( in onUidStateChanged() 198 mListener.onUidImportance(uid, RunningAppProcessInfo.IMPORTANCE_GONE); in onUidGone() 2853 public static class RunningAppProcessInfo implements Parcelable { class in ActivityManager 3228 public RunningAppProcessInfo() { in RunningAppProcessInfo() method in ActivityManager.RunningAppProcessInfo 3236 public RunningAppProcessInfo(String pProcessName, int pPid, String pArr[]) { in RunningAppProcessInfo() method in ActivityManager.RunningAppProcessInfo 3284 public static final @android.annotation.NonNull Creator<RunningAppProcessInfo> CREATOR = 3285 new Creator<RunningAppProcessInfo>() { 3286 public RunningAppProcessInfo createFromParcel(Parcel source) { 3287 return new RunningAppProcessInfo(source); 3289 public RunningAppProcessInfo[] newArray(int size) { [all …]
|
D | IActivityManager.aidl | 281 List<ActivityManager.RunningAppProcessInfo> getRunningAppProcesses(); in getRunningAppProcesses() 366 void getMyMemoryState(out ActivityManager.RunningAppProcessInfo outInfo); in getMyMemoryState()
|
D | ApplicationExitInfo.java | 23 import android.app.ActivityManager.RunningAppProcessInfo.Importance;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiverTest.kt | 20 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND 21 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageIconProvider.java | 182 List<ActivityManager.RunningAppProcessInfo> rapInfoList = in isSystemApp() 184 for (ActivityManager.RunningAppProcessInfo rapInfo : rapInfoList) { in isSystemApp()
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
D | MemoryUsageTest.java | 20 import android.app.ActivityManager.RunningAppProcessInfo; 290 List<RunningAppProcessInfo> apps = am.getRunningAppProcesses(); in getPss() 292 for (RunningAppProcessInfo proc : apps) { in getPss()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | Utils.java | 20 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE; 493 final List<ActivityManager.RunningAppProcessInfo> procs = in isForeground() 501 ActivityManager.RunningAppProcessInfo proc = procs.get(i); in isForeground()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | ShutdownCheckPointsTest.java | 107 List<ActivityManager.RunningAppProcessInfo> runningAppProcessInfos = new ArrayList<>(); in testCallerProcessBinderEntry() 109 new ActivityManager.RunningAppProcessInfo("process_name", 1, new String[0])); in testCallerProcessBinderEntry()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaResourceMonitorService.java | 86 for (ActivityManager.RunningAppProcessInfo proc : manager.getRunningAppProcesses()) { in getPackageNamesFromPid()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownCheckPoints.java | 298 List<ActivityManager.RunningAppProcessInfo> runningProcesses = in getProcessName() 300 for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) { in getProcessName()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | NativeTombstoneManager.java | 28 import android.app.ActivityManager.RunningAppProcessInfo; 502 info.setImportance(RunningAppProcessInfo.IMPORTANCE_GONE); in toAppExitInfo()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ApplicationExitInfoTest.java | 24 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_CACHED; 25 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND; 26 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE; 27 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE;
|
/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/ |
D | TunerResourceManagerService.java | 22 import android.app.ActivityManager.RunningAppProcessInfo; 1091 List<RunningAppProcessInfo> appProcesses = mActivityManager.getRunningAppProcesses(); in checkIsForeground() 1095 for (RunningAppProcessInfo appProcess : appProcesses) { in checkIsForeground() 1097 && appProcess.importance == RunningAppProcessInfo.IMPORTANCE_FOREGROUND) { in checkIsForeground()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | OneTimePermissionUserManager.java | 19 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_CACHED;
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessList.java | 3724 ActivityManager.RunningAppProcessInfo currApp, in procStateToImportance() 3726 int imp = ActivityManager.RunningAppProcessInfo.procStateToImportanceForTargetSdk( in procStateToImportance() 3728 if (imp == ActivityManager.RunningAppProcessInfo.IMPORTANCE_BACKGROUND) { in procStateToImportance() 3738 ActivityManager.RunningAppProcessInfo outInfo, in fillInProcMemInfoLOSP() 3743 outInfo.flags |= ActivityManager.RunningAppProcessInfo.FLAG_CANT_SAVE_STATE; in fillInProcMemInfoLOSP() 3746 outInfo.flags |= ActivityManager.RunningAppProcessInfo.FLAG_PERSISTENT; in fillInProcMemInfoLOSP() 3749 outInfo.flags |= ActivityManager.RunningAppProcessInfo.FLAG_HAS_ACTIVITIES; in fillInProcMemInfoLOSP() 3764 List<ActivityManager.RunningAppProcessInfo> getRunningAppProcessesLOSP(boolean allUsers, in getRunningAppProcessesLOSP() 3767 List<ActivityManager.RunningAppProcessInfo> runList = null; in getRunningAppProcessesLOSP() 3780 ActivityManager.RunningAppProcessInfo currApp = in getRunningAppProcessesLOSP() [all …]
|
D | OomAdjuster.java | 1528 state.setAdjTypeCode(ActivityManager.RunningAppProcessInfo.REASON_UNKNOWN); in computeOomAdjLSP() 2210 state.setAdjTypeCode(ActivityManager.RunningAppProcessInfo in computeOomAdjLSP() 2254 state.setAdjTypeCode(ActivityManager.RunningAppProcessInfo in computeOomAdjLSP() 2346 state.setAdjTypeCode(ActivityManager.RunningAppProcessInfo in computeOomAdjLSP()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionManager.java | 1109 @ActivityManager.RunningAppProcessInfo.Importance int importanceToResetTimer, in startOneTimePermissionSession() 1110 @ActivityManager.RunningAppProcessInfo.Importance int importanceToKeepSessionAlive) { in startOneTimePermissionSession()
|