Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3a9966a authored by Hai Zhang's avatar Hai Zhang
Browse files

Fix javadoc for the uid paramter.

The original doc says uids are user IDs, which is correct in the sense that they are Linux user IDs, but super confusing because in 99% of the cases we use "user ID" to refer to Android users instead of Linux users. This has caused confusion to developers and we should fix that by simply saying it's a UID which we use to refer to the Linux UID we create for sandboxing every app.

Change-Id: Ic24849fc443649b0656827c5a3f271e0688dab1a
Test: presubmit
parent 6f621bbc
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -6237,7 +6237,7 @@ public abstract class Context {
     *
     * @param permission The name of the permission being checked.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     *
     * @return {@link PackageManager#PERMISSION_GRANTED} if the given
@@ -6327,7 +6327,7 @@ public abstract class Context {
     *
     * @param permission The name of the permission being checked.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     * @param message A message to include in the exception if it is thrown.
     *
@@ -6471,7 +6471,7 @@ public abstract class Context {
     *
     * @param uri The uri that is being checked.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     * @param modeFlags The access modes to check.
     *
@@ -6499,7 +6499,7 @@ public abstract class Context {
     *
     * @param uris The list of URIs that is being checked.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     * @param modeFlags The access modes to check for the list of uris
     *
@@ -6625,7 +6625,7 @@ public abstract class Context {
     * @param writePermission The permission that provides overall write
     * access, or null to not do this check.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     * @param modeFlags The access modes to check.
     *
@@ -6649,7 +6649,7 @@ public abstract class Context {
     *
     * @param uri The uri that is being checked.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     * @param modeFlags The access modes to enforce.
     * @param message A message to include in the exception if it is thrown.
@@ -6708,7 +6708,7 @@ public abstract class Context {
     * @param writePermission The permission that provides overall write
     * access, or null to not do this check.
     * @param pid The process ID being checked against.  Must be > 0.
     * @param uid The user ID being checked against.  A uid of 0 is the root
     * @param uid The UID being checked against.  A uid of 0 is the root
     * user, which will pass every permission check.
     * @param modeFlags The access modes to enforce.
     * @param message A message to include in the exception if it is thrown.