Home
last modified time | relevance | path

Searched refs:mRealTestContext (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmTestBase.java56 protected final Context mRealTestContext = InstrumentationRegistry.getTargetContext(); field in DpmTestBase
71 mServices = new MockSystemServices(mRealTestContext, "test-data", mockBinder); in setFixtures()
72 mMockContext = new DpmMockContext(mServices, mRealTestContext, mockBinder); in setFixtures()
74 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setFixtures()
75 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setFixtures()
76 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setFixtures()
144 mRealTestContext.getPackageManager().getPackageInfo( in markPackageAsInstalled()
145 mRealTestContext.getPackageName(), 0)); in markPackageAsInstalled()
209 mRealTestContext.getPackageManager().getApplicationInfo( in setUpPackageManagerForFakeAdmin()
232 mRealTestContext.getPackageManager().queryBroadcastReceivers( in setUpPackageManagerForFakeAdmin()
[all …]
H A DOwnersTest.java65 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/profile_owner_1.xml")); in loadProfileOwner()
86 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/device_owner_1.xml")); in loadDeviceOwner()
109 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/device_owner_1.xml")); in testDeviceOwnerType()
H A DDevicePolicyManagerServiceMigrationTest.java105 DpmTestUtils.readAsset(mRealTestContext, in testMigration_managedProfileOwner()
109 DpmTestUtils.readAsset(mRealTestContext, in testMigration_managedProfileOwner()
113 DpmTestUtils.readAsset(mRealTestContext, in testMigration_managedProfileOwner()
174 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigrationAffiliated()
241 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
267 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigration_unsuspendAppsWhenDpcNotRPlus()
H A DPolicyVersionUpgraderTest.java122 private final Context mRealTestContext = InstrumentationRegistry.getTargetContext(); field in PolicyVersionUpgraderTest
481 DpmTestUtils.readAsset(mRealTestContext, "PolicyVersionUpgraderTest/" + assetFile)); in preparePoliciesFile()
487 String doFileContent = DpmTestUtils.readAsset(mRealTestContext, in prepareDeviceOwnerFile()
H A DDevicePolicyManagerTest.java304 mAdmin1Context = new DpmMockContext(getServices(), mRealTestContext); in setUp()
1751 mServiceContext.packageName = mRealTestContext.getPackageName(); in testCertificateDisclosure()
6309 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForDeviceOwner()
6320 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForProfileOwner()
6332 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForDelegate()
6338 var caller = new DpmMockContext(getServices(), mRealTestContext); in testGetOwnerInstalledCaCertsForDelegate()
7300 mRealTestContext.getPackageManager().getApplicationInfo( in makeAdmin1DirectBootAware()
8619 mContext.applicationInfo = mRealTestContext.getApplicationInfo(); in prepareMocksForSetMaximumProfileTimeOff()
8623 .thenReturn(mRealTestContext.getResources().getConfiguration()); in prepareMocksForSetMaximumProfileTimeOff()