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

Commit 1fad97b8 authored by Michael Wright's avatar Michael Wright
Browse files

Suppress Metalava warnings about API names.

The APIs in CrossProfileApps are not the same as a typical "ForUser"
pattern so suppress the warning about the naming convention.

Bug: 341689993
Test: presubmit
Change-Id: I775d86450e15e53a9cf37e15f0a54baa3521901c
parent c8b0817d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ public class CrossProfileApps {
     * @return whether the specified user is a profile.
     */
    @FlaggedApi(FLAG_ALLOW_QUERYING_PROFILE_TYPE)
    @SuppressWarnings("UserHandleName")
    public boolean isProfile(@NonNull UserHandle userHandle) {
        // Note that this is not a security check, but rather a check for correct use.
        // The actual security check is performed by UserManager.
@@ -343,6 +344,7 @@ public class CrossProfileApps {
     * @return whether the specified user is a managed profile.
     */
    @FlaggedApi(FLAG_ALLOW_QUERYING_PROFILE_TYPE)
    @SuppressWarnings("UserHandleName")
    public boolean isManagedProfile(@NonNull UserHandle userHandle) {
        // Note that this is not a security check, but rather a check for correct use.
        // The actual security check is performed by UserManager.