Home
last modified time | relevance | path

Searched refs:DevicePolicyManagerInternal (Results 1 – 25 of 30) 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/base/core/java/android/app/admin/
DDeviceStateCache.java35 final DevicePolicyManagerInternal dpmi = in getInstance()
36 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
DDevicePolicyCache.java36 final DevicePolicyManagerInternal dpmi = in getInstance()
37 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
DDevicePolicyManagerInternal.java36 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/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java33 import android.app.admin.DevicePolicyManagerInternal;
100 private DevicePolicyManagerInternal mDevicePolicyManager;
131 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
132 LocalServices.addService(DevicePolicyManagerInternal.class, in setUp()
168 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in tearDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java33 import android.app.admin.DevicePolicyManagerInternal;
99 DevicePolicyManagerInternal mDevicePolicyManagerInternal;
122 mDevicePolicyManagerInternal = mock(DevicePolicyManagerInternal.class); in setUp_baseServices()
135 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp_baseServices()
137 LocalServices.addService(DevicePolicyManagerInternal.class, mDevicePolicyManagerInternal); in setUp_baseServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java34 import android.app.admin.DevicePolicyManagerInternal;
153 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration()
265 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration2_profileOwnerOnUser0()
332 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration3_managedProfileOwner()
483 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in bootDpmsUp()
DNetworkEventTest.java27 import android.app.admin.DevicePolicyManagerInternal;
61 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java40 import android.app.admin.DevicePolicyManagerInternal;
224 DevicePolicyManagerInternal devicePolicyManager = LocalServices in interceptSuspendedByAdminPackage()
225 .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;
438 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
464 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
466 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
492 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()
521 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
523 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
920 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
946 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java35 import android.app.admin.DevicePolicyManagerInternal;
813 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() {
814 return LocalServices.getService(DevicePolicyManagerInternal.class);
869 DevicePolicyManagerInternal getDevicePolicyManagerInternal();
DPackageInstallerService.java30 import android.app.admin.DevicePolicyManagerInternal;
932 DevicePolicyManagerInternal dpmi = in uninstall()
933 LocalServices.getService(DevicePolicyManagerInternal.class); in uninstall()
DPackageInstallerSession.java57 import android.app.admin.DevicePolicyManagerInternal;
493 DevicePolicyManagerInternal dpmi = in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked()
494 LocalServices.getService(DevicePolicyManagerInternal.class); in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked()
DUserManagerService.java38 import android.app.admin.DevicePolicyManagerInternal;
271 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
5370 private DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
5373 LocalServices.getService(DevicePolicyManagerInternal.class); in getDevicePolicyManagerInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java20 import android.app.admin.DevicePolicyManagerInternal;
94 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
683 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
/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/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java41 import android.app.admin.DevicePolicyManagerInternal;
117 @Mock private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
724 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java39 import android.app.admin.DevicePolicyManagerInternal;
154 mock(DevicePolicyManagerInternal.class), mock(IUriGrantsManager.class), in setUp()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java41 import android.app.admin.DevicePolicyManagerInternal;
161 DevicePolicyManagerInternal mDpmInternal;
408 private DevicePolicyManagerInternal getDpmInternal() { in getDpmInternal()
410 mDpmInternal = LocalServices.getService(DevicePolicyManagerInternal.class); in getDpmInternal()
1420 DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in hasObserverPermission()
1914 final DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in registerAppUsageLimitObserver()
1941 final DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in unregisterAppUsageLimitObserver()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java28 import android.app.admin.DevicePolicyManagerInternal;
144 DevicePolicyManagerInternal dpmi = in print()
145 LocalServices.getService(DevicePolicyManagerInternal.class); in print()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java50 import android.app.admin.DevicePolicyManagerInternal;
1133 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in notifySeparateProfileChallengeChanged()
1134 DevicePolicyManagerInternal.class); in notifySeparateProfileChallengeChanged()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java35 import android.app.admin.DevicePolicyManagerInternal;
36 import android.app.admin.DevicePolicyManagerInternal.OnCrossProfileWidgetProvidersChangeListener;
232 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
262 mDevicePolicyManagerInternal = LocalServices.getService(DevicePolicyManagerInternal.class); in onStart()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java47 import android.app.admin.DevicePolicyManagerInternal;
3623 final DevicePolicyManagerInternal dpmi = in showCantAddAccount()
3624 LocalServices.getService(DevicePolicyManagerInternal.class); in showCantAddAccount()
5722 final DevicePolicyManagerInternal dpmi =
5723 LocalServices.getService(DevicePolicyManagerInternal.class);
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java71 import android.app.admin.DevicePolicyManagerInternal;
3684 DevicePolicyManagerInternal dpmInternal = in isProfileOwner()
3685 LocalServices.getService(DevicePolicyManagerInternal.class); in isProfileOwner()

12