From c943e37f132dfe4d40b1ed2eb5adeedeadda912e Mon Sep 17 00:00:00 2001 From: Yuyang Huang Date: Wed, 29 May 2024 14:27:10 +0900 Subject: [PATCH] Run testFilterAgeIncreasesBetweenPacketstest() when VSR API is higher Restricted the execution of testFilterAgeIncreasesBetweenPackets() to devices with VSR API level 34 or higher. VSR-14 mandates APF activation under specific conditions screen off && (idle Wi-Fi | low traffic). Test: TH Change-Id: I480c0d0422fa39a580dbadd31a377986ce37c25f --- tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt b/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt index a074b6759b..bf482b7991 100644 --- a/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt +++ b/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt @@ -488,6 +488,10 @@ class ApfIntegrationTest { @IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE) @Test fun testFilterAgeIncreasesBetweenPackets() { + // VSR-14 mandates APF to be turned on when the screen is off and the Wi-Fi link + // is idle or traffic is less than 10 Mbps. Before that, we don't mandate when the APF + // should be turned on. + assume().that(getVsrApiLevel()).isAtLeast(34) assumeApfVersionSupportAtLeast(4) clearApfMemory() val gen = ApfV4Generator(4)