/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityModel.java | 18 import android.app.admin.DevicePolicyManager; 72 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC: in getSecurityMode() 73 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX: in getSecurityMode() 76 case DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC: in getSecurityMode() 77 case DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC: in getSecurityMode() 78 case DevicePolicyManager.PASSWORD_QUALITY_COMPLEX: in getSecurityMode() 79 case DevicePolicyManager.PASSWORD_QUALITY_MANAGED: in getSecurityMode() 82 case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING: in getSecurityMode() 84 case DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED: in getSecurityMode()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | 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; 80 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced() 154 DevicePolicyManager dpm = in checkIfKeyguardFeaturesDisabled() 155 (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in checkIfKeyguardFeaturesDisabled() 176 @NonNull DevicePolicyManager dpm, @UserIdInt int userId, in findEnforcedAdmin() 238 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed() 272 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRemoteContactSearchDisallowed() 291 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfAccessibilityServiceDisallowed() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordMetricsTest.java | 37 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, metrics.quality); in testIsDefault() 95 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC, in testComputeForPassword_quality() 97 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC, in testComputeForPassword_quality() 99 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC, in testComputeForPassword_quality() 101 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX, in testComputeForPassword_quality() 104 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_NUMERIC, in testComputeForPassword_quality() 106 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, in testComputeForPassword_quality() 133 assertEquals(new PasswordMetrics(DevicePolicyManager.PASSWORD_QUALITY_SOMETHING, 4), in testEquals() 134 new PasswordMetrics(DevicePolicyManager.PASSWORD_QUALITY_SOMETHING, 4)); in testEquals() 136 assertNotEquals(new PasswordMetrics(DevicePolicyManager.PASSWORD_QUALITY_SOMETHING, 4), in testEquals() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | RemoteBugreportUtils.java | 22 import android.app.admin.DevicePolicyManager; 46 DevicePolicyManager.NOTIFICATION_BUGREPORT_STARTED, 47 DevicePolicyManager.NOTIFICATION_BUGREPORT_ACCEPTED_NOT_FINISHED, 48 DevicePolicyManager.NOTIFICATION_BUGREPORT_FINISHED_NOT_ACCEPTED 63 dialogIntent.putExtra(DevicePolicyManager.EXTRA_BUGREPORT_NOTIFICATION_TYPE, type); in buildNotification() 76 if (type == DevicePolicyManager.NOTIFICATION_BUGREPORT_ACCEPTED_NOT_FINISHED) { in buildNotification() 80 } else if (type == DevicePolicyManager.NOTIFICATION_BUGREPORT_STARTED) { in buildNotification() 84 } else if (type == DevicePolicyManager.NOTIFICATION_BUGREPORT_FINISHED_NOT_ACCEPTED) { in buildNotification() 86 new Intent(DevicePolicyManager.ACTION_BUGREPORT_SHARING_ACCEPTED), in buildNotification() 90 DevicePolicyManager.ACTION_BUGREPORT_SHARING_DECLINED), in buildNotification()
|
D | DevicePolicyManagerService.java | 23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_USER; 24 import static android.app.admin.DevicePolicyManager.CODE_ACCOUNTS_NOT_EMPTY; 25 import static android.app.admin.DevicePolicyManager.CODE_ADD_MANAGED_PROFILE_DISALLOWED; 26 import static android.app.admin.DevicePolicyManager.CODE_CANNOT_ADD_MANAGED_PROFILE; 27 import static android.app.admin.DevicePolicyManager.CODE_DEVICE_ADMIN_NOT_SUPPORTED; 28 import static android.app.admin.DevicePolicyManager.CODE_HAS_DEVICE_OWNER; 29 import static android.app.admin.DevicePolicyManager.CODE_HAS_PAIRED; 30 import static android.app.admin.DevicePolicyManager.CODE_MANAGED_USERS_NOT_SUPPORTED; 31 import static android.app.admin.DevicePolicyManager.CODE_NONSYSTEM_USER_EXISTS; 32 import static android.app.admin.DevicePolicyManager.CODE_NOT_SYSTEM_USER; [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 18 import static android.app.admin.DevicePolicyManager.DELEGATION_APP_RESTRICTIONS; 19 import static android.app.admin.DevicePolicyManager.DELEGATION_CERT_INSTALL; 20 import static android.app.admin.DevicePolicyManager.ID_TYPE_BASE_INFO; 21 import static android.app.admin.DevicePolicyManager.ID_TYPE_IMEI; 22 import static android.app.admin.DevicePolicyManager.ID_TYPE_MEID; 23 import static android.app.admin.DevicePolicyManager.ID_TYPE_SERIAL; 24 import static android.app.admin.DevicePolicyManager.WIPE_EUICC; 57 import android.app.admin.DevicePolicyManager; 143 public DevicePolicyManager dpm; 378 DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED), in testSetActiveAdmin() [all …]
|
D | DevicePolicyManagerTestable.java | 18 import android.app.admin.DevicePolicyManager; 24 public class DevicePolicyManagerTestable extends DevicePolicyManager {
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupPolicyEnforcer.java | 3 import android.app.admin.DevicePolicyManager; 15 private DevicePolicyManager mDevicePolicyManager; 19 (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in BackupPolicyEnforcer()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | RemoteBugreportReceiver.java | 27 import android.app.admin.DevicePolicyManager; 59 DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_HASH); in onReceive() 61 final Intent newIntent = new Intent(DevicePolicyManager.ACTION_REMOTE_BUGREPORT_DISPATCH); in onReceive() 63 newIntent.putExtra(DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_HASH, bugreportHash); in onReceive()
|
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 38 public int quality = DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; 77 return quality == DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED in isDefault() 145 quality = DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC; in computeForPassword() 147 quality = DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC; in computeForPassword() 150 ? DevicePolicyManager.PASSWORD_QUALITY_NUMERIC in computeForPassword() 151 : DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX; in computeForPassword() 153 quality = DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; in computeForPassword()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | KeyguardDisableHandler.java | 23 import android.app.admin.DevicePolicyManager; 100 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in updateAllowState() 106 == DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED ? in updateAllowState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 21 import android.app.admin.DevicePolicyManager; 33 private DevicePolicyManager mDevicePolicyManager; 39 NotificationManager notificationManager, DevicePolicyManager devicePolicyManager, in MockLockSettingsContext()
|
D | LockSettingsStorageTests.java | 25 import android.app.admin.DevicePolicyManager; 82 mock(NotificationManager.class), mock(DevicePolicyManager.class), in setUp() 370 DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, PAYLOAD)); in testPersistentDataBlock_withData() 376 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, data.qualityForUi); in testPersistentDataBlock_withData() 389 DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, PAYLOAD); in testPersistentData_serializeUnserialize() 393 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, deserialized.qualityForUi); in testPersistentData_serializeUnserialize() 427 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX, in testPersistentData_unserialize_version1()
|
D | LockSettingsServiceTests.java | 19 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC; 20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX; 21 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_SOMETHING; 22 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManager.java | 20 import android.app.admin.DevicePolicyManager; 63 private final DevicePolicyManager mDevicePolicyManager; 81 if (DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED.equals(action) && 158 mDevicePolicyManager = (DevicePolicyManager) mContext.getSystemService( in NotificationLockscreenUserManager() 219 DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED); in setUpWithPresenter() 327 & DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS) == 0; in updateLockscreenNotificationSetting() 337 (dpmFlags & DevicePolicyManager.KEYGUARD_DISABLE_REMOTE_INPUT) == 0; in updateLockscreenNotificationSetting() 359 DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS); in userAllowsPrivateNotificationsInPublic() 405 DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS); in userAllowsNotificationsInPublic()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE; 20 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; 21 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_REMOTE_INPUT; 22 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS; 30 import android.app.admin.DevicePolicyManager; 54 private DevicePolicyManager mDevicePolicyManager; 271 when(mProxy.getParentProfileInstance(any(DevicePolicyManager.class), any()) in checkIfKeyguardFeaturesAreDisabled_onlyMatchesParent_profileParentPolicy()
|
/frameworks/base/core/java/android/provider/ |
D | ContactsInternal.java | 18 import android.app.admin.DevicePolicyManager; 120 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in maybeStartManagedQuickContact()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 41 import android.app.admin.DevicePolicyManager; 311 final int quality = DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC; in tieManagedProfileLockIfNecessary() 381 public DevicePolicyManager getDevicePolicyManager() { in getDevicePolicyManager() 382 return (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in getDevicePolicyManager() 734 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, in migrateOldData() 737 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, in migrateOldData() 739 if (type == DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK) { in migrateOldData() 745 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, in migrateOldData() 790 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, userInfo.id); in migrateOldData() 791 if (quality == DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED) { in migrateOldData() [all …]
|
D | LockSettingsStrongAuth.java | 24 import android.app.admin.DevicePolicyManager; 129 final DevicePolicyManager dpm = in handleScheduleStrongAuthTimeout() 130 (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in handleScheduleStrongAuthTimeout()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerWhitelistBackend.java | 19 import android.app.admin.DevicePolicyManager; 94 final DevicePolicyManager devicePolicyManager = mAppContext.getSystemService( in isWhitelisted() 95 DevicePolicyManager.class); in isWhitelisted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WorkLockActivity.java | 28 import android.app.admin.DevicePolicyManager; 198 final DevicePolicyManager devicePolicyManager = (DevicePolicyManager) in getPrimaryColor()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | LockTaskController.java | 46 import android.app.admin.DevicePolicyManager; 106 STATUS_BAR_FLAG_MAP_LOCKED.append(DevicePolicyManager.LOCK_TASK_FEATURE_SYSTEM_INFO, in STATUS_BAR_FLAG_MAP_LOCKED.append() 109 STATUS_BAR_FLAG_MAP_LOCKED.append(DevicePolicyManager.LOCK_TASK_FEATURE_NOTIFICATIONS, in STATUS_BAR_FLAG_MAP_LOCKED.append() 114 STATUS_BAR_FLAG_MAP_LOCKED.append(DevicePolicyManager.LOCK_TASK_FEATURE_HOME, in STATUS_BAR_FLAG_MAP_LOCKED.append() 117 STATUS_BAR_FLAG_MAP_LOCKED.append(DevicePolicyManager.LOCK_TASK_FEATURE_OVERVIEW, in STATUS_BAR_FLAG_MAP_LOCKED.append() 120 STATUS_BAR_FLAG_MAP_LOCKED.append(DevicePolicyManager.LOCK_TASK_FEATURE_GLOBAL_ACTIONS, in STATUS_BAR_FLAG_MAP_LOCKED.append() 321 & DevicePolicyManager.LOCK_TASK_FEATURE_OVERVIEW) != 0; in isRecentsAllowed() 326 & DevicePolicyManager.LOCK_TASK_FEATURE_KEYGUARD) != 0; in isKeyguardAllowed() 823 return mLockTaskFeatures.get(userId, DevicePolicyManager.LOCK_TASK_FEATURE_NONE); in getLockTaskFeaturesForUser()
|
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/ |
D | Dpm.java | 21 import android.app.admin.DevicePolicyManager; 187 DevicePolicyManager.STATE_USER_SETUP_FINALIZED, mUserId); in runSetDeviceOwner() 215 DevicePolicyManager.STATE_USER_SETUP_FINALIZED, mUserId); in runSetProfileOwner()
|
/frameworks/base/services/core/java/com/android/server/ |
D | HardwarePropertiesManagerService.java | 31 import android.app.admin.DevicePolicyManager; 167 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in enforceHardwarePropertiesRetrievalAllowed()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 28 import android.app.admin.DevicePolicyManager; 57 private DevicePolicyManager mDevicePolicyManager = mock(DevicePolicyManager.class);
|