Searched refs:DpmMockContext (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 46 import static com.android.server.devicepolicy.DpmMockContext.CALLER_USER_HANDLE; 179 private DpmMockContext mContext; 181 private DpmMockContext mServiceContext; 182 private DpmMockContext mAdmin1Context; 235 mServiceContext.binder.callingUid = DpmMockContext.CALLER_UID; in setUp() 256 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_UID); in setUp() 257 setUpPackageManagerForAdmin(admin2, DpmMockContext.CALLER_UID); in setUp() 258 setUpPackageManagerForAdmin(admin3, DpmMockContext.CALLER_UID); in setUp() 259 setUpPackageManagerForAdmin(adminNoPerm, DpmMockContext.CALLER_UID); in setUp() 261 mAdmin1Context = new DpmMockContext(getServices(), mRealTestContext); in setUp() [all …]
|
D | DpmTestBase.java | 58 protected DpmMockContext mMockContext; 72 mMockContext = new DpmMockContext(mServices, mRealTestContext); in setFixtures() 77 adminAnotherPackage = new ComponentName(DpmMockContext.ANOTHER_PACKAGE_NAME, in setFixtures() 80 delegateCertInstaller = new ComponentName(DpmMockContext.DELEGATE_PACKAGE_NAME, in setFixtures() 85 protected DpmMockContext getContext() { in getContext() 120 protected void runAsCaller(DpmMockContext caller, DevicePolicyManagerServiceTestable dpms, in runAsCaller() 122 final DpmMockContext serviceContext = mMockContext; in runAsCaller() 162 ai.uid = UserHandle.getUid(DpmMockContext.CALLER_USER_HANDLE, in markDelegatedCertInstallerAsInstalled() 163 DpmMockContext.DELEGATE_CERT_INSTALLER_UID); in markDelegatedCertInstallerAsInstalled() 168 DpmMockContext.CALLER_USER_HANDLE); in markDelegatedCertInstallerAsInstalled()
|
D | DevicePolicyManagerTestable.java | 27 public DevicePolicyManagerTestable(DpmMockContext context, in DevicePolicyManagerTestable() 32 public DevicePolicyManagerTestable(DpmMockContext context, in DevicePolicyManagerTestable()
|
D | DevicePolicyManagerServiceMigrationTest.java | 73 private DpmMockContext mContext; 95 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_SYSTEM_USER_UID); in testMigration() 236 setUpPackageManagerForAdmin(admin2, DpmMockContext.CALLER_SYSTEM_USER_UID); in testMigration2_profileOwnerOnUser0() 399 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigrationAffiliated() 466 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus() 492 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigration_unsuspendAppsWhenDpcNotRPlus()
|
D | NetworkEventTest.java | 54 private DpmMockContext mSpiedDpmMockContext; 66 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_UID); in setUp() 67 mDpmTestable.setActiveAdmin(admin1, true, DpmMockContext.CALLER_USER_HANDLE); in setUp() 128 mDpmTestable, startingId, DpmMockContext.CALLER_USER_HANDLE); in fillHandlerWithFullBatchOfEvents()
|
D | DevicePolicyManagerServiceTestable.java | 94 public final DpmMockContext context; 97 public DevicePolicyManagerServiceTestable(MockSystemServices services, DpmMockContext context) { in DevicePolicyManagerServiceTestable() 122 public final DpmMockContext context; 133 public MockInjector(MockSystemServices services, DpmMockContext context) { in MockInjector()
|
D | DpmMockContext.java | 54 public class DpmMockContext extends MockContext { class 172 public DpmMockContext(MockSystemServices mockSystemServices, Context context) { in DpmMockContext() method in DpmMockContext
|