Home
last modified time | relevance | path

Searched refs:mRestrictionKey (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/dashboard/
DRestrictedDashboardFragment.java73 private final String mRestrictionKey; field in RestrictedDashboardFragment
99 mRestrictionKey = restrictionKey; in RestrictedDashboardFragment()
140 if (shouldBeProviderProtected(mRestrictionKey)) { in onResume()
187 if (mRestrictionKey == null || RESTRICT_IF_OVERRIDABLE.equals(mRestrictionKey)) { in isRestrictedAndNotProviderProtected()
190 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
206 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
217 mRestrictionKey, UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
235 .prepareDialogBuilder(mRestrictionKey, admin) in onDataSetChanged()
258 return isUiRestricted() && !mUserManager.hasBaseUserRestriction(mRestrictionKey, in isUiRestrictedByOnlyAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/
DRestrictedDashboardFragment.java73 private final String mRestrictionKey; field in RestrictedDashboardFragment
99 mRestrictionKey = restrictionKey; in RestrictedDashboardFragment()
140 if (shouldBeProviderProtected(mRestrictionKey)) { in onResume()
187 if (mRestrictionKey == null || RESTRICT_IF_OVERRIDABLE.equals(mRestrictionKey)) { in isRestrictedAndNotProviderProtected()
190 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
206 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
217 mRestrictionKey, UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
235 .prepareDialogBuilder(mRestrictionKey, admin) in onDataSetChanged()
258 return isUiRestricted() && !mUserManager.hasBaseUserRestriction(mRestrictionKey, in isUiRestrictedByOnlyAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRestrictedSettingsFragment.java73 private final String mRestrictionKey; field in RestrictedSettingsFragment
101 mRestrictionKey = restrictionKey; in RestrictedSettingsFragment()
142 if (shouldBeProviderProtected(mRestrictionKey)) { in onResume()
193 if (mRestrictionKey == null || RESTRICT_IF_OVERRIDABLE.equals(mRestrictionKey)) { in isRestrictedAndNotProviderProtected()
196 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
212 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
223 mRestrictionKey, UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
241 .prepareDialogBuilder(mRestrictionKey, admin) in onDataSetChanged()
264 return isUiRestricted() && !mUserManager.hasBaseUserRestriction(mRestrictionKey, in isUiRestrictedByOnlyAdmin()
/packages/apps/Settings/src/com/android/settings/
DRestrictedSettingsFragment.java73 private final String mRestrictionKey; field in RestrictedSettingsFragment
101 mRestrictionKey = restrictionKey; in RestrictedSettingsFragment()
142 if (shouldBeProviderProtected(mRestrictionKey)) { in onResume()
193 if (mRestrictionKey == null || RESTRICT_IF_OVERRIDABLE.equals(mRestrictionKey)) { in isRestrictedAndNotProviderProtected()
196 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
212 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
223 mRestrictionKey, UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
241 .prepareDialogBuilder(mRestrictionKey, admin) in onDataSetChanged()
264 return isUiRestricted() && !mUserManager.hasBaseUserRestriction(mRestrictionKey, in isUiRestrictedByOnlyAdmin()