Home
last modified time | relevance | path

Searched refs:PropertyUtil (Results 1 – 25 of 67) sorted by relevance

123

/cts/tests/tests/security/src/android/security/cts/
DEncryptionTest.java33 import com.android.compatibility.common.util.PropertyUtil;
55 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()
88 final String cryptoType = PropertyUtil.getProperty("ro.crypto.type"); in handleEncryptedDevice()
107 if (PropertyUtil.getFirstApiLevel() < Build.VERSION_CODES.Q) { in handleEncryptedDevice()
120 if ("encrypted".equals(PropertyUtil.getProperty("ro.crypto.state"))) { in testEncryption()
DVerifiedBootTest.java30 import com.android.compatibility.common.util.PropertyUtil;
47 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.java45 import com.android.compatibility.common.util.PropertyUtil;
97 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/
DMetadataEncryptionTest.java23 import com.android.compatibility.common.util.PropertyUtil;
56 if (PropertyUtil.getFirstApiLevel(mDevice) <= 29) { in testMetadataEncryptionIsEnabled()
59 if (PropertyUtil.propertyEquals(mDevice, "ro.crypto.type", "managed")) { in testMetadataEncryptionIsEnabled()
73 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
74 PropertyUtil.getVendorApiLevel(mDevice)); in assumeSecurityModelCompat()
DPerfEventParanoidTest.java22 import com.android.compatibility.common.util.PropertyUtil;
64 if (PropertyUtil.getFirstApiLevel(mDevice) >= ANDROID_R_API_LEVEL) { in testPerfEventRestricted()
92 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
93 PropertyUtil.getVendorApiLevel(mDevice)); in assumeSecurityModelCompat()
DKernelConfigTest.java24 import com.android.compatibility.common.util.PropertyUtil;
147 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()
406 PropertyUtil.getPropertyInt(mDevice, "ro.apk_verity.mode") != 2) { in testConfigFsVerity()
416 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
417 PropertyUtil.getVendorApiLevel(mDevice)); in assumeSecurityModelCompat()
432 if (PropertyUtil.getFirstApiLevel(mDevice) < 33) { in testConfigRandomizeBase()
[all …]
DSELinuxNeverallowRule.java21 import com.android.compatibility.common.util.PropertyUtil;
81 return PropertyUtil.getFirstApiLevel(device) > 29; in isDeviceLaunchingWithR()
85 return PropertyUtil.getFirstApiLevel(device) > 30; in isDeviceLaunchingWithS()
DProcessMustUseSeccompTest.java19 import com.android.compatibility.common.util.PropertyUtil;
47 return PropertyUtil.getFirstApiLevel(mDevice) > 25; in isFullTrebleDevice()
DSELinuxHostTest.java31 import com.android.compatibility.common.util.PropertyUtil;
189 final int firstApiLevel = Math.min(PropertyUtil.getFirstApiLevel(mDevice), in assumeSecurityModelCompat()
190 PropertyUtil.getVendorApiLevel(mDevice)); in assumeSecurityModelCompat()
590 return PropertyUtil.getFirstApiLevel(device) > 26 && in isFullTrebleDevice()
591 PropertyUtil.propertyEquals(device, "ro.treble.enabled", "true"); in isFullTrebleDevice()
603 return PropertyUtil.propertyEquals( in isCompatiblePropertyEnforcedDevice()
613 return PropertyUtil.getFirstApiLevel(device) > 34 /* Build.VERSION_CODES.UPSIDE_DOWN_CAKE */ in isSepolicySplit()
958 PropertyUtil.isVendorApiLevelNewerThan(mDevice, 27) /* includeVendorSepolicy */); in testDataTypeViolators()
969 PropertyUtil.isVendorApiLevelNewerThan(mDevice, 33) /* includeVendorSepolicy */); in testBpffsTypeViolators()
980 PropertyUtil.isVendorApiLevelNewerThan(mDevice, 27) /* includeVendorSepolicy */); in testProcTypeViolators()
[all …]
/cts/tests/tests/selinux/selinuxTargetSdkCurrent/src/android/security/
DSELinuxTargetSdkTest.java22 import com.android.compatibility.common.util.PropertyUtil;
94 if (PropertyUtil.isVendorApiLevelNewerThan(28)) { in testDex2oat()
104 if (PropertyUtil.isVendorApiLevelAtLeast(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)) { in testNoHiddenSystemProperties()
/cts/tests/tests/selinux/selinuxTargetSdk30/src/android/security/
DSELinuxTargetSdkTest.java20 import com.android.compatibility.common.util.PropertyUtil;
96 if (PropertyUtil.isVendorApiLevelNewerThan(28)) { in testDex2oat()
/cts/tests/tests/selinux/selinuxTargetSdk29/src/android/security/
DSELinuxTargetSdkTest.java20 import com.android.compatibility.common.util.PropertyUtil;
41 if (PropertyUtil.isVendorApiLevelNewerThan(28)) { in testDex2oat()
/cts/tests/tests/selinux/selinuxEphemeral/src/android/security/
DSELinuxTargetSdkTest.java21 import com.android.compatibility.common.util.PropertyUtil;
76 if (PropertyUtil.isVendorApiLevelNewerThan(28)) { in testDex2oat()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DClientIdDeviceInfo.java21 import com.android.compatibility.common.util.PropertyUtil;
44 Map<String, String> clientIds = PropertyUtil.getClientIds(); in collectClientIds()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/
DProcessDmabufMemoryTests.java27 import com.android.compatibility.common.util.PropertyUtil;
64 && PropertyUtil.getFirstApiLevel(getDevice()) >= 31 in testProcessDmabufMemoryAtom()
65 && PropertyUtil.getVendorApiLevel(getDevice()) >= 31; in testProcessDmabufMemoryAtom()
DSystemMemoryStatsTests.java27 import com.android.compatibility.common.util.PropertyUtil;
69 if (PropertyUtil.getFirstApiLevel(getDevice()) >= 30) { in testSystemMemoryAtom()
/cts/hostsidetests/packagemanager/dynamicmime/src/android/dynamicmime/cts/
DPreferredActivitiesTestCases.java22 import com.android.compatibility.common.util.PropertyUtil;
47 return PropertyUtil.getFirstApiLevel(getDevice()) > 30 /* BUILD.VERSION_CODES.R */; in isShippedAtLeastS()
/cts/tests/tests/graphics/src/android/graphics/cts/
DOpenGlEsDeqpLevelTest.java31 import com.android.compatibility.common.util.PropertyUtil;
69 PropertyUtil.getVsrApiLevel() >= 31); in testOpenGlEsDeqpLevel()
DCameraVulkanGpuTest.java28 import com.android.compatibility.common.util.PropertyUtil;
51 if(PropertyUtil.getFirstApiLevel() < 28){ in testCameraImportAndRendering()
DVulkanDeqpLevelTest.java31 import com.android.compatibility.common.util.PropertyUtil;
76 PropertyUtil.getVsrApiLevel() >= 30); in testVulkanDeqpLevel()
/cts/tests/tests/hardware/src/android/hardware/cts/
DSecurityModelFeatureTest.java21 import static com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel;
22 import static com.android.compatibility.common.util.PropertyUtil.getVendorApiLevel;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DSecurityModeFeatureVerifierActivity.java21 import static com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel;
22 import static com.android.compatibility.common.util.PropertyUtil.getVendorApiLevel;
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java29 import com.android.compatibility.common.util.PropertyUtil;
60 if (PropertyUtil.getFirstApiLevel() >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { in testScreenConfiguration()
64 } else if (PropertyUtil.getFirstApiLevel() >= Build.VERSION_CODES.R) { in testScreenConfiguration()
/cts/hostsidetests/os/src/android/os/cts/
DQuiescentBootTests.java28 import com.android.compatibility.common.util.PropertyUtil;
59 (PropertyUtil.getFirstApiLevel(mDevice) < 30)); in setUp()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DDirectBootHostTest.java22 import static com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel;
23 import static com.android.compatibility.common.util.PropertyUtil.getVendorApiLevel;

123