Searched refs:ShadowApplication (Results 1 – 13 of 13) sorted by relevance
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/internal/ |
D | AppSingletonizer.java | 5 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/ |
D | ApplicationTest.java | 59 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()
|
D | ViewGroupTest.java | 43 ShadowApplication.bind(context, new ResourceLoader(10, R.class, null, null)); in setUp()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/ |
D | ApplicationResolver.java | 8 import com.xtremelabs.robolectric.shadows.ShadowApplication; 31 ShadowApplication shadowApplication = shadowOf(application); in resolveApplication() 41 private void registerBroadcastReceivers(ShadowApplication shadowApplication) { in registerBroadcastReceivers()
|
D | RobolectricTestRunner.java | 36 import com.xtremelabs.robolectric.shadows.ShadowApplication; 405 Robolectric.application = ShadowApplication.bind(createApplication(), resourceLoader);
|
D | Robolectric.java | 144 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/ |
D | ShadowContextWrapper.java | 77 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()
|
D | ShadowLayoutInflater.java | 60 @Override protected LayoutInflater get(ShadowApplication shadowApplication) { in get() 64 @Override protected void set(ShadowApplication shadowApplication, LayoutInflater instance) { in set()
|
D | ShadowPreferenceManager.java | 21 … ShadowApplication shadowApplication = shadowOf((Application) context.getApplicationContext()); in getDefaultSharedPreferences()
|
D | ShadowAppWidgetManager.java | 29 protected AppWidgetManager get(ShadowApplication shadowApplication) { 34 protected void set(ShadowApplication shadowApplication, AppWidgetManager instance) {
|
D | ShadowService.java | 76 …((ShadowApplication) shadowOf(getApplicationContext())).assertNoBroadcastListenersRegistered(realS… in assertNoBroadcastListenersRegistered()
|
D | ShadowApplication.java | 39 public class ShadowApplication extends ShadowContextWrapper { class 108 ShadowApplication shadowApplication = shadowOf(application); in bind()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/ |
D | ApplicationResolverTest.java | 4 import com.xtremelabs.robolectric.shadows.ShadowApplication; 50 List<ShadowApplication.Wrapper> receivers = shadowOf(application).getRegisteredReceivers(); in shouldRegisterReceiversFromTheManifest()
|