Home
last modified time | relevance | path

Searched refs:apiLevel (Results 1 – 25 of 36) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
DSdkConfig.java49 private final int apiLevel; field in SdkConfig
63 public SdkConfig(int apiLevel) { in SdkConfig() argument
64 this.apiLevel = apiLevel; in SdkConfig()
68 return apiLevel; in getApiLevel()
85 return that == this || (that instanceof SdkConfig && ((SdkConfig) that).apiLevel == (apiLevel)); in equals()
90 return apiLevel; in hashCode()
95 return "API Level " + apiLevel; in toString()
100 return apiLevel - o.apiLevel; in compareTo()
104 final SdkVersion sdkVersion = SUPPORTED_APIS.get(apiLevel); in getSdkVersion()
106 …throw new UnsupportedOperationException("Robolectric does not support API level " + apiLevel + "."… in getSdkVersion()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDeviceConfigTest.java23 private int apiLevel; field in DeviceConfigTest
30 apiLevel = RuntimeEnvironment.getApiLevel(); in setUp()
69 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_defaults()
79 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_rtlScript()
88 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_heightWidth()
97 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_heightWidthOrientation()
106 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_sizeToDimens()
115 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_sizeFromDimens()
124 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_longIncreasesHeight()
133 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyRules_greatHeightTriggersLong()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DDeviceConfig.java97 static void applyToConfiguration(Qualifiers qualifiers, int apiLevel, in applyToConfiguration() argument
162 setLocale(apiLevel, configuration, locale); in applyToConfiguration()
196 setDensity(resTab.density, apiLevel, configuration, displayMetrics); in applyToConfiguration()
219 if (apiLevel >= VERSION_CODES.O) { in applyToConfiguration()
230 private static void setDensity(int densityDpi, int apiLevel, Configuration configuration, in setDensity() argument
232 if (apiLevel >= VERSION_CODES.JELLY_BEAN_MR1) { in setDensity()
243 static void applyRules(Configuration configuration, DisplayMetrics displayMetrics, int apiLevel) { in applyRules() argument
244 Locale locale = getLocale(configuration, apiLevel); in applyRules()
256 setLocale(apiLevel, configuration, locale); in applyRules()
259 if (apiLevel <= ConfigDescription.SDK_JELLY_BEAN && in applyRules()
[all …]
DBootstrap.java22 public static void applyQualifiers(String qualifiersStrs, int apiLevel, in applyQualifiers() argument
40 if (platformVersion != -1 && platformVersion != apiLevel) { in applyQualifiers()
47 DeviceConfig.applyToConfiguration(qualifiers, apiLevel, configuration, displayMetrics); in applyQualifiers()
50 DeviceConfig.applyRules(configuration, displayMetrics, apiLevel); in applyQualifiers()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowViewRootImpl.java45 int apiLevel = RuntimeEnvironment.getApiLevel(); in callDispatchResized() local
47 if (apiLevel <= Build.VERSION_CODES.JELLY_BEAN) { in callDispatchResized()
55 } else if (apiLevel <= JELLY_BEAN_MR1) { in callDispatchResized()
62 } else if (apiLevel <= Build.VERSION_CODES.KITKAT) { in callDispatchResized()
70 } else if (apiLevel <= Build.VERSION_CODES.LOLLIPOP_MR1) { in callDispatchResized()
79 } else if (apiLevel <= Build.VERSION_CODES.M) { in callDispatchResized()
89 } else if (apiLevel <= Build.VERSION_CODES.N_MR1) { in callDispatchResized()
102 } else if (apiLevel <= Build.VERSION_CODES.O_MR1) { in callDispatchResized()
120 } else if (apiLevel >= Build.VERSION_CODES.P) { in callDispatchResized()
138 throw new RuntimeException("Could not find AndroidRuntimeAdapter for API level: " + apiLevel); in callDispatchResized()
DShadowArscAssetInputStream.java29 int apiLevel = RuntimeEnvironment.getApiLevel(); in getAsset() local
31 if (apiLevel >= LOLLIPOP) { in getAsset()
DShadowActivity.java82 int apiLevel = RuntimeEnvironment.getApiLevel(); in callAttach() local
98 if (apiLevel <= Build.VERSION_CODES.KITKAT) { in callAttach()
118 } else if (apiLevel <= Build.VERSION_CODES.LOLLIPOP) { in callAttach()
139 } else if (apiLevel <= Build.VERSION_CODES.M) { in callAttach()
162 } else if (apiLevel <= Build.VERSION_CODES.N_MR1) { in callAttach()
186 } else if (apiLevel <= Build.VERSION_CODES.P) { in callAttach()
212 } else if (apiLevel >= Build.VERSION_CODES.Q) { in callAttach()
240 throw new RuntimeException("Could not find AndroidRuntimeAdapter for API level: " + apiLevel); in callAttach()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassPathResolver.java321 private static List<String> getDefaultBootClassPath(@Nonnull DexFile dexFile, int apiLevel) { in getDefaultBootClassPath() argument
340 if (apiLevel <= 8) { in getDefaultBootClassPath()
347 } else if (apiLevel <= 11) { in getDefaultBootClassPath()
356 } else if (apiLevel <= 13) { in getDefaultBootClassPath()
366 } else if (apiLevel <= 15) { in getDefaultBootClassPath()
377 } else if (apiLevel <= 17) { in getDefaultBootClassPath()
390 } else if (apiLevel <= 18) { in getDefaultBootClassPath()
403 } else if (apiLevel <= 19) { in getDefaultBootClassPath()
419 } else if (apiLevel <= 22) { in getDefaultBootClassPath()
434 } else if (apiLevel <= 23) { in getDefaultBootClassPath()
/external/smali/smali/src/main/java/org/jf/smali/
DSmaliTestUtils.java56 public static ClassDef compileSmali(String smaliText, int apiLevel) in compileSmali() argument
60 DexBuilder dexBuilder = new DexBuilder(Opcodes.forApi(apiLevel)); in compileSmali()
70 parser.setApiLevel(apiLevel); in compileSmali()
84 dexGen.setApiLevel(apiLevel); in compileSmali()
97 … DexBackedDexFile dexFile = new DexBackedDexFile(Opcodes.forApi(apiLevel), dataStore.getData()); in compileSmali()
DAssembleCommand.java65 private int apiLevel = 15; field in AssembleCommand
106 options.apiLevel = apiLevel; in getOptions()
DSmali.java94 final DexBuilder dexBuilder = new DexBuilder(Opcodes.forApi(options.apiLevel)); in assemble()
177 parser.setApiLevel(options.apiLevel); in assembleSmaliFile()
195 dexGen.setApiLevel(options.apiLevel); in assembleSmaliFile()
DSmaliOptions.java35 public int apiLevel = 15; field in SmaliOptions
/external/desugar/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtension.java54 Integer apiLevel = null;
56 apiLevel = readApiLevelFromBuildVersion();
57 if (apiLevel != null && apiLevel.intValue() >= 19) {
76 API_LEVEL = apiLevel == null ? 1 : apiLevel.intValue();
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DDexInputCommand.java58 public int apiLevel = 15; field in DexInputCommand
138 … dexFile = DexFileFactory.loadDexEntry(file, dexEntry, exactMatch, Opcodes.forApi(apiLevel)); in loadDexFile()
144 dexFile = DexFileFactory.loadDexFile(file, Opcodes.forApi(apiLevel)); in loadDexFile()
DListFieldOffsetsCommand.java107 options.apiLevel = apiLevel; in getOptions()
DListVtablesCommand.java144 options.apiLevel = apiLevel; in getOptions()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DShadowWrangler.java73 private final int apiLevel; field in ShadowWrangler
85 return shadowMap.getShadowInfo(type, apiLevel);
98 public ShadowWrangler(ShadowMap shadowMap, int apiLevel, Interceptors interceptors) { in ShadowWrangler() argument
100 this.apiLevel = apiLevel; in ShadowWrangler()
279 && shadowSuperclassInfo.supportsSdk(apiLevel)) {
328 …return implementation.minSdk() <= apiLevel && (implementation.maxSdk() == -1 || implementation.max…
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DNativeObjRegistry.java170 private int apiLevel; field in NativeObjRegistry.Trace
177 this.apiLevel = (int) runtimeEnvClass.getMethod("getApiLevel").invoke(null); in Trace()
185 private Trace(int apiLevel, boolean legacyResources) { in Trace() argument
/external/walt/android/WALT/app/
Dbuild.gradle10 minSdkVersion.apiLevel 17
11 targetSdkVersion.apiLevel 23
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/util/
DTestUtil.java57 public static ResourcePath sdkResources(int apiLevel) { in sdkResources() argument
58 …Fs sdkResFs = Fs.fromJar(getDependencyResolver().getLocalArtifactUrl(new SdkConfig(apiLevel).getAn… in sdkResources()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java28 private static int apiLevel; field in RuntimeEnvironment
141 return apiLevel; in getApiLevel()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DQualifiers.java99 public static String addPlatformVersion(String qualifiers, int apiLevel) { in addPlatformVersion() argument
105 qualifiers += "v" + apiLevel; in addPlatformVersion()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DSdkPicker.java132 int apiLevel = supportedSdk.getApiLevel(); in sdkRange() local
133 if (apiLevel >= minSdk && supportedSdk.getApiLevel() <= maxSdk) { in sdkRange()
/external/doclava/res/assets/templates/assets/
Ddoclava-developer-reference.js90 var apiLevel = className.substring(apiLevelIndex, apiLevelEndIndex);
91 …if (apiLevel > selectedLevel) obj.addClass("absent").attr("title","Requires API Level "+apiLevel+"…
/external/smali/smali/src/main/antlr/
DsmaliParser.g255 private int apiLevel = 15;
256 private Opcodes opcodes = Opcodes.forApi(apiLevel);
266 public void setApiLevel(int apiLevel) {
267 this.opcodes = Opcodes.forApi(apiLevel);
268 this.apiLevel = apiLevel;
886 …if (!allowOdex || opcodes.getOpcodeByName($INSTRUCTION_FORMAT20bc.text) == null || apiLevel >= 14)…
906 …dex || opcodes.getOpcodeByName($INSTRUCTION_FORMAT21c_FIELD_ODEX.text) == null || apiLevel >= 14) {
956 …dex || opcodes.getOpcodeByName($INSTRUCTION_FORMAT22c_FIELD_ODEX.text) == null || apiLevel >= 14) {

12