Home
last modified time | relevance | path

Searched refs:DpmMockContext (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java46 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 …]
DDpmTestBase.java58 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()
DDevicePolicyManagerTestable.java27 public DevicePolicyManagerTestable(DpmMockContext context, in DevicePolicyManagerTestable()
32 public DevicePolicyManagerTestable(DpmMockContext context, in DevicePolicyManagerTestable()
DDevicePolicyManagerServiceMigrationTest.java73 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()
DNetworkEventTest.java54 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()
DDevicePolicyManagerServiceTestable.java94 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()
DDpmMockContext.java54 public class DpmMockContext extends MockContext { class
172 public DpmMockContext(MockSystemServices mockSystemServices, Context context) { in DpmMockContext() method in DpmMockContext