Home
last modified time | relevance | path

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

12

/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
DSdkConfig.java52 private final int apiLevel; field in SdkConfig
66 public SdkConfig(int apiLevel) { in SdkConfig() argument
67 this.apiLevel = apiLevel; in SdkConfig()
71 return apiLevel; in getApiLevel()
88 return that == this || (that instanceof SdkConfig && ((SdkConfig) that).apiLevel == (apiLevel)); in equals()
93 return apiLevel; in hashCode()
98 return "API Level " + apiLevel; in toString()
103 return apiLevel - o.apiLevel; in compareTo()
107 final SdkVersion sdkVersion = SUPPORTED_APIS.get(apiLevel); in getSdkVersion()
109 …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/shadows/
DShadowViewRootImpl.java47 int apiLevel = RuntimeEnvironment.getApiLevel(); in callDispatchResized() local
49 if (apiLevel <= Build.VERSION_CODES.JELLY_BEAN) { in callDispatchResized()
57 } else if (apiLevel <= JELLY_BEAN_MR1) { in callDispatchResized()
64 } else if (apiLevel <= Build.VERSION_CODES.KITKAT) { in callDispatchResized()
72 } else if (apiLevel <= Build.VERSION_CODES.LOLLIPOP_MR1) { in callDispatchResized()
81 } else if (apiLevel <= Build.VERSION_CODES.M) { in callDispatchResized()
91 } else if (apiLevel <= Build.VERSION_CODES.N_MR1) { in callDispatchResized()
104 } else if (apiLevel <= Build.VERSION_CODES.O_MR1) { in callDispatchResized()
121 } else if (apiLevel <= Build.VERSION_CODES.Q) { in callDispatchResized()
137 } else if (apiLevel <= Build.VERSION_CODES.R) { in callDispatchResized()
[all …]
DShadowArscAssetInputStream.java29 int apiLevel = RuntimeEnvironment.getApiLevel(); in getAsset() local
31 if (apiLevel >= LOLLIPOP) { in getAsset()
DShadowActivity.java83 int apiLevel = RuntimeEnvironment.getApiLevel(); in callAttach() local
99 if (apiLevel <= Build.VERSION_CODES.KITKAT) { in callAttach()
119 } else if (apiLevel <= Build.VERSION_CODES.LOLLIPOP) { in callAttach()
140 } else if (apiLevel <= Build.VERSION_CODES.M) { in callAttach()
163 } else if (apiLevel <= Build.VERSION_CODES.N_MR1) { in callAttach()
187 } else if (apiLevel <= Build.VERSION_CODES.P) { in callAttach()
213 } else if (apiLevel <= Build.VERSION_CODES.R) { in callAttach()
240 } else if (apiLevel >= Build.VERSION_CODES.S) { in callAttach()
269 throw new RuntimeException("Could not find AndroidRuntimeAdapter for API level: " + apiLevel); in callAttach()
/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/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassPathResolver.java244 private static List<String> getDefaultBootClassPath(@Nonnull DexFile dexFile, int apiLevel) { in getDefaultBootClassPath() argument
254 if (apiLevel <= 8) { in getDefaultBootClassPath()
261 } else if (apiLevel <= 11) { in getDefaultBootClassPath()
270 } else if (apiLevel <= 13) { in getDefaultBootClassPath()
280 } else if (apiLevel <= 15) { in getDefaultBootClassPath()
291 } else if (apiLevel <= 17) { in getDefaultBootClassPath()
304 } else if (apiLevel <= 18) { in getDefaultBootClassPath()
317 } else if (apiLevel <= 19) { in getDefaultBootClassPath()
333 } else if (apiLevel <= 22) { in getDefaultBootClassPath()
348 } 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.getBuffer()); in compileSmali()
DAssembleCommand.java65 private int apiLevel = 15; field in AssembleCommand
106 options.apiLevel = apiLevel; in getOptions()
DSmali.java95 final DexBuilder dexBuilder = new DexBuilder(Opcodes.forApi(options.apiLevel)); in assemble()
178 parser.setApiLevel(options.apiLevel); in assembleSmaliFile()
196 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/boringssl/src/util/
Drun_android_tests.go41apiLevel = flag.Int("api-level", 0, "Specifies the Android API level to use when building Go t… var
144 targetPrefix = fmt.Sprintf("armv7a-linux-androideabi%d-", *apiLevel)
148 targetPrefix = fmt.Sprintf("aarch64-linux-android%d-", *apiLevel)
179 if len(*ndkPath) != 0 && len(*abi) != 0 && *apiLevel != 0 {
234 if *apiLevel == 0 {
240 if *apiLevel, err = strconv.Atoi(apiLevelStr); err != nil {
243 fmt.Printf("Detected API level %d from CMakeCache.txt.\n", *apiLevel)
/external/smali/baksmali/src/test/java/org/jf/baksmali/
DInstructionRoundtripTest.java40 options.apiLevel = 28; in testConstMethodHandle()
47 options.apiLevel = 28; in testConstMethodType()
DInvokeCustomTest.java40 options.apiLevel = 26; in testInvokeCustom()
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DDexInputCommand.java58 public int apiLevel = -1; field in DexInputCommand
129 if (apiLevel != -1) { in loadDexFile()
130 opcodes = 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/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/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/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java28 private static int apiLevel; field in RuntimeEnvironment
141 return apiLevel; in getApiLevel()
/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()

12