/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 33 import android.os.UserManager; 68 UserManager.DISALLOW_CONFIG_WIFI, 69 UserManager.DISALLOW_MODIFY_ACCOUNTS, 70 UserManager.DISALLOW_INSTALL_APPS, 71 UserManager.DISALLOW_UNINSTALL_APPS, 72 UserManager.DISALLOW_SHARE_LOCATION, 73 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, 74 UserManager.DISALLOW_CONFIG_BLUETOOTH, 75 UserManager.DISALLOW_USB_FILE_TRANSFER, 76 UserManager.DISALLOW_CONFIG_CREDENTIALS, [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 28 import android.os.UserManager; 89 UserManager.DISALLOW_ADD_USER, in testMigration() 90 UserManager.DISALLOW_RECORD_AUDIO)); in testMigration() 94 UserManager.DISALLOW_REMOVE_USER, in testMigration() 95 UserManager.DISALLOW_ADD_USER, in testMigration() 96 UserManager.DISALLOW_SMS, in testMigration() 97 UserManager.DISALLOW_OUTGOING_CALLS, in testMigration() 98 UserManager.DISALLOW_WALLPAPER, in testMigration() 99 UserManager.DISALLOW_RECORD_AUDIO)); in testMigration() 103 UserManager.DISALLOW_REMOVE_USER, in testMigration() [all …]
|
D | DevicePolicyManagerTest.java | 33 import android.os.UserManager; 805 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testClearDeviceOwner() 1187 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo() 1191 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER) in testSetUserRestriction_asDo() 1195 dpm.addUserRestriction(admin1, UserManager.DISALLOW_OUTGOING_CALLS); in testSetUserRestriction_asDo() 1198 MockUtils.checkUserRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1199 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER) in testSetUserRestriction_asDo() 1205 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1210 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1214 dpm.clearUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 21 import android.os.UserManager; 86 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_RECORD_AUDIO)); in testCanDeviceOwnerChange() 87 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_WALLPAPER)); in testCanDeviceOwnerChange() 88 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange() 94 UserManager.DISALLOW_RECORD_AUDIO, user)); in testCanProfileOwnerChange() 96 UserManager.DISALLOW_WALLPAPER, user)); in testCanProfileOwnerChange() 98 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange() 100 UserManager.DISALLOW_ADJUST_VOLUME, user)); in testCanProfileOwnerChange() 104 UserManager.DISALLOW_RECORD_AUDIO, user)); in testCanProfileOwnerChange() 106 UserManager.DISALLOW_WALLPAPER, user)); in testCanProfileOwnerChange() [all …]
|
D | UserManagerTest.java | 26 import android.os.UserManager; 41 private UserManager mUserManager = null; 48 mUserManager = UserManager.get(getContext()); in setUp() 102 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); in testAddUser() 216 int N = UserManager.getMaxSupportedUsers(); in testMaxUsers() 233 UserManager.DISALLOW_INSTALL_APPS, true, new UserHandle(testUser.id)); in testRestrictions() 235 UserManager.DISALLOW_CONFIG_WIFI, false, new UserHandle(testUser.id)); in testRestrictions() 239 assertEquals(stored.getBoolean(UserManager.DISALLOW_CONFIG_WIFI), false); in testRestrictions() 240 assertEquals(stored.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS), false); in testRestrictions() 241 assertEquals(stored.getBoolean(UserManager.DISALLOW_INSTALL_APPS), true); in testRestrictions()
|
D | UserManagerServiceTest.java | 24 import android.os.UserManager; 50 UserManager.get(mContext).removeUser(tempUserId); in tearDown() 68 UserManager um = UserManager.get(mContext); in testAddUserWithAccount()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ConfirmUserCreationActivity.java | 30 import android.os.UserManager; 50 private UserManager mUserManager; 57 mUserName = intent.getStringExtra(UserManager.EXTRA_USER_NAME); in onCreate() 58 mAccountName = intent.getStringExtra(UserManager.EXTRA_USER_ACCOUNT_NAME); in onCreate() 59 mAccountType = intent.getStringExtra(UserManager.EXTRA_USER_ACCOUNT_TYPE); in onCreate() 61 intent.getParcelableExtra(UserManager.EXTRA_USER_ACCOUNT_OPTIONS); in onCreate() 63 mUserManager = getSystemService(UserManager.class); in onCreate() 99 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements() 111 setResult(UserManager.USER_CREATION_FAILED_NOT_PERMITTED); in checkUserCreationRequirements() 114 setResult(UserManager.USER_CREATION_FAILED_NO_MORE_USERS); in checkUserCreationRequirements()
|
D | IntentForwarderActivity.java | 33 import android.os.UserManager; 177 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in getManagedProfile() 192 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in getProfileParent()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 29 import android.os.UserManager; 76 UserManager um = UserManager.get(context); in checkIfRestrictionEnforced() 81 if (restrictionSource == UserManager.RESTRICTION_NOT_SET in checkIfRestrictionEnforced() 82 || restrictionSource == UserManager.RESTRICTION_SOURCE_SYSTEM) { in checkIfRestrictionEnforced() 87 (restrictionSource & UserManager.RESTRICTION_SOURCE_PROFILE_OWNER) != 0; in checkIfRestrictionEnforced() 89 (restrictionSource & UserManager.RESTRICTION_SOURCE_DEVICE_OWNER) != 0; in checkIfRestrictionEnforced() 105 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in hasBaseUserRestriction() 126 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in checkIfKeyguardFeaturesDisabled() 191 UserManager.DISALLOW_APPS_CONTROL, userId); in checkIfUninstallBlocked() 196 UserManager.DISALLOW_UNINSTALL_APPS, userId); in checkIfUninstallBlocked() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 31 import android.os.UserManager; 673 UserManager.DISALLOW_SHARE_LOCATION, //COARSE_LOCATION 674 UserManager.DISALLOW_SHARE_LOCATION, //FINE_LOCATION 675 UserManager.DISALLOW_SHARE_LOCATION, //GPS 679 UserManager.DISALLOW_OUTGOING_CALLS, //READ_CALL_LOG 680 UserManager.DISALLOW_OUTGOING_CALLS, //WRITE_CALL_LOG 683 UserManager.DISALLOW_SHARE_LOCATION, //WIFI_SCAN 687 UserManager.DISALLOW_SMS, //READ_SMS 688 UserManager.DISALLOW_SMS, //WRITE_SMS 689 UserManager.DISALLOW_SMS, //RECEIVE_SMS [all …]
|
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/ |
D | RetailDemoModeService.java | 57 import android.os.UserManager; 113 private UserManager mUm; 225 mDeviceInDemoMode = UserManager.isDeviceInDemoMode(getContext()); in onChange() 328 UserManager um = getUserManager(); in setupDemoUser() 330 um.setUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, true, user); in setupDemoUser() 331 um.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, true, user); in setupDemoUser() 332 um.setUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, true, user); in setupDemoUser() 333 um.setUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER, true, user); in setupDemoUser() 334 um.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); in setupDemoUser() 335 um.setUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH, true, user); in setupDemoUser() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | TaskPersisterTest.java | 22 import android.os.UserManager; 37 private UserManager mUserManager; 42 mUserManager = UserManager.get(getContext()); in setUp()
|
/frameworks/support/compat/api24/android/support/v4/os/ |
D | UserManagerCompatApi24.java | 20 import android.os.UserManager; 25 return context.getSystemService(UserManager.class).isUserUnlocked(); in isUserUnlocked()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaResourceMonitorService.java | 27 import android.os.UserManager; 66 UserManager manager = (UserManager) getContext().getSystemService( in notifyResourceGranted()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 23 import android.os.UserManager; 180 return userId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser(); in isSystemOnly() 200 boolean hideSystemUser = UserManager.isSplitSystemUser(); in supportsSwitchToByUser() 209 if (UserManager.isSplitSystemUser()) { in canHaveProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AccessPointControllerImpl.java | 25 import android.os.UserManager; 58 private final UserManager mUserManager; 64 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in AccessPointControllerImpl() 70 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, in canConfigWifi()
|
D | LocationControllerImpl.java | 32 import android.os.UserManager; 137 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted() 138 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, in isUserLocationRestricted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileController.java | 25 import android.os.UserManager; 36 private final UserManager mUserManager; 43 mUserManager = UserManager.get(mContext); in ManagedProfileController()
|
D | MultiUserSwitch.java | 22 import android.os.UserManager; 48 final UserManager mUserManager; 56 mUserManager = UserManager.get(getContext()); in MultiUserSwitch()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserSwitchingDialog.java | 26 import android.os.UserManager; 69 if (UserManager.isSplitSystemUser() && newUser.id == UserHandle.USER_SYSTEM) { in UserSwitchingDialog() 71 } else if (UserManager.isDeviceInDemoMode(context)) { in UserSwitchingDialog()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | EnableAccessibilityController.java | 34 import android.os.UserManager; 92 private final UserManager mUserManager; 109 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in EnableAccessibilityController() 231 final UserManager userManager = (UserManager) context.getSystemService( in enableAccessibility()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | UidDetailProvider.java | 31 import android.os.UserManager; 119 detail.label = res.getString(UserManager.supportsMultipleUsers() in buildUidDetail() 132 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in buildUidDetail()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | UserAdapter.java | 27 import android.os.UserManager; 53 public UserDetails(UserHandle userHandle, UserManager um, Context context) { in UserDetails() 188 public static UserAdapter createUserSpinnerAdapter(UserManager userManager, in createUserSpinnerAdapter() 203 public static UserAdapter createUserAdapter(UserManager userManager, in createUserAdapter()
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ConfirmDialog.java | 28 import android.os.UserManager; 59 if (UserManager.get(this).hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN)) { in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | TakeScreenshotService.java | 26 import android.os.UserManager; 53 if (!getSystemService(UserManager.class).isUserUnlocked()) {
|