Home
last modified time | relevance | path

Searched refs:devicePolicyManager (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java579 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/
DAppWithAdminGrantedPermissionsCounter.java38 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()
DApplicationFeatureProviderImpl.java212 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()
DAppWithAdminGrantedPermissionsLister.java36 DevicePolicyManager devicePolicyManager, UserManager userManager) { in AppWithAdminGrantedPermissionsLister() argument
40 mDevicePolicyManager = devicePolicyManager; in AppWithAdminGrantedPermissionsLister()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/
DAppWithAdminGrantedPermissionsCounter.java43 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()
DApplicationFeatureProviderImpl.java207 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()
DAppWithAdminGrantedPermissionsLister.java38 DevicePolicyManager devicePolicyManager, UserManager userManager) { in AppWithAdminGrantedPermissionsLister() argument
42 mDevicePolicyManager = devicePolicyManager; in AppWithAdminGrantedPermissionsLister()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DFrameworkFacade.java139 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/
DManagedUserRemovalUtils.java38 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/
DSecurityFragment.java337 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/
DCrossProfileAppsPregrantController.java62 DevicePolicyManager devicePolicyManager, in CrossProfileAppsPregrantController() argument
68 mDevicePolicyManager = devicePolicyManager; in CrossProfileAppsPregrantController()
/packages/apps/Settings/src/com/android/settings/
DUtils.java933 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/
DSetNewPasswordActivityTest.java343 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/
DNonRequiredAppsLogic.java84 DevicePolicyManager devicePolicyManager, in NonRequiredAppsLogic() argument
91 mDevicePolicyManager = checkNotNull(devicePolicyManager); in NonRequiredAppsLogic()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainActivity.java268 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/
DCrossProfileAppsSnapshot.java88 DevicePolicyManager devicePolicyManager = in getCurrentCrossProfileAppsWhitelist() local
90 return devicePolicyManager.getDefaultCrossProfilePackages(); in getCurrentCrossProfileAppsWhitelist()
/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordController.java98 DevicePolicyManager devicePolicyManager, in SetNewPasswordController() argument
104 mDevicePolicyManager = checkNotNull(devicePolicyManager); in SetNewPasswordController()
DSetNewPasswordActivity.java144 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/
DUserDetailsSettingsTest.java446 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/
DProvisioningActivityRoboTest.java154 DevicePolicyManager devicePolicyManager = in error_factoryReset_resets() local
163 assertThat(shadowOf(devicePolicyManager).getWipeCalledTimes()).isEqualTo(1); in error_factoryReset_resets()