Home
last modified time | relevance | path

Searched refs:sdkConfig (Results 1 – 8 of 8) sorted by relevance

/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
DSandboxFactory.java32 InstrumentationConfiguration instrumentationConfig, SdkConfig sdkConfig, in getSdkEnvironment() argument
34 SandboxKey key = new SandboxKey(sdkConfig, instrumentationConfig, useLegacyResources); in getSdkEnvironment()
38 URL[] urls = dependencyResolver.getLocalArtifactUrls(sdkConfig.getAndroidSdkDependency()); in getSdkEnvironment()
41 sdkEnvironment = createSdkEnvironment(sdkConfig, robolectricClassLoader); in getSdkEnvironment()
48 protected SdkEnvironment createSdkEnvironment(SdkConfig sdkConfig, in createSdkEnvironment() argument
50 return new SdkEnvironment(sdkConfig, robolectricClassLoader); in createSdkEnvironment()
59 private final SdkConfig sdkConfig; field in SandboxFactory.SandboxKey
63 public SandboxKey(SdkConfig sdkConfig, in SandboxKey() argument
65 this.sdkConfig = sdkConfig; in SandboxKey()
80 && Objects.equals(sdkConfig, that.sdkConfig) in equals()
[all …]
DSdkEnvironment.java14 private final SdkConfig sdkConfig; field in SdkEnvironment
18 public SdkEnvironment(SdkConfig sdkConfig, ClassLoader robolectricClassLoader) { in SdkEnvironment() argument
20 this.sdkConfig = sdkConfig; in SdkEnvironment()
43 …Fs systemResFs = Fs.fromJar(dependencyResolver.getLocalArtifactUrl(sdkConfig.getAndroidSdkDependen… in createRuntimeSdkResourcePath()
57 return sdkConfig; in getSdkConfig()
DParallelUniverseInterface.java10 void setSdkConfig(SdkConfig sdkConfig); in setSdkConfig() argument
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectricTestRunner.java236 roboMethod.parallelUniverseInterface.setSdkConfig(roboMethod.sdkConfig); in configureSandbox()
291 for (SdkConfig sdkConfig : sdksToRun) { in getChildren()
298 sdkConfig, in getChildren()
310 sdkConfig, in getChildren()
337 SdkConfig sdkConfig = roboMethod.sdkConfig; in getSandbox() local
339 createClassLoaderConfig(method), sdkConfig, roboMethod.isLegacy(), getJarResolver()); in getSandbox()
352 SdkConfig sdkConfig = roboMethod.sdkConfig; in beforeTest() local
356 ImmutableMap.of("ro.build.version.sdk", "" + sdkConfig.getApiLevel()), in beforeTest()
361 + roboMethod.getMethod().getName() + ": sdk=" + sdkConfig.getApiLevel() in beforeTest()
375 roboMethod.parallelUniverseInterface.setSdkConfig(sdkConfig); in beforeTest()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java72 private SdkConfig sdkConfig; field in ParallelUniverse
75 public void setSdkConfig(SdkConfig sdkConfig) { in setSdkConfig() argument
76 this.sdkConfig = sdkConfig; in setSdkConfig()
77 ReflectionHelpers.setStaticField(RuntimeEnvironment.class, "apiLevel", sdkConfig.getApiLevel()); in setSdkConfig()
88 ReflectionHelpers.setStaticField(RuntimeEnvironment.class, "apiLevel", sdkConfig.getApiLevel()); in setUpApplicationState()
108 Bootstrap.applyQualifiers(config.qualifiers(), sdkConfig.getApiLevel(), configuration, in setUpApplicationState()
111 Locale locale = sdkConfig.getApiLevel() >= VERSION_CODES.N in setUpApplicationState()
148 apkLoader.getArtifactUrl(sdkConfig.getAndroidSdkDependency()).getFile()); in setUpApplicationState()
157 if (sdkConfig.getApiLevel() < P && applicationInfo.processName == null) { in setUpApplicationState()
401 if (sdkConfig.getApiLevel() <= VERSION_CODES.KITKAT) { in setUpPackageStorage()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/util/
DTestUtil.java50 SdkConfig sdkConfig = new SdkConfig(SdkConfig.MAX_SDK_VERSION); in systemResources() local
51 …Fs fs = Fs.fromJar(getDependencyResolver().getLocalArtifactUrl(sdkConfig.getAndroidSdkDependency()… in systemResources()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DBootstrapDeferringRobolectricTestRunner.java92 public void setSdkConfig(SdkConfig sdkConfig) { in setSdkConfig() argument
93 hooksInterface.setSdkConfig(sdkConfig); in setSdkConfig()
DRobolectricTestRunnerMultiApiTest.java318 ((RobolectricTestRunner.RobolectricFrameworkMethod) child).sdkConfig.getApiLevel());