Apply flaky test fix to U CTS tests
Skip testSwitchToCarModeWhenEnableCarModeApp.

This test has been showing a flakey test history for a while now (medium
flake rate). Disabling this test for now in order to bring down
presubmit failure rate.

Bug: 297885091
Fixes: 270393593
Test: CTS
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2ca8fecffd4f4c4bf3547c96c9fa4a61840fd0a0)
Merged-In: I781b19b7c4519ad087dae73cf516c234f2c85ddf
Change-Id: I781b19b7c4519ad087dae73cf516c234f2c85ddf
diff --git a/tests/tests/telecom/src/android/telecom/cts/CarModeInCallServiceTest.java b/tests/tests/telecom/src/android/telecom/cts/CarModeInCallServiceTest.java
index f107d4b..e04db8e 100644
--- a/tests/tests/telecom/src/android/telecom/cts/CarModeInCallServiceTest.java
+++ b/tests/tests/telecom/src/android/telecom/cts/CarModeInCallServiceTest.java
@@ -45,6 +45,8 @@
     private static final int ASYNC_TIMEOUT = 10000;
     private static final String CARMODE_APP1_PACKAGE = "android.telecom.cts.carmodetestapp";
     private static final String CARMODE_APP2_PACKAGE = "android.telecom.cts.carmodetestapptwo";
+    // Flag to temp disable (flaky) test
+    private static final boolean SHOULD_IGNORE_TEST = true;
     private ICtsCarModeInCallServiceControl mCarModeIncallServiceControlOne;
     private ICtsCarModeInCallServiceControl mCarModeIncallServiceControlTwo;
 
@@ -541,7 +543,7 @@
     }
 
     public void testSwitchToCarModeWhenEnableCarModeApp() throws Exception {
-        if (!mShouldTestTelecom) {
+        if (!mShouldTestTelecom || SHOULD_IGNORE_TEST) {
             return;
         }
         if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {