Home
last modified time | relevance | path

Searched refs:realContext (Results 1 – 6 of 6) 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.kt138 val realContext = InstrumentationRegistry.getInstrumentation().context in setUp() constant
139 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()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java150 public TestContext(Context realContext) { in TestContext() argument
151 super(realContext, FILENAME_PREFIX); in TestContext()
197 final Context realContext = getContext(); in setUp() local
199 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()
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DDriverDistractionExperimentalFeatureServiceTest.java196 Context realContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testConfig_servicesCanBeBound() local
199 String[] preferredDriverAwarenessSuppliers = realContext.getResources().getStringArray( in testConfig_servicesCanBeBound()