/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 62 private final IDevicePolicyManager mDpm; field in RestrictionsManagerService.RestrictionsManagerImpl 67 mDpm = (IDevicePolicyManager) getBinderService(Context.DEVICE_POLICY_SERVICE); in RestrictionsManagerImpl() 78 if (mDpm != null) { in hasRestrictionsProvider() 81 return mDpm.getRestrictionsProvider(userHandle) != null; in hasRestrictionsProvider() 99 if (mDpm != null) { in requestPermission() 103 mDpm.getRestrictionsProvider(userHandle); in requestPermission() 132 if (mDpm != null) { in createLocalApprovalIntent() 136 mDpm.getRestrictionsProvider(userHandle); in createLocalApprovalIntent() 165 if (mDpm != null) { in notifyPermissionResponse() 168 ComponentName permProvider = mDpm.getRestrictionsProvider(userHandle); in notifyPermissionResponse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSSecurityFooterUtils.java | 107 private final DevicePolicyManager mDpm; field in QSSecurityFooterUtils 184 mDpm = devicePolicyManager; in QSSecurityFooterUtils() 299 return mDpm.getResources().getString( in getManagedDeviceMonitoringText() 302 return mDpm.getResources().getString( in getManagedDeviceMonitoringText() 314 return mDpm.getResources().getString( in getManagedDeviceVpnText() 317 return mDpm.getResources().getString( in getManagedDeviceVpnText() 326 return mDpm.getResources().getString( in getManagedDeviceVpnText() 333 return mDpm.getResources().getString( in getManagedDeviceVpnText() 345 return mDpm.getResources().getString(QS_MSG_MANAGEMENT, mManagementMessageSupplier); in getMangedDeviceGeneralText() 352 return mDpm.getResources().getString( in getMangedDeviceGeneralText() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
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()
|
D | ManagedServicesTest.java | 104 @Mock private DevicePolicyManager mDpm; field in ManagedServicesTest 133 getContext().addMockSystemService(DEVICE_POLICY_SERVICE, mDpm); in setUp() 1772 when(mDpm.isNotificationListenerServicePermitted(anyString(), anyInt())).thenReturn(true); in testInfoIsPermittedForProfile_profileAndDpmAllows() 1788 when(mDpm.isNotificationListenerServicePermitted(anyString(), anyInt())).thenReturn(false); in testInfoIsPermittedForProfile_profileAndDpmDenies()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
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()
|
D | NotificationManagerService.java | 612 private DevicePolicyManagerInternal mDpm; field in NotificationManagerService 2241 mDpm = dpm; in init() 5154 || (mDpm != null && (mDpm.isActiveProfileOwner(Binder.getCallingUid()) 5155 || mDpm.isActiveDeviceOwner(Binder.getCallingUid())));
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
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()
|
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()
|
/frameworks/base/core/java/android/util/ |
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()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 172 private final DevicePolicyManager mDpm; field in LauncherAppsService.LauncherAppsImpl 209 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in LauncherAppsImpl() 489 if (mDpm.getDeviceOwnerComponentOnAnyUser() != null) { in getLauncherActivities() 584 ComponentName componentName = mDpm.getProfileOwnerAsUser(userInfo.getUserHandle()); in isManagedProfileAdmin()
|