OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:shadowApplication
(Results
1 - 13
of
13
) sorted by null
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/internal/
AppSingletonizer.java
5
import com.xtremelabs.robolectric.shadows.
ShadowApplication
;
19
ShadowApplication
shadowApplication
= (
ShadowApplication
) shadowOf(applicationContext);
20
T instance = get(
shadowApplication
);
23
set(
shadowApplication
, instance);
28
protected abstract T get(
ShadowApplication
shadowApplication
);
30
protected abstract void set(
ShadowApplication
shadowApplication
, T instance)
[
all
...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
ApplicationResolver.java
8
import com.xtremelabs.robolectric.shadows.
ShadowApplication
;
31
ShadowApplication
shadowApplication
= shadowOf(application);
32
shadowApplication
.setPackageName(packageName);
33
shadowApplication
.setApplicationName(applicationName);
35
shadowApplication
.setPackageManager(new RobolectricPackageManager(application, config));
36
registerBroadcastReceivers(
shadowApplication
);
41
private void registerBroadcastReceivers(
ShadowApplication
shadowApplication
) {
48
shadowApplication
.registerReceiver((BroadcastReceiver) Robolectric.newInstanceOf(receiverClassName), filter)
[
all
...]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ApplicationTest.java
59
Application app1 =
ShadowApplication
.bind(new Application(), resourceLoader1);
64
Application app2 =
ShadowApplication
.bind(new Application(), resourceLoader2);
150
final
ShadowApplication
shadowApplication
= Robolectric.shadowOf(Robolectric.application);
151
shadowApplication
.setComponentNameAndServiceForBindService(expectedComponentName, expectedBinder);
154
assertEquals(1,
shadowApplication
.getUnboundServiceConnections().size());
155
assertEquals(service,
shadowApplication
.getUnboundServiceConnections().get(0));
164
final
ShadowApplication
shadowApplication
= Robolectric.shadowOf(Robolectric.application);
165
shadowApplication
.setComponentNameAndServiceForBindService(expectedComponentName, expectedBinder)
[
all
...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPreferenceManager.java
21
ShadowApplication
shadowApplication
= shadowOf((Application) context.getApplicationContext());
22
return new TestSharedPreferences(
shadowApplication
.getSharedPreferenceMap(), "__default__", Context.MODE_PRIVATE);
ShadowLayoutInflater.java
60
@Override protected LayoutInflater get(
ShadowApplication
shadowApplication
) {
61
return
shadowApplication
.getLayoutInflater();
64
@Override protected void set(
ShadowApplication
shadowApplication
, LayoutInflater instance) {
65
shadowApplication
.layoutInflater = instance;
ShadowAppWidgetManager.java
29
protected AppWidgetManager get(
ShadowApplication
shadowApplication
) {
30
return
shadowApplication
.appWidgetManager;
34
protected void set(
ShadowApplication
shadowApplication
, AppWidgetManager instance) {
35
shadowApplication
.appWidgetManager = instance;
ShadowApplication.java
39
public class
ShadowApplication
extends ShadowContextWrapper {
108
ShadowApplication
shadowApplication
= shadowOf(application);
109
if (
shadowApplication
.resourceLoader != null) throw new RuntimeException("ResourceLoader already set!");
110
shadowApplication
.resourceLoader = resourceLoader;
111
shadowApplication
.resources = ShadowResources.bind(new Resources(null, null, null), resourceLoader);
/external/robolectric/v3/runtime/
shadows-core-3.1-SNAPSHOT-16.jar
shadows-core-3.1-SNAPSHOT-17.jar
shadows-core-3.1-SNAPSHOT-18.jar
shadows-core-3.1-SNAPSHOT-19.jar
shadows-core-3.1-SNAPSHOT-21.jar
shadows-core-3.1-SNAPSHOT-22.jar
Completed in 191 milliseconds