Home
last modified time | relevance | path

Searched refs:UserManager (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java44 import android.os.UserManager;
145 UserManager.DISALLOW_RECORD_AUDIO);
510 mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS, true); in initDefaultGuestRestrictions()
511 mGuestRestrictions.putBoolean(UserManager.DISALLOW_SMS, true); in initDefaultGuestRestrictions()
610 return getAliveUsersExcludingGuestsCountLocked() >= UserManager.getMaxSupportedUsers(); in isUserLimitReachedLocked()
631 return usersCount == 1 || usersCount < UserManager.getMaxSupportedUsers(); in canAddMoreManagedProfiles()
970 writeBoolean(serializer, restrictions, UserManager.DISALLOW_CONFIG_WIFI); in writeRestrictionsLocked()
971 writeBoolean(serializer, restrictions, UserManager.DISALLOW_MODIFY_ACCOUNTS); in writeRestrictionsLocked()
972 writeBoolean(serializer, restrictions, UserManager.DISALLOW_INSTALL_APPS); in writeRestrictionsLocked()
973 writeBoolean(serializer, restrictions, UserManager.DISALLOW_UNINSTALL_APPS); in writeRestrictionsLocked()
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManager.java31 import android.os.UserManager;
630 UserManager.DISALLOW_SHARE_LOCATION, //COARSE_LOCATION
631 UserManager.DISALLOW_SHARE_LOCATION, //FINE_LOCATION
632 UserManager.DISALLOW_SHARE_LOCATION, //GPS
636 UserManager.DISALLOW_OUTGOING_CALLS, //READ_CALL_LOG
637 UserManager.DISALLOW_OUTGOING_CALLS, //WRITE_CALL_LOG
640 UserManager.DISALLOW_SHARE_LOCATION, //WIFI_SCAN
644 UserManager.DISALLOW_SMS, //READ_SMS
645 UserManager.DISALLOW_SMS, //WRITE_SMS
646 UserManager.DISALLOW_SMS, //RECEIVE_SMS
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java26 import android.os.UserManager;
35 private UserManager mUserManager = null;
41 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in setUp()
91 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); in testAddUser()
192 int N = UserManager.getMaxSupportedUsers(); in testMaxUsers()
209 restrictions.putBoolean(UserManager.DISALLOW_INSTALL_APPS, true); in testRestrictions()
210 restrictions.putBoolean(UserManager.DISALLOW_CONFIG_WIFI, false); in testRestrictions()
213 assertEquals(stored.getBoolean(UserManager.DISALLOW_CONFIG_WIFI), false); in testRestrictions()
214 assertEquals(stored.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS), false); in testRestrictions()
215 assertEquals(stored.getBoolean(UserManager.DISALLOW_INSTALL_APPS), true); in testRestrictions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessPointControllerImpl.java25 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()
DLocationControllerImpl.java32 import android.os.UserManager;
136 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted()
138 UserManager.DISALLOW_SHARE_LOCATION, in isUserLocationRestricted()
DZenModeControllerImpl.java32 import android.os.UserManager;
61 private final UserManager mUserManager;
89 mUserManager = context.getSystemService(UserManager.class); in ZenModeControllerImpl()
94 return mUserManager.hasUserRestriction(UserManager.DISALLOW_ADJUST_VOLUME, in isVolumeRestricted()
DUserInfoController.java34 import android.os.UserManager;
145 final UserManager um = UserManager.get(mContext); in queryForUserInformation()
DSecurityControllerImpl.java34 import android.os.UserManager;
64 private final UserManager mUserManager;
80 mUserManager = (UserManager) in SecurityControllerImpl()
/frameworks/base/services/core/java/com/android/server/
DLockSettingsService.java39 import android.os.UserManager;
118 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE);
163 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in migrateOldData()
200 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in migrateOldData()
227 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in migrateOldData()
364 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in setKeystorePassword()
374 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in unlockKeystore()
DLockSettingsStorage.java28 import android.os.UserManager;
390 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in getUserParentOrSelfId()
402 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in removeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DMultiUserSwitch.java22 import android.os.UserManager;
45 final UserManager mUserManager;
53 mUserManager = UserManager.get(getContext()); in MultiUserSwitch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java32 import android.os.UserManager;
96 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in wipeGuestSession()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java30 import android.os.UserManager;
136 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testSettingsChangeForOtherUser()
240 private boolean findUser(UserManager um, int userHandle) { in findUser()
251 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testPerUserSettings()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraService.java31 import android.os.UserManager;
69 private UserManager mUserManager;
130 mUserManager = UserManager.get(mContext); in onStart()
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java33 import android.os.UserManager;
170 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in getManagedProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDebuggingSecondaryUserActivity.java30 import android.os.UserManager;
50 UserInfo user = UserManager.get(this).getUserInfo(UserHandle.USER_OWNER); in onCreate()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DBaseSettingsProviderTest.java26 import android.os.UserManager;
57 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in setContext()
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java27 import android.os.UserManager;
60 new int[] { UserManager.get(this).getUserHandle() /* current user */}); in onEnrollButtonClicked()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java35 import android.os.UserManager;
260 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setGpsLocation()
261 if (um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)) { in setGpsLocation()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java70 import android.os.UserManager;
446 users = UserManager.get(mContext).getUsers(); in agentConnect()
489 UserManager mgr = UserManager.get(mContext); in establish()
504 if (user.isRestricted() || mgr.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN, in establish()
686 UserManager mgr = UserManager.get(mContext); in onUserAdded()
705 UserManager mgr = UserManager.get(mContext); in onUserRemoved()
911 UserManager mgr = UserManager.get(mContext); in startLegacyVpnPrivileged()
913 if (user.isRestricted() || mgr.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN, in startLegacyVpnPrivileged()
DPermissionMonitor.java37 import android.os.UserManager;
63 private final UserManager mUserManager;
76 mUserManager = UserManager.get(context); in PermissionMonitor()
/frameworks/base/core/java/android/provider/
DCallLog.java31 import android.os.UserManager;
605 final UserManager userManager = (UserManager) context.getSystemService( in addCall()
614 && !userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, in addCall()
/frameworks/base/services/core/java/com/android/server/policy/
DEnableAccessibilityController.java32 import android.os.UserManager;
87 private final UserManager mUserManager;
104 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in EnableAccessibilityController()
/frameworks/base/core/java/android/os/
DUserManager.java41 public class UserManager { class
499 private static UserManager sInstance = null;
502 public synchronized static UserManager get(Context context) { in get()
504 sInstance = (UserManager) context.getSystemService(Context.USER_SERVICE); in get()
510 public UserManager(Context context, IUserManager service) { in UserManager() method in UserManager
DRecoverySystem.java22 import android.os.UserManager;
405 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in rebootWipeUserData()
406 if (um.hasUserRestriction(UserManager.DISALLOW_FACTORY_RESET)) { in rebootWipeUserData()

12345