Searched refs:dpms (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 128 final DevicePolicyManagerServiceTestable dpms; in testMigration() local 134 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); in testMigration() 136 dpms.systemReady(SystemService.PHASE_LOCK_SETTINGS_READY); in testMigration() 137 dpms.systemReady(SystemService.PHASE_BOOT_COMPLETED); in testMigration() 142 assertTrue(dpms.mOwners.hasDeviceOwner()); in testMigration() 143 assertFalse(dpms.mOwners.hasProfileOwner(UserHandle.USER_SYSTEM)); in testMigration() 144 assertTrue(dpms.mOwners.hasProfileOwner(10)); in testMigration() 145 assertTrue(dpms.mOwners.hasProfileOwner(11)); in testMigration() 146 assertFalse(dpms.mOwners.hasProfileOwner(12)); in testMigration() 149 assertFalse(dpms.mOwners.getDeviceOwnerUserRestrictionsNeedsMigration()); in testMigration() [all …]
|
D | DevicePolicyManagerTestable.java | 25 public final DevicePolicyManagerServiceTestable dpms; field in DevicePolicyManagerTestable 28 DevicePolicyManagerServiceTestable dpms) { in DevicePolicyManagerTestable() argument 29 super(context, dpms, /* parentInstance = */ false); in DevicePolicyManagerTestable() 30 this.dpms = dpms; in DevicePolicyManagerTestable() 35 return UserHandle.getUserId(dpms.context.binder.callingUid); in myUserId()
|
D | DevicePolicyManagerTest.java | 88 public DevicePolicyManagerServiceTestable dpms; field in DevicePolicyManagerTest 118 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); in initializeDpms() 120 dpms.systemReady(SystemService.PHASE_LOCK_SETTINGS_READY); in initializeDpms() 121 dpms.systemReady(SystemService.PHASE_BOOT_COMPLETED); in initializeDpms() 123 dpm = new DevicePolicyManagerTestable(mContext, dpms); in initializeDpms() 403 dpms.removeActiveAdmin(admin1, DpmMockContext.CALLER_USER_HANDLE + 1); in testRemoveActiveAdmin_SecurityException() 416 dpms.removeActiveAdmin(admin1, DpmMockContext.CALLER_USER_HANDLE); in testRemoveActiveAdmin_SecurityException() 481 dpms.removeActiveAdmin(admin1, DpmMockContext.CALLER_USER_HANDLE); in testRemoveActiveAdmin_fromDifferentUserWithINTERACT_ACROSS_USERS_FULL() 526 eq(dpms.mHandler), in testRemoveActiveAdmin_sameUserNoMANAGE_DEVICE_ADMINS() 1001 assertEquals(admin2, dpms.getDeviceOwnerComponent(/* callingUserOnly =*/ false)); in checkDeviceOwnerWithMultipleDeviceAdmins() [all …]
|