| commit | 50c13c596e8d6cb6d5d207ae8322e5978ce97b6b | [log] [tgz] |
|---|---|---|
| author | Ioannis Ilkos <ilkos@google.com> | Tue Oct 19 19:09:57 2021 +0100 |
| committer | Ioannis Ilkos <ilkos@google.com> | Wed Oct 20 15:25:45 2021 +0000 |
| tree | 3176ba8f5659235fce4c3620efc335ae42862bd5 | |
| parent | 8def059490bf7cfde7045b683bc11eabfc25c712 [diff] |
Exclude test for vendor API level < 31 Unsupported on these devices; seems like getFirstApiLevel semantics do not cover this case. Bug: 203045500 Test: atest ProcessDmabufMemoryTests Change-Id: Ie161b37d2882f8ca124a21fc31bb0e8f401552e8 Merged-In: Ie161b37d2882f8ca124a21fc31bb0e8f401552e8
diff --git a/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ProcessDmabufMemoryTests.java b/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ProcessDmabufMemoryTests.java index 25cb2f7..f49d3f6 100644 --- a/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ProcessDmabufMemoryTests.java +++ b/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ProcessDmabufMemoryTests.java
@@ -60,7 +60,8 @@ public void testProcessDmabufMemoryAtom() throws Exception { boolean supportsFds = DeviceUtils.isKernelGreaterEqual(getDevice(), Pair.create(5, 4)) - && PropertyUtil.getFirstApiLevel(getDevice()) > 30; + && PropertyUtil.getFirstApiLevel(getDevice()) >= 31 + && PropertyUtil.getVendorApiLevel(getDevice()) >= 31; List<AtomsProto.Atom> atoms = pullAsGaugeMetric(); for (AtomsProto.Atom atom : atoms) {