Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1096ca0e authored by Yuyang Huang's avatar Yuyang Huang Committed by Android (Google) Code Review
Browse files

Merge "Add VTS to cover the APF VSR requirement since U" into udc-dev

parents f38231de e6396ba7
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -92,14 +92,21 @@ TEST_P(WifiStaIfaceAidlTest, GetFeatureSet) {
}

/*
 * GetApfPacketFilterCapabilities
 * CheckApfIsSupported:
 * Ensures the APF packet filter is fully supported as required in VSR 14:
 * https://docs.partner.android.com/gms/policies/vsr/vsr-14
 */
TEST_P(WifiStaIfaceAidlTest, GetApfPacketFilterCapabilities) {
    if (!isFeatureSupported(IWifiStaIface::FeatureSetMask::APF)) {
        GTEST_SKIP() << "APF packet filter capabilities are not supported.";
    }
TEST_P(WifiStaIfaceAidlTest, CheckApfIsSupported) {
    // It is not required to check the vendor API level is at least U here
    // because the Wi-Fi AIDL interface is launched with Android U(VSR-14).
    // TODO: Add wavier list to the chipsets that doesn't support APF.
    EXPECT_TRUE(isFeatureSupported(IWifiStaIface::FeatureSetMask::APF));
    StaApfPacketFilterCapabilities apf_caps = {};
    EXPECT_TRUE(wifi_sta_iface_->getApfPacketFilterCapabilities(&apf_caps).isOk());
    // The APF version must be 4 and the usable memory must be at least
    // 1024 bytes.
    EXPECT_EQ(apf_caps.version, 4);
    EXPECT_GE(apf_caps.maxLength, 1024);
}

/*