Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java147 private final Context mRealContext = InstrumentationRegistry.getTargetContext(); field in AppIntegrityManagerServiceImplTest
160 try (InputStream inputStream = mRealContext.getAssets().open(TEST_APP_PATH)) { in setup()
165 try (InputStream inputStream = mRealContext.getAssets().open(TEST_APP_TWO_CERT_PATH)) { in setup()
170 try (InputStream inputStream = mRealContext.getAssets().open(TEST_APP_SOURCE_STAMP_PATH)) { in setup()
183 mSpyPackageManager = spy(mRealContext.getPackageManager()); in setup()
190 when(mMockContext.getContentResolver()).thenReturn(mRealContext.getContentResolver()); in setup()
527 mRealContext.getPackageManager().getPackageInfo(TEST_FRAMEWORK_PACKAGE, 0); in makeUsSystemApp()
541 mRealContext in makeVerificationIntent()
568 mRealContext.getContentResolver(), in setIntegrityCheckIncludesRuleProvider()
573 mRealContext.getContentResolver(), in setIntegrityCheckIncludesRuleProvider()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java57 private Context mRealContext; field in StatusBarNotificationTest
85 mRealContext = InstrumentationRegistry.getContext(); in setUp()
217 Context resultContext = sbn.getPackageContext(mRealContext); in testGetPackageContext_worksWithUserAll()
219 assertNotSame(mRealContext, resultContext); in testGetPackageContext_worksWithUserAll()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DStorageManagerServiceTest.java47 private final Context mRealContext = androidx.test.platform.app.InstrumentationRegistry field in StorageManagerServiceTest
81 mStorageManagerService = new StorageManagerService(mRealContext); in setFixtures()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java148 private final Context mRealContext = androidx.test.InstrumentationRegistry.getInstrumentation() field in UserManagerServiceTest
180 mSpiedContext = spy(mRealContext); in setFixtures()
197 mTestDir = new File(mRealContext.getDataDir(), "umstest"); in setFixtures()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java3719 private Context mRealContext; field in AccountManagerServiceTest.TestInjector
3725 mRealContext = realContext; in TestInjector()
3740 return new TestAccountAuthenticatorCache(mRealContext); in getAccountAuthenticatorCache()
3745 return new File(mRealContext.getCacheDir(), CE_DB).getPath(); in getCeDatabaseName()
3750 return new File(mRealContext.getCacheDir(), DE_DB).getPath(); in getDeDatabaseName()
3755 return new File(mRealContext.getCacheDir(), PREN_DB).getPath(); in getPreNDatabaseName()