diff options
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/ActivityManager.java | 16 | ||||
| -rw-r--r-- | core/java/android/app/ActivityManagerInternal.java | 6 | ||||
| -rw-r--r-- | core/java/android/app/AppOpsManagerInternal.java | 9 | ||||
| -rw-r--r-- | core/java/android/provider/Settings.java | 9 |
4 files changed, 40 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index e0a4ae287408..206c7710c12f 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -602,6 +602,22 @@ public class ActivityManager { public static final int PROCESS_CAPABILITY_ALL = PROCESS_CAPABILITY_FOREGROUND_LOCATION | PROCESS_CAPABILITY_FOREGROUND_CAMERA | PROCESS_CAPABILITY_FOREGROUND_MICROPHONE; + /** + * All explicit capabilities. These are capabilities that need to be specified from manifest + * file. + * @hide + */ + @TestApi + public static final int PROCESS_CAPABILITY_ALL_EXPLICIT = + PROCESS_CAPABILITY_FOREGROUND_LOCATION; + + /** + * All implicit capabilities. There are capabilities that process automatically have. + * @hide + */ + @TestApi + public static final int PROCESS_CAPABILITY_ALL_IMPLICIT = PROCESS_CAPABILITY_FOREGROUND_CAMERA + | PROCESS_CAPABILITY_FOREGROUND_MICROPHONE; // NOTE: If PROCESS_STATEs are added, then new fields must be added // to frameworks/base/core/proto/android/app/enums.proto and the following method must diff --git a/core/java/android/app/ActivityManagerInternal.java b/core/java/android/app/ActivityManagerInternal.java index 3903856f5aec..4e47594b6196 100644 --- a/core/java/android/app/ActivityManagerInternal.java +++ b/core/java/android/app/ActivityManagerInternal.java @@ -377,4 +377,10 @@ public abstract class ActivityManagerInternal { * uid, false otherwise */ public abstract boolean isUidCurrentlyInstrumented(int uid); + + /** + * Show a debug toast, asking user to file a bugreport. + */ + // TODO: remove this toast after feature development is done + public abstract void showWhileInUseDebugToast(int uid, int op, int mode); } diff --git a/core/java/android/app/AppOpsManagerInternal.java b/core/java/android/app/AppOpsManagerInternal.java index 099037c02bbb..9958c6a31027 100644 --- a/core/java/android/app/AppOpsManagerInternal.java +++ b/core/java/android/app/AppOpsManagerInternal.java @@ -18,6 +18,7 @@ package android.app; import android.annotation.NonNull; import android.annotation.Nullable; +import android.util.SparseArray; import android.util.SparseIntArray; import com.android.internal.util.function.HexFunction; @@ -82,4 +83,12 @@ public abstract class AppOpsManagerInternal { * access to app ops for their user. */ public abstract void setDeviceAndProfileOwners(SparseIntArray owners); + + /** + * Update if the list of AppWidget becomes visible/invisible. + * @param uidPackageNames uid to packageName map. + * @param visible true for visible, false for invisible. + */ + public abstract void updateAppWidgetVisibility(SparseArray<String> uidPackageNames, + boolean visible); } diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index c16e77ee117f..a62412068fda 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -11101,6 +11101,15 @@ public final class Settings { = "activity_starts_logging_enabled"; /** + * Feature flag to enable or disable the foreground service starts logging feature. + * Type: int (0 for false, 1 for true) + * Default: 1 + * @hide + */ + public static final String FOREGROUND_SERVICE_STARTS_LOGGING_ENABLED = + "foreground_service_starts_logging_enabled"; + + /** * @hide * @see com.android.server.appbinding.AppBindingConstants */ |
