/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/ |
D | SdkConfig.java | 52 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/ |
D | DeviceConfigTest.java | 23 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/ |
D | ShadowViewRootImpl.java | 47 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 …]
|
D | ShadowArscAssetInputStream.java | 29 int apiLevel = RuntimeEnvironment.getApiLevel(); in getAsset() local 31 if (apiLevel >= LOLLIPOP) { in getAsset()
|
D | ShadowActivity.java | 83 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/ |
D | DeviceConfig.java | 97 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 …]
|
D | Bootstrap.java | 22 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/ |
D | ClassPathResolver.java | 244 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/ |
D | SmaliTestUtils.java | 56 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()
|
D | AssembleCommand.java | 65 private int apiLevel = 15; field in AssembleCommand 106 options.apiLevel = apiLevel; in getOptions()
|
D | Smali.java | 95 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()
|
D | SmaliOptions.java | 35 public int apiLevel = 15; field in SmaliOptions
|
/external/desugar/java/com/google/devtools/build/android/desugar/runtime/ |
D | ThrowableExtension.java | 54 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/ |
D | run_android_tests.go | 41 …apiLevel = 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/ |
D | InstructionRoundtripTest.java | 40 options.apiLevel = 28; in testConstMethodHandle() 47 options.apiLevel = 28; in testConstMethodType()
|
D | InvokeCustomTest.java | 40 options.apiLevel = 26; in testInvokeCustom()
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/ |
D | DexInputCommand.java | 58 public int apiLevel = -1; field in DexInputCommand 129 if (apiLevel != -1) { in loadDexFile() 130 opcodes = Opcodes.forApi(apiLevel); in loadDexFile()
|
D | ListFieldOffsetsCommand.java | 107 options.apiLevel = apiLevel; in getOptions()
|
D | ListVtablesCommand.java | 144 options.apiLevel = apiLevel; in getOptions()
|
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | ShadowWrangler.java | 73 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/ |
D | NativeObjRegistry.java | 170 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/ |
D | TestUtil.java | 57 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/ |
D | Qualifiers.java | 99 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/ |
D | RuntimeEnvironment.java | 28 private static int apiLevel; field in RuntimeEnvironment 141 return apiLevel; in getApiLevel()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | SdkPicker.java | 132 int apiLevel = supportedSdk.getApiLevel(); in sdkRange() local 133 if (apiLevel >= minSdk && supportedSdk.getApiLevel() <= maxSdk) { in sdkRange()
|