本文整理了Java中org.robolectric.annotation.Config.maxSdk()
方法的一些代码示例,展示了Config.maxSdk()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.maxSdk()
方法的具体详情如下:
包路径:org.robolectric.annotation.Config
类名称:Config
方法名:maxSdk
暂无
代码示例来源:origin: robolectric/robolectric
private static void validate(Config config) {
//noinspection ConstantConditions
if (config.sdk() != null && config.sdk().length > 0 &&
(config.minSdk() != DEFAULT_VALUE_INT || config.maxSdk() != DEFAULT_VALUE_INT)) {
throw new IllegalArgumentException("sdk and minSdk/maxSdk may not be specified together" +
" (sdk=" + Arrays.toString(config.sdk()) + ", minSdk=" + config.minSdk() + ", maxSdk=" + config.maxSdk() + ")");
}
if (config.minSdk() > DEFAULT_VALUE_INT && config.maxSdk() > DEFAULT_VALUE_INT && config.minSdk() > config.maxSdk()) {
throw new IllegalArgumentException("minSdk may not be larger than maxSdk" +
" (minSdk=" + config.minSdk() + ", maxSdk=" + config.maxSdk() + ")");
}
}
代码示例来源:origin: robolectric/robolectric
public Builder overlay(Config overlayConfig) {
int[] overlaySdk = overlayConfig.sdk();
int overlayMinSdk = overlayConfig.minSdk();
int overlayMaxSdk = overlayConfig.maxSdk();
代码示例来源:origin: robolectric/robolectric
private String sdksIn(Config config) {
return "sdk=" + Arrays.toString(config.sdk()) + ", minSdk=" + config.minSdk() + ", maxSdk=" + config.maxSdk();
}
代码示例来源:origin: robolectric/robolectric
int maxSdk = config.maxSdk();
if (minSdk != -1 || maxSdk != -1) {
int rangeMin = decodeSdk(minSdk, appMinSdk, appMinSdk, appTargetSdk, appMaxSdk);
代码示例来源:origin: robolectric/robolectric
public Builder(Config config) {
sdk = config.sdk();
minSdk = config.minSdk();
maxSdk = config.maxSdk();
manifest = config.manifest();
qualifiers = config.qualifiers();
packageName = config.packageName();
resourceDir = config.resourceDir();
assetDir = config.assetDir();
shadows = config.shadows();
instrumentedPackages = config.instrumentedPackages();
application = config.application();
libraries = config.libraries();
}
代码示例来源:origin: org.robolectric/robolectric
int maxSdk = config.maxSdk();
if (minSdk != -1 || maxSdk != -1) {
int rangeMin = decodeSdk(minSdk, appMinSdk, appMinSdk, appTargetSdk, appMaxSdk);
代码示例来源:origin: org.robolectric/annotations
private static void validate(Config config) {
//noinspection ConstantConditions
if (config.sdk() != null && config.sdk().length > 0 &&
(config.minSdk() != DEFAULT_VALUE_INT || config.maxSdk() != DEFAULT_VALUE_INT)) {
throw new IllegalArgumentException("sdk and minSdk/maxSdk may not be specified together" +
" (sdk=" + Arrays.toString(config.sdk()) + ", minSdk=" + config.minSdk() + ", maxSdk=" + config.maxSdk() + ")");
}
if (config.minSdk() > DEFAULT_VALUE_INT && config.maxSdk() > DEFAULT_VALUE_INT && config.minSdk() > config.maxSdk()) {
throw new IllegalArgumentException("minSdk may not be larger than maxSdk" +
" (minSdk=" + config.minSdk() + ", maxSdk=" + config.maxSdk() + ")");
}
}
代码示例来源:origin: org.robolectric/annotations
public Builder overlay(Config overlayConfig) {
int[] overlaySdk = overlayConfig.sdk();
int overlayMinSdk = overlayConfig.minSdk();
int overlayMaxSdk = overlayConfig.maxSdk();
代码示例来源:origin: org.robolectric/annotations
public Builder(Config config) {
sdk = config.sdk();
minSdk = config.minSdk();
maxSdk = config.maxSdk();
manifest = config.manifest();
qualifiers = config.qualifiers();
packageName = config.packageName();
resourceDir = config.resourceDir();
assetDir = config.assetDir();
shadows = config.shadows();
instrumentedPackages = config.instrumentedPackages();
application = config.application();
libraries = config.libraries();
}
内容来源于网络,如有侵权,请联系作者删除!