Home
last modified time | relevance | path

Searched refs:getFirstApiLevel (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/tests/security/src/android/security/cts/
DEncryptionTest.java55 Math.min(PropertyUtil.getFirstApiLevel(), PropertyUtil.getVendorApiLevel()); in setUp()
66 if (PropertyUtil.getFirstApiLevel() < Build.VERSION_CODES.M) { in handleUnencryptedDevice()
72 if (PropertyUtil.getFirstApiLevel() < Build.VERSION_CODES.Q) { in handleUnencryptedDevice()
107 if (PropertyUtil.getFirstApiLevel() < Build.VERSION_CODES.Q) { in handleEncryptedDevice()
DVerifiedBootTest.java47 Math.min(PropertyUtil.getFirstApiLevel(), PropertyUtil.getVendorApiLevel()); in setUp()
61 return (PropertyUtil.getFirstApiLevel() < Build.VERSION_CODES.P); in isLowRamExempt()
74 if (PropertyUtil.getFirstApiLevel() < Build.VERSION_CODES.O_MR1) { in testVerifiedBootSupport()
DFileIntegrityManagerTest.java97 Math.min(PropertyUtil.getFirstApiLevel(), PropertyUtil.getVendorApiLevel()); in setUp()
123 if (PropertyUtil.getFirstApiLevel() >= MIN_REQUIRED_API_LEVEL) { in testSupportedOnDevicesFirstLaunchedWithR()
/cts/hostsidetests/security/src/android/security/cts/
DKernelConfigTest.java147 if (PropertyUtil.getFirstApiLevel(mDevice) < 28) { in testConfigHardenedUsercopy()
163 if (PropertyUtil.getFirstApiLevel(mDevice) < 28) { in testConfigPAN()
322 if (PropertyUtil.getFirstApiLevel(mDevice) < 28) { in testConfigHardwareMitigations()
349 if (PropertyUtil.getFirstApiLevel(mDevice) < 30) { in testConfigDisableUsermodehelper()
405 if (PropertyUtil.getFirstApiLevel(mDevice) < 30 && in testConfigFsVerity()
416 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
432 if (PropertyUtil.getFirstApiLevel(mDevice) < 33) { in testConfigRandomizeBase()
452 if (PropertyUtil.getFirstApiLevel(mDevice) < 33) { in testConfigVmapStack()
DMetadataEncryptionTest.java56 if (PropertyUtil.getFirstApiLevel(mDevice) <= 29) { in testMetadataEncryptionIsEnabled()
73 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
DPerfEventParanoidTest.java64 if (PropertyUtil.getFirstApiLevel(mDevice) >= ANDROID_R_API_LEVEL) { in testPerfEventRestricted()
92 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
DSELinuxNeverallowRule.java81 return PropertyUtil.getFirstApiLevel(device) > 29; in isDeviceLaunchingWithR()
85 return PropertyUtil.getFirstApiLevel(device) > 30; in isDeviceLaunchingWithS()
DProcessMustUseSeccompTest.java47 return PropertyUtil.getFirstApiLevel(mDevice) > 25; in isFullTrebleDevice()
/cts/tests/tests/security/native/
Dutils.h21 int getFirstApiLevel();
Dutils.cpp43 int getFirstApiLevel() { in getFirstApiLevel() function
/cts/tests/tests/hardware/src/android/hardware/cts/
DSecurityModelFeatureTest.java21 import static com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel;
51 final int firstApiLevel = Math.min(getFirstApiLevel(), getVendorApiLevel()); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DSecurityModeFeatureVerifierActivity.java21 import static com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel;
85 return Math.min(getFirstApiLevel(), getVendorApiLevel()) < VERSION_CODES.S; in isLaunchedBeforeS()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java88 public static int getFirstApiLevel() { in getFirstApiLevel() method in PropertyUtil
109 return Math.min(apiLevel, getFirstApiLevel()); in getVsrApiLevel()
112 return getFirstApiLevel(); in getVsrApiLevel()
DApiLevelUtil.java114 public static int getFirstApiLevel() { in getFirstApiLevel() method in ApiLevelUtil
/cts/tests/tests/security/native/verified_boot/
DVerifiedBootTest.cpp32 int first_api_level = getFirstApiLevel(); in isExemptFromAVBTests()
144 if (getFirstApiLevel() < __ANDROID_API_U__) { in TEST()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DDirectBootHostTest.java22 import static com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel;
170 Math.min(getFirstApiLevel(getDevice()), getVendorApiLevel(getDevice())); in assumeSupportedDevice()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java60 if (PropertyUtil.getFirstApiLevel() >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { in testScreenConfiguration()
64 } else if (PropertyUtil.getFirstApiLevel() >= Build.VERSION_CODES.R) { in testScreenConfiguration()
/cts/hostsidetests/packagemanager/dynamicmime/src/android/dynamicmime/cts/
DPreferredActivitiesTestCases.java47 return PropertyUtil.getFirstApiLevel(getDevice()) > 30 /* BUILD.VERSION_CODES.R */; in isShippedAtLeastS()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraVulkanGpuTest.java51 if(PropertyUtil.getFirstApiLevel() < 28){ in testCameraImportAndRendering()
/cts/hostsidetests/os/src/android/os/cts/
DQuiescentBootTests.java59 (PropertyUtil.getFirstApiLevel(mDevice) < 30)); in setUp()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/
DSystemMemoryStatsTests.java69 if (PropertyUtil.getFirstApiLevel(getDevice()) >= 30) { in testSystemMemoryAtom()
DProcessDmabufMemoryTests.java64 && PropertyUtil.getFirstApiLevel(getDevice()) >= 31 in testProcessDmabufMemoryAtom()
/cts/tests/sensor/src/android/hardware/cts/
DSensorSupportTest.java75 if (PropertyUtil.getFirstApiLevel() >= Build.VERSION_CODES.O) { in testSupportsAccelerometerUncalibrated()
/cts/hostsidetests/statsdatom/apps/adpfapp/src/android/adpf/atom/app/
DADPFAtomTestActivity.java54 private static final int FIRST_API_LEVEL = PropertyUtil.getFirstApiLevel();
/cts/tests/tests/security/native/encryption/
DFileBasedEncryptionPolicyTest.cpp245 int first_api_level = getFirstApiLevel(); in TEST()

12