diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index dfcab3df628dd..432de5fba849c 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -635,7 +635,7 @@ public class UserManager { * @see #getUserRestrictions() * @hide */ - public static final String DISALLLOW_UNMUTE_DEVICE = "disallow_unmute_device"; + public static final String DISALLOW_UNMUTE_DEVICE = "disallow_unmute_device"; /** * Specifies if a user is not allowed to use cellular data when roaming. This can only be set by diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index 1d60946129a73..12c4c9f3cf6e1 100644 --- a/services/core/java/com/android/server/audio/AudioService.java +++ b/services/core/java/com/android/server/audio/AudioService.java @@ -1164,7 +1164,7 @@ public class AudioService extends IAudioService.Stub // Check the current user restriction. boolean masterMute = mUserManagerInternal.getUserRestriction(currentUser, - UserManager.DISALLLOW_UNMUTE_DEVICE) + UserManager.DISALLOW_UNMUTE_DEVICE) || mUserManagerInternal.getUserRestriction(currentUser, UserManager.DISALLOW_ADJUST_VOLUME); if (mUseFixedVolume) { @@ -5485,10 +5485,10 @@ public class AudioService extends IAudioService.Stub { final boolean wasRestricted = prevRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) - || prevRestrictions.getBoolean(UserManager.DISALLLOW_UNMUTE_DEVICE); + || prevRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); final boolean isRestricted = newRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) - || newRestrictions.getBoolean(UserManager.DISALLLOW_UNMUTE_DEVICE); + || newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); if (wasRestricted != isRestricted) { setMasterMuteInternalNoCallerCheck(isRestricted, /* flags =*/ 0, userId); } diff --git a/services/core/java/com/android/server/pm/UserRestrictionsUtils.java b/services/core/java/com/android/server/pm/UserRestrictionsUtils.java index d301463db1645..a83dbab950119 100644 --- a/services/core/java/com/android/server/pm/UserRestrictionsUtils.java +++ b/services/core/java/com/android/server/pm/UserRestrictionsUtils.java @@ -108,7 +108,7 @@ public class UserRestrictionsUtils { UserManager.DISALLOW_SET_USER_ICON, UserManager.DISALLOW_SET_WALLPAPER, UserManager.DISALLOW_OEM_UNLOCK, - UserManager.DISALLLOW_UNMUTE_DEVICE, + UserManager.DISALLOW_UNMUTE_DEVICE, }); /** @@ -156,7 +156,7 @@ public class UserRestrictionsUtils { UserManager.DISALLOW_ADJUST_VOLUME, UserManager.DISALLOW_RUN_IN_BACKGROUND, UserManager.DISALLOW_UNMUTE_MICROPHONE, - UserManager.DISALLLOW_UNMUTE_DEVICE + UserManager.DISALLOW_UNMUTE_DEVICE ); /** diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java index 003b6d0d3be9c..3988c6f2eae74 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -8735,7 +8735,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { Preconditions.checkNotNull(who, "ComponentName is null"); synchronized (this) { getActiveAdminForCallerLocked(who, DeviceAdminInfo.USES_POLICY_PROFILE_OWNER); - setUserRestriction(who, UserManager.DISALLLOW_UNMUTE_DEVICE, on); + setUserRestriction(who, UserManager.DISALLOW_UNMUTE_DEVICE, on); } }