/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ |
DeviceOwnerUserRestrictionsTest.java | 18 import android.os.UserManager; 22 // UserManager.DISALLOW_CONFIG_WIFI, // Has unrecoverable side effects. 23 UserManager.DISALLOW_MODIFY_ACCOUNTS, 24 UserManager.DISALLOW_INSTALL_APPS, 25 UserManager.DISALLOW_UNINSTALL_APPS, 26 // UserManager.DISALLOW_SHARE_LOCATION, // Has unrecoverable side effects. 27 // UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, // Has unrecoverable side effects. 28 UserManager.DISALLOW_CONFIG_BLUETOOTH, 29 UserManager.DISALLOW_USB_FILE_TRANSFER, 30 UserManager.DISALLOW_CONFIG_CREDENTIALS [all...] |
SecondaryProfileOwnerUserRestrictionsTest.java | 18 import android.os.UserManager; 25 // UserManager.DISALLOW_CONFIG_WIFI, // Has unrecoverable side effects. 26 UserManager.DISALLOW_MODIFY_ACCOUNTS, 27 UserManager.DISALLOW_INSTALL_APPS, 28 UserManager.DISALLOW_UNINSTALL_APPS, 29 // UserManager.DISALLOW_SHARE_LOCATION, // Has unrecoverable side effects. 30 // UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, // Has unrecoverable side effects. 31 UserManager.DISALLOW_CONFIG_BLUETOOTH, 32 UserManager.DISALLOW_CONFIG_CREDENTIALS, 33 UserManager.DISALLOW_REMOVE_USER [all...] |
BaseUserRestrictionsTest.java | 22 import android.os.UserManager; 34 UserManager.DISALLOW_CONFIG_WIFI, 35 UserManager.DISALLOW_MODIFY_ACCOUNTS, 36 UserManager.DISALLOW_INSTALL_APPS, 37 UserManager.DISALLOW_UNINSTALL_APPS, 38 UserManager.DISALLOW_SHARE_LOCATION, 39 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, 40 UserManager.DISALLOW_CONFIG_BLUETOOTH, 41 UserManager.DISALLOW_USB_FILE_TRANSFER, 42 UserManager.DISALLOW_CONFIG_CREDENTIALS [all...] |
CheckNoOwnerRestrictionsTest.java | 18 import android.os.UserManager; 28 mContext.getSystemService(UserManager.class).hasUserRestriction( 29 UserManager.DISALLOW_UNMUTE_MICROPHONE));
|
ManagedProfileOwnerUserRestrictionsTest.java | 18 import android.os.UserManager; 28 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, 29 UserManager.DISALLOW_BLUETOOTH_SHARING
|
/frameworks/base/core/java/android/os/ |
UserManager.aidl | 20 parcelable UserManager.EnforcingUser
|
/frameworks/base/services/core/java/com/android/server/pm/ |
UserRestrictionsUtils.java | 32 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_BLUETOOTH, 76 UserManager.DISALLOW_BLUETOOTH_SHARING [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserRestrictionsUtilsTest.java | 24 import android.os.UserManager; 89 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_RECORD_AUDIO)); 90 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_WALLPAPER)); 91 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); 97 UserManager.DISALLOW_RECORD_AUDIO, user)); 99 UserManager.DISALLOW_WALLPAPER, user)); 101 UserManager.DISALLOW_ADD_USER, user)); 103 UserManager.DISALLOW_ADJUST_VOLUME, user)); 107 UserManager.DISALLOW_RECORD_AUDIO, user)); 109 UserManager.DISALLOW_WALLPAPER, user)) [all...] |
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
UserRestrictionTest.java | 21 import android.os.UserManager; 29 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true); 33 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false); 37 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, true); 41 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, false); 45 setUserRestriction(UserManager.DISALLOW_REMOVE_USER, true); 49 setUserRestriction(UserManager.DISALLOW_REMOVE_USER, false);
|
/packages/apps/Settings/src/com/android/settings/users/ |
UserFeatureProviderImpl.java | 21 import android.os.UserManager; 26 UserManager mUm; 29 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
/frameworks/support/compat/java/android/support/v4/os/ |
UserManagerCompat.java | 21 import android.os.UserManager; 24 * Helper for accessing features in {@link android.os.UserManager} in a backwards compatible 40 return context.getSystemService(UserManager.class).isUserUnlocked();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerServiceMigrationTest.java | 29 import android.os.UserManager; 83 // Set up UserManager 86 UserManager.DISALLOW_ADD_USER, 87 UserManager.DISALLOW_RECORD_AUDIO)); 91 UserManager.DISALLOW_REMOVE_USER, 92 UserManager.DISALLOW_ADD_USER, 93 UserManager.DISALLOW_SMS, 94 UserManager.DISALLOW_OUTGOING_CALLS, 95 UserManager.DISALLOW_WALLPAPER, 96 UserManager.DISALLOW_RECORD_AUDIO)) [all...] |
/packages/apps/Settings/src/com/android/settings/network/ |
NetworkResetRestrictionChecker.java | 21 import android.os.UserManager; 29 private final UserManager mUserManager; 33 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); 39 UserManager.DISALLOW_NETWORK_RESET, UserHandle.myUserId()); 45 mContext, UserManager.DISALLOW_NETWORK_RESET, UserHandle.myUserId()) != null;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
UserRestrictions.java | 22 import android.os.UserManager; 34 UserManager.DISALLOW_ADD_USER, 35 UserManager.DISALLOW_ADJUST_VOLUME, 36 UserManager.DISALLOW_APPS_CONTROL, 37 UserManager.DISALLOW_CONFIG_CELL_BROADCASTS, 38 UserManager.DISALLOW_CONFIG_CREDENTIALS, 39 UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, 40 UserManager.DISALLOW_CONFIG_TETHERING, 41 UserManager.DISALLOW_CONFIG_WIFI, 42 UserManager.DISALLOW_DEBUGGING_FEATURES [all...] |
/packages/apps/Settings/src/com/android/settings/ |
TestingSettings.java | 20 import android.os.UserManager; 33 final UserManager um = UserManager.get(getContext());
|
WorkOnlyCategory.java | 18 import android.os.UserManager; 33 return Utils.getManagedProfile(UserManager.get(context)) != null;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
UserManagerWrapperImpl.java | 20 import android.os.UserManager; 25 private UserManager mUserManager; 27 public UserManagerWrapperImpl(UserManager userManager) { 28 mUserManager = userManager;
|
InstalledAppLister.java | 21 import android.os.UserManager; 25 public InstalledAppLister(PackageManagerWrapper packageManager, UserManager userManager) { 26 super(packageManager, userManager);
|
/packages/apps/Settings/src/com/android/settings/system/ |
FactoryResetPreferenceController.java | 19 import android.os.UserManager; 31 private final UserManager mUm; 35 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
/packages/apps/Settings/src/com/android/settings/development/ |
BugReportPreferenceController.java | 20 import android.os.UserManager; 32 private UserManager mUserManager; 37 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); 55 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
ShadowAudioHelper.java | 20 import android.os.UserManager; 34 public int getManagedProfileId(UserManager um) {
|
ShadowUserManager.java | 22 import android.os.UserManager; 34 * This class provides the API 24 implementation of UserManager.get(Context). 36 @Implements(UserManager.class) 61 public static UserManager get(Context context) { 62 return (UserManager) context.getSystemService(Context.USER_SERVICE); 67 RuntimeEnvironment.application.getSystemService(UserManager.class));
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
DisallowAddUserTask.java | 22 import android.os.UserManager; 34 private final UserManager mUserManager; 40 this(UserManager.isSplitSystemUser(), context, params, callback); 50 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); 64 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { 65 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
ManageExternalSources.java | 23 import android.os.UserManager; 98 final UserManager um = UserManager.get(getContext()); 100 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, 103 case UserManager.RESTRICTION_SOURCE_DEVICE_OWNER: 104 case UserManager.RESTRICTION_SOURCE_PROFILE_OWNER: 105 case UserManager.RESTRICTION_SOURCE_SYSTEM: 113 final UserManager um = UserManager.get(getContext()); 115 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES [all...] |
/frameworks/base/services/core/java/com/android/server/oemlock/ |
PersistentDataBlockLock.java | 22 import android.os.UserManager; 50 UserManager.get(mContext).setUserRestriction( 51 UserManager.DISALLOW_OEM_UNLOCK, !allowed, UserHandle.SYSTEM); 60 return !UserManager.get(mContext) 61 .hasUserRestriction(UserManager.DISALLOW_OEM_UNLOCK, UserHandle.SYSTEM);
|