summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-05-10 21:45:42 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-05-10 21:45:42 +0000
commit22f9d7ea44ef20db568667dc7f00b82efb444b3b (patch)
treeb121d946fde5568566ab05628ada636d2b7925ca
parent1a91f0ddf3d7294fe804f1c669d04033a0484d6d (diff)
parent0b3ae0eb8190f7d2eaa4b6a6fefb3c495af0853f (diff)
Merge "Fix the constant value for hidden BIND flag" into qt-dev
-rw-r--r--core/java/android/content/Context.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 01123968fcbd..654e698c0d62 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -329,15 +329,6 @@ public abstract class Context {
public static final int BIND_ADJUST_WITH_ACTIVITY = 0x0080;
/**
- * Flag for {@link #bindService}: If binding from something better than perceptible,
- * still set the adjust below perceptible. This would be used for bound services that can
- * afford to be evicted when under extreme memory pressure, but should be restarted as soon
- * as possible.
- * @hide
- */
- public static final int BIND_ADJUST_BELOW_PERCEPTIBLE = 0x0100;
-
- /**
* Flag for {@link #bindService}: If binding from an app that has specific capabilities
* due to its foreground state such as an activity or foreground service, then this flag will
* allow the bound app to get the same capabilities, as long as it has the required permissions
@@ -345,6 +336,18 @@ public abstract class Context {
*/
public static final int BIND_INCLUDE_CAPABILITIES = 0x00001000;
+ /*********** Public flags above this line ***********/
+ /*********** Hidden flags below this line ***********/
+
+ /**
+ * Flag for {@link #bindService}: If binding from something better than perceptible,
+ * still set the adjust below perceptible. This would be used for bound services that can
+ * afford to be evicted when under extreme memory pressure, but should be restarted as soon
+ * as possible.
+ * @hide
+ */
+ public static final int BIND_ADJUST_BELOW_PERCEPTIBLE = 0x00040000;
+
/**
* Flag for {@link #bindService}: This flag is intended to be used only by the system to adjust
* the scheduling policy for IMEs (and any other out-of-process user-visible components that