/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | CrossProfileCalendarPreferenceControllerTest.java | 70 private ShadowDevicePolicyManager dpm; field in CrossProfileCalendarPreferenceControllerTest 79 dpm = Shadows.shadowOf(application.getSystemService(DevicePolicyManager.class)); in setUp() 96 dpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_noPackageAllowed_shouldBeDisabledForUser() 103 dpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_somePackagesAllowed_shouldBeAvailable() 104 dpm.setCrossProfileCalendarPackages(TEST_COMPONENT_NAME, in getAvailabilityStatus_somePackagesAllowed_shouldBeAvailable() 112 dpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_allPackagesAllowed_shouldBeAvailable() 113 dpm.setCrossProfileCalendarPackages(TEST_COMPONENT_NAME, null); in getAvailabilityStatus_allPackagesAllowed_shouldBeAvailable()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationsUtilsTest.java | 80 DevicePolicyManager dpm = mock(DevicePolicyManager.class); in isProfileOrDeviceOwner_profileOwner_returnsTrue() local 83 when(dpm.getProfileOwnerAsUser(userInfo.id)).thenReturn( in isProfileOrDeviceOwner_profileOwner_returnsTrue() 86 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, um)).isTrue(); in isProfileOrDeviceOwner_profileOwner_returnsTrue() 91 DevicePolicyManager dpm = mock(DevicePolicyManager.class); in isProfileOrDeviceOwner_deviceOwner_returnsTrue() local 92 when(dpm.isDeviceOwnerAppOnAnyUser(PACKAGE_NAME)).thenReturn(true); in isProfileOrDeviceOwner_deviceOwner_returnsTrue() 94 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, in isProfileOrDeviceOwner_deviceOwner_returnsTrue()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MonitoringCertInfoActivity.java | 56 DevicePolicyManager dpm = getSystemService(DevicePolicyManager.class); in onCreate() local 73 if (dpm.getProfileOwnerAsUser(mUserId) != null) { in onCreate() 75 numberOfCertificates, dpm.getProfileOwnerNameAsUser(mUserId))); in onCreate() 76 } else if (dpm.getDeviceOwnerComponentOnCallingUser() != null) { in onCreate() 79 dpm.getDeviceOwnerNameOnAnyUser())); in onCreate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | MonitoringCertInfoActivity.java | 56 DevicePolicyManager dpm = getSystemService(DevicePolicyManager.class); in onCreate() local 73 if (dpm.getProfileOwnerAsUser(mUserId) != null) { in onCreate() 75 numberOfCertificates, dpm.getProfileOwnerNameAsUser(mUserId))); in onCreate() 76 } else if (dpm.getDeviceOwnerComponentOnCallingUser() != null) { in onCreate() 79 dpm.getDeviceOwnerNameOnAnyUser())); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiUtils.java | 77 final DevicePolicyManager dpm = in isNetworkLockedDown() local 83 if (pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN) && dpm == null) { in isNetworkLockedDown() 88 if (dpm != null) { in isNetworkLockedDown() 89 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in isNetworkLockedDown() 91 final int deviceOwnerUserId = dpm.getDeviceOwnerUserId(); in isNetworkLockedDown()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | CryptKeeperSettings.java | 151 DevicePolicyManager dpm = (DevicePolicyManager) in onActivityCreated() local 153 if (dpm != null) { in onActivityCreated() 154 int status = dpm.getStorageEncryptionStatus(); in onActivityCreated() 213 DevicePolicyManager dpm = (DevicePolicyManager) in addEncryptionInfoToPreference() local 215 if (dpm.getDoNotAskCredentialsOnBoot()) { in addEncryptionInfoToPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | CryptKeeperSettings.java | 151 DevicePolicyManager dpm = (DevicePolicyManager) in onActivityCreated() local 153 if (dpm != null) { in onActivityCreated() 154 int status = dpm.getStorageEncryptionStatus(); in onActivityCreated() 213 DevicePolicyManager dpm = (DevicePolicyManager) in addEncryptionInfoToPreference() local 215 if (dpm.getDoNotAskCredentialsOnBoot()) { in addEncryptionInfoToPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiUtils.java | 77 final DevicePolicyManager dpm = in isNetworkLockedDown() local 83 if (pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN) && dpm == null) { in isNetworkLockedDown() 88 if (dpm != null) { in isNetworkLockedDown() 89 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in isNetworkLockedDown() 91 final int deviceOwnerUserId = dpm.getDeviceOwnerUserId(); in isNetworkLockedDown()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiUtil.java | 114 final DevicePolicyManager dpm = in isNetworkLockedDown() local 120 if (pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN) && dpm == null) { in isNetworkLockedDown() 125 if (dpm != null) { in isNetworkLockedDown() 126 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in isNetworkLockedDown() 128 final int deviceOwnerUserId = dpm.getDeviceOwnerUserId(); in isNetworkLockedDown()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSettingsPreferenceController.java | 45 DevicePolicyManager dpm = in adminDisabled() local 47 return dpm != null && in adminDisabled() 48 (dpm.getKeyguardDisabledFeatures(null, UserHandle.myUserId()) in adminDisabled()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | E2eUiTestUtils.java | 51 DevicePolicyManager dpm) { in verifyProfile() argument 52 dpm.setProfileEnabled(ManagedProfileAdminReceiver.COMPONENT_NAME); in verifyProfile() 53 final boolean isProfileOwner = dpm.isProfileOwnerApp(context.getPackageName()); in verifyProfile()
|
D | DpcPostProvisioningActivity.java | 27 DevicePolicyManager dpm = in onCreate() local 30 boolean testResult = E2eUiTestUtils.verifyProfile(this, getIntent(), dpm); in onCreate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/ |
D | FaceSettingsKeyguardPreferenceController.java | 85 DevicePolicyManager dpm = in adminDisabled() local 87 return dpm != null && in adminDisabled() 88 (dpm.getKeyguardDisabledFeatures(null, UserHandle.myUserId()) in adminDisabled()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationsUtils.java | 63 public static boolean isProfileOrDeviceOwner(String packageName, DevicePolicyManager dpm, in isProfileOrDeviceOwner() argument 65 if (dpm.isDeviceOwnerAppOnAnyUser(packageName)) { in isProfileOrDeviceOwner() 70 ComponentName cn = dpm.getProfileOwnerAsUser(userInfos.get(i).id); in isProfileOrDeviceOwner()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | CrossProfileCalendarPreferenceController.java | 76 final DevicePolicyManager dpm = managedProfileContext.getSystemService( in isCrossProfileCalendarDisallowedByAdmin() local 78 if (dpm == null) { in isCrossProfileCalendarDisallowedByAdmin() 81 final Set<String> packages = dpm.getCrossProfileCalendarPackages(); in isCrossProfileCalendarDisallowedByAdmin()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | TimeoutPreferenceController.java | 65 final DevicePolicyManager dpm = in updateState() local 67 if (dpm != null) { in updateState() 71 dpm.getMaximumTimeToLock(null /* admin */, UserHandle.myUserId()); in updateState()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | TimeoutPreferenceController.java | 65 final DevicePolicyManager dpm = in updateState() local 67 if (dpm != null) { in updateState() 71 dpm.getMaximumTimeToLock(null /* admin */, UserHandle.myUserId()); in updateState()
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallIntentProcessor.java | 127 final DevicePolicyManager dpm = in processOutgoingCallIntent() local 129 if (dpm == null) { in processOutgoingCallIntent() 132 final Intent adminSupportIntent = dpm.createAdminSupportIntent( in processOutgoingCallIntent()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | Utils.java | 341 DevicePolicyManager dpm = in isDeviceManaged() local 343 return dpm.isDeviceManaged(); in isDeviceManaged() 799 public boolean isPackageDeviceOwner(DevicePolicyManager dpm, String packageName) { in isPackageDeviceOwner() argument 800 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnCallingUser(); in isPackageDeviceOwner() 840 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in isSilentProvisioningForTestingDeviceOwner() local 842 dpm.getDeviceOwnerComponentOnCallingUser(); in isSilentProvisioningForTestingDeviceOwner()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ProxyPreferenceController.java | 48 final DevicePolicyManager dpm = (DevicePolicyManager) in displayPreference() local 50 pref.setEnabled(dpm.getGlobalProxyAdmin() == null); in displayPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/ |
D | ProxyPreferenceController.java | 48 final DevicePolicyManager dpm = (DevicePolicyManager) in displayPreference() local 50 pref.setEnabled(dpm.getGlobalProxyAdmin() == null); in displayPreference()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/util/ |
D | DevicePolicyUtils.java | 31 final DevicePolicyManager dpm = in isBluetoothWorkContactSharingDisabled() local 43 return dpm.getBluetoothContactSharingDisabled(new UserHandle(ui.id)); in isBluetoothWorkContactSharingDisabled()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmDeviceCredentialActivity.java | 361 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService( in getTitleFromOrganizationName() local 363 CharSequence organizationNameForUser = (dpm != null) in getTitleFromOrganizationName() 364 ? dpm.getOrganizationNameForUser(userId) : null; in getTitleFromOrganizationName()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | ConfirmDeviceCredentialActivity.java | 358 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService( in getTitleFromOrganizationName() local 360 CharSequence organizationNameForUser = (dpm != null) in getTitleFromOrganizationName() 361 ? dpm.getOrganizationNameForUser(userId) : null; in getTitleFromOrganizationName()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | ManagedProfileSettingsTask.java | 84 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in run() local 86 dpm.setOrganizationColorForUser(mProvisioningParams.mainColor, userId); in run()
|