Home
last modified time | relevance | path

Searched refs:usesSdk (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DSdkPickerTest.java20 private UsesSdk usesSdk; field in SdkPickerTest
25 usesSdk = mock(UsesSdk.class); in setUp()
31 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
32 assertThat(sdkPicker.selectSdks(new Config.Builder().build(), usesSdk)) in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
38 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
39 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
40 when(usesSdk.getMaxSdkVersion()).thenReturn(23); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
41 assertThat(sdkPicker.selectSdks(new Config.Builder().setSdk(Config.ALL_SDKS).build(), usesSdk)) in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
47 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
48 when(usesSdk.getMinSdkVersion()).thenReturn(1); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DSdkPicker.java42 public List<SdkConfig> selectSdks(Config config, UsesSdk usesSdk) { in selectSdks() argument
43 Set<SdkConfig> sdks = new TreeSet<>(configuredSdks(config, usesSdk)); in selectSdks()
63 protected Set<SdkConfig> configuredSdks(Config config, UsesSdk usesSdk) { in configuredSdks() argument
64 int appMinSdk = Math.max(usesSdk.getMinSdkVersion(), minSupportedSdk.getApiLevel()); in configuredSdks()
65 int appTargetSdk = Math.max(usesSdk.getTargetSdkVersion(), minSupportedSdk.getApiLevel()); in configuredSdks()
66 Integer appMaxSdk = usesSdk.getMaxSdkVersion(); in configuredSdks()