Searched refs:mRealContext (Results 1 – 5 of 5) sorted by relevance
147 private final Context mRealContext = InstrumentationRegistry.getTargetContext(); field in AppIntegrityManagerServiceImplTest160 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()
57 private Context mRealContext; field in StatusBarNotificationTest85 mRealContext = InstrumentationRegistry.getContext(); in setUp()217 Context resultContext = sbn.getPackageContext(mRealContext); in testGetPackageContext_worksWithUserAll()219 assertNotSame(mRealContext, resultContext); in testGetPackageContext_worksWithUserAll()
47 private final Context mRealContext = androidx.test.platform.app.InstrumentationRegistry field in StorageManagerServiceTest81 mStorageManagerService = new StorageManagerService(mRealContext); in setFixtures()
148 private final Context mRealContext = androidx.test.InstrumentationRegistry.getInstrumentation() field in UserManagerServiceTest180 mSpiedContext = spy(mRealContext); in setFixtures()197 mTestDir = new File(mRealContext.getDataDir(), "umstest"); in setFixtures()
3719 private Context mRealContext; field in AccountManagerServiceTest.TestInjector3725 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()