Searched refs:realContext (Results 1 – 5 of 5) sorted by relevance
154 public MockSystemServices(Context realContext, String name, in MockSystemServices() argument156 dataDir = new File(realContext.getCacheDir(), name); in MockSystemServices()202 roleManager = realContext.getSystemService(RoleManager.class); in MockSystemServices()206 packageManager = spy(realContext.getPackageManager()); in MockSystemServices()211 addTestPackageUid(realContext.getPackageName(), Binder.getCallingUid()); in MockSystemServices()219 contentResolver.addProvider("telephony", new MockContentProvider(realContext) { in MockSystemServices()
115 Context realContext = mInstrumentation.getContext(); in setUp() local121 when(mockContext.getApplicationInfo()).thenReturn(realContext.getApplicationInfo()); in setUp()130 realContext.getSystemService(BluetoothManager.class).getAdapter(); in setUp()
232 Context realContext = TestApplication.getAppContext(); in registerTestIntentReceiver() local233 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT), in registerTestIntentReceiver()
153 Context realContext = InstrumentationRegistry.getContext(); in setUp() local154 Looper looper = realContext.getMainLooper(); in setUp()
3708 public TestAccountAuthenticatorCache(Context realContext) { in TestAccountAuthenticatorCache() argument3709 super(realContext); in TestAccountAuthenticatorCache()3721 TestInjector(Context realContext, in TestInjector() argument3725 mRealContext = realContext; in TestInjector()