• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.systemui.utils
2 
3 import android.content.Context
4 import com.android.settingslib.RestrictedLockUtils
5 import com.android.settingslib.RestrictedLockUtilsInternal
6 import javax.inject.Inject
7 
8 /** Proxy to call [RestrictedLockUtilsInternal] */
9 class UserRestrictionChecker @Inject constructor() {
checkIfRestrictionEnforcednull10     fun checkIfRestrictionEnforced(
11         context: Context,
12         userRestriction: String,
13         userId: Int
14     ): RestrictedLockUtils.EnforcedAdmin? {
15         return RestrictedLockUtilsInternal.checkIfRestrictionEnforced(
16             context,
17             userRestriction,
18             userId
19         )
20     }
21 
hasBaseUserRestrictionnull22     fun hasBaseUserRestriction(context: Context, userRestriction: String, userId: Int): Boolean {
23         return RestrictedLockUtilsInternal.hasBaseUserRestriction(context, userRestriction, userId)
24     }
25 }
26