Home
last modified time | relevance | path

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

/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt98 private var context = TestableContext(realContext)
112 private val realContext get() = InstrumentationRegistry.getInstrumentation().context constant
132 val intent = Intent(realContext, NetworkStackInstrumentationService::class.java) in onServiceDisconnected()
134 assertTrue(realContext.bindService(intent, InstrumentationServiceConnection(), in onServiceDisconnected()
149 networkStackClient = TestNetworkStackClient(realContext) in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsDispatcherTest.java216 Context realContext = TestApplication.getAppContext(); in testSendTextWithInvalidDestAddr() local
217 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT)); in testSendTextWithInvalidDestAddr()
218 PendingIntent pendingIntent = PendingIntent.getBroadcast(realContext, 0, in testSendTextWithInvalidDestAddr()
272 Context realContext = TestApplication.getAppContext(); in testSendMultipartTextWithInvalidText() local
273 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT)); in testSendMultipartTextWithInvalidText()
283 PendingIntent sentIntent = PendingIntent.getBroadcast(realContext, 0, in testSendMultipartTextWithInvalidText()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java128 public MockSystemServices(Context realContext, String name) { in MockSystemServices() argument
129 dataDir = new File(realContext.getCacheDir(), name); in MockSystemServices()
169 packageManager = spy(realContext.getPackageManager()); in MockSystemServices()
174 contentResolver.addProvider("telephony", new MockContentProvider(realContext) { in MockSystemServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java238 MyMockContext(Context realContext, PackageManager packageManager) { in MyMockContext() argument
239 mRealContext = realContext; in MyMockContext()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java751 final Context realContext = InstrumentationRegistry.getContext(); in testRealSystemPermission() local
752 final PermissionMonitor monitor = new PermissionMonitor(realContext, mNetdService); in testRealSystemPermission()
753 final PackageManager manager = realContext.getPackageManager(); in testRealSystemPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java3298 public TestAccountAuthenticatorCache(Context realContext) { in TestAccountAuthenticatorCache() argument
3299 super(realContext); in TestAccountAuthenticatorCache()
3311 TestInjector(Context realContext, in TestInjector() argument
3315 mRealContext = realContext; in TestInjector()