Home
last modified time | relevance | path

Searched refs:getUserRestrictions (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiRestrictionsCacheTest.java75 when(mUserManager.getUserRestrictions()).thenReturn(mUserRestrictionsOwner); in setUp()
80 when(mUserManager.getUserRestrictions()).thenReturn(mUserRestrictionsGuest); in setUp()
169 when(mUserManager.getUserRestrictions()).thenReturn(userRestrictions); in mockInstance()
/frameworks/base/core/java/android/companion/virtual/audio/
DUserRestrictionsDetector.java56 Bundle bundle = mUserManager.getUserRestrictions(); in isUnmuteMicrophoneDisallowed()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiRestrictionsCache.java94 mUserRestrictions = mUserManager.getUserRestrictions(); in WifiRestrictionsCache()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java473 assertTrue(mUserManagerService.getUserRestrictions(userId).getBoolean( in testUpgradeProfileType_updateRestrictions()
475 assertTrue(mUserManagerService.getUserRestrictions(userId).getBoolean( in testUpgradeProfileType_updateRestrictions()
477 assertTrue(mUserManagerService.getUserRestrictions(userId).getBoolean( in testUpgradeProfileType_updateRestrictions()
DUserManagerTest.java1309 Bundle restrictions = mUserManager.getUserRestrictions(UserHandle.of(userInfo.id)); in testAddRestrictedProfile()
1462 Bundle stored = mUserManager.getUserRestrictions(asHandle(testUser.id)); in testRestrictions()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java197 .that(dpm.getParentProfileInstance(admin1).getUserRestrictions(admin1).keySet()) in testCompMigrationAffiliated()
201 dpm.getUserRestrictions(admin1).keySet()) in testCompMigrationAffiliated()
DDevicePolicyManagerTest.java1402 when(getServices().userManager.getUserRestrictions()).thenReturn(new Bundle()); in testClearDeviceOwner()
2013 dpm.getUserRestrictions(admin1) in testSetUserRestriction_asDo()
2031 dpm.getUserRestrictions(admin1) in testSetUserRestriction_asDo()
2175 dpm.getUserRestrictions(admin1) in testSetUserRestriction_asPo()
2197 dpm.getUserRestrictions(admin1) in testSetUserRestriction_asPo()
2213 dpm.getUserRestrictions(admin1) in testSetUserRestriction_asPo()
7814 DpmTestUtils.assertRestrictions(new Bundle(), dpm.getUserRestrictions(admin1)); in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()
7848 dpm.getUserRestrictions(admin1)); in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
/frameworks/base/core/java/android/os/
DIUserManager.aidl93 Bundle getUserRestrictions(int userId); in getUserRestrictions() method
DUserManager.java3990 public Bundle getUserRestrictions() { in getUserRestrictions() method in UserManager
3992 return mService.getUserRestrictions(getContextUserIfAppropriate()); in getUserRestrictions()
4010 public Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() method in UserManager
4012 return mService.getUserRestrictions(userHandle.getIdentifier()); in getUserRestrictions()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java170 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in setUp()
493 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
519 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
1010 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
1036 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
1481 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testRemoveAccountAsUserUserCannotModifyAccount()
1987 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testAddAccountAsUserUserCannotModifyAccountNoDPM()
2014 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testAddAccountAsUserUserCannotModifyAccountWithDPM()
/frameworks/base/core/java/android/accounts/
DChooseTypeAndAccountActivity.java153 .getUserRestrictions(new UserHandle(UserHandle.getUserId(mCallingUid))); in onCreate()
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl258 Bundle getUserRestrictions(in ComponentName who, in String callerPackage, boolean parent); in getUserRestrictions() method
DDevicePolicyManager.java12072 public @NonNull Bundle getUserRestrictions(@NonNull ComponentName admin) { in getUserRestrictions() method in DevicePolicyManager
12076 ret = mService.getUserRestrictions( in getUserRestrictions()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java3439 public Bundle getUserRestrictions(@UserIdInt int userId) { in getUserRestrictions() method in UserManagerService
6045 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean(
6093 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean(restriction, false)) {
6282 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean(restriction, false)) {
7443 return getUserRestrictions(userId).getBoolean(key);
DPackageManagerShellCommand.java3353 final Bundle restrictions = um.getUserRestrictions(translatedUserId); in runGetUserRestriction()
DPackageManagerService.java3146 Bundle restrictions = mUserManager.getUserRestrictions(userId);
/frameworks/base/core/api/
Dlint-baseline.txt744 RequiresPermission: android.os.UserManager#getUserRestrictions(android.os.UserHandle):
745 …Method 'getUserRestrictions' documentation mentions permissions already declared by @RequiresPermi…
Dmodule-lib-lint-baseline.txt1050 RequiresPermission: android.os.UserManager#getUserRestrictions(android.os.UserHandle):
1051 …Method 'getUserRestrictions' documentation mentions permissions already declared by @RequiresPermi…
Dtest-lint-baseline.txt1208 RequiresPermission: android.os.UserManager#getUserRestrictions(android.os.UserHandle):
1209 …Method 'getUserRestrictions' documentation mentions permissions already declared by @RequiresPermi…
Dsystem-lint-baseline.txt1134 RequiresPermission: android.os.UserManager#getUserRestrictions(android.os.UserHandle):
1135 …Method 'getUserRestrictions' documentation mentions permissions already declared by @RequiresPermi…
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java6040 if (getUserManager().getUserRestrictions(new UserHandle(userId))
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java13653 public Bundle getUserRestrictions(ComponentName who, String callerPackage, boolean parent) {
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/boot/
Dboot-image-profile.txt12136 HSPLandroid/os/IUserManager$Stub$Proxy;->getUserRestrictions(I)Landroid/os/Bundle;
12976 HSPLandroid/os/UserManager;->getUserRestrictions()Landroid/os/Bundle;
12977 HSPLandroid/os/UserManager;->getUserRestrictions(Landroid/os/UserHandle;)Landroid/os/Bundle;
/frameworks/base/config/
Dboot-image-profile.txt12139 HSPLandroid/os/IUserManager$Stub$Proxy;->getUserRestrictions(I)Landroid/os/Bundle;
12979 HSPLandroid/os/UserManager;->getUserRestrictions()Landroid/os/Bundle;
12980 HSPLandroid/os/UserManager;->getUserRestrictions(Landroid/os/UserHandle;)Landroid/os/Bundle;

12