Home
last modified time | relevance | path

Searched refs:shadowMap (Results 1 – 6 of 6) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/bytecode/
DShadowWranglerUnitTest.java71 ShadowMap shadowMap = new ShadowMap.Builder().addShadowClasses(ShadowDummyClass.class).build(); in shadowClassWithSdkRange() local
73 …assertThat(new ShadowWrangler(shadowMap, 18, interceptors).methodInvoked(methodName, false, DummyC… in shadowClassWithSdkRange()
74 …assertThat(new ShadowWrangler(shadowMap, 19, interceptors).methodInvoked(methodName, false, DummyC… in shadowClassWithSdkRange()
76 …assertThat(new ShadowWrangler(shadowMap, 23, interceptors).methodInvoked(methodName, false, DummyC… in shadowClassWithSdkRange()
81 ShadowMap shadowMap = new ShadowMap.Builder().addShadowClasses(ShadowDummyClass.class).build(); in shadowMethodWithSdkRange() local
83 …assertThat(new ShadowWrangler(shadowMap, 19, interceptors).methodInvoked(methodName, false, DummyC… in shadowMethodWithSdkRange()
84 …assertThat(new ShadowWrangler(shadowMap, 20, interceptors).methodInvoked(methodName, false, DummyC… in shadowMethodWithSdkRange()
86 …assertThat(new ShadowWrangler(shadowMap, 21, interceptors).methodInvoked(methodName, false, DummyC… in shadowMethodWithSdkRange()
91 ShadowMap shadowMap = new ShadowMap.Builder().addShadowClasses(ShadowDummyClass.class).build(); in shadowMethodWithMinSdk() local
93 …assertThat(new ShadowWrangler(shadowMap, 19, interceptors).methodInvoked(methodName, false, DummyC… in shadowMethodWithMinSdk()
[all …]
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DSandbox.java13 private ShadowMap shadowMap = ShadowMap.EMPTY; field in Sandbox
37 public void replaceShadowMap(ShadowMap shadowMap) { in replaceShadowMap() argument
39 ShadowMap oldShadowMap = this.shadowMap; in replaceShadowMap()
40 this.shadowMap = shadowMap; in replaceShadowMap()
41 Set<String> invalidatedClasses = shadowMap.getInvalidatedClasses(oldShadowMap); in replaceShadowMap()
DShadowMap.java33 final Map<String, String> shadowMap = new HashMap<>(); in createFromShadowProviders() local
36 shadowMap.putAll(provider.getShadowMap()); in createFromShadowProviders()
39 return new ShadowMap(ImmutableMap.copyOf(shadowMap), Collections.emptyMap(), in createFromShadowProviders()
181 ShadowMap shadowMap = (ShadowMap) o; in equals()
183 if (!overriddenShadows.equals(shadowMap.overriddenShadows)) return false; in equals()
204 public Builder(ShadowMap shadowMap) { in Builder() argument
205 this.defaultShadows = shadowMap.defaultShadows; in Builder()
206 this.overriddenShadows = new HashMap<>(shadowMap.overriddenShadows); in Builder()
207 this.shadowPickers = new HashMap<>(shadowMap.shadowPickers); in Builder()
DShadowWrangler.java71 private final ShadowMap shadowMap; field in ShadowWrangler
85 return shadowMap.getShadowInfo(type, apiLevel);
98 public ShadowWrangler(ShadowMap shadowMap, int apiLevel, Interceptors interceptors) { in ShadowWrangler() argument
99 this.shadowMap = shadowMap; in ShadowWrangler()
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/
DSandboxTestRunner.java209 ShadowMap shadowMap = builder.build();
210 sandbox.replaceShadowMap(shadowMap);
212 sandbox.configure(createClassHandler(shadowMap, sandbox), getInterceptors());
342 protected ClassHandler createClassHandler(ShadowMap shadowMap, Sandbox sandbox) {
343 return new ShadowWrangler(shadowMap, 0, interceptors);
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectricTestRunner.java165 protected ClassHandler createClassHandler(ShadowMap shadowMap, Sandbox sandbox) { in createClassHandler() argument
166 …return new ShadowWrangler(shadowMap, ((SdkEnvironment) sandbox).getSdkConfig().getApiLevel(), getI… in createClassHandler()