/aosp14/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
H A D | RestrictionsManagerService.java | 67 private final IDevicePolicyManager mDpm; field in RestrictionsManagerService.RestrictionsManagerImpl 73 mDpm = (IDevicePolicyManager) getBinderService(Context.DEVICE_POLICY_SERVICE); in RestrictionsManagerImpl() 95 if (mDpm != null) { in hasRestrictionsProvider() 98 return mDpm.getRestrictionsProvider(userHandle) != null; in hasRestrictionsProvider() 116 if (mDpm != null) { in requestPermission() 120 mDpm.getRestrictionsProvider(userHandle); in requestPermission() 149 if (mDpm != null) { in createLocalApprovalIntent() 153 mDpm.getRestrictionsProvider(userHandle); in createLocalApprovalIntent() 182 if (mDpm != null) { in notifyPermissionResponse() 185 ComponentName permProvider = mDpm.getRestrictionsProvider(userHandle); in notifyPermissionResponse()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSSecurityFooterUtils.java | 108 private final DevicePolicyManager mDpm; field in QSSecurityFooterUtils 185 mDpm = devicePolicyManager; in QSSecurityFooterUtils() 300 return mDpm.getResources().getString( in getManagedDeviceMonitoringText() 303 return mDpm.getResources().getString( in getManagedDeviceMonitoringText() 318 return mDpm.getResources().getString( in getManagedDeviceVpnText() 327 return mDpm.getResources().getString( in getManagedDeviceVpnText() 334 return mDpm.getResources().getString( in getManagedDeviceVpnText() 353 return mDpm.getResources().getString( in getMangedDeviceGeneralText() 390 return mDpm.getResources().getString( in getMonitoringText() 432 return mDpm.getResources().getString( in getManagedProfileNetworkActivityText() [all …]
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | VisibilityExtractorTest.java | 64 DevicePolicyManager mDpm; field in VisibilityExtractorTest 76 mContext.addMockSystemService(DevicePolicyManager.class, mDpm); in setUp() 108 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn(0); in testGlobalAllDpmAllChannelAll() 126 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn(0); in testGlobalNoneDpmAllChannelAll() 144 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn(0); in testGlobalSomeDpmAllChannelAll() 162 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn( in testGlobalAllDpmNoneChannelAll() 181 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn( in testGlobalAllDpmSomeChannelAll() 200 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn(0); in testGlobalAllDpmAllChannelNone() 218 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn(0); in testGlobalAllDpmAllChannelSome() 236 when(mDpm.getKeyguardDisabledFeatures(null, mUser)).thenReturn( in testGlobalAllDpmSomeChannelNone()
|
H A D | ManagedServicesTest.java | 111 @Mock private DevicePolicyManager mDpm; field in ManagedServicesTest 143 mContext.addMockSystemService(DEVICE_POLICY_SERVICE, mDpm); in setUp() 1742 when(mDpm.isNotificationListenerServicePermitted(anyString(), anyInt())).thenReturn(true); in testInfoIsPermittedForProfile_profileAndDpmAllows() 1758 when(mDpm.isNotificationListenerServicePermitted(anyString(), anyInt())).thenReturn(false); in testInfoIsPermittedForProfile_profileAndDpmDenies()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | VisibilityExtractor.java | 33 private DevicePolicyManager mDpm; field in VisibilityExtractor 37 mDpm = ctx.getSystemService(DevicePolicyManager.class); in initialize() 101 final int dpmFlags = mDpm.getKeyguardDisabledFeatures(null /* admin */, userHandle); in adminAllowsKeyguardFeature()
|
H A D | NotificationManagerService.java | 634 private DevicePolicyManagerInternal mDpm; field in NotificationManagerService 1845 if (userHandle >= 0 && !mDpm.isKeepProfilesRunningEnabled()) { 2265 mDpm = dpm; in init() 5301 || (mDpm != null && (mDpm.isActiveProfileOwner(uid) 5302 || mDpm.isActiveDeviceOwner(uid))); 7104 if (mDpm != null && (mDpm.isActiveProfileOwner(ai.uid) 7105 || mDpm.isActiveDeviceOwner(ai.uid))) {
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | NetworkLogger.java | 47 private final DevicePolicyManagerService mDpm; field in NetworkLogger 107 mDpm = dpm; in NetworkLogger() 116 final IIpConnectivityMetrics service = mDpm.mInjector.getIIpConnectivityMetrics(); in checkIpConnectivityMetricsService() 138 mDpm, mTargetUserId); in startNetworkLogging()
|
H A D | NetworkLoggingHandler.java | 73 private final DevicePolicyManagerService mDpm; field in NetworkLoggingHandler 127 this.mDpm = dpm; in NetworkLoggingHandler() 128 this.mAlarmManager = mDpm.mInjector.getAlarmManager(); in NetworkLoggingHandler() 284 mDpm.sendDeviceOwnerOrProfileOwnerCommand(DeviceAdminReceiver.ACTION_NETWORK_LOGS_AVAILABLE, in notifyDeviceOwnerOrProfileOwner()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | IconDrawableFactory.java | 45 protected final DevicePolicyManager mDpm; field in IconDrawableFactory 53 mDpm = context.getSystemService(DevicePolicyManager.class); in IconDrawableFactory() 91 Drawable badge = mDpm.getResources().getDrawable( in getBadgedIcon()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | LauncherAppsService.java | 207 private final DevicePolicyManager mDpm; field in LauncherAppsService.LauncherAppsImpl 247 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in LauncherAppsImpl() 527 if (mDpm.getDeviceOwnerComponentOnAnyUser() != null) { in getLauncherActivities() 622 ComponentName componentName = mDpm.getProfileOwnerAsUser(userInfo.getUserHandle()); in isManagedProfileAdmin()
|