diff --git a/tests/cts/hostside/app/Android.mk b/tests/cts/hostside/app/Android.mk index 9519ec5242..1c1a798fab 100644 --- a/tests/cts/hostside/app/Android.mk +++ b/tests/cts/hostside/app/Android.mk @@ -20,7 +20,7 @@ include $(CLEAR_VARS) LOCAL_MODULE_TAGS := tests LOCAL_SDK_VERSION := current -LOCAL_STATIC_JAVA_LIBRARIES := ctsdeviceutil ctstestrunner ub-uiautomator \ +LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util ctstestrunner ub-uiautomator \ CtsHostsideNetworkTestsAidl LOCAL_SRC_FILES := $(call all-java-files-under, src) diff --git a/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java b/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java index 5eefcb2ef3..014d7ae6e2 100644 --- a/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java +++ b/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java @@ -16,11 +16,11 @@ package com.android.cts.net.hostside; -import static android.cts.util.SystemUtil.runShellCommand; import static android.net.ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED; import static android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED; import static android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED; import static android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_WHITELISTED; +import static com.android.compatibility.common.util.SystemUtil.runShellCommand; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; diff --git a/tests/cts/net/Android.mk b/tests/cts/net/Android.mk index c553a9bb2e..4a776409c7 100644 --- a/tests/cts/net/Android.mk +++ b/tests/cts/net/Android.mk @@ -34,7 +34,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := CtsNetTestCases -LOCAL_STATIC_JAVA_LIBRARIES := core-tests-support ctsdeviceutil \ +LOCAL_STATIC_JAVA_LIBRARIES := core-tests-support compatibility-device-util \ ctstestrunner ctstestserver mockwebserver # uncomment when b/13249961 is fixed diff --git a/tests/cts/net/src/android/net/http/cts/HttpResponseCacheTest.java b/tests/cts/net/src/android/net/http/cts/HttpResponseCacheTest.java index 7987a50eb9..198f973dfb 100644 --- a/tests/cts/net/src/android/net/http/cts/HttpResponseCacheTest.java +++ b/tests/cts/net/src/android/net/http/cts/HttpResponseCacheTest.java @@ -21,9 +21,10 @@ import com.google.mockwebserver.MockWebServer; import junit.framework.TestCase; -import android.cts.util.FileUtils; import android.net.http.HttpResponseCache; +import com.android.compatibility.common.util.FileUtils; + import java.io.File; import java.io.InputStream; import java.net.CacheRequest; diff --git a/tests/cts/net/src/android/net/wifi/cts/WifiInfoTest.java b/tests/cts/net/src/android/net/wifi/cts/WifiInfoTest.java index 696d215649..5983cb72c2 100644 --- a/tests/cts/net/src/android/net/wifi/cts/WifiInfoTest.java +++ b/tests/cts/net/src/android/net/wifi/cts/WifiInfoTest.java @@ -21,7 +21,6 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; -import android.cts.util.PollingCheck; import android.net.wifi.SupplicantState; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; @@ -29,6 +28,8 @@ import android.net.wifi.WifiManager.WifiLock; import android.net.wifi.WifiSsid; import android.test.AndroidTestCase; +import com.android.compatibility.common.util.PollingCheck; + import java.util.concurrent.Callable; public class WifiInfoTest extends AndroidTestCase {