Home
last modified time | relevance | path

Searched refs:ShadowApplication (Results 1 – 13 of 13) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/internal/
DAppSingletonizer.java5 import com.xtremelabs.robolectric.shadows.ShadowApplication;
19 ShadowApplication shadowApplication = (ShadowApplication) shadowOf(applicationContext); in getInstance()
28 protected abstract T get(ShadowApplication shadowApplication); in get()
30 protected abstract void set(ShadowApplication shadowApplication, T instance); in set()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DApplicationTest.java59 Application app1 = ShadowApplication.bind(new Application(), resourceLoader1); in shouldBeBindableToAResourceLoader()
64 Application app2 = ShadowApplication.bind(new Application(), resourceLoader2); in shouldBeBindableToAResourceLoader()
150 final ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); in unbindServiceAddsEntryToUnboundServicesCollection()
164 final ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); in declaringServiceUnbindableMakesBindServiceReturnFalse()
176 ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning()
196 ShadowApplication shadowApplication = shadowOf(Robolectric.application); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
212 ShadowApplication shadowApplication = shadowOf(Robolectric.application); in shouldClearStartedServiceIntents()
240 ShadowApplication shadowApplication = shadowOf(Robolectric.application); in canAnswerIfReceiverIsRegisteredForIntent()
250 ShadowApplication shadowApplication = shadowOf(Robolectric.application); in canFindAllReceiversForAnIntent()
DViewGroupTest.java43 ShadowApplication.bind(context, new ResourceLoader(10, R.class, null, null)); in setUp()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DApplicationResolver.java8 import com.xtremelabs.robolectric.shadows.ShadowApplication;
31 ShadowApplication shadowApplication = shadowOf(application); in resolveApplication()
41 private void registerBroadcastReceivers(ShadowApplication shadowApplication) { in registerBroadcastReceivers()
DRobolectricTestRunner.java36 import com.xtremelabs.robolectric.shadows.ShadowApplication;
405 Robolectric.application = ShadowApplication.bind(createApplication(), resourceLoader);
DRobolectric.java144 ShadowApplication.class, in getDefaultShadowClasses()
452 public static ShadowApplication shadowOf(Application instance) { in shadowOf()
453 return (ShadowApplication) shadowOf_(instance); in shadowOf()
1248 public static ShadowApplication getShadowApplication() { in getShadowApplication()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContextWrapper.java77 return ((ShadowApplication) shadowOf(getApplicationContext())).getBroadcastIntents(); in getBroadcastIntents()
87 …return ((ShadowApplication) shadowOf(getApplicationContext())).registerReceiverWithContext(receive… in registerReceiver()
244 private ShadowApplication getShadowApplication() { in getShadowApplication()
245 return ((ShadowApplication) shadowOf(getApplicationContext())); in getShadowApplication()
DShadowLayoutInflater.java60 @Override protected LayoutInflater get(ShadowApplication shadowApplication) { in get()
64 @Override protected void set(ShadowApplication shadowApplication, LayoutInflater instance) { in set()
DShadowPreferenceManager.java21ShadowApplication shadowApplication = shadowOf((Application) context.getApplicationContext()); in getDefaultSharedPreferences()
DShadowAppWidgetManager.java29 protected AppWidgetManager get(ShadowApplication shadowApplication) {
34 protected void set(ShadowApplication shadowApplication, AppWidgetManager instance) {
DShadowService.java76 …((ShadowApplication) shadowOf(getApplicationContext())).assertNoBroadcastListenersRegistered(realS… in assertNoBroadcastListenersRegistered()
DShadowApplication.java39 public class ShadowApplication extends ShadowContextWrapper { class
108 ShadowApplication shadowApplication = shadowOf(application); in bind()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
DApplicationResolverTest.java4 import com.xtremelabs.robolectric.shadows.ShadowApplication;
50 List<ShadowApplication.Wrapper> receivers = shadowOf(application).getRegisteredReceivers(); in shouldRegisterReceiversFromTheManifest()