Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmTestBase.java57 protected final Context mRealTestContext = InstrumentationRegistry.getTargetContext(); field in DpmTestBase
71 mServices = new MockSystemServices(mRealTestContext, "test-data"); in setFixtures()
72 mMockContext = new DpmMockContext(mServices, mRealTestContext); 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 DDevicePolicyManagerServiceMigrationTest.java102 DpmTestUtils.readAsset(mRealTestContext, in testMigration()
107 DpmTestUtils.readAsset(mRealTestContext, in testMigration()
112 DpmTestUtils.readAsset(mRealTestContext, in testMigration()
116 DpmTestUtils.readAsset(mRealTestContext, in testMigration()
241 DpmTestUtils.readAsset(mRealTestContext, in testMigration2_profileOwnerOnUser0()
246 DpmTestUtils.readAsset(mRealTestContext, in testMigration2_profileOwnerOnUser0()
328 DpmTestUtils.readAsset(mRealTestContext, in testMigration3_managedProfileOwner()
332 DpmTestUtils.readAsset(mRealTestContext, in testMigration3_managedProfileOwner()
336 DpmTestUtils.readAsset(mRealTestContext, in testMigration3_managedProfileOwner()
399 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigrationAffiliated()
[all …]
H A DOwnersTest.java65 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test01/input.xml")); in testUpgrade01()
133 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test02/input.xml")); in testUpgrade02()
200 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test03/input.xml")); in testUpgrade03()
287 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test04/input.xml")); in testUpgrade04()
445 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test05/input.xml")); in testUpgrade05()
510 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test06/input.xml")); in testUpgrade06()
573 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test04/input.xml")); in testRemoveExistingFiles()
H A DPolicyVersionUpgraderTest.java116 private final Context mRealTestContext = InstrumentationRegistry.getTargetContext(); field in PolicyVersionUpgraderTest
125 mDataDir = new File(mRealTestContext.getCacheDir(), "test-data"); in setUp()
215 DpmTestUtils.readAsset(mRealTestContext, in preparePoliciesFile()
H A DDevicePolicyManagerTest.java265 mAdmin1Context = new DpmMockContext(getServices(), mRealTestContext); in setUp()
6089 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForDeviceOwner()
6099 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForProfileOwner()
6110 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForDelegate()
6115 final DpmMockContext caller = new DpmMockContext(getServices(), mRealTestContext); in testGetOwnerInstalledCaCertsForDelegate()
7073 mRealTestContext.getPackageManager().getApplicationInfo( in makeAdmin1DirectBootAware()
7847 mContext.applicationInfo = mRealTestContext.getApplicationInfo(); in prepareMocksForSetMaximumProfileTimeOff()
7863 .thenReturn(mRealTestContext.getResources().getConfiguration()); in prepareMocksForSetMaximumProfileTimeOff()
/aosp12/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
H A DMyMockContext.java62 private Context mRealTestContext; field in MyMockContext
67 this.mRealTestContext = realTestContext; in MyMockContext()
111 return mRealTestContext.getSharedPreferences(name, mode); in getSharedPreferences()
131 SharedPreferences prefs = mRealTestContext.getSharedPreferences( in initializeContext()