Home
last modified time | relevance | path

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

12

/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.java37 public abstract class DevicePolicyManagerInternal { class
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java27 import android.app.admin.DevicePolicyManagerInternal;
108 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in checkAccessLevel()
109 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.java32 import android.app.admin.DevicePolicyManagerInternal;
96 DevicePolicyManagerInternal mDevicePolicyManagerInternal;
119 mDevicePolicyManagerInternal = mock(DevicePolicyManagerInternal.class); in setUp_baseServices()
132 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp_baseServices()
134 LocalServices.addService(DevicePolicyManagerInternal.class, mDevicePolicyManagerInternal); in setUp_baseServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java36 import android.app.admin.DevicePolicyManagerInternal;
163 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration()
277 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration2_profileOwnerOnUser0()
346 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testMigration3_managedProfileOwner()
507 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in bootDpmsUp()
DNetworkEventTest.java30 import android.app.admin.DevicePolicyManagerInternal;
64 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
DDevicePolicyManagerTest.java86 import android.app.admin.DevicePolicyManagerInternal;
285 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in initializeDpms()
373 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testHasNoFeature()
378 assertThat(LocalServices.getService(DevicePolicyManagerInternal.class)).isNull(); in testHasNoFeature()
3330 final DevicePolicyManagerInternal dpmi = in testIsActiveSupervisionApp()
3331 LocalServices.getService(DevicePolicyManagerInternal.class); in testIsActiveSupervisionApp()
3343 final DevicePolicyManagerInternal dpmi = in testSetMaximumTimeToLockProfile()
3344 LocalServices.getService(DevicePolicyManagerInternal.class); in testSetMaximumTimeToLockProfile()
/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;
450 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
476 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
478 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
504 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()
533 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
535 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
932 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
958 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java37 import android.app.admin.DevicePolicyManagerInternal;
842 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() {
843 return LocalServices.getService(DevicePolicyManagerInternal.class);
898 DevicePolicyManagerInternal getDevicePolicyManagerInternal();
DPackageInstallerService.java32 import android.app.admin.DevicePolicyManagerInternal;
1012 DevicePolicyManagerInternal dpmi = in uninstall()
1013 LocalServices.getService(DevicePolicyManagerInternal.class); in uninstall()
DUserManagerService.java38 import android.app.admin.DevicePolicyManagerInternal;
286 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
5050 final DevicePolicyManagerInternal dpm = getDevicePolicyManagerInternal(); in runList()
5898 private DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
5901 LocalServices.getService(DevicePolicyManagerInternal.class); in getDevicePolicyManagerInternal()
DPackageInstallerSession.java56 import android.app.admin.DevicePolicyManagerInternal;
907 DevicePolicyManagerInternal dpmi = in isInstallerDeviceOwnerOrAffiliatedProfileOwner()
908 LocalServices.getService(DevicePolicyManagerInternal.class); in isInstallerDeviceOwnerOrAffiliatedProfileOwner()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java25 import android.app.admin.DevicePolicyManagerInternal;
102 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
703 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/
DAppWidgetServiceImplTest.java31 import android.app.admin.DevicePolicyManagerInternal;
85 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java40 import android.app.admin.DevicePolicyManagerInternal;
119 @Mock private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
767 public DevicePolicyManagerInternal getDevicePolicyManagerInternal() { in getDevicePolicyManagerInternal()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java44 import android.app.admin.DevicePolicyManagerInternal;
160 mock(DevicePolicyManagerInternal.class), mock(IUriGrantsManager.class), in setUp()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java41 import android.app.admin.DevicePolicyManagerInternal;
171 DevicePolicyManagerInternal mDpmInternal;
454 private DevicePolicyManagerInternal getDpmInternal() { in getDpmInternal()
456 mDpmInternal = LocalServices.getService(DevicePolicyManagerInternal.class); in getDpmInternal()
1594 DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in hasObserverPermission()
2104 final DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in registerAppUsageLimitObserver()
2131 final DevicePolicyManagerInternal dpmInternal = getDpmInternal(); in unregisterAppUsageLimitObserver()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java28 import android.app.admin.DevicePolicyManagerInternal;
145 DevicePolicyManagerInternal dpmi = in print()
146 LocalServices.getService(DevicePolicyManagerInternal.class); in print()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java37 import android.app.admin.DevicePolicyManagerInternal;
38 import android.app.admin.DevicePolicyManagerInternal.OnCrossProfileWidgetProvidersChangeListener;
232 private DevicePolicyManagerInternal mDevicePolicyManagerInternal;
258 mDevicePolicyManagerInternal = LocalServices.getService(DevicePolicyManagerInternal.class); in onStart()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java53 import android.app.admin.DevicePolicyManagerInternal;
1183 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in notifySeparateProfileChallengeChanged()
1184 DevicePolicyManagerInternal.class); in notifySeparateProfileChallengeChanged()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java44 import android.app.admin.DevicePolicyManagerInternal;
3060 final DevicePolicyManagerInternal dpmi = in isSetWallpaperAllowed()
3061 LocalServices.getService(DevicePolicyManagerInternal.class); in isSetWallpaperAllowed()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java47 import android.app.admin.DevicePolicyManagerInternal;
3716 final DevicePolicyManagerInternal dpmi = in showCantAddAccount()
3717 LocalServices.getService(DevicePolicyManagerInternal.class); in showCantAddAccount()
5816 final DevicePolicyManagerInternal dpmi =
5817 LocalServices.getService(DevicePolicyManagerInternal.class);

12