Searched refs:shadowApplication (Results 1 – 7 of 7) sorted by relevance
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | ApplicationTest.java | 150 final ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); in unbindServiceAddsEntryToUnboundServicesCollection() local 151 … shadowApplication.setComponentNameAndServiceForBindService(expectedComponentName, expectedBinder); in unbindServiceAddsEntryToUnboundServicesCollection() 154 assertEquals(1, shadowApplication.getUnboundServiceConnections().size()); in unbindServiceAddsEntryToUnboundServicesCollection() 155 assertEquals(service, shadowApplication.getUnboundServiceConnections().get(0)); in unbindServiceAddsEntryToUnboundServicesCollection() 164 final ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); in declaringServiceUnbindableMakesBindServiceReturnFalse() local 165 … shadowApplication.setComponentNameAndServiceForBindService(expectedComponentName, expectedBinder); in declaringServiceUnbindableMakesBindServiceReturnFalse() 166 shadowApplication.declareActionUnbindable("refuseToBind"); in declaringServiceUnbindableMakesBindServiceReturnFalse() 171 assertNull(shadowApplication.peekNextStartedService()); in declaringServiceUnbindableMakesBindServiceReturnFalse() 176 ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning() local 185 assertEquals(intent, shadowApplication.getNextStoppedService()); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
D | ApplicationResolver.java | 31 ShadowApplication shadowApplication = shadowOf(application); in resolveApplication() local 32 shadowApplication.setPackageName(packageName); in resolveApplication() 33 shadowApplication.setApplicationName(applicationName); in resolveApplication() 35 shadowApplication.setPackageManager(new RobolectricPackageManager(application, config)); in resolveApplication() 36 registerBroadcastReceivers(shadowApplication); in resolveApplication() 41 private void registerBroadcastReceivers(ShadowApplication shadowApplication) { in registerBroadcastReceivers() argument 48 …shadowApplication.registerReceiver((BroadcastReceiver) Robolectric.newInstanceOf(receiverClassName… in registerBroadcastReceivers()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/ |
D | AppSingletonizer.java | 19 ShadowApplication shadowApplication = (ShadowApplication) shadowOf(applicationContext); in getInstance() local 20 T instance = get(shadowApplication); in getInstance() 23 set(shadowApplication, instance); in getInstance() 28 protected abstract T get(ShadowApplication shadowApplication); in get() argument 30 protected abstract void set(ShadowApplication shadowApplication, T instance); in set() argument
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowLayoutInflater.java | 60 @Override protected LayoutInflater get(ShadowApplication shadowApplication) { in get() argument 61 return shadowApplication.getLayoutInflater(); in get() 64 @Override protected void set(ShadowApplication shadowApplication, LayoutInflater instance) { in set() argument 65 shadowApplication.layoutInflater = instance; in set()
|
D | ShadowAppWidgetManager.java | 29 protected AppWidgetManager get(ShadowApplication shadowApplication) { 30 return shadowApplication.appWidgetManager; 34 protected void set(ShadowApplication shadowApplication, AppWidgetManager instance) { 35 shadowApplication.appWidgetManager = instance;
|
D | ShadowPreferenceManager.java | 21 … ShadowApplication shadowApplication = shadowOf((Application) context.getApplicationContext()); in getDefaultSharedPreferences() local 22 …return new TestSharedPreferences(shadowApplication.getSharedPreferenceMap(), "__default__", Contex… in getDefaultSharedPreferences()
|
D | ShadowApplication.java | 108 ShadowApplication shadowApplication = shadowOf(application); in bind() local 109 …if (shadowApplication.resourceLoader != null) throw new RuntimeException("ResourceLoader already s… in bind() 110 shadowApplication.resourceLoader = resourceLoader; in bind() 111 …shadowApplication.resources = ShadowResources.bind(new Resources(null, null, null), resourceLoader… in bind()
|