Home
last modified time | relevance | path

Searched refs:RunningAppProcessInfo (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceRestarterTest.java24 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 …]
DActivityManagerTest.java29 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/
DWindowPerfRunPreconditionBase.java27 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/
DAppForegroundHelper.java19 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE;
20 import static android.app.ActivityManager.RunningAppProcessInfo.Importance;
DSystemAppForegroundHelper.java19 import static android.app.ActivityManager.RunningAppProcessInfo.Importance;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppForegroundHelperTest.java19 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/
DControlsRequestReceiver.kt20 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND
21 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE
/frameworks/base/core/java/android/app/
DActivityManager.aidl24 parcelable ActivityManager.RunningAppProcessInfo;
DActivityManager.java192 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 …]
DIActivityManager.aidl281 List<ActivityManager.RunningAppProcessInfo> getRunningAppProcesses(); in getRunningAppProcesses()
366 void getMyMemoryState(out ActivityManager.RunningAppProcessInfo outInfo); in getMyMemoryState()
DApplicationExitInfo.java23 import android.app.ActivityManager.RunningAppProcessInfo.Importance;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt20 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND
21 import android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java182 List<ActivityManager.RunningAppProcessInfo> rapInfoList = in isSystemApp()
184 for (ActivityManager.RunningAppProcessInfo rapInfo : rapInfoList) { in isSystemApp()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java20 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/
DUtils.java20 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/
DShutdownCheckPointsTest.java107 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/
DMediaResourceMonitorService.java86 for (ActivityManager.RunningAppProcessInfo proc : manager.getRunningAppProcesses()) { in getPackageNamesFromPid()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownCheckPoints.java298 List<ActivityManager.RunningAppProcessInfo> runningProcesses = in getProcessName()
300 for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) { in getProcessName()
/frameworks/base/services/core/java/com/android/server/os/
DNativeTombstoneManager.java28 import android.app.ActivityManager.RunningAppProcessInfo;
502 info.setImportance(RunningAppProcessInfo.IMPORTANCE_GONE); in toAppExitInfo()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DApplicationExitInfoTest.java24 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/
DTunerResourceManagerService.java22 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/
DOneTimePermissionUserManager.java19 import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_CACHED;
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java3724 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 …]
DOomAdjuster.java1528 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/
DPermissionManager.java1109 @ActivityManager.RunningAppProcessInfo.Importance int importanceToResetTimer, in startOneTimePermissionSession()
1110 @ActivityManager.RunningAppProcessInfo.Importance int importanceToKeepSessionAlive) { in startOneTimePermissionSession()

12