summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2021-04-30 06:26:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-04-30 06:26:39 +0000
commite37fdc9e8afd0f2ed7b0d5ef90b67945d4628fa9 (patch)
tree40f17fb65c539e5b82aa29f57596523b10a93ebf /core/java/android
parentc5f6938ac65ed4be27e16fdfbc6b3d487b9d8fbb (diff)
parenta6b92260d391544de5453772f81ae16a465de1d0 (diff)
Merge "Do not allow FGS start when temp allowlist reasonCode is REASON_PUSH_MESSAGING_OVER_QUOTA" into sc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/ActivityManagerInternal.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManagerInternal.java b/core/java/android/app/ActivityManagerInternal.java
index 605340061994..ab610e4e71c6 100644
--- a/core/java/android/app/ActivityManagerInternal.java
+++ b/core/java/android/app/ActivityManagerInternal.java
@@ -583,4 +583,9 @@ public abstract class ActivityManagerInternal {
* Is the FGS started from an uid temporarily allowed to have while-in-use permission?
*/
public abstract boolean isTempAllowlistedForFgsWhileInUse(int uid);
+
+ /**
+ * Return the temp allowlist type when server push messaging is over the quota.
+ */
+ public abstract @TempAllowListType int getPushMessagingOverQuotaBehavior();
}