Searched refs:realContext (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 103 private var context = TestableContext(realContext) 117 private val realContext get() = InstrumentationRegistry.getInstrumentation().context constant 119 realContext.getResources().getString(R.string.config_captive_portal_http_url) 121 realContext.getResources().getString(R.string.config_captive_portal_https_url) 141 val intent = Intent(realContext, NetworkStackInstrumentationService::class.java) in onServiceDisconnected() 143 assertTrue(realContext.bindService(intent, InstrumentationServiceConnection(), in onServiceDisconnected() 158 networkStackClient = TestNetworkStackClient(realContext) in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsDispatcherTest.java | 213 Context realContext = TestApplication.getAppContext(); in testSendTextWithInvalidDestAddr() local 214 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT)); in testSendTextWithInvalidDestAddr() 215 PendingIntent pendingIntent = PendingIntent.getBroadcast(realContext, 0, in testSendTextWithInvalidDestAddr() 269 Context realContext = TestApplication.getAppContext(); in testSendMultipartTextWithInvalidText() local 270 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT)); in testSendMultipartTextWithInvalidText() 280 PendingIntent sentIntent = PendingIntent.getBroadcast(realContext, 0, in testSendMultipartTextWithInvalidText()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 116 public MockSystemServices(Context realContext, String name) { in MockSystemServices() argument 117 dataDir = new File(realContext.getCacheDir(), name); in MockSystemServices() 152 packageManager = spy(realContext.getPackageManager()); in MockSystemServices() 155 contentResolver.addProvider("telephony", new MockContentProvider(realContext) { in MockSystemServices()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 238 MyMockContext(Context realContext, PackageManager packageManager) { in MyMockContext() argument 239 mRealContext = realContext; in MyMockContext()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 711 final Context realContext = InstrumentationRegistry.getContext(); in testRealSystemPermission() local 712 final PermissionMonitor monitor = new PermissionMonitor(realContext, mNetdService); in testRealSystemPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 3294 public TestAccountAuthenticatorCache(Context realContext) { in TestAccountAuthenticatorCache() argument 3295 super(realContext); in TestAccountAuthenticatorCache() 3307 TestInjector(Context realContext, in TestInjector() argument 3311 mRealContext = realContext; in TestInjector()
|