Merge "Skip testDataSaverMode_enabled for AAOS MUMD build as per-display power is not supported" into android15-tests-dev
diff --git a/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/HostsideRestrictBackgroundNetworkTests.java b/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/HostsideRestrictBackgroundNetworkTests.java
index 0261c7d..ec9b608d 100644
--- a/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/HostsideRestrictBackgroundNetworkTests.java
+++ b/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/HostsideRestrictBackgroundNetworkTests.java
@@ -17,6 +17,7 @@
 package com.android.cts.netpolicy;
 
 import static org.junit.Assert.fail;
+import static org.junit.Assume.assumeFalse;
 
 import android.platform.test.annotations.FlakyTest;
 import android.platform.test.annotations.SecurityTest;
@@ -32,6 +33,8 @@
 @FlakyTest(bugId = 288324467)
 public class HostsideRestrictBackgroundNetworkTests extends HostsideNetworkPolicyTestCase {
 
+    private static final String FEATURE_AUTOMOTIVE = "android.hardware.type.automotive";
+
     @Before
     public void setUp() throws Exception {
         uninstallPackage(TEST_APP2_PKG, false);
@@ -68,6 +71,10 @@
 
     @Test
     public void testDataSaverMode_enabled() throws Exception {
+        // Skip this test on AAOS MUMD build as per-display power is not supported.
+        assumeFalse(
+                getDevice().hasFeature(FEATURE_AUTOMOTIVE)
+                        && getDevice().isVisibleBackgroundUsersSupported());
         runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest",
                 "testGetRestrictBackgroundStatus_enabled");
     }