Home
last modified time | relevance | path

Searched refs:DevicePolicyManagerInternal (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java26 import android.app.admin.DevicePolicyManagerInternal;
50 @Mock private DevicePolicyManagerInternal mDpmi;
55 private DevicePolicyManagerInternal mSystemDpmi;
61 mSystemDpmi = LocalServices.getService(DevicePolicyManagerInternal.class); in setUp()
62 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
63 LocalServices.addService(DevicePolicyManagerInternal.class, mDpmi); in setUp()
71 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in tearDown()
72 LocalServices.addService(DevicePolicyManagerInternal.class, mSystemDpmi); in tearDown()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsWrapper.java22 import android.app.admin.DevicePolicyManagerInternal;
84 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
85 return LocalServices.getService(DevicePolicyManagerInternal.class); in getDevicePolicyManagerInternal()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyCache.java36 final DevicePolicyManagerInternal dpmi = in getInstance()
37 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
DDevicePolicyManagerInternal.java29 public abstract class DevicePolicyManagerInternal { class
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java28 import android.app.admin.DevicePolicyManagerInternal;
107 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in checkAccessLevel()
108 DevicePolicyManagerInternal.class); in checkAccessLevel()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java33 import android.app.admin.DevicePolicyManagerInternal;
93 DevicePolicyManagerInternal mDevicePolicyManagerInternal;
111 mDevicePolicyManagerInternal = mock(DevicePolicyManagerInternal.class); in setUp_baseServices()
118 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp_baseServices()
120 LocalServices.addService(DevicePolicyManagerInternal.class, mDevicePolicyManagerInternal); in setUp_baseServices()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java32 import android.app.admin.DevicePolicyManagerInternal;
97 private DevicePolicyManagerInternal mDevicePolicyManager;
126 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
127 LocalServices.addService(DevicePolicyManagerInternal.class, in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java24 import android.app.admin.DevicePolicyManagerInternal;
126 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration()
239 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration2_profileOwnerOnUser0()
305 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration3_managedProfileOwner()
DNetworkEventTest.java27 import android.app.admin.DevicePolicyManagerInternal;
61 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
DDevicePolicyManagerTest.java64 import android.app.admin.DevicePolicyManagerInternal;
229 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in initializeDpms()
290 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testHasNoFeature()
294 assertNull(LocalServices.getService(DevicePolicyManagerInternal.class)); in testHasNoFeature()
2616 final DevicePolicyManagerInternal dpmi = in testSetMaximumTimeToLockProfile()
2617 LocalServices.getService(DevicePolicyManagerInternal.class); in testSetMaximumTimeToLockProfile()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java39 import android.app.admin.DevicePolicyManagerInternal;
213 DevicePolicyManagerInternal devicePolicyManager = LocalServices in interceptSuspendedByAdminPackage()
214 .getService(DevicePolicyManagerInternal.class); in interceptSuspendedByAdminPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java40 import android.app.admin.DevicePolicyManagerInternal;
110 @Mock private DevicePolicyManagerInternal mMockDevicePolicyManagerInternal;
436 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
462 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
464 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
490 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()
519 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
521 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
918 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
944 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/
DAppWidgetServiceImplTest.java29 import android.app.admin.DevicePolicyManagerInternal;
82 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java39 import android.app.admin.DevicePolicyManagerInternal;
142 mock(DevicePolicyManagerInternal.class), mock(IUriGrantsManager.class), in setUp()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java28 import android.app.admin.DevicePolicyManagerInternal;
143 DevicePolicyManagerInternal dpmi = in print()
144 LocalServices.getService(DevicePolicyManagerInternal.class); in print()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java34 import android.app.admin.DevicePolicyManagerInternal;
132 DevicePolicyManagerInternal mDpmInternal;
278 private DevicePolicyManagerInternal getDpmInternal() { in getDpmInternal()
280 mDpmInternal = LocalServices.getService(DevicePolicyManagerInternal.class); in getDpmInternal()
938 DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in hasObserverPermission()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java30 import android.app.admin.DevicePolicyManagerInternal;
829 DevicePolicyManagerInternal dpmi = in uninstall()
830 LocalServices.getService(DevicePolicyManagerInternal.class); in uninstall()
DPackageInstallerSession.java48 import android.app.admin.DevicePolicyManagerInternal;
363 DevicePolicyManagerInternal dpmi = in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked()
364 LocalServices.getService(DevicePolicyManagerInternal.class); in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java45 import android.app.admin.DevicePolicyManagerInternal;
1021 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in notifySeparateProfileChallengeChanged()
1022 DevicePolicyManagerInternal.class); in notifySeparateProfileChallengeChanged()
2453 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in shouldCacheSpForUser()
2454 DevicePolicyManagerInternal.class); in shouldCacheSpForUser()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java22 import android.app.admin.DevicePolicyManagerInternal;
878 final DevicePolicyManagerInternal dpmi = in canModifyNetwork()
3337 final DevicePolicyManagerInternal dpmi = in canModifyProxySettings()
DWifiServiceImpl.java48 import android.app.admin.DevicePolicyManagerInternal;
773 final DevicePolicyManagerInternal dpmi = in isDeviceOrProfileOwner()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java33 import android.app.admin.DevicePolicyManagerInternal;
34 import android.app.admin.DevicePolicyManagerInternal.OnCrossProfileWidgetProvidersChangeListener;
232 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
259 mDevicePolicyManagerInternal = LocalServices.getService(DevicePolicyManagerInternal.class); in onStart()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java47 import android.app.admin.DevicePolicyManagerInternal;
3627 final DevicePolicyManagerInternal dpmi = in showCantAddAccount()
3628 LocalServices.getService(DevicePolicyManagerInternal.class); in showCantAddAccount()
5726 final DevicePolicyManagerInternal dpmi =
5727 LocalServices.getService(DevicePolicyManagerInternal.class);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java78 import android.app.admin.DevicePolicyManagerInternal;
260 @Mock DevicePolicyManagerInternal mDevicePolicyManagerInternal;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java125 import android.app.admin.DevicePolicyManagerInternal;
431 private DevicePolicyManagerInternal mDpm;
1644 UsageStatsManagerInternal appUsageStats, DevicePolicyManagerInternal dpm, in init()
1832 LocalServices.getService(DevicePolicyManagerInternal.class), in onStart()

12