Loading core/java/android/app/ActivityManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -1031,7 +1031,9 @@ public class ActivityManager { | PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL; /** * All implicit capabilities. There are capabilities that process automatically have. * All implicit capabilities. This capability set is currently only used for processes under * active instrumentation. The intent is to allow CTS tests to always have these capabilities * so that every test doesn't need to launch FGS. * @hide */ @TestApi Loading services/core/java/com/android/server/am/OomAdjuster.java +6 −1 Original line number Diff line number Diff line Loading @@ -3283,7 +3283,12 @@ public class OomAdjuster { baseCapabilities = PROCESS_CAPABILITY_ALL; // BFSL allowed break; case PROCESS_STATE_BOUND_TOP: if (app.getActiveInstrumentation() != null) { baseCapabilities = PROCESS_CAPABILITY_BFSL | PROCESS_CAPABILITY_ALL_IMPLICIT; } else { baseCapabilities = PROCESS_CAPABILITY_BFSL; } break; case PROCESS_STATE_FOREGROUND_SERVICE: if (app.getActiveInstrumentation() != null) { Loading Loading
core/java/android/app/ActivityManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -1031,7 +1031,9 @@ public class ActivityManager { | PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL; /** * All implicit capabilities. There are capabilities that process automatically have. * All implicit capabilities. This capability set is currently only used for processes under * active instrumentation. The intent is to allow CTS tests to always have these capabilities * so that every test doesn't need to launch FGS. * @hide */ @TestApi Loading
services/core/java/com/android/server/am/OomAdjuster.java +6 −1 Original line number Diff line number Diff line Loading @@ -3283,7 +3283,12 @@ public class OomAdjuster { baseCapabilities = PROCESS_CAPABILITY_ALL; // BFSL allowed break; case PROCESS_STATE_BOUND_TOP: if (app.getActiveInstrumentation() != null) { baseCapabilities = PROCESS_CAPABILITY_BFSL | PROCESS_CAPABILITY_ALL_IMPLICIT; } else { baseCapabilities = PROCESS_CAPABILITY_BFSL; } break; case PROCESS_STATE_FOREGROUND_SERVICE: if (app.getActiveInstrumentation() != null) { Loading