Stop dynamically depending on legacy-android-test

The legacy-android-test target is deprecated.

The following change descriptions were generated automatically and so
may be a little repetitive. They are provided to give the reviewer
enough information to check the comments match what has actually been
changed and check the reasoning behind the changes.

* hostsidetests/devicepolicy/app/AccountCheck/Auth/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsAccountCheckAuthApp source
    does not depend on it or its classes.

* hostsidetests/devicepolicy/app/CrossProfileAppsTest/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsCrossProfileAppsTests
    source does not depend on it or its classes.

* hostsidetests/devicepolicy/app/DeviceAdmin/api23/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsDeviceAdminApp23 source
    does not depend on it or its classes.

* hostsidetests/devicepolicy/app/DeviceAdmin/api24/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsDeviceAdminApp24 source
    does not depend on it or its classes.

* hostsidetests/devicepolicy/app/LauncherTests/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsLauncherAppsTests source
    does not depend on it or its classes.

* tests/tests/accounts/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsAccountManagerTestCases
    source does not depend on it or its classes.

* tests/tests/calendarcommon/Android.mk
    Removed legacy-android-test from LOCAL_JAVA_LIBRARIES because
    legacy-android-test is deprecated and CtsCalendarcommon2TestCases
    source does not depend on it or its classes.

Bug: 30188076
Test: make checkbuild
Change-Id: I1d448761041ac8b2d9d7bdee40311bfb9e50613f
diff --git a/hostsidetests/devicepolicy/app/DeviceAdmin/api23/Android.mk b/hostsidetests/devicepolicy/app/DeviceAdmin/api23/Android.mk
index dfdd34c..2ca1899 100644
--- a/hostsidetests/devicepolicy/app/DeviceAdmin/api23/Android.mk
+++ b/hostsidetests/devicepolicy/app/DeviceAdmin/api23/Android.mk
@@ -30,7 +30,7 @@
     ctstestrunner \
     compatibility-device-util
 
-LOCAL_JAVA_LIBRARIES := legacy-android-test android.test.runner.stubs
+LOCAL_JAVA_LIBRARIES := android.test.runner.stubs
 
 LOCAL_SDK_VERSION := current