summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-05 19:26:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-05-05 19:26:26 +0000
commit88b8ef2573168a483706d7b306d37d9417280faa (patch)
treeba21129ffc2b38b5428121d81ed106774d771c6a
parent04411751c91a8f582724c5c03c8b0077f78cca9b (diff)
parenta15ca5921b550e4629c678d7481b8ef3ecd6f46c (diff)
downloadcts-sparse-8547496-L11900000954555173.tar.gz
Merge "Merge cherrypicks of [2072918, 2072309] into sparse-8444732-L87600000954400916." into sparse-8444732-L87600000954400916sparse-8547496-L11900000954555173
-rw-r--r--hostsidetests/security/src/android/security/cts/KernelConfigTest.java103
-rw-r--r--tests/tests/media/src/android/media/cts/MediaCodecTest.java7
2 files changed, 58 insertions, 52 deletions
diff --git a/hostsidetests/security/src/android/security/cts/KernelConfigTest.java b/hostsidetests/security/src/android/security/cts/KernelConfigTest.java
index 3223f4661c8..e8849e64c19 100644
--- a/hostsidetests/security/src/android/security/cts/KernelConfigTest.java
+++ b/hostsidetests/security/src/android/security/cts/KernelConfigTest.java
@@ -233,56 +233,56 @@ public class KernelConfigTest extends BaseHostJUnit4Test {
put("EXYNOS7870", null);
put("EXYNOS7880", null);
put("EXYNOS7570", null);
- put("EXYNOS7872", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("EXYNOS7885", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("EXYNOS9610", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("Kirin980", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("Kirin970", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
+ put("EXYNOS7872", null);
+ put("EXYNOS7885", null);
+ put("EXYNOS9610", null);
+ put("Kirin980", null);
+ put("Kirin970", null);
put("Kirin810", null);
- put("Kirin710", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6889Z/CZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6889Z/CIZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("mt6873", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6853V/TZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6853V/TNZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6833V/ZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6833V/NZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6833V/TZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6833V/TNZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6833V/MZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6833V/MNZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6877V/ZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6877V/NZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6877V/TZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6877V/TNZA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6768V/WA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6768V/CA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6768V/WB", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6768V/CB", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6767V/WA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6767V/CA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6767V/WB", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6767V/CB", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/WA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/CA", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/WB", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/CB", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/WT", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/CT", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/WU", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/CU", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/WZ", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/CZ", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/WY", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("MT6769V/CY", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("SDMMAGPIE", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("SM6150", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("SM7150", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
+ put("Kirin710", null);
+ put("MT6889Z/CZA", null);
+ put("MT6889Z/CIZA", null);
+ put("mt6873", null);
+ put("MT6853V/TZA", null);
+ put("MT6853V/TNZA", null);
+ put("MT6833V/ZA", null);
+ put("MT6833V/NZA", null);
+ put("MT6833V/TZA", null);
+ put("MT6833V/TNZA", null);
+ put("MT6833V/MZA", null);
+ put("MT6833V/MNZA", null);
+ put("MT6877V/ZA", null);
+ put("MT6877V/NZA", null);
+ put("MT6877V/TZA", null);
+ put("MT6877V/TNZA", null);
+ put("MT6768V/WA", null);
+ put("MT6768V/CA", null);
+ put("MT6768V/WB", null);
+ put("MT6768V/CB", null);
+ put("MT6767V/WA", null);
+ put("MT6767V/CA", null);
+ put("MT6767V/WB", null);
+ put("MT6767V/CB", null);
+ put("MT6769V/WA", null);
+ put("MT6769V/CA", null);
+ put("MT6769V/WB", null);
+ put("MT6769V/CB", null);
+ put("MT6769V/WT", null);
+ put("MT6769V/CT", null);
+ put("MT6769V/WU", null);
+ put("MT6769V/CU", null);
+ put("MT6769V/WZ", null);
+ put("MT6769V/CZ", null);
+ put("MT6769V/WY", null);
+ put("MT6769V/CY", null);
+ put("SDMMAGPIE", null);
+ put("SM6150", null);
+ put("SM7150", null);
put("SM7250", null);
put("LITO", null);
put("LAGOON", null);
- put("SM8150", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("SM8150P", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
+ put("SM8150", null);
+ put("SM8150P", null);
put("SM8250", null);
put("KONA", null);
put("SDM429", null);
@@ -290,10 +290,13 @@ public class KernelConfigTest extends BaseHostJUnit4Test {
put("QM215", null);
put("ATOLL", null);
put("ATOLL-AB", null);
- put("SDM660", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("BENGAL", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y"});
- put("DEFAULT", new String[]{"CONFIG_HARDEN_BRANCH_PREDICTOR=y",
- "CONFIG_UNMAP_KERNEL_AT_EL0=y"});
+ put("SDM660", null);
+ put("BENGAL", null);
+ put("KHAJE", null);
+ put("SDMMAGPIEP", null);
+ put("BENGAL-IOT", null);
+ put("BENGALP-IOT", null);
+ put("DEFAULT", new String[]{"CONFIG_UNMAP_KERNEL_AT_EL0=y"});
}};
private String[] lookupMitigations() throws Exception {
diff --git a/tests/tests/media/src/android/media/cts/MediaCodecTest.java b/tests/tests/media/src/android/media/cts/MediaCodecTest.java
index be052ff6a4e..fd25703b4c3 100644
--- a/tests/tests/media/src/android/media/cts/MediaCodecTest.java
+++ b/tests/tests/media/src/android/media/cts/MediaCodecTest.java
@@ -2882,10 +2882,13 @@ public class MediaCodecTest extends AndroidTestCase {
if (encCaps != null) {
int bitrateMode = -1;
List<Integer> candidates = Arrays.asList(
- EncoderCapabilities.BITRATE_MODE_VBR,
EncoderCapabilities.BITRATE_MODE_CBR,
EncoderCapabilities.BITRATE_MODE_CQ,
- EncoderCapabilities.BITRATE_MODE_CBR_FD);
+ EncoderCapabilities.BITRATE_MODE_CBR_FD,
+ // TODO: temporary workaround;
+ // isBitrateModeSupported(VBR) always returns true
+ // for video encoders in Android 12/12L
+ EncoderCapabilities.BITRATE_MODE_VBR);
for (int candidate : candidates) {
if (encCaps.isBitrateModeSupported(candidate)) {
bitrateMode = candidate;