Prevent calling requestTetheredInterface when using adb over ethernet

Otherwise, if adb over ethernet is used, assumeNoInterfaceForTetheringAvailable() tears down the adb
connection because the call to requestTetheredInterface() tears
down IpClient.

Bug: 357332207
Test: atest EthernetManagerTest
Change-Id: I9d04c1a8d39d0accd8061dbfb195ae2359f48e93
diff --git a/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt b/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt
index 61ebd8f..b784002 100644
--- a/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt
+++ b/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt
@@ -617,6 +617,9 @@
     }
 
     private fun assumeNoInterfaceForTetheringAvailable() {
+         // Requesting a tethered interface will stop IpClient. Prevent it from doing so
+         // if adb is connected over ethernet.
+         assumeFalse(isAdbOverEthernet())
         // Interfaces that have configured NetworkCapabilities will never be used for tethering,
         // see aosp/2123900.
         try {