Home
last modified time | relevance | path

Searched refs:admin1 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java292 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_UID); in setUp()
298 mAdmin1Context.packageName = admin1.getPackageName(); in setUp()
444 MockUtils.checkApps(admin1.getPackageName()), in testLoadAdminData()
479 () -> dpm.setActiveAdmin(admin1, false)); in testSetActiveAdmin_SecurityException()
485 () -> dpm.setActiveAdmin(admin1, false, CALLER_USER_HANDLE + 1)); in testSetActiveAdmin_SecurityException()
503 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
520 eq(admin1.getPackageName()), in testSetActiveAdmin()
527 admin1.getPackageName(), CALLER_USER_HANDLE); in testSetActiveAdmin()
532 assertThat(dpm.isAdminActive(admin1)).isTrue(); in testSetActiveAdmin()
542 assertThat(dpm.isAdminActiveAsUser(admin1, CALLER_USER_HANDLE + 1)).isFalse(); in testSetActiveAdmin()
[all …]
DDevicePolicyManagerServiceMigrationTest.java93 setUpPackageManagerForAdmin(admin1, UserHandle.getUid(10, 123)); in testMigration_managedProfileOwner()
176 .that(dpm.getParentProfileInstance(admin1).getPasswordHistoryLength(admin1)) in testCompMigrationAffiliated()
179 .that(dpm.getPasswordHistoryLength(admin1)).isEqualTo(0); in testCompMigrationAffiliated()
181 .that(dpm.getParentProfileInstance(admin1).getScreenCaptureDisabled(admin1)) in testCompMigrationAffiliated()
185 .that(dpm.getParentProfileInstance(admin1) in testCompMigrationAffiliated()
194 .that(dpm.getParentProfileInstance(admin1).getUserRestrictions(admin1).keySet()) in testCompMigrationAffiliated()
198 dpm.getUserRestrictions(admin1).keySet()) in testCompMigrationAffiliated()
210 .that(dpm.getPersonalAppsSuspendedReasons(admin1)) in testCompMigrationAffiliated()
243 .that(dpm.getPersonalAppsSuspendedReasons(admin1)) in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
269 .that(dpm.getPersonalAppsSuspendedReasons(admin1)) in testCompMigration_unsuspendAppsWhenDpcNotRPlus()
[all …]
DNetworkEventTest.java67 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_UID); in setUp()
68 mDpmTestable.setActiveAdmin(admin1, true, DpmMockContext.CALLER_USER_HANDLE); in setUp()
DDpmTestBase.java61 public ComponentName admin1; field in DpmTestBase
73 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setFixtures()
DPolicyVersionUpgraderTest.java188 setUpPackageManagerForAdmin(admin1, UserHandle.getUid(ownerUser, 123 /* admin app ID */)); in testNoStaleDataInCacheAfterUpgrade()
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java170 public static EnforcedAdmin combine(EnforcedAdmin admin1, EnforcedAdmin admin2) { in combine() argument
171 if (admin1 == null) { in combine()
175 return admin1; in combine()
177 if (admin1.equals(admin2)) { in combine()
178 return admin1; in combine()
180 if (!admin1.enforcedRestriction.equals(admin2.enforcedRestriction)) { in combine()