Merge "Allow EJs to obtain new network capability." into sc-dev am: 8632838c50

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13526199

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I17dc44c86f41545b859de0afa3f7749e0cfef10e
This commit is contained in:
Sudheer Shanka
2021-02-25 14:40:07 +00:00
committed by Automerger Merge Worker
11 changed files with 170 additions and 17 deletions

View File

@@ -369,6 +369,25 @@ public abstract class Context {
/*********** Public flags above this line ***********/
/*********** Hidden flags below this line ***********/
/**
* Flag for {@link #bindService}: allow the process hosting the target service to be treated
* as if it's as important as a perceptible app to the user and avoid the oom killer killing
* this process in low memory situations until there aren't any other processes left but the
* ones which are user-perceptible.
*
* @hide
*/
public static final int BIND_ALMOST_PERCEPTIBLE = 0x000010000;
/**
* Flag for {@link #bindService}: allow the process hosting the target service to gain
* {@link ActivityManager#PROCESS_CAPABILITY_NETWORK}, which allows it be able
* to access network regardless of any power saving restrictions.
*
* @hide
*/
public static final int BIND_ALLOW_NETWORK_ACCESS = 0x00020000;
/**
* Flag for {@link #bindService}: allow background foreground service starts from the bound
* service's process.