mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
Merge "APF exempt list for TVs to use hardware feature" into main am: 23776d5001 am: 0776fdb744
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2906619 Change-Id: I50c626e9650787067d62b14e84618ae0040d0eeb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -69,18 +69,9 @@ class WifiStaIfaceAidlTest : public testing::TestWithParam<std::string> {
|
|||||||
|
|
||||||
std::shared_ptr<IWifiStaIface> wifi_sta_iface_;
|
std::shared_ptr<IWifiStaIface> wifi_sta_iface_;
|
||||||
|
|
||||||
// Checks if the MdnsOffloadManagerService is installed.
|
// Checks if the mDNS Offload is supported by any NIC.
|
||||||
bool isMdnsOffloadServicePresent() {
|
bool isMdnsOffloadPresentInNIC() {
|
||||||
int status =
|
return testing::deviceSupportsFeature("android.hardware.mdns_offload");
|
||||||
// --query-flags MATCH_SYSTEM_ONLY(1048576) will only return matched service
|
|
||||||
// installed on system or system_ext partition. The MdnsOffloadManagerService should
|
|
||||||
// be installed on system_ext partition.
|
|
||||||
// NOLINTNEXTLINE(cert-env33-c)
|
|
||||||
system("pm query-services --query-flags 1048576"
|
|
||||||
" com.android.tv.mdnsoffloadmanager/"
|
|
||||||
"com.android.tv.mdnsoffloadmanager.MdnsOffloadManagerService"
|
|
||||||
" | egrep -q mdnsoffloadmanager");
|
|
||||||
return status == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Detected panel TV device by using ro.oem.key1 property.
|
// Detected panel TV device by using ro.oem.key1 property.
|
||||||
@@ -146,7 +137,7 @@ TEST_P(WifiStaIfaceAidlTest, GetFeatureSet) {
|
|||||||
TEST_P(WifiStaIfaceAidlTest, CheckApfIsSupported) {
|
TEST_P(WifiStaIfaceAidlTest, CheckApfIsSupported) {
|
||||||
// Flat panel TV devices that support MDNS offload do not have to implement APF if the WiFi
|
// Flat panel TV devices that support MDNS offload do not have to implement APF if the WiFi
|
||||||
// chipset does not have sufficient RAM to do so.
|
// chipset does not have sufficient RAM to do so.
|
||||||
if (isPanelTvDevice() && isMdnsOffloadServicePresent()) {
|
if (isPanelTvDevice() && isMdnsOffloadPresentInNIC()) {
|
||||||
GTEST_SKIP() << "Panel TV supports mDNS offload. It is not required to support APF";
|
GTEST_SKIP() << "Panel TV supports mDNS offload. It is not required to support APF";
|
||||||
}
|
}
|
||||||
int vendor_api_level = property_get_int32("ro.vendor.api_level", 0);
|
int vendor_api_level = property_get_int32("ro.vendor.api_level", 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user