Skip test for Chromebook

For Chromebook clamshell mode, the activity may not cover the whole
screen for portrait activity and landscape physical screen (It shows the black background on both sides). The test gets the smallest
screenlayout size as expected size from different orientations. Then it
compares the expected size with each screenlayout size in different
orientations. In conclusion, clamshell mode doesn't return same screenlayout size in different orientations, which fails the test. So skipping the test for Chromebook here.

Bug: 78248059
Test: atest android.dpi.cts.ConfigurationScreenLayoutTest#testScreenLayout on Kevin.
Change-Id: Ib39f22e634f2081010f468d484749e73a0f81560
diff --git a/tests/tests/dpi/src/android/dpi/cts/ConfigurationScreenLayoutTest.java b/tests/tests/dpi/src/android/dpi/cts/ConfigurationScreenLayoutTest.java
index d7c9366..a7b2692 100644
--- a/tests/tests/dpi/src/android/dpi/cts/ConfigurationScreenLayoutTest.java
+++ b/tests/tests/dpi/src/android/dpi/cts/ConfigurationScreenLayoutTest.java
@@ -49,6 +49,14 @@
             tearDown();
             return;
         }
+        if (isPC()) {
+            // The test skips mainly for Chromebook clamshell mode. For Chromebook clamshell mode
+            // with non-rotated landscape physical screen, the portrait window/activity has special
+            // behavior with black background on both sides to make the window/activity look
+            // portrait, which returns smaller screen layout size.
+            tearDown();
+            return;
+        }
         int expectedScreenLayout = computeScreenLayout();
         int expectedSize = expectedScreenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
         int expectedLong = expectedScreenLayout & Configuration.SCREENLAYOUT_LONG_MASK;
@@ -163,4 +171,9 @@
         return (supportsLandscape && supportsPortrait)
                 || (!supportsLandscape && !supportsPortrait);
     }
+
+    // Check if it is a PC device
+    private boolean isPC() {
+        return hasDeviceFeature(PackageManager.FEATURE_PC);
+    }
 }