/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 579 DevicePolicyManager devicePolicyManager = in retrieveDevicePolicyManagerFromContext() local 581 if (devicePolicyManager == null in retrieveDevicePolicyManagerFromContext() 586 return devicePolicyManager; in retrieveDevicePolicyManagerFromContext() 614 DevicePolicyManager devicePolicyManager = in getDeviceOwner() local 616 if (devicePolicyManager == null) return null; in getDeviceOwner() 621 deviceOwnerUser = devicePolicyManager.getDeviceOwnerUser(); in getDeviceOwner() 622 deviceOwnerComponent = devicePolicyManager.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwner() 696 DevicePolicyManager devicePolicyManager = in isProfileOwner() local 698 if (devicePolicyManager == null) return false; in isProfileOwner() 699 return devicePolicyManager.isProfileOwnerApp(packageName); in isProfileOwner()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppWithAdminGrantedPermissionsCounter.java | 38 DevicePolicyManager devicePolicyManager) { in AppWithAdminGrantedPermissionsCounter() argument 42 mDevicePolicyManager = devicePolicyManager; in AppWithAdminGrantedPermissionsCounter() 52 DevicePolicyManager devicePolicyManager, PackageManager packageManager, in includeInCount() argument 58 if (devicePolicyManager.getPermissionGrantState(null /* admin */, info.packageName, in includeInCount()
|
D | ApplicationFeatureProviderImpl.java | 212 DevicePolicyManager devicePolicyManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() argument 213 super(context, permissions, packageManager, packageManagerService, devicePolicyManager); in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() 244 DevicePolicyManager devicePolicyManager, UserManager userManager, in CurrentUserAppWithAdminGrantedPermissionsLister() argument 246 super(permissions, packageManager, packageManagerService, devicePolicyManager, in CurrentUserAppWithAdminGrantedPermissionsLister()
|
D | AppWithAdminGrantedPermissionsLister.java | 36 DevicePolicyManager devicePolicyManager, UserManager userManager) { in AppWithAdminGrantedPermissionsLister() argument 40 mDevicePolicyManager = devicePolicyManager; in AppWithAdminGrantedPermissionsLister()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/ |
D | AppWithAdminGrantedPermissionsCounter.java | 43 DevicePolicyManager devicePolicyManager) { in AppWithAdminGrantedPermissionsCounter() argument 47 mDevicePolicyManager = devicePolicyManager; in AppWithAdminGrantedPermissionsCounter() 57 DevicePolicyManager devicePolicyManager, PackageManager packageManager, in includeInCount() argument 63 if (devicePolicyManager.getPermissionGrantState(null /* admin */, info.packageName, in includeInCount()
|
D | ApplicationFeatureProviderImpl.java | 207 DevicePolicyManager devicePolicyManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() argument 208 super(context, permissions, packageManager, packageManagerService, devicePolicyManager); in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() 239 DevicePolicyManager devicePolicyManager, UserManager userManager, in CurrentUserAppWithAdminGrantedPermissionsLister() argument 241 super(permissions, packageManager, packageManagerService, devicePolicyManager, in CurrentUserAppWithAdminGrantedPermissionsLister()
|
D | AppWithAdminGrantedPermissionsLister.java | 38 DevicePolicyManager devicePolicyManager, UserManager userManager) { in AppWithAdminGrantedPermissionsLister() argument 42 mDevicePolicyManager = devicePolicyManager; in AppWithAdminGrantedPermissionsLister()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | FrameworkFacade.java | 139 DevicePolicyManager devicePolicyManager = in isNiapModeOn() local 141 if (devicePolicyManager == null in isNiapModeOn() 145 if (devicePolicyManager == null) return false; in isNiapModeOn() 146 return devicePolicyManager.isCommonCriteriaModeEnabled(null); in isNiapModeOn()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/manageduser/ |
D | ManagedUserRemovalUtils.java | 38 DevicePolicyManager devicePolicyManager = in resetPrimaryUserProvisioningStateIfNecessary() local 40 if (devicePolicyManager.getUserProvisioningState() != STATE_USER_PROFILE_FINALIZED) { in resetPrimaryUserProvisioningStateIfNecessary()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | SecurityFragment.java | 337 final DevicePolicyManager devicePolicyManager = getContext().getSystemService( in isDeviceManaged() local 339 return devicePolicyManager.isDeviceManaged(); in isDeviceManaged() 343 final DevicePolicyManager devicePolicyManager = getContext().getSystemService( in hasActiveAdmins() local 345 final List<ComponentName> admins = devicePolicyManager.getActiveAdmins(); in hasActiveAdmins()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantController.java | 62 DevicePolicyManager devicePolicyManager, in CrossProfileAppsPregrantController() argument 68 mDevicePolicyManager = devicePolicyManager; in CrossProfileAppsPregrantController()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 933 DevicePolicyManager devicePolicyManager, String packageName) { in isProfileOrDeviceOwner() argument 935 if (devicePolicyManager.isDeviceOwnerAppOnAnyUser(packageName)) { in isProfileOrDeviceOwner() 939 final ComponentName cn = devicePolicyManager in isProfileOrDeviceOwner() 956 public static boolean isProfileOrDeviceOwner(DevicePolicyManager devicePolicyManager, in isProfileOrDeviceOwner() argument 958 if ((devicePolicyManager.getDeviceOwnerUserId() == userId) in isProfileOrDeviceOwner() 959 && devicePolicyManager.isDeviceOwnerApp(packageName)) { in isProfileOrDeviceOwner() 962 final ComponentName cn = devicePolicyManager.getProfileOwnerAsUser(userId); in isProfileOrDeviceOwner()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordActivityTest.java | 343 DevicePolicyManager devicePolicyManager = in launchChooseLock_callingAppIsAdmin_setsAdminExtra() local 345 Shadows.shadowOf(devicePolicyManager).setActiveAdmin(buildTestComponentName(PKG_NAME)); in launchChooseLock_callingAppIsAdmin_setsAdminExtra() 359 DevicePolicyManager devicePolicyManager = in launchChooseLock_callingAppIsNotAdmin_doesNotSetAdminExtra() local 361 Shadows.shadowOf(devicePolicyManager) in launchChooseLock_callingAppIsNotAdmin_doesNotSetAdminExtra()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
D | NonRequiredAppsLogic.java | 84 DevicePolicyManager devicePolicyManager, in NonRequiredAppsLogic() argument 91 mDevicePolicyManager = checkNotNull(devicePolicyManager); in NonRequiredAppsLogic()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainActivity.java | 268 IDevicePolicyManager devicePolicyManager = IDevicePolicyManager.Stub.asInterface( in chooseCertificate() local 271 devicePolicyManager.choosePrivateKeyAlias(mSenderUid, uri, alias, callback); in chooseCertificate() 289 DevicePolicyManager devicePolicyManager = getSystemService(DevicePolicyManager.class); in isManagedDevice() local 290 return devicePolicyManager.getDeviceOwner() != null in isManagedDevice() 291 || devicePolicyManager.getProfileOwner() != null in isManagedDevice()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/interactacrossprofiles/ |
D | CrossProfileAppsSnapshot.java | 88 DevicePolicyManager devicePolicyManager = in getCurrentCrossProfileAppsWhitelist() local 90 return devicePolicyManager.getDefaultCrossProfilePackages(); in getCurrentCrossProfileAppsWhitelist()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SetNewPasswordController.java | 98 DevicePolicyManager devicePolicyManager, in SetNewPasswordController() argument 104 mDevicePolicyManager = checkNotNull(devicePolicyManager); in SetNewPasswordController()
|
D | SetNewPasswordActivity.java | 144 DevicePolicyManager devicePolicyManager = getSystemService(DevicePolicyManager.class); in isCallingAppAdmin() local 146 List<ComponentName> admins = devicePolicyManager.getActiveAdmins(); in isCallingAppAdmin()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | UserDetailsSettingsTest.java | 446 DevicePolicyManager devicePolicyManager = mock(DevicePolicyManager.class); in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference() local 447 doReturn(devicePolicyManager).when(mActivity) in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference() 449 doReturn(mock(ComponentName.class)).when(devicePolicyManager) in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningActivityRoboTest.java | 154 DevicePolicyManager devicePolicyManager = in error_factoryReset_resets() local 163 assertThat(shadowOf(devicePolicyManager).getWipeCalledTimes()).isEqualTo(1); in error_factoryReset_resets()
|