From f9cf6538aeadf70d032176d367e681859887b15d Mon Sep 17 00:00:00 2001 From: Joseph Cheng Date: Mon, 29 Nov 2021 17:13:20 +0800 Subject: VulkanFeaturesTest: using correct data type for maxPerStageDescriptorStorageBuffers The maxPerStageDescriptorStorageBuffers is defined as uint32[1], but the test parse the value as signed integer. It will cause data loss during narrowing type casting. Fix it by using long data type to handle the uint32 data from vulkan driver. Test: cts-tradefed run cts -m CtsGraphicsCases -t android.graphics.cts.VulkanFeaturesTest#testVulkanHardwareFeatures [1]: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceLimits.html Bug: 213924411 Change-Id: If88eabe4c51b1b65699170f85ff1a25fbf40091d --- tests/tests/graphics/src/android/graphics/cts/VulkanFeaturesTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests/graphics/src/android/graphics/cts/VulkanFeaturesTest.java b/tests/tests/graphics/src/android/graphics/cts/VulkanFeaturesTest.java index 8fbdd2f88c6..837e3cb2a77 100644 --- a/tests/tests/graphics/src/android/graphics/cts/VulkanFeaturesTest.java +++ b/tests/tests/graphics/src/android/graphics/cts/VulkanFeaturesTest.java @@ -327,7 +327,7 @@ public class VulkanFeaturesTest { } } JSONObject limits = device.getJSONObject("properties").getJSONObject("limits"); - int maxPerStageDescriptorStorageBuffers = limits.getInt("maxPerStageDescriptorStorageBuffers"); + long maxPerStageDescriptorStorageBuffers = limits.getLong("maxPerStageDescriptorStorageBuffers"); if (DEBUG) { Log.d(TAG, device.getJSONObject("properties").getString("deviceName") + ": variablePointers=" + variablePointers + -- cgit v1.2.3 From 893acb55692af56acb3d0c9b86d739dc31b3d16a Mon Sep 17 00:00:00 2001 From: Zim Date: Tue, 4 Jan 2022 13:44:28 +0000 Subject: Downscale transcoding test videos to 480x320 resolution Some low-end devices don't support the 1920x1080 resolution used earlier. Test: atest TranscodeTest Bug: 204140193 Change-Id: I8c5848011074f734e73b2b69ddbce39c3ca9eb07 --- .../res/raw/testVideo_HEVC_long.mp4 | Bin 250798892 -> 4758997 bytes .../res/raw/testVideo_HEVC_medium.mp4 | Bin 67269470 -> 1115500 bytes .../res/raw/testVideo_HEVC_small.mp4 | Bin 671136 -> 22681 bytes .../res/raw/testVideo_Legacy.mp4 | Bin 67084678 -> 1682831 bytes .../res/raw/testvideo_HEVC.mp4 | Bin 18026669 -> 399521 bytes 5 files changed, 0 insertions(+), 0 deletions(-) diff --git a/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_long.mp4 b/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_long.mp4 index 6b371538de8..c8d4b8ff3f3 100755 Binary files a/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_long.mp4 and b/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_long.mp4 differ diff --git a/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_medium.mp4 b/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_medium.mp4 index 207530ce382..96cf7b1d45b 100755 Binary files a/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_medium.mp4 and b/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_medium.mp4 differ diff --git a/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_small.mp4 b/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_small.mp4 index f2aa045b173..b2b0f5d81bc 100755 Binary files a/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_small.mp4 and b/tests/MediaProviderTranscode/res/raw/testVideo_HEVC_small.mp4 differ diff --git a/tests/MediaProviderTranscode/res/raw/testVideo_Legacy.mp4 b/tests/MediaProviderTranscode/res/raw/testVideo_Legacy.mp4 index 1c74ffaeab0..001667d3d66 100755 Binary files a/tests/MediaProviderTranscode/res/raw/testVideo_Legacy.mp4 and b/tests/MediaProviderTranscode/res/raw/testVideo_Legacy.mp4 differ diff --git a/tests/MediaProviderTranscode/res/raw/testvideo_HEVC.mp4 b/tests/MediaProviderTranscode/res/raw/testvideo_HEVC.mp4 index 8a3dba2da95..fcc1bb4af5a 100644 Binary files a/tests/MediaProviderTranscode/res/raw/testvideo_HEVC.mp4 and b/tests/MediaProviderTranscode/res/raw/testvideo_HEVC.mp4 differ -- cgit v1.2.3 From a890a7630d47b918085e633b1145bc5f85aff346 Mon Sep 17 00:00:00 2001 From: Sungmin Date: Tue, 11 Jan 2022 10:47:46 -0800 Subject: cts: exclude PinnedStackTests#testEnterPipWithMinimalSize Once multiple-density is supported for WindowLayout, we can enable this test again. Extending the CL to the android12 from the android11 as aosp/1675589/ Bug: 182630972, 214019488 Test: run cts -m CtsWindowManagerDeviceTestCases -t android.server.wm.PinnedStackTests#testEnterPipWithMinimalSize Signed-off-by: Sungmin Change-Id: I5555f65730b83e232389ab4eb067beed2285e6bb --- tools/cts-tradefed/res/config/cts-known-failures.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cts-tradefed/res/config/cts-known-failures.xml b/tools/cts-tradefed/res/config/cts-known-failures.xml index affd617f2d4..aa99f6854be 100644 --- a/tools/cts-tradefed/res/config/cts-known-failures.xml +++ b/tools/cts-tradefed/res/config/cts-known-failures.xml @@ -275,4 +275,6 @@