Home
last modified time | relevance | path

Searched refs:mDpm (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java62 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/
DQSSecurityFooterUtils.java107 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/
DVisibilityExtractorTest.java64 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()
DManagedServicesTest.java104 @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/
DVisibilityExtractor.java33 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()
DNotificationManagerService.java612 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/
DNetworkLogger.java47 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()
DNetworkLoggingHandler.java73 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/
DIconDrawableFactory.java45 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/
DLauncherAppsService.java172 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()