/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 43 private final DevicePolicyManager mDpm; field in EnterprisePrivacyFeatureProviderImpl 55 mDpm = dpm; in EnterprisePrivacyFeatureProviderImpl() 67 return mDpm.getDeviceOwnerComponentOnAnyUser() != null; in hasDeviceOwner() 86 final CharSequence organizationName = mDpm.getDeviceOwnerOrganizationName(); in getDeviceOwnerOrganizationName() 101 final CharSequence organizationName = mDpm.getDeviceOwnerOrganizationName(); in getDeviceOwnerDisclosure() 116 final long timestamp = mDpm.getLastSecurityLogRetrievalTime(); in getLastSecurityLogRetrievalTime() 122 final long timestamp = mDpm.getLastBugReportRequestTime(); in getLastBugReportRequestTime() 128 final long timestamp = mDpm.getLastNetworkLogRetrievalTime(); in getLastNetworkLogRetrievalTime() 134 return mDpm.isSecurityLoggingEnabled(null); in isSecurityLoggingEnabled() 139 return mDpm.isNetworkLoggingEnabled(null); in isNetworkLoggingEnabled() [all …]
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 44 private final DevicePolicyManager mDpm; field in EnterprisePrivacyFeatureProviderImpl 56 mDpm = dpm; in EnterprisePrivacyFeatureProviderImpl() 75 final CharSequence organizationName = mDpm.getDeviceOwnerOrganizationName(); in getDeviceOwnerOrganizationName() 90 final CharSequence organizationName = mDpm.getDeviceOwnerOrganizationName(); in getDeviceOwnerDisclosure() 105 final long timestamp = mDpm.getLastSecurityLogRetrievalTime(); in getLastSecurityLogRetrievalTime() 111 final long timestamp = mDpm.getLastBugReportRequestTime(); in getLastBugReportRequestTime() 117 final long timestamp = mDpm.getLastNetworkLogRetrievalTime(); in getLastNetworkLogRetrievalTime() 123 return mDpm.isSecurityLoggingEnabled(null); in isSecurityLoggingEnabled() 128 return mDpm.isNetworkLoggingEnabled(null); in isNetworkLoggingEnabled() 150 ComponentName owner = mDpm.getDeviceOwnerComponentOnCallingUser(); in getMaximumFailedPasswordsBeforeWipeInCurrentUser() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | CrossProfileCalendarDisabledPreferenceControllerTest.java | 61 private ShadowDevicePolicyManager mDpm; field in CrossProfileCalendarDisabledPreferenceControllerTest 69 mDpm = Shadows.shadowOf(application.getSystemService(DevicePolicyManager.class)); in setUp() 78 mDpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_noPackageAllowed_shouldBeAvailable() 85 mDpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_somePackagesAllowed_shouldBeDisabledForUser() 86 mDpm.setCrossProfileCalendarPackages(TEST_COMPONENT_NAME, in getAvailabilityStatus_somePackagesAllowed_shouldBeDisabledForUser() 94 mDpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_allPackagesAllowed_shouldBeDisabledForUser() 95 mDpm.setCrossProfileCalendarPackages(TEST_COMPONENT_NAME, null); in getAvailabilityStatus_allPackagesAllowed_shouldBeDisabledForUser()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuard.java | 46 final private DevicePolicyManager mDpm; field in EnterprisePolicyGuard 50 mDpm = context.getSystemService(DevicePolicyManager.class); in EnterprisePolicyGuard() 70 final boolean isCallerIdEnabled = !mDpm.getCrossProfileCallerIdDisabled(currentHandle); in isCrossProfileAllowed() 72 !mDpm.getCrossProfileContactsSearchDisabled(currentHandle); in isCrossProfileAllowed() 74 !mDpm.getBluetoothContactSharingDisabled(currentHandle); in isCrossProfileAllowed()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceController.java | 42 private DevicePolicyManager mDpm; field in RedactNotificationPreferenceController 51 mDpm = context.getSystemService(DevicePolicyManager.class); in RedactNotificationPreferenceController() 112 final int dpmFlags = mDpm.getKeyguardDisabledFeatures(null/* admin */, userId); in adminAllowsNotifications() 117 final int dpmFlags = mDpm.getKeyguardDisabledFeatures(null/* admin */, userId); in adminAllowsUnredactedNotifications()
|
D | ShowOnLockScreenNotificationPreferenceController.java | 45 private DevicePolicyManager mDpm; field in ShowOnLockScreenNotificationPreferenceController 50 mDpm = context.getSystemService(DevicePolicyManager.class); in ShowOnLockScreenNotificationPreferenceController() 55 mDpm = dpm; in setDpm() 147 final int dpmFlags = mDpm.getKeyguardDisabledFeatures(null/* admin */); in adminAllowsNotifications()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | VirtualKeyboardPreferenceControllerTest.java | 58 private DevicePolicyManager mDpm; field in VirtualKeyboardPreferenceControllerTest 69 when(mContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(mDpm); in setUp() 99 when(mDpm.getPermittedInputMethodsForCurrentUser()).thenReturn(null); in updateState_singleIme_setImeLabelToSummary() 122 when(mDpm.getPermittedInputMethodsForCurrentUser()).thenReturn(null); in updateState_multiImeWithMixedLocale_setImeLabelToSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 113 private DevicePolicyManager mDpm; field in AppButtonsPreferenceControllerTest 132 doReturn(mDpm).when(mSettingsActivity).getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp() 269 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateUninstallButton_isDeviceAdminApp_setButtonDisable() 279 doReturn(true).when(mDpm).isDeviceOwnerAppOnAnyUser(anyString()); in updateUninstallButton_isProfileOrDeviceOwner_setButtonDisable() 288 doReturn(true).when(mDpm).isDeviceOwnerAppOnAnyUser(anyString()); in updateUninstallButton_isDeviceProvisioningApp_setButtonDisable() 298 doReturn(true).when(mDpm).isUninstallInQueue(any()); in updateUninstallButton_isUninstallInQueue_setButtonDisable() 352 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateForceStopButton_HasActiveAdmins_setButtonDisable()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragment.java | 92 private DevicePolicyManager mDpm; field in ApplicationDetailsFragment 130 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in onAttach() 217 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton() 279 if (mDpm.packageHasActiveAdmins(mPackageName)) { in shouldDisableUninstallButton() 287 if (isProfileOrDeviceOwner(mPackageName, mDpm, mCarUserManagerHelper)) { in shouldDisableUninstallButton() 292 if (mDpm.isUninstallInQueue(mPackageName)) { in shouldDisableUninstallButton()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 106 private final DevicePolicyManager mDpm; field in AppButtonsPreferenceController 139 mDpm = (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE); in AppButtonsPreferenceController() 216 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick() 392 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton() 399 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton() 410 if (mDpm.isUninstallInQueue(mPackageName)) { in updateUninstallButton() 490 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 106 private final DevicePolicyManager mDpm; field in AppButtonsPreferenceController 139 mDpm = (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE); in AppButtonsPreferenceController() 215 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick() 391 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton() 398 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton() 409 if (mDpm.isUninstallInQueue(mPackageName)) { in updateUninstallButton() 489 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImpl.java | 47 private final DevicePolicyManager mDpm; field in ApplicationFeatureProviderImpl 55 mDpm = dpm; in ApplicationFeatureProviderImpl() 82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions() 94 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, in listAppsWithAdminGrantedPermissions()
|
D | UsageAccessDetails.java | 56 private DevicePolicyManager mDpm; field in UsageAccessDetails 65 mDpm = context.getSystemService(DevicePolicyManager.class); in onCreate() 91 if (mUsageState.isPermissible() && mDpm.isProfileOwnerApp(mPackageName)) { in onPreferenceChange()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ApplicationFeatureProviderImpl.java | 47 private final DevicePolicyManager mDpm; field in ApplicationFeatureProviderImpl 55 mDpm = dpm; in ApplicationFeatureProviderImpl() 82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions() 94 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, in listAppsWithAdminGrantedPermissions()
|
D | UsageAccessDetails.java | 56 private DevicePolicyManager mDpm; field in UsageAccessDetails 65 mDpm = context.getSystemService(DevicePolicyManager.class); in onCreate() 91 if (mUsageState.isPermissible() && mDpm.isProfileOwnerApp(mPackageName)) { in onPreferenceChange()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | VirtualKeyboardPreferenceController.java | 40 private final DevicePolicyManager mDpm; field in VirtualKeyboardPreferenceController 46 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in VirtualKeyboardPreferenceController() 68 final List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser(); in updateState()
|
D | VirtualKeyboardFragment.java | 55 private DevicePolicyManager mDpm; field in VirtualKeyboardFragment 63 mDpm = Preconditions.checkNotNull(activity.getSystemService(DevicePolicyManager.class)); in onCreatePreferences() 84 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser(); in updateInputMethodPreferenceViews()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | VirtualKeyboardPreferenceController.java | 40 private final DevicePolicyManager mDpm; field in VirtualKeyboardPreferenceController 46 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in VirtualKeyboardPreferenceController() 68 final List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser(); in updateState()
|
D | VirtualKeyboardFragment.java | 52 private DevicePolicyManager mDpm; field in VirtualKeyboardFragment 60 mDpm = Preconditions.checkNotNull(activity.getSystemService(DevicePolicyManager.class)); in onCreatePreferences() 81 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser(); in updateInputMethodPreferenceViews()
|
D | AvailableVirtualKeyboardFragment.java | 48 private DevicePolicyManager mDpm; field in AvailableVirtualKeyboardFragment 57 mDpm = activity.getSystemService(DevicePolicyManager.class); in onCreatePreferences() 91 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser(); in updateInputMethodPreferenceViews()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockGenericController.java | 46 private DevicePolicyManager mDpm; field in ChooseLockGenericController 84 mDpm = dpm; in ChooseLockGenericController() 95 int dpmUpgradedQuality = Math.max(quality, mDpm.getPasswordQuality(null, mUserId)); in upgradeQuality()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | ChooseLockGenericController.java | 46 private DevicePolicyManager mDpm; field in ChooseLockGenericController 84 mDpm = dpm; in ChooseLockGenericController() 95 int dpmUpgradedQuality = Math.max(quality, mDpm.getPasswordQuality(null, mUserId)); in upgradeQuality()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceControllerTest.java | 65 private DevicePolicyManager mDpm; field in RedactNotificationPreferenceControllerTest 93 when(mMockContext.getSystemService(DevicePolicyManager.class)).thenReturn(mDpm); in setUp() 147 when(mDpm.getKeyguardDisabledFeatures(eq(null), anyInt())).thenReturn( in getAvailabilityStatus_adminSaysNoRedaction() 165 when(mDpm.getKeyguardDisabledFeatures(eq(null), anyInt())).thenReturn( in getAvailabilityStatus_adminSaysNoNotifications()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BackgroundActivityPreferenceController.java | 52 DevicePolicyManager mDpm; field in BackgroundActivityPreferenceController 70 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in BackgroundActivityPreferenceController() 89 || Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mTargetPackage)) { in updateState()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BackgroundActivityPreferenceController.java | 52 DevicePolicyManager mDpm; field in BackgroundActivityPreferenceController 70 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in BackgroundActivityPreferenceController() 89 || Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mTargetPackage)) { in updateState()
|