Merge "Remove network capability from CAPABILITY_ALL constant."

This commit is contained in:
Sudheer Shanka
2021-03-05 23:14:54 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ package android.app {
method public static boolean isHighEndGfx(); method public static boolean isHighEndGfx();
method public static void resumeAppSwitches() throws android.os.RemoteException; method public static void resumeAppSwitches() throws android.os.RemoteException;
method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public void scheduleApplicationInfoChanged(java.util.List<java.lang.String>, int); method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public void scheduleApplicationInfoChanged(java.util.List<java.lang.String>, int);
field public static final int PROCESS_CAPABILITY_ALL = 15; // 0xf field public static final int PROCESS_CAPABILITY_ALL = 7; // 0x7
field public static final int PROCESS_CAPABILITY_ALL_EXPLICIT = 1; // 0x1 field public static final int PROCESS_CAPABILITY_ALL_EXPLICIT = 1; // 0x1
field public static final int PROCESS_CAPABILITY_ALL_IMPLICIT = 6; // 0x6 field public static final int PROCESS_CAPABILITY_ALL_IMPLICIT = 6; // 0x6
field public static final int PROCESS_CAPABILITY_FOREGROUND_CAMERA = 2; // 0x2 field public static final int PROCESS_CAPABILITY_FOREGROUND_CAMERA = 2; // 0x2

View File

@@ -608,8 +608,7 @@ public class ActivityManager {
@TestApi @TestApi
public static final int PROCESS_CAPABILITY_ALL = PROCESS_CAPABILITY_FOREGROUND_LOCATION public static final int PROCESS_CAPABILITY_ALL = PROCESS_CAPABILITY_FOREGROUND_LOCATION
| PROCESS_CAPABILITY_FOREGROUND_CAMERA | PROCESS_CAPABILITY_FOREGROUND_CAMERA
| PROCESS_CAPABILITY_FOREGROUND_MICROPHONE | PROCESS_CAPABILITY_FOREGROUND_MICROPHONE;
| PROCESS_CAPABILITY_NETWORK;
/** /**
* All explicit capabilities. These are capabilities that need to be specified from manifest * All explicit capabilities. These are capabilities that need to be specified from manifest
* file. * file.