/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothEnabler.java | 224 EnforcedAdmin admin = getEnforcedAdmin(mRestrictionUtils, mContext); local 225 mSwitchController.setDisabledByAdmin(admin); 226 if (admin != null) { 230 return admin != null; 235 EnforcedAdmin admin = mRestrictionUtils.checkIfRestrictionEnforced( local 237 if (admin == null) { 238 admin = mRestrictionUtils.checkIfRestrictionEnforced( 241 return admin;
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
RestrictedDashboardFragment.java | 42 * that will display an admin support message in case an admin has disabled the options. 232 final EnforcedAdmin admin = getRestrictionEnforcedAdmin(); local 234 .prepareDialogBuilder(mRestrictionKey, admin)
|
/packages/apps/Settings/src/com/android/settings/development/ |
StayAwakePreferenceController.java | 87 final RestrictedLockUtils.EnforcedAdmin admin = checkIfMaximumTimeToLockSetByAdmin(); local 88 if (admin != null) { 89 mPreference.setDisabledByAdmin(admin);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
RedactionInterstitial.java | 19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS; 20 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS; 163 EnforcedAdmin admin = RestrictedLockUtils.checkIfKeyguardFeaturesDisabled( local 165 button.setDisabledByAdmin(admin);
|
VisibilityPreferenceController.java | 22 import android.app.admin.DevicePolicyManager; 129 RestrictedLockUtils.EnforcedAdmin admin = local 132 if (admin != null) { 134 new RestrictedListPreference.RestrictedItem(entry, entryValue, admin);
|
LockScreenNotificationPreferenceController.java | 19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS; 20 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS; 22 import android.app.admin.DevicePolicyManager; 247 RestrictedLockUtils.EnforcedAdmin admin = local 250 if (admin != null && mLockscreen != null) { 252 new RestrictedListPreference.RestrictedItem(entry, entryValue, admin); 292 .getKeyguardDisabledFeatures(null/* admin */, userId);
|
/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
TrustAgentManager.java | 21 import android.app.admin.DevicePolicyManager; 60 public RestrictedLockUtils.EnforcedAdmin admin = null; field in class:TrustAgentManager.TrustAgentComponentInfo 115 final RestrictedLockUtils.EnforcedAdmin admin = RestrictedLockUtils local 131 if (admin != null && dpm.getTrustAgentConfiguration( 133 trustAgentComponentInfo.admin = admin;
|
TrustAgentSettings.java | 21 import android.app.admin.DevicePolicyManager; 116 final EnforcedAdmin admin = RestrictedLockUtils.checkIfKeyguardFeaturesDisabled(context, local 133 if (admin != null 136 preference.setDisabledByAdmin(admin);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiEnabler.java | 168 final EnforcedAdmin admin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, local 170 mSwitchWidget.setDisabledByAdmin(admin);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
VerifyAppsOverUsbPreferenceControllerTest.java | 156 final EnforcedAdmin admin = new EnforcedAdmin(); local 157 setupEnforcedAdmin(admin); 161 verify(mPreference).setDisabledByAdmin(admin);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
ActionDisabledByAdminDialogHelperTest.java | 25 import android.app.admin.DevicePolicyManager; 79 final EnforcedAdmin admin = new EnforcedAdmin(component, userId); local 81 mHelper.showAdminPolicies(admin, mActivity); 93 final EnforcedAdmin admin = new EnforcedAdmin(null, userId); local 94 mHelper.showAdminPolicies(admin, mActivity); 153 final EnforcedAdmin admin = new EnforcedAdmin(component, 123); local 163 mHelper.setAdminSupportDetails(mActivity, view, admin); 164 assertNotNull(admin.component); 176 final EnforcedAdmin admin = new EnforcedAdmin(component, 123); local 182 mHelper.setAdminSupportDetails(mActivity, null, admin); [all...] |
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
BasePackageInstallTest.java | 16 package android.packageinstaller.admin.cts; 19 import android.app.admin.DevicePolicyManager;
|
/external/valgrind/exp-sgcheck/ |
h_main.c | 150 struct _SegGroup* admin; member in struct:_SegGroup 175 g->admin = NULL; 181 g->admin = group_list;
|
/frameworks/base/core/java/android/app/admin/ |
DeviceAdminInfo.java | 17 package android.app.admin; 56 * A type of policy that this device admin can use: device owner meta-policy 57 * for an admin that is designated as owner of the device. 64 * A type of policy that this device admin can use: profile owner meta-policy 72 * A type of policy that this device admin can use: limit the passwords 76 * <p>To control this policy, the device admin must have a "limit-password" 79 * <p>This policy is deprecated for use by a device admin. In future releases, it will 86 * A type of policy that this device admin can use: able to watch login 91 * <p>To control this policy, the device admin must have a "watch-login" 97 * A type of policy that this device admin can use: able to reset th [all...] |
SecurityLog.java | 17 package android.app.admin; 224 * Indicates that an admin has set a password expiration timeout. The log entry contains the 227 * <li> [0] admin package name ({@code String}) 228 * <li> [1] admin user ID ({@code Integer}) 237 * Indicates that an admin has set a requirement for password complexity. The log entry contains 240 * <li> [0] admin package name ({@code String}) 241 * <li> [1] admin user ID ({@code Integer}) 265 * Indicates that an admin has set a password history length. The log entry contains the 268 * <li> [0] admin package name ({@code String}) 269 * <li> [1] admin user ID ({@code Integer} [all...] |
DeviceAdminReceiver.java | 17 package android.app.admin; 70 * <a href="{@docRoot}guide/topics/admin/device-admin.html">Device Administration</a> 96 * disabling your admin, by setting the extra field 99 * to the user before they disable your admin. 108 * impact of disabling your admin. 136 * <p>The calling device admin must have requested 153 * <p>The calling device admin must have requested 167 * <p>The calling device admin must have requested 181 * <p>The calling device admin must have requeste [all...] |
SystemUpdatePolicy.java | 17 package android.app.admin; [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
ChooseAccountActivity.java | 182 // There's only one provider that matches. If it is disabled by admin show the 184 EnforcedAdmin admin = RestrictedLockUtils.checkIfAccountManagementDisabled( local 186 if (admin != null) { 188 context, admin));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
NotificationPreferenceControllerTest.java | 141 RestrictedLockUtils.EnforcedAdmin admin = mock(RestrictedLockUtils.EnforcedAdmin.class); local 143 mController.onResume(appRow, channel, group, admin); 148 assertEquals(admin, mController.mAdmin);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
RestrictedLockUtils.java | 19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE; 20 import static android.app.admin.DevicePolicyManager.PROFILE_KEYGUARD_FEATURES_AFFECT_OWNER; 26 import android.app.admin.DevicePolicyManager; 52 * Utility class to host methods usable in adding a restricted padlock icon and showing admin 57 * @return drawables for displaying with settings that are locked by a device admin. 68 * Checks if a restriction is enforced on a user and returns the enforced admin and 69 * admin userId. 73 * @return EnforcedAdmin Object containing the enforced admin component and admin user details, 75 * and profile owner, then the admin component will be set to {@code null} and userId t 243 EnforcedAdmin admin = getProfileOrDeviceOwner(context, userId); local 277 EnforcedAdmin admin = getProfileOwner(context, userId); local 296 EnforcedAdmin admin = getProfileOrDeviceOwner(context, userId); local [all...] |
/packages/apps/Settings/src/com/android/settings/ |
MasterClear.java | 501 final EnforcedAdmin admin = RestrictedLockUtils.checkIfRestrictionEnforced(context, local 508 } else if (admin != null) { 510 .prepareDialogBuilder(UserManager.DISALLOW_FACTORY_RESET, admin)
|
DeviceAdminAdd.java | 24 import android.app.admin.DeviceAdminInfo; 25 import android.app.admin.DeviceAdminReceiver; 26 import android.app.admin.DevicePolicyManager; 85 * Optional key to map to the package name of the Device Admin. 86 * Currently only used when uninstalling an active device admin. 195 // When activating, make sure the given component name is actually a valid device admin. 197 // invalid device admin. 223 Log.w(TAG, "Request to add invalid device admin: " + who); 243 // This admin already exists, an we have two options at this point. If new policy 250 Log.w(TAG, "Requested admin is already being removed: " + who) 589 final EnforcedAdmin admin = getAdminEnforcingCantRemoveProfile(); local [all...] |
/packages/apps/Settings/src/com/android/settings/datausage/ |
AppDataUsage.java | 267 final EnforcedAdmin admin = RestrictedLockUtils.checkIfMeteredDataRestricted( local 271 mRestrictBackground.setDisabledByAdmin(admin); 279 mUnrestrictedData.setDisabledByAdmin(admin);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
QSTileImpl.java | 372 EnforcedAdmin admin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, local 374 if (admin != null && !RestrictedLockUtils.hasBaseUserRestriction(mContext, 377 mEnforcedAdmin = admin;
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
AppPermissionsFragment.java | 247 EnforcedAdmin admin = RestrictedLockUtils.getProfileOrDeviceOwner(getContext(), local 249 if (admin != null) { 250 preference.setDisabledByAdmin(admin);
|