Home
last modified time | relevance | path

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

/packages/services/Telephony/tests/src/com/android/phone/
DPhoneGlobalsTest.java55 Context realContext = InstrumentationRegistry.getTargetContext(); in testGetImsResources() local
56 String defaultImsMmtelPackage = getResourcesForLocale(realContext, Locale.US).getString( in testGetImsResources()
58 String defaultImsMmtelPackageUk = getResourcesForLocale(realContext, Locale.UK).getString( in testGetImsResources()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt137 val realContext = InstrumentationRegistry.getInstrumentation().context in setUp() constant
138 doReturn(realContext.applicationInfo).`when`(mContext).applicationInfo in setUp()
139 doReturn(realContext.packageName).`when`(mContext).packageName in setUp()
142 realContext.packageName, 0, UserHandle.CURRENT) in setUp()
144 realContext.packageName, 0, UserHandle.ALL) in setUp()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java145 public TestContext(Context realContext) { in TestContext() argument
146 super(realContext, FILENAME_PREFIX); in TestContext()
192 final Context realContext = getContext(); in setUp() local
194 mTestContext = new TestContext(realContext); in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java47 public ContactsMockPackageManager(Context realContext) { in ContactsMockPackageManager() argument
48 mRealContext = realContext; in ContactsMockPackageManager()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java283 public TestMockContext(Context realContext, DevicePolicyManager dpm, UserManager um) { in TestMockContext() argument
284 mRealContext = realContext; in TestMockContext()