/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/ |
D | ShadowUserManager.java | 143 protected boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) { in hasBaseUserRestriction() argument 144 return mBaseRestrictions.contains(restrictionKey); in hasBaseUserRestriction() 178 protected boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() argument 179 return hasUserRestriction(restrictionKey, UserHandle.of(UserHandle.myUserId())); in hasUserRestriction() 188 String restrictionKey, UserHandle userHandle) { in getUserRestrictionSources() argument 192 mRestrictionSources.get(restrictionKey + userHandle.getIdentifier()); in getUserRestrictionSources() 197 String restrictionKey, UserHandle userHandle, List<EnforcingUser> enforcers) { in setUserRestrictionSources() argument 198 mRestrictionSources.put(restrictionKey + userHandle.getIdentifier(), enforcers); in setUserRestrictionSources()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RestrictedSettingsFragment.java | 100 public RestrictedSettingsFragment(String restrictionKey) { in RestrictedSettingsFragment() argument 101 mRestrictionKey = restrictionKey; in RestrictedSettingsFragment() 207 protected boolean shouldBeProviderProtected(String restrictionKey) { in shouldBeProviderProtected() argument 208 if (restrictionKey == null) { in shouldBeProviderProtected() 211 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | RestrictedDashboardFragment.java | 98 public RestrictedDashboardFragment(String restrictionKey) { in RestrictedDashboardFragment() argument 99 mRestrictionKey = restrictionKey; in RestrictedDashboardFragment() 201 protected boolean shouldBeProviderProtected(String restrictionKey) { in shouldBeProviderProtected() argument 202 if (restrictionKey == null) { in shouldBeProviderProtected() 205 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | RestrictedSettingsFragment.java | 97 public RestrictedSettingsFragment(String restrictionKey) { in RestrictedSettingsFragment() argument 98 mRestrictionKey = restrictionKey; in RestrictedSettingsFragment() 205 protected boolean shouldBeProviderProtected(String restrictionKey) { in shouldBeProviderProtected() argument 206 if (restrictionKey == null) { in shouldBeProviderProtected() 209 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected()
|
/packages/apps/Settings/src/com/android/settings/print/ |
D | ProfileSettingsPreferenceFragment.java | 38 public ProfileSettingsPreferenceFragment(String restrictionKey) { in ProfileSettingsPreferenceFragment() argument 39 super(restrictionKey); in ProfileSettingsPreferenceFragment()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | UserManagerCompat.java | 98 @UserManager.UserRestrictionKey @NonNull String restrictionKey, in hasBaseUserRestriction() 100 return mUserManager.hasBaseUserRestriction(restrictionKey, userHandle); in hasBaseUserRestriction()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | AbstractMobileNetworkSettings.java | 46 AbstractMobileNetworkSettings(String restrictionKey) { in AbstractMobileNetworkSettings() argument 47 super(restrictionKey); in AbstractMobileNetworkSettings()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityShortcutPreferenceFragmentTest.java | 331 public TestAccessibilityShortcutPreferenceFragment(String restrictionKey) { in TestAccessibilityShortcutPreferenceFragment() argument 332 super(restrictionKey); in TestAccessibilityShortcutPreferenceFragment()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityShortcutPreferenceFragment.java | 81 public AccessibilityShortcutPreferenceFragment(String restrictionKey) { in AccessibilityShortcutPreferenceFragment() argument 82 super(restrictionKey); in AccessibilityShortcutPreferenceFragment()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 380 UserHandle user, String restrictionKey, boolean value) { in mockUmHasUserRestrictionForUser() argument 381 when(um.hasUserRestrictionForUser(restrictionKey, user)).thenReturn(value); in mockUmHasUserRestrictionForUser()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 241 public boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() argument 246 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 533 final String restrictionKey = st.nextToken(); in onPreferenceChange() local 539 if (entry.getKey().equals(restrictionKey)) { in onPreferenceChange()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 657 final String restrictionKey = st.nextToken(); in onPreferenceChange() local 663 if (entry.getKey().equals(restrictionKey)) { in onPreferenceChange()
|
/packages/services/Telephony/src/com/android/phone/ |
D | NotificationMgr.java | 447 private boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument 449 .getUserRestrictionSources(restrictionKey, userHandle); in hasUserRestriction()
|