Home
last modified time | relevance | path

Searched refs:sdkLevel (Results 1 – 5 of 5) sorted by relevance

/frameworks/libs/modules-utils/javatests/com/android/modules/utils/build/
DUnboundedSdkLevelTest.java46 UnboundedSdkLevel sdkLevel = new UnboundedSdkLevel(31, "REL", PREVIOUS_CODENAMES.get(31)); in testFinalizedSdk_S() local
48 assertThat(sdkLevel.isAtLeastInternal("30")).isTrue(); in testFinalizedSdk_S()
49 assertThat(sdkLevel.isAtLeastInternal("31")).isTrue(); in testFinalizedSdk_S()
50 assertThat(sdkLevel.isAtLeastInternal("32")).isFalse(); in testFinalizedSdk_S()
52 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("R")); in testFinalizedSdk_S()
53 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("S")); in testFinalizedSdk_S()
54 assertThat(sdkLevel.isAtLeastInternal("Sv2")).isFalse(); in testFinalizedSdk_S()
55 assertThat(sdkLevel.isAtLeastInternal("Tiramisu")).isFalse(); in testFinalizedSdk_S()
56 assertThat(sdkLevel.isAtLeastInternal("U")).isFalse(); in testFinalizedSdk_S()
58 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("")); in testFinalizedSdk_S()
[all …]
/frameworks/base/tools/aapt2/tools/
Dpublic_attr_map.py33 sdkLevel = findSdkLevelForAttribute(node.get('id', '0')) variable
34 if sdkLevel > 1 and sdkLevel < 22:
35 attrs.append("{{ u\"{}\", {} }}".format(node.get('name'), sdkLevel))
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp194 int32_t sdkProfile, sdkLevel; in addSupportedProfileLevels() local
196 && mapper->mapLevel(pl.level, &sdkLevel)) { in addSupportedProfileLevels()
197 caps->addProfileLevel((uint32_t)sdkProfile, (uint32_t)sdkLevel); in addSupportedProfileLevels()
202 caps->addProfileLevel((uint32_t)sdkProfile, (uint32_t)sdkLevel); in addSupportedProfileLevels()
208 caps->addProfileLevel((uint32_t)sdkProfile, (uint32_t)sdkLevel); in addSupportedProfileLevels()
215 caps->addProfileLevel((uint32_t)sdkProfile, (uint32_t)sdkLevel); in addSupportedProfileLevels()
239 && mapper->mapLevel(nextLevel, &sdkLevel)) { in addSupportedProfileLevels()
241 (uint32_t)sdkProfile, (uint32_t)sdkLevel); in addSupportedProfileLevels()
/frameworks/base/core/java/android/hardware/
DSensor.java997 public static int getMaxLengthValuesArray(Sensor sensor, int sdkLevel) { in getMaxLengthValuesArray() argument
1001 && sdkLevel <= Build.VERSION_CODES.JELLY_BEAN_MR1) { in getMaxLengthValuesArray()
/frameworks/base/tools/aapt/
DResourceTable.cpp4657 const int sdkLevel = getPublicAttributeSdkLevel(attrId); in modifyForCompat() local
4658 if (sdkLevel > 1 && sdkLevel > config.sdkVersion && sdkLevel > minSdk) { in modifyForCompat()
4659 AaptUtil::appendValue(attributesToRemove, sdkLevel, bag.keyAt(bi)); in modifyForCompat()
4669 const int sdkLevel = attributesToRemove.keyAt(i); in modifyForCompat() local
4671 if (!shouldGenerateVersionedResource(c, config, sdkLevel)) { in modifyForCompat()
4679 newConfig.sdkVersion = sdkLevel; in modifyForCompat()
4690 if (attributesToRemove.keyAt(j) > sdkLevel) { in modifyForCompat()
4884 const int sdkLevel = getPublicAttributeSdkLevel(attr.nameResId); in modifyForCompat() local
4885 if (sdkLevel > 1 && sdkLevel > config.sdkVersion && sdkLevel > minSdk) { in modifyForCompat()
4893 sdkVersionToGenerate = std::min(sdkLevel, sdkVersionToGenerate); in modifyForCompat()