Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsDispatcherTest.java215 Context realContext = TestApplication.getAppContext(); in testSendTextWithInvalidDestAddr() local
216 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT)); in testSendTextWithInvalidDestAddr()
217 PendingIntent pendingIntent = PendingIntent.getBroadcast(realContext, 0, in testSendTextWithInvalidDestAddr()
271 Context realContext = TestApplication.getAppContext(); in testSendMultipartTextWithInvalidText() local
272 realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT)); in testSendMultipartTextWithInvalidText()
282 PendingIntent sentIntent = PendingIntent.getBroadcast(realContext, 0, in testSendMultipartTextWithInvalidText()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java116 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/
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.java658 final Context realContext = InstrumentationRegistry.getContext(); in testRealSystemPermission() local
659 final PermissionMonitor monitor = new PermissionMonitor(realContext, mNetdService); in testRealSystemPermission()
660 final PackageManager manager = realContext.getPackageManager(); in testRealSystemPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java3294 public TestAccountAuthenticatorCache(Context realContext) { in TestAccountAuthenticatorCache() argument
3295 super(realContext); in TestAccountAuthenticatorCache()
3307 TestInjector(Context realContext, in TestInjector() argument
3311 mRealContext = realContext; in TestInjector()