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
diff --git a/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt b/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt
index a074b67..bf482b7 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 @@
@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)