Home
last modified time | relevance | path

Searched refs:SdkConfig (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DSdkPickerTest.java15 import org.robolectric.internal.SdkConfig;
33 .containsExactly(new SdkConfig(22)); in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
42 … .containsExactly(new SdkConfig(19), new SdkConfig(21), new SdkConfig(22), new SdkConfig(23)); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
51 .containsExactly(new SdkConfig(16), new SdkConfig(17), new SdkConfig(18), new SdkConfig(19), in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
52 new SdkConfig(21), new SdkConfig(22)); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
61 … .containsExactly(new SdkConfig(19), new SdkConfig(21), new SdkConfig(22), new SdkConfig(23)); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
119 .containsExactly(new SdkConfig(16)); in shouldClipSdkRangeFromAndroidManifest()
128 .containsExactly(new SdkConfig(21), new SdkConfig(22), new SdkConfig(23)); in withMinSdkConfig_shouldClipSdkRangeFromAndroidManifest()
137 .containsExactly(new SdkConfig(19), new SdkConfig(21)); in withMaxSdkConfig_shouldUseSdkRangeFromAndroidManifest()
147 .containsExactly(new SdkConfig(21)); in withExplicitSdkConfig_selectSdks()
[all …]
DRobolectricTestRunnerTest.java37 import org.robolectric.internal.SdkConfig;
128 new SdkConfig(16), in equalityOfRobolectricFrameworkMethod()
137 new SdkConfig(17), in equalityOfRobolectricFrameworkMethod()
146 new SdkConfig(16), in equalityOfRobolectricFrameworkMethod()
155 new SdkConfig(16), in equalityOfRobolectricFrameworkMethod()
270 return new SdkPicker(asList(new SdkConfig(SdkConfig.MAX_SDK_VERSION)), null); in createSdkPicker()
DTestRunnerSequenceTest.java26 import org.robolectric.internal.SdkConfig;
80 return SdkConfig.FALLBACK_SDK_VERSION; in whenNoAppManifest_shouldRunThingsInTheRightOrder()
150 return new SdkPicker(singletonList(new SdkConfig(JELLY_BEAN)), null); in createSdkPicker()
DBootstrapDeferringRobolectricTestRunner.java14 import org.robolectric.internal.SdkConfig;
92 public void setSdkConfig(SdkConfig sdkConfig) { in setSdkConfig()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DSdkPicker.java16 import org.robolectric.internal.SdkConfig;
19 private final Set<SdkConfig> supportedSdks;
20 private final Set<SdkConfig> enabledSdks;
21 private final SdkConfig minSupportedSdk;
22 private final SdkConfig maxSupportedSdk;
25 @Nonnull Collection<SdkConfig> supportedSdks, @Nullable Collection<SdkConfig> enabledSdks) { in SdkPicker()
26 TreeSet<SdkConfig> sdkConfigs = new TreeSet<>(supportedSdks); in SdkPicker()
42 public List<SdkConfig> selectSdks(Config config, UsesSdk usesSdk) { in selectSdks()
43 Set<SdkConfig> sdks = new TreeSet<>(configuredSdks(config, usesSdk)); in selectSdks()
51 protected static Set<SdkConfig> enumerateEnabledSdks(String enabledSdks) { in enumerateEnabledSdks()
[all …]
DRobolectricTestRunner.java39 import org.robolectric.internal.SdkConfig;
200 SdkConfig.getSupportedSdkConfigs(), in createSdkPicker()
289 List<SdkConfig> sdksToRun = sdkPicker.selectSdks(config, appManifest); in getChildren()
291 for (SdkConfig sdkConfig : sdksToRun) { in getChildren()
337 SdkConfig sdkConfig = roboMethod.sdkConfig; in getSandbox()
352 SdkConfig sdkConfig = roboMethod.sdkConfig; in beforeTest()
614 final @Nonnull SdkConfig sdkConfig;
627 @Nonnull SdkConfig sdkConfig,
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
DSdkConfig.java14 public class SdkConfig implements Comparable<SdkConfig> { class
58 public static Collection<SdkConfig> getSupportedSdkConfigs() { in getSupportedSdkConfigs()
59 ArrayList<SdkConfig> sdkConfigs = new ArrayList<>(); in getSupportedSdkConfigs()
61 sdkConfigs.add(new SdkConfig(sdkVersion)); in getSupportedSdkConfigs()
66 public SdkConfig(int apiLevel) { in SdkConfig() method in SdkConfig
88 return that == this || (that instanceof SdkConfig && ((SdkConfig) that).apiLevel == (apiLevel)); in equals()
102 public int compareTo(@Nonnull SdkConfig o) { in compareTo()
DSandboxFactory.java21 private static final int CACHE_SIZE = SdkConfig.getSupportedApis().size() * CACHE_SIZE_FACTOR;
32 InstrumentationConfiguration instrumentationConfig, SdkConfig sdkConfig, in getSdkEnvironment()
48 protected SdkEnvironment createSdkEnvironment(SdkConfig sdkConfig, in createSdkEnvironment()
59 private final SdkConfig sdkConfig;
63 public SandboxKey(SdkConfig sdkConfig, in SandboxKey()
DSdkEnvironment.java14 private final SdkConfig sdkConfig;
18 public SdkEnvironment(SdkConfig sdkConfig, ClassLoader robolectricClassLoader) { in SdkEnvironment()
25 DependencyJar compileTimeJar = new SdkConfig(27).getAndroidSdkDependency(); in getCompileTimeSystemResourcesFile()
56 public SdkConfig getSdkConfig() { in getSdkConfig()
DParallelUniverseInterface.java10 void setSdkConfig(SdkConfig sdkConfig); in setSdkConfig()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/util/
DTestUtil.java12 import org.robolectric.internal.SdkConfig;
50 SdkConfig sdkConfig = new SdkConfig(SdkConfig.MAX_SDK_VERSION); in systemResources()
58 …Fs sdkResFs = Fs.fromJar(getDependencyResolver().getLocalArtifactUrl(new SdkConfig(apiLevel).getAn… in sdkResources()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java43 import org.robolectric.internal.SdkConfig;
72 private SdkConfig sdkConfig;
75 public void setSdkConfig(SdkConfig sdkConfig) { in setSdkConfig()