Searched refs:realContext (Results 1 – 6 of 6) sorted by relevance
55 Context realContext = InstrumentationRegistry.getTargetContext(); in testGetImsResources() local56 String defaultImsMmtelPackage = getResourcesForLocale(realContext, Locale.US).getString( in testGetImsResources()58 String defaultImsMmtelPackageUk = getResourcesForLocale(realContext, Locale.UK).getString( in testGetImsResources()
138 val realContext = InstrumentationRegistry.getInstrumentation().context in setUp() constant139 doReturn(realContext.applicationInfo).`when`(mContext).applicationInfo in setUp()140 doReturn(realContext.packageName).`when`(mContext).packageName in setUp()143 realContext.packageName, 0, UserHandle.CURRENT) in setUp()145 realContext.packageName, 0, UserHandle.ALL) in setUp()
150 public TestContext(Context realContext) { in TestContext() argument151 super(realContext, FILENAME_PREFIX); in TestContext()197 final Context realContext = getContext(); in setUp() local199 mTestContext = new TestContext(realContext); in setUp()
47 public ContactsMockPackageManager(Context realContext) { in ContactsMockPackageManager() argument48 mRealContext = realContext; in ContactsMockPackageManager()
283 public TestMockContext(Context realContext, DevicePolicyManager dpm, UserManager um) { in TestMockContext() argument284 mRealContext = realContext; in TestMockContext()
196 Context realContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testConfig_servicesCanBeBound() local199 String[] preferredDriverAwarenessSuppliers = realContext.getResources().getStringArray( in testConfig_servicesCanBeBound()